
/* AURORA responsive registration hardening: use a real viewport-sized scroll
   container and prevent long labels, file names, and controls from widening it. */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body.registration-open { min-height:100svh !important; min-height:100dvh !important; }
body.registration-open .shell,
body.registration-open #login-view,
body.registration-open .login-wrap,
body.registration-open .login-card,
body.registration-open #register-form,
body.registration-open #freelancer-register-form { box-sizing:border-box !important; }
body.registration-open .shell { width: min(calc(100% - 24px), 480px) !important; }
body.registration-open #register-form label,
body.registration-open #freelancer-register-form label { overflow-wrap:anywhere !important; }
body.registration-open input,
body.registration-open select,
body.registration-open textarea,
body.registration-open button { max-width:100% !important; }
body.registration-open input[type=file] { white-space:normal !important; overflow-wrap:anywhere !important; }
body.registration-open .registration-sticky-footer { padding-bottom: max(14px, env(safe-area-inset-bottom)) !important; }
@media (max-width: 380px) {
  body.registration-open .shell { width:calc(100% - 16px) !important; margin:8px auto 20px !important; }
  body.registration-open #login-view .login-card { padding:12px !important; }
  body.registration-open #register-form:not(.hidden),
  body.registration-open #freelancer-register-form:not(.hidden) { gap:10px !important; }
  body.registration-open #register-form input:not([type=checkbox]),
  body.registration-open #freelancer-register-form input:not([type=checkbox]) { min-height:48px !important; }
}
@media (min-width: 761px) {
  body.registration-open .shell { margin-top:24px !important; }
}
/* Freelancer landing page: never leave an empty owner dashboard on first login. */
body.freelancer-account-active #owner-dashboard-view > *:not(#freelancer-home) { display:none !important; }
#freelancer-home { width:100%; box-sizing:border-box; padding:clamp(14px,3vw,24px); }
#freelancer-home.hidden { display:none !important; }
.freelancer-home-card { max-width:760px; margin:0 auto; padding:clamp(18px,4vw,28px); border:1px solid #d7e7f5; border-radius:18px; background:linear-gradient(145deg,#fff 0%,#f2f8ff 100%); box-shadow:0 10px 28px rgba(20,70,110,.08); }
.freelancer-home-card h1 { margin:4px 0 8px; font-size:clamp(22px,4vw,30px); line-height:1.2; overflow-wrap:anywhere; }
.freelancer-home-card p { line-height:1.55; overflow-wrap:anywhere; }
.freelancer-home-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:18px; }
.freelancer-home-actions button { min-width:0; min-height:50px; padding:12px; white-space:normal; }
.freelancer-home-summary { margin-top:16px; }
@media(max-width:420px) {
  .freelancer-home-actions { grid-template-columns:minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) {
  .freelancer-home-card, .freelancer-home-card * { scroll-behavior:auto !important; animation:none !important; transition:none !important; }
}

/* Touch-first control sizing across Android, iOS and tablet browsers. */
@media (pointer:coarse) {
  body.registration-open #register-form input:not([type=checkbox]),
  body.registration-open #freelancer-register-form input:not([type=checkbox]),
  body.registration-open #register-form button,
  body.registration-open #freelancer-register-form button {
    min-height:52px !important;
  }
}


/* 2026-11-16 final signup layer: Equity-inspired burgundy, gold and ivory; no third-party branding. */
html,body{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.registration-open{
  position:relative!important;inset:auto!important;width:100%!important;height:auto!important;
  min-height:100svh!important;min-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior-y:contain!important;touch-action:pan-y!important;
  background:radial-gradient(ellipse at 12% 8%,rgba(255,255,255,.14),transparent 34%),
    radial-gradient(ellipse at 90% 90%,rgba(213,174,103,.18),transparent 38%),
    linear-gradient(138deg,#791328 0%,#a71930 48%,#4b1025 100%)!important;color:#1e293b!important;
}
body.registration-open .topbar{position:relative!important;background:rgba(69,10,29,.96)!important;border-bottom:1px solid rgba(255,255,255,.18)!important}
body.registration-open .brand{color:#fff!important}
body.registration-open .shell{
  display:block!important;width:min(calc(100% - 24px),640px)!important;max-width:640px!important;
  height:auto!important;min-height:0!important;margin:clamp(12px,3vh,28px) auto 32px!important;
  padding:0 0 max(24px,env(safe-area-inset-bottom))!important;overflow:visible!important;box-sizing:border-box!important;
}
body.registration-open #login-view,body.registration-open .login-wrap{
  display:block!important;width:100%!important;height:auto!important;min-height:0!important;
  max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;
}
body.registration-open #login-view .login-card{
  display:block!important;position:relative!important;width:100%!important;max-width:640px!important;
  min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;
  margin:0 auto!important;padding:clamp(16px,3.5vw,30px)!important;overflow:visible!important;
  box-sizing:border-box!important;border:1px solid rgba(255,255,255,.72)!important;
  border-top:5px solid #d6ad62!important;border-radius:20px!important;
  background:#fffaf2!important;color:#202633!important;
  box-shadow:0 22px 65px rgba(35,4,16,.28)!important;
}
body.registration-open #login-view .login-card::before{content:none!important;display:none!important}
body.registration-open .aurora-brand-lockup{display:block!important;max-width:100%;margin:0 auto 12px}
body.registration-open .aurora-login-logo{display:block;width:min(100%,300px);height:auto;margin:auto}
body.registration-open #register-form:not(.hidden),
body.registration-open #freelancer-register-form:not(.hidden){
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:13px!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  max-height:none!important;min-height:0!important;margin:14px 0 0!important;
  padding:0 1px 18px!important;overflow:visible!important;align-content:start!important;box-sizing:border-box!important;
}
body.registration-open #register-form .eyebrow,
body.registration-open #freelancer-register-form .eyebrow{color:#9e1830!important;font-size:11px!important;letter-spacing:.12em!important;font-weight:850!important}
body.registration-open #register-form>.muted.small,
body.registration-open #freelancer-register-form>.muted.small{color:#596273!important;font-size:13px!important;line-height:1.55!important;overflow-wrap:anywhere}
body.registration-open #owner-signup-fields,
body.registration-open #register-fields{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:13px!important;
  min-width:0!important;width:100%!important;padding:14px!important;
  border:1px solid #ece5dc!important;border-radius:14px!important;background:#fff!important;box-sizing:border-box!important;
}
body.registration-open #owner-signup-fields>.compact-extra-fields,
body.registration-open #register-fields>.compact-extra-fields{grid-column:1!important}
body.registration-open #register-form label,
body.registration-open #freelancer-register-form label{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;
  width:100%!important;min-width:0!important;margin:0!important;color:#293244!important;
  font-size:13px!important;line-height:1.45!important;font-weight:700!important;overflow-wrap:anywhere!important;
}
body.registration-open #register-form input:not([type=checkbox]),
body.registration-open #freelancer-register-form input:not([type=checkbox]),
body.registration-open #register-form select,
body.registration-open #freelancer-register-form select{
  display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;
  min-height:50px!important;margin:0!important;padding:11px 13px!important;
  border:1px solid #cbd2dc!important;border-radius:10px!important;background:#fff!important;
  color:#172033!important;font:inherit!important;font-size:16px!important;line-height:1.4!important;
}
body.registration-open #register-form input[type=file],
body.registration-open #freelancer-register-form input[type=file]{
  min-height:54px!important;padding:9px!important;border:1px dashed #aab5c4!important;
  border-radius:10px!important;background:#fff!important;font-size:13px!important;white-space:normal!important;overflow:hidden!important;
}
body.registration-open #register-form input:focus,
body.registration-open #freelancer-register-form input:focus{
  outline:3px solid rgba(167,25,48,.14)!important;border-color:#a71930!important;box-shadow:none!important;
}
body.registration-open #register-form label.aurora-policy-consent,
body.registration-open #freelancer-register-form label.aurora-policy-consent{
  display:flex!important;align-items:flex-start!important;gap:10px!important;padding:12px!important;
  border:1px solid #ece5dc!important;border-radius:12px!important;background:#fff!important;
  color:#475569!important;font-size:12px!important;line-height:1.5!important;
}
body.registration-open .aurora-policy-consent input{
  flex:0 0 22px!important;width:22px!important;min-width:22px!important;height:22px!important;min-height:22px!important;margin:1px 0 0!important;
}
body.registration-open #register-form button,
body.registration-open #freelancer-register-form button{
  width:100%!important;max-width:100%!important;min-height:50px!important;white-space:normal!important;
}
body.registration-open #register-form .btn-primary,
body.registration-open #freelancer-register-form .btn-primary{
  background:#a71930!important;color:#fff!important;border-radius:11px!important;
  box-shadow:0 7px 16px rgba(111,15,39,.18)!important;font-weight:850!important;
}
body.registration-open .registration-sticky-footer{
  position:static!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;
  width:100%!important;padding:14px 0 max(14px,env(safe-area-inset-bottom))!important;margin-top:4px!important;
  border-top:1px solid #e8e0d7!important;background:transparent!important;color:#596273!important;
}
body.registration-open .registration-back-button{min-height:44px!important;color:#9e1830!important;font-weight:800!important}
body.registration-open #register-error,
body.registration-open #signup-otp-message,
body.registration-open #freelancer-register-message{font-size:13px!important;line-height:1.5!important;overflow-wrap:anywhere!important}
body.registration-open #signup-otp-panel{display:grid;gap:10px;min-width:0;padding:14px;border:1px solid #ead8d5;border-radius:13px;background:#fff}
body.registration-open #signup-otp-panel.hidden,
body.registration-open #owner-signup-fields.hidden,
body.registration-open #register-fields.hidden,
body.registration-open .hidden,
body.registration-open [hidden]{display:none!important}
@media(max-width:600px){
  body:not(.workspace-active){height:auto!important;min-height:100svh!important;overflow-x:hidden!important;overflow-y:auto!important}
  body:not(.workspace-active) .shell{height:auto!important;min-height:0!important;overflow:visible!important;padding:10px 12px 28px!important}
  body:not(.workspace-active) #login-view,
  body:not(.workspace-active) .login-wrap{height:auto!important;min-height:0!important;overflow:visible!important}
  body:not(.workspace-active) .login-card{max-height:none!important;overflow:visible!important}
  body.registration-open .shell{width:calc(100% - 20px)!important;margin:10px auto 24px!important}
  body.registration-open #login-view .login-card{padding:16px 13px!important;border-radius:16px!important}
}
@media(max-width:360px){
  body.registration-open .shell{width:calc(100% - 14px)!important}
  body.registration-open #login-view .login-card{padding:13px 10px!important}
  body.registration-open #register-form:not(.hidden),
  body.registration-open #freelancer-register-form:not(.hidden){gap:11px!important}
}
@media(pointer:coarse){
  body.registration-open #register-form input:not([type=checkbox]),
  body.registration-open #freelancer-register-form input:not([type=checkbox]),
  body.registration-open #register-form button,
  body.registration-open #freelancer-register-form button{min-height:52px!important}
}


/* 2026-11-16: Receipt issuing is one natural, flat page.
   Do not trap the product form or receipt items in nested scroll areas;
   let the main workspace/page scroll instead so Add Product stays reachable. */
html body.workspace-active #pos-view.workspace-issue-mode{
  height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;overflow-y:visible!important;overscroll-behavior:auto!important;
}
html body.workspace-active #pos-view.workspace-issue-mode .pos-grid,
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel{
  height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;overflow-y:visible!important;
}
html body.workspace-active #pos-view.workspace-issue-mode #cart-list,
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel .cart-list{
  display:block!important;height:auto!important;min-height:44px!important;
  max-height:none!important;overflow:visible!important;overflow-y:visible!important;
  overscroll-behavior:auto!important;-webkit-overflow-scrolling:auto!important;
}
html body.workspace-active #pos-view.workspace-issue-mode #product-form:not(.hidden),
html body.workspace-active #pos-view.workspace-issue-mode .simple-sale-item-form:not(.hidden){
  display:grid!important;height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;overflow-y:visible!important;overscroll-behavior:auto!important;
}
html body.workspace-active #pos-view.workspace-issue-mode .cart-panel{
  padding-bottom:calc(18px + env(safe-area-inset-bottom))!important;
}


/* AURORA all-workspace responsive safeguards for Android Chrome and iOS Safari. */
html,body{max-width:100%;overflow-x:clip}
body{padding-bottom:env(safe-area-inset-bottom,0px)}
img,svg,video,canvas{max-width:100%;height:auto}
.shell,.owner-home,.shop-home,#owner-dashboard-view,#pos-view,.panel,.login-card{min-width:0;max-width:100%}
button,a,input,select,textarea{touch-action:manipulation}
@media(max-width:700px){
 .shell{width:100%;margin:14px auto;padding-left:12px;padding-right:12px}
 .topbar{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
 .page-heading{flex-wrap:wrap;align-items:flex-start;gap:12px}
 .page-heading>*{min-width:0;max-width:100%}
 .pos-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px}
 .products-panel,.cart-panel,.panel{min-width:0;padding:14px}
 .search-row{flex-wrap:wrap}
 .search-row>input{min-width:0;flex:1 1 180px}
 .product-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .receipt-actions{flex-wrap:wrap}
 .receipt-actions>*{flex:1 1 130px;min-width:0}
 .modal{padding:12px;align-items:center}
 .modal-card{width:100%;max-height:calc(100dvh - 24px);overflow:auto;padding:16px}
 #workspace-nav{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 #workspace-nav button{flex:0 0 auto;min-height:44px}
 input,select,textarea{font-size:16px;max-width:100%}
 .freelancer-home-card{width:100%;min-width:0}
}
@media(max-width:380px){
 .shell{padding-left:9px;padding-right:9px}
 .product-list{grid-template-columns:minmax(0,1fr)}
 .section-head{align-items:flex-start;gap:8px;flex-wrap:wrap}
 .freelancer-home-actions{grid-template-columns:minmax(0,1fr)}
 .login-card{padding:16px}
}
.freelancer-linked-shop{margin-top:16px;padding:16px;border:1px solid #d8e8f5;border-radius:14px;background:#fff;min-width:0}
.freelancer-linked-shop h2{font-size:clamp(18px,4vw,23px);color:#153b58;overflow-wrap:anywhere}
.freelancer-linked-shop p{overflow-wrap:anywhere}


/* Keep the registration experience phone-sized and centred on desktop too. */
@media (min-width: 601px) {
  body.registration-open .shell {
    display:block!important;
    width:min(calc(100% - 32px),460px)!important;
    max-width:460px!important;
    margin:clamp(18px,4vh,36px) auto 32px!important;
    padding:0 0 24px!important;
  }
  body.registration-open #login-view,
  body.registration-open .login-wrap {
    width:100%!important;
    max-width:460px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  body.registration-open #login-view .login-card {
    width:100%!important;
    max-width:460px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding:22px!important;
  }
}


/* Desktop registration must retain the same compact phone-width composition. */
body.registration-open .shell {
  display:block!important;
  width:min(calc(100% - 24px),440px)!important;
  max-width:440px!important;
  margin-inline:auto!important;
}
body.registration-open #login-view,
body.registration-open .login-wrap,
body.registration-open #login-view .login-card,
body.registration-open #aurora-policy-center {
  width:100%!important;
  max-width:440px!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
body.registration-open #login-view .login-card {
  padding:clamp(16px,4vw,24px)!important;
}
body.registration-open #register-form:not(.hidden),
body.registration-open #freelancer-register-form:not(.hidden) {
  width:100%!important;
  max-width:100%!important;
  grid-template-columns:minmax(0,1fr)!important;
}
body.registration-open #aurora-policy-center { margin-top:14px!important; }


/* 2026-11-16: definitive desktop registration layout repair.
   Earlier legacy rules positioned the shell and login view as nested fixed
   panels. Use one ordinary document-flow scroll area on every viewport. */
html body.registration-open {
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  height:auto!important;
  min-height:100vh!important;
  min-height:100dvh!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  background:#7d1229!important;
}
html body.registration-open .shell {
  position:relative!important;
  inset:auto!important;
  top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
  display:block!important;
  width:min(calc(100% - 24px),440px)!important;
  max-width:440px!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  margin:20px auto 36px!important;
  padding:0 0 28px!important;
  overflow:visible!important;
  transform:none!important;
  box-sizing:border-box!important;
}
html body.registration-open #login-view,
html body.registration-open .login-wrap {
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;max-width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;
  overflow:visible!important;
  transform:none!important;
  visibility:visible!important;opacity:1!important;
}
html body.registration-open #login-view>.login-card {
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  margin:0 auto!important;
  padding:clamp(16px,4vw,24px)!important;
  overflow:visible!important;
  transform:none!important;
  visibility:visible!important;opacity:1!important;
  box-sizing:border-box!important;
}
html body.registration-open #register-form:not(.hidden),
html body.registration-open #freelancer-register-form:not(.hidden) {
  position:relative!important;
  inset:auto!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  margin:14px 0 0!important;padding:0 0 24px!important;
  overflow:visible!important;
  transform:none!important;
  visibility:visible!important;opacity:1!important;
  box-sizing:border-box!important;
}
html body.registration-open #aurora-policy-center {
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;max-height:none!important;
  margin:14px auto 0!important;
  overflow:visible!important;
  transform:none!important;
}
html body.registration-open .hidden,
html body.registration-open [hidden],
html body.registration-open #register-form.hidden,
html body.registration-open #freelancer-register-form.hidden {
  display:none!important;
}
@media(max-width:600px) {
  html body.registration-open .shell {
    width:calc(100% - 20px)!important;
    margin:10px auto 24px!important;
  }
  html body.registration-open #login-view>.login-card {
    padding:16px 13px!important;
  }
}


/* Aurora branded split-screen authentication, based on the supplied reference.
   The existing forms, IDs, OTP flow and account logic remain unchanged. */
body.registration-open {
  background:linear-gradient(125deg,#eafaff 0%,#d9f4ff 42%,#d9e7ff 100%) !important;
  color:#142c59 !important;
  min-height:100dvh !important;
}
body.registration-open:before { display:none !important; }
body.registration-open .topbar { display:none !important; }
body.registration-open .shell {
  display:grid !important;
  grid-template-columns:minmax(390px,500px) minmax(0,1fr) !important;
  align-items:center !important;
  gap:clamp(36px,6vw,96px) !important;
  width:min(calc(100% - 56px),1320px) !important;
  max-width:1320px !important;
  min-height:100dvh !important;
  margin:0 auto !important;
  padding:clamp(24px,4vh,54px) 0 !important;
  overflow:visible !important;
}
body.registration-open #login-view,
body.registration-open .login-wrap {
  display:contents !important;
}
body.registration-open #login-view .login-card {
  grid-column:1 !important;
  grid-row:1 !important;
  width:100% !important;
  max-width:500px !important;
  min-width:0 !important;
  margin:0 !important;
  padding:clamp(22px,3vw,34px) !important;
  border:1px solid rgba(255,255,255,.9) !important;
  border-radius:26px !important;
  background:rgba(255,255,255,.96) !important;
  box-shadow:0 22px 65px rgba(43,87,145,.16) !important;
  color:#18335f !important;
}
body.registration-open #login-view .login-card::before { display:none !important; }
body.registration-open .aurora-auth-welcome {
  grid-column:2 !important;
  grid-row:1 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-width:0 !important;
  max-width:690px !important;
  min-height:580px !important;
  justify-self:center !important;
  padding:clamp(24px,4vw,58px) !important;
  text-align:center !important;
  border-radius:30px !important;
  background:radial-gradient(ellipse at 55% 70%,rgba(103,78,226,.23),transparent 54%),linear-gradient(140deg,rgba(255,255,255,.12),rgba(255,255,255,.02)) !important;
  color:#173d79 !important;
}
.aurora-auth-brand { width:min(100%,410px); margin:0 auto 14px; }
.aurora-auth-logo { display:block; width:100%; height:auto; overflow:visible; filter:drop-shadow(0 12px 16px rgba(61,27,119,.10)); }
.aurora-auth-welcome h1 {
  max-width:620px !important;
  margin:12px 0 8px !important;
  color:#173d79 !important;
  font-size:clamp(28px,3.2vw,46px) !important;
  line-height:1.18 !important;
  font-weight:850 !important;
  letter-spacing:-.035em !important;
  overflow-wrap:anywhere !important;
}
.aurora-auth-subtitle {
  margin:0 !important;
  color:#4b1a91 !important;
  font-size:clamp(21px,2.4vw,32px) !important;
  font-weight:800 !important;
  letter-spacing:.01em !important;
}
.aurora-auth-description {
  max-width:470px !important;
  margin:18px auto 0 !important;
  color:#48658d !important;
  font-size:clamp(14px,1.3vw,17px) !important;
  line-height:1.65 !important;
}
body.registration-open #aurora-policy-center {
  grid-column:1 !important;
  grid-row:2 !important;
  width:100% !important;
  max-width:500px !important;
  margin:14px 0 0 !important;
}
body.registration-open .login-wrap > p[style*="text-align:center"] {
  grid-column:1 !important;
  grid-row:3 !important;
}
body.registration-open #register-form,
body.registration-open #freelancer-register-form { max-height:none !important; }
body.registration-open #register-form .muted.small,
body.registration-open #freelancer-register-form .muted.small { overflow-wrap:anywhere !important; }
body.registration-open #register-form .btn,
body.registration-open #freelancer-register-form .btn {
  background:linear-gradient(100deg,#4b16c8 0%,#7625e8 52%,#08b9d6 100%) !important;
  border:0 !important;
  box-shadow:0 9px 22px rgba(92,44,190,.22) !important;
}
@media(max-width:900px) {
  body.registration-open .shell {
    grid-template-columns:minmax(320px,460px) minmax(0,1fr) !important;
    gap:22px !important;
    width:calc(100% - 32px) !important;
  }
  body.registration-open .aurora-auth-welcome { padding:18px !important; min-height:430px !important; }
  .aurora-auth-brand { width:min(100%,300px); }
  .aurora-auth-welcome h1 { font-size:clamp(23px,3vw,32px) !important; }
}
@media(max-width:700px) {
  body.registration-open .shell {
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:16px !important;
    width:calc(100% - 24px) !important;
    min-height:100dvh !important;
    padding:14px 0 max(24px,env(safe-area-inset-bottom)) !important;
  }
  body.registration-open #login-view .login-card {
    order:1 !important;
    max-width:560px !important;
    margin:0 auto !important;
    padding:20px !important;
    border-radius:20px !important;
  }
  body.registration-open .aurora-auth-welcome {
    order:2 !important;
    display:flex !important;
    min-height:0 !important;
    max-width:560px !important;
    margin:0 auto !important;
    padding:18px 14px 24px !important;
    border-radius:20px !important;
    background:rgba(255,255,255,.32) !important;
  }
  .aurora-auth-brand { width:min(100%,210px); margin-bottom:6px; }
  .aurora-auth-welcome h1 { margin:6px 0 !important; font-size:clamp(20px,5vw,27px) !important; }
  .aurora-auth-subtitle { font-size:19px !important; }
  .aurora-auth-description { margin-top:8px !important; font-size:13px !important; }
  body.registration-open #aurora-policy-center { order:3 !important; margin:0 auto !important; }
  body.registration-open .login-wrap > p[style*="text-align:center"] { order:4 !important; }
}
@media(max-width:380px) {
  body.registration-open .shell { width:calc(100% - 16px) !important; }
  body.registration-open #login-view .login-card { padding:14px !important; }
}
@media(prefers-reduced-motion:reduce) {
  .aurora-auth-logo { filter:none; }
}


/* Three simple account tabs and welcome artwork also appear on sign-in/recovery. */
.aurora-auth-tabs {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px;
  width:100%; margin:0 0 20px; padding:4px; border-radius:14px; background:#f0f5fb;
}
.aurora-auth-tabs button {
  min-width:0; min-height:42px; padding:8px 6px; border:0; border-radius:10px;
  background:transparent; color:#64748b; font:700 12px/1.25 system-ui,sans-serif; cursor:pointer;
}
.aurora-auth-tabs button.active { color:#183c75; background:#fff; box-shadow:0 2px 8px rgba(24,54,99,.10); }
.aurora-auth-welcome { display:flex; flex-direction:column; align-items:center; justify-content:center; max-width:620px; padding:32px; text-align:center; color:#173d79; }
.aurora-auth-welcome h1 { margin:12px 0 8px; color:#173d79; font-size:clamp(26px,3vw,42px); line-height:1.18; font-weight:850; }
.aurora-auth-subtitle { margin:0; color:#4b1a91; font-size:25px; font-weight:800; }
.aurora-auth-description { max-width:460px; margin:16px auto 0; color:#48658d; line-height:1.6; }
@media(max-width:700px) { .aurora-auth-tabs { gap:2px; margin-bottom:14px; } .aurora-auth-tabs button { font-size:11px; padding:7px 3px; } }


/* AURORA authentication visual refresh — reference blue/cyan palette.
   Keep authentication markup, IDs, validation and event handlers untouched. */
body:not(.workspace-active) {
  min-height:100dvh !important;
  background:linear-gradient(135deg,#f4fbff 0%,#e4f7ff 48%,#e9efff 100%) !important;
  color:#12345a !important;
}
body:not(.workspace-active)::before { display:none !important; content:none !important; }
body:not(.workspace-active) .topbar,
body:not(.workspace-active) .global-back-row { display:none !important; }
body:not(.workspace-active) .shell {
  display:grid !important;
  grid-template-columns:minmax(0,440px) minmax(0,1fr) !important;
  align-items:center !important;
  gap:clamp(28px,5vw,76px) !important;
  width:min(calc(100% - 40px),1160px) !important;
  max-width:1160px !important;
  min-height:100dvh !important;
  margin:0 auto !important;
  padding:clamp(20px,4vh,44px) 0 !important;
  overflow:visible !important;
}
body:not(.workspace-active) #login-view,
body:not(.workspace-active) .login-wrap { display:contents !important; }
body:not(.workspace-active) #login-view .login-card {
  grid-column:1 !important;
  grid-row:1 !important;
  width:100% !important;
  max-width:440px !important;
  margin:0 !important;
  padding:clamp(20px,3vw,30px) !important;
  border:1px solid #d8eaf5 !important;
  border-radius:22px !important;
  background:rgba(255,255,255,.97) !important;
  color:#173858 !important;
  box-shadow:0 22px 60px rgba(25,91,135,.13) !important;
  backdrop-filter:none !important;
}
body:not(.workspace-active) #login-view .login-card::before { content:none !important; display:none !important; }
body:not(.workspace-active) .aurora-login-logo,
body:not(.workspace-active) .aurora-auth-logo {
  filter:hue-rotate(-60deg) saturate(1.16) drop-shadow(0 8px 14px rgba(20,126,190,.12)) !important;
}
body:not(.workspace-active) .aurora-tagline { color:#4c6f8e !important; }
body:not(.workspace-active) .aurora-auth-welcome {
  grid-column:2 !important;
  grid-row:1 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  max-width:650px !important;
  min-width:0 !important;
  min-height:480px !important;
  padding:clamp(20px,4vw,52px) !important;
  border:1px solid rgba(255,255,255,.8) !important;
  border-radius:28px !important;
  background:radial-gradient(ellipse at 50% 18%,rgba(255,255,255,.94),transparent 58%),linear-gradient(145deg,rgba(207,243,255,.88),rgba(220,231,255,.74)) !important;
  box-shadow:0 18px 55px rgba(35,117,170,.08) !important;
  text-align:center !important;
  color:#123f68 !important;
}
body:not(.workspace-active) .aurora-auth-welcome h1 {
  color:#124d7c !important;
  font-size:clamp(26px,3.2vw,43px) !important;
  line-height:1.16 !important;
}
body:not(.workspace-active) .aurora-auth-subtitle { color:#087eaa !important; }
body:not(.workspace-active) .aurora-auth-description { color:#416b8b !important; }
body:not(.workspace-active) .aurora-auth-brand { width:min(100%,390px) !important; }
body:not(.workspace-active) .aurora-auth-tabs { background:#edf7fc !important; border:1px solid #e0eef6 !important; }
body:not(.workspace-active) .aurora-auth-tabs button { color:#4c6b82 !important; }
body:not(.workspace-active) .aurora-auth-tabs button.active {
  color:#075b91 !important; background:#fff !important;
  box-shadow:0 2px 8px rgba(15,104,151,.12) !important;
}
body:not(.workspace-active) .login-role-tab.active {
  background:#e4f5fc !important; border-color:#8bcde7 !important; color:#075b91 !important;
}
body:not(.workspace-active) .login-card label { color:#294d69 !important; }
body:not(.workspace-active) .login-card input,
body:not(.workspace-active) .login-card select {
  border:1px solid #c9dce8 !important; background:#fff !important; color:#173858 !important;
}
body:not(.workspace-active) .login-card input:focus,
body:not(.workspace-active) .login-card select:focus {
  border-color:#168fc2 !important; outline:0 !important;
  box-shadow:0 0 0 4px rgba(22,143,194,.14) !important;
}
body:not(.workspace-active) .login-card .btn-primary,
body:not(.workspace-active) #register-form .btn,
body:not(.workspace-active) #freelancer-register-form .btn {
  background:linear-gradient(100deg,#0877bd 0%,#079ec4 55%,#20b9c7 100%) !important;
  color:#fff !important; border:0 !important;
  box-shadow:0 8px 18px rgba(8,119,189,.18) !important;
}
body:not(.workspace-active) .login-card .text-btn,
body:not(.workspace-active) .registration-back-button { color:#0878ad !important; }
body:not(.workspace-active) .login-card .muted { color:#5b7488 !important; }

/* Signup remains a compact, centred, single-column form on every screen. */
body.registration-open:not(.workspace-active) .shell {
  display:block !important;
  width:min(calc(100% - 24px),500px) !important;
  max-width:500px !important;
  min-height:100dvh !important;
  margin:0 auto !important;
  padding:clamp(14px,3vh,28px) 0 max(24px,env(safe-area-inset-bottom)) !important;
}
body.registration-open:not(.workspace-active) #login-view,
body.registration-open:not(.workspace-active) .login-wrap { display:block !important; width:100% !important; }
body.registration-open:not(.workspace-active) #login-view .login-card {
  width:100% !important; max-width:500px !important; margin:0 auto !important;
  padding:clamp(18px,4vw,28px) !important; overflow:visible !important;
}
body.registration-open:not(.workspace-active) .aurora-auth-welcome { display:none !important; }
body.registration-open:not(.workspace-active) #register-form:not(.hidden),
body.registration-open:not(.workspace-active) #freelancer-register-form:not(.hidden) {
  display:grid !important; grid-template-columns:minmax(0,1fr) !important;
  width:100% !important; max-height:none !important; overflow:visible !important;
}
body.registration-open:not(.workspace-active) #register-form input:not([type=checkbox]),
body.registration-open:not(.workspace-active) #freelancer-register-form input:not([type=checkbox]) {
  min-height:49px !important; border-radius:11px !important;
}
body.registration-open:not(.workspace-active) #register-form .btn,
body.registration-open:not(.workspace-active) #freelancer-register-form .btn { min-height:52px !important; }
@media(max-width:760px) {
  body:not(.workspace-active) .shell {
    display:flex !important; flex-direction:column !important; justify-content:center !important;
    align-items:stretch !important; gap:14px !important;
    width:calc(100% - 24px) !important; min-height:100dvh !important;
    padding:14px 0 max(18px,env(safe-area-inset-bottom)) !important;
  }
  body:not(.workspace-active) #login-view .login-card {
    order:1 !important; width:100% !important; max-width:520px !important;
    margin:0 auto !important; padding:18px 15px !important; border-radius:18px !important;
  }
  body:not(.workspace-active) .aurora-auth-welcome {
    order:2 !important; min-height:0 !important; max-width:520px !important;
    margin:0 auto !important; padding:18px 14px !important; border-radius:18px !important;
  }
  body:not(.workspace-active) .aurora-auth-brand { width:min(100%,210px) !important; }
  body:not(.workspace-active) .aurora-auth-welcome h1 { font-size:clamp(21px,6vw,29px) !important; }
  body.registration-open:not(.workspace-active) .shell { display:block !important; }
  body.registration-open:not(.workspace-active) .aurora-auth-welcome { display:none !important; }
}
@media(prefers-reduced-motion:reduce) {
  body:not(.workspace-active) *, body:not(.workspace-active) *::before,
  body:not(.workspace-active) *::after { animation:none !important; transition:none !important; }
}


/* Shop disclosure cards must have the same behaviour on phones and desktops.
   Keep these rules outside desktop-only media queries. */
.aurora-auth-tabs {display:none!important}

/* Keep Shop Details and Goods on Repair collapsed until their summary is tapped. */
.shop-business-details-card:not([open])>.profile-card-body,
#shop-goods-on-repair-card:not([open])>.repair-card-content {display:none!important}

#shop-goods-on-repair-card {
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  margin:10px 0!important;
  padding:0!important;
  border:1px solid #dce6ee!important;
  border-radius:15px!important;
  background:#fff!important;
  overflow:hidden!important;
}
#shop-goods-on-repair-card>summary {
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  min-height:76px!important;
  padding:15px!important;
  list-style:none!important;
  cursor:pointer!important;
  background:#f8fbff!important;
}
#shop-goods-on-repair-card>summary::-webkit-details-marker {display:none!important}
#shop-goods-on-repair-card>summary strong {display:block!important;color:#17345c!important;font-size:15px!important}
#shop-goods-on-repair-card>summary small {display:block!important;margin-top:4px!important;color:#64748b!important;font-size:12px!important}
#shop-goods-on-repair-card .repair-card-content {padding:14px!important;border-top:1px solid #e5edf5!important}
#shop-goods-on-repair-card .repair-card-heading {margin:0 0 12px!important}

@media(max-width:520px) {
  #shop-goods-on-repair-card>summary {min-height:68px!important;padding:12px!important}
  #shop-goods-on-repair-card .repair-card-content {padding:10px!important}
}

/* Native <details> cards: never let older !important display rules expose
   their form contents while the card is collapsed. The summary stays visible
   and tapping it opens the content normally. */
#shop-home details.shop-register-product-card:not([open]) > .shop-register-product-body,
#shop-home details.shop-search-directory-card:not([open]) > .shop-product-search-form,
#shop-home details.loan-items-card:not([open]) > .loan-card-body,
#shop-home details.shop-goods-on-repair-card:not([open]) > .repair-card-content,
#shop-home details.shop-business-details-card:not([open]) > .profile-card-body,
#shop-home details.profile-account-summary:not([open]) > .profile-card-body {
  display:none!important;
}
