/* SellLynx shared theme layer — local browser preference, no remote tracking */
:root{--sl-bg:#0b1523;--sl-panel:#16263b;--sl-fg:#e9f2fb;--sl-muted:#b5c7da;--sl-border:#3b536a;--sl-input:#0a1c2e;--sl-accent:#3084b9;--sl-link:#9edafa;color-scheme:dark}
html[data-sl-theme="light"]{--sl-bg:#f4f7fb;--sl-panel:#fff;--sl-fg:#18283b;--sl-muted:#52647a;--sl-border:#c9d5e2;--sl-input:#f8fbff;--sl-accent:#166caa;--sl-link:#075c93;color-scheme:light}
html[data-sl-theme="warm"]{--sl-bg:#f6f2ea;--sl-panel:#fffdf8;--sl-fg:#352a23;--sl-muted:#6a5749;--sl-border:#d9c9b6;--sl-input:#fffaf1;--sl-accent:#8d553b;--sl-link:#875036;color-scheme:light}
html,body{background:var(--sl-bg)!important;color:var(--sl-fg)!important}
body{padding-top:0!important}
body main,body .card,body .notice,body table,body .note{background-color:var(--sl-panel)!important;color:var(--sl-fg)!important;border-color:var(--sl-border)!important}
body input,body textarea,body select{background:var(--sl-input)!important;color:var(--sl-fg)!important;border-color:var(--sl-border)!important}
body button{border-color:var(--sl-border);color:var(--sl-fg)}
body a{color:var(--sl-link)!important}
body .muted,body small,body td,body th{color:var(--sl-muted)}
body td,body th,body .edit-section{border-color:var(--sl-border)!important}
#sl-header,#sl-footer{font:14px/1.45 system-ui,sans-serif;max-width:none;width:100%;box-sizing:border-box;clear:both}
#sl-header{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:12px 3%;border-bottom:1px solid var(--sl-border);background:var(--sl-panel);color:var(--sl-fg);margin:0 0 24px}
#sl-header .sl-brand{font-weight:800;font-size:23px;letter-spacing:-.5px;text-decoration:none}
#sl-header nav,#sl-header .sl-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#sl-header a,#sl-footer a{color:var(--sl-link);text-decoration:none}
#sl-header a:hover,#sl-footer a:hover{text-decoration:underline}
#sl-header select{width:auto!important;min-width:98px!important;padding:5px!important;margin:0!important}
#sl-header button{width:auto!important;padding:6px 10px!important;margin:0!important;background:var(--sl-accent)!important;color:white!important}
#sl-header #sl-account{font-size:12px;max-width:220px;overflow-wrap:anywhere}
#sl-footer{margin:36px 0 0;padding:23px 3%;border-top:1px solid var(--sl-border);background:var(--sl-panel);color:var(--sl-muted);display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}
#sl-footer .sl-links{display:flex;gap:14px;flex-wrap:wrap}
@media(max-width:700px){#sl-header{padding:12px 16px}#sl-footer{padding:20px 16px}}

body.sl-home > header:not(#sl-header){display:none!important}
/* Contrast and consistency correction: overrides inline page-specific dark themes. */
html[data-sl-theme="light"],html[data-sl-theme="warm"],html[data-sl-theme="dark"]{color:var(--sl-fg)!important;background:var(--sl-bg)!important}
html[data-sl-theme] body{color:var(--sl-fg)!important;background:var(--sl-bg)!important}
html[data-sl-theme] body :is(h1,h2,h3,h4,h5,h6,p,label,legend,summary,th,td,span){color:inherit}
html[data-sl-theme] body :is(input,select,textarea,option){color:var(--sl-fg)!important;background-color:var(--sl-input)!important;border-color:var(--sl-border)!important}
html[data-sl-theme] body input::placeholder,html[data-sl-theme] body textarea::placeholder{color:var(--sl-muted)!important;opacity:1}
html[data-sl-theme] body :is(.muted,small){color:var(--sl-muted)!important}
html[data-sl-theme] body :is(main,.card,.notice,.note,table,pre){color:var(--sl-fg)!important;border-color:var(--sl-border)!important}
html[data-sl-theme] body pre{background:var(--sl-input)!important}
html[data-sl-theme] body :is(button,input[type="submit"]){background:var(--sl-accent)!important;color:#fff!important}
html[data-sl-theme] body button:disabled{opacity:.6}
html[data-sl-theme] body #sl-header{width:100%;max-width:none;position:relative;left:auto;margin-left:0;margin-right:0;padding:14px max(3vw,18px);min-height:76px;gap:18px}
html[data-sl-theme] body #sl-footer{width:100%;max-width:none;position:relative;left:auto;margin-left:0;margin-right:0}
html[data-sl-theme] body #sl-header :is(a,span,label){color:var(--sl-fg)!important}
html[data-sl-theme] body #sl-header a.sl-brand{color:var(--sl-link)!important}
html[data-sl-theme] body #sl-header nav{flex:1}
html[data-sl-theme] body #sl-header .sl-actions{justify-content:flex-end}
html[data-sl-theme] body #sl-header #sl-account{min-width:145px}
html[data-sl-theme] body #sl-footer a{color:var(--sl-link)!important}
html[data-sl-theme] body.sl-home > header:not(#sl-header){display:none!important}
@media(max-width:700px){html[data-sl-theme] body #sl-header{gap:9px;padding:12px 16px}html[data-sl-theme] body #sl-header #sl-account{min-width:0}}

/* Accessible light variants and marketplace-inspired E-Theme */
html[data-sl-theme="light"]{--sl-muted:#394a60;--sl-link:#07518a;--sl-border:#bac9d9}
html[data-sl-theme="warm"]{--sl-muted:#554439;--sl-link:#754127}
html[data-sl-theme="ebay"]{--sl-bg:#f5f7fa;--sl-panel:#fff;--sl-fg:#202124;--sl-muted:#3f4854;--sl-border:#c5d0db;--sl-input:#fff;--sl-accent:#3665f3;--sl-link:#2154c5;color-scheme:light}
html[data-sl-theme="ebay"] #sl-header{border-bottom:3px solid #ffbd14!important}
html[data-sl-theme="ebay"] #sl-header .sl-brand{font-weight:900;letter-spacing:-.6px}
html[data-sl-theme="ebay"] #sl-header .sl-brand::after{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#e53238;margin-left:4px;box-shadow:10px 0 #f5af02,20px 0 #86b817}
html[data-sl-theme="ebay"] body button:not(#sl-signout){background:#3665f3!important;color:white!important}
html[data-sl-theme="ebay"] body #sl-signout{background:#3665f3!important}
html[data-sl-theme="ebay"] #sl-footer{border-top:3px solid #86b817}
/* Override dashboard's original pale text, including inherited hard-coded paragraph colors. */
html[data-sl-theme="light"] body :is(p,.muted,small),html[data-sl-theme="warm"] body :is(p,.muted,small),html[data-sl-theme="ebay"] body :is(p,.muted,small){color:var(--sl-muted)!important}
html[data-sl-theme="light"] body :is(h1,h2,h3,h4,strong),html[data-sl-theme="warm"] body :is(h1,h2,h3,h4,strong),html[data-sl-theme="ebay"] body :is(h1,h2,h3,h4,strong){color:var(--sl-fg)!important}
html[data-sl-theme="light"] body :is(.note,.card,.notice),html[data-sl-theme="warm"] body :is(.note,.card,.notice),html[data-sl-theme="ebay"] body :is(.note,.card,.notice){background:var(--sl-panel)!important}

/* Commercial editor spacious layout */
html[data-sl-theme] body{font-size:16px!important;line-height:1.55}
html[data-sl-theme] body:not(.sl-home){max-width:1500px!important;width:calc(100% - 28px)!important;margin-left:auto!important;margin-right:auto!important;padding-left:14px!important;padding-right:14px!important}
html[data-sl-theme] body:has(#editor){max-width:1520px!important}
html[data-sl-theme] body:has(#editor) main{max-width:1450px!important}
html[data-sl-theme] body:has(#editor) .edit-grid{grid-template-columns:repeat(auto-fit,minmax(285px,1fr))!important;gap:12px 20px!important}
html[data-sl-theme] body :is(input,select,textarea,button){font-size:16px!important;line-height:1.35}
html[data-sl-theme] body :is(input,select,textarea){min-height:42px}
html[data-sl-theme] body :is(h1){font-size:clamp(27px,2.3vw,36px)!important}
html[data-sl-theme] body :is(h2){font-size:clamp(22px,1.7vw,27px)!important}
html[data-sl-theme] body :is(h3){font-size:20px!important}
html[data-sl-theme] body.sl-home main{max-width:1420px!important}
html[data-sl-theme] body #sl-header{font-size:15px!important}
@media(max-width:700px){html[data-sl-theme] body:not(.sl-home){width:calc(100% - 24px)!important;padding-left:12px!important;padding-right:12px!important}}


/* Unified SellLynx shell, matching the redesigned dashboard. */
html[data-sl-theme] body{font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;letter-spacing:normal}
html[data-sl-theme] body #sl-header{font-family:inherit!important;min-height:76px!important;padding:14px max(2.5vw,20px)!important;gap:20px!important;border-bottom:1px solid var(--sl-border)!important;box-shadow:none!important}
html[data-sl-theme] body #sl-header .sl-brand{font-size:25px!important;font-weight:800!important;letter-spacing:-.8px!important}
html[data-sl-theme] body #sl-header nav{display:flex;align-items:center;flex-wrap:wrap;gap:5px!important}
html[data-sl-theme] body #sl-header nav a{display:inline-flex;align-items:center;padding:9px 13px!important;border-radius:8px;font-size:14px;font-weight:650;color:var(--sl-muted)!important;text-decoration:none!important;white-space:nowrap}
html[data-sl-theme] body #sl-header nav a:hover{background:var(--sl-bg)!important;color:var(--sl-fg)!important}
html[data-sl-theme] body #sl-header nav a.sl-active{background:var(--sl-bg)!important;color:var(--sl-link)!important}
html[data-sl-theme] body #sl-header .sl-actions{gap:10px}
html[data-sl-theme] body #sl-header .sl-actions #sl-profile{padding:8px 11px;text-decoration:none;border-radius:8px;font-weight:650;color:var(--sl-link)!important}
html[data-sl-theme] body #sl-header .sl-actions #sl-profile:hover{background:var(--sl-bg)}
html[data-sl-theme] body:not(.sl-home) :is(main,.card,.notice,.note){border-radius:11px}
html[data-sl-theme] body:not(.sl-home) :is(.card,.note){box-shadow:none!important}
html[data-sl-theme] body:not(.sl-home) :is(h1,h2,h3){letter-spacing:-.025em}
html[data-sl-theme] body:not(.sl-home) :is(button,input[type="submit"]){border-radius:8px!important}
html[data-sl-theme] body:not(.sl-home) :is(input,select,textarea){border-radius:7px!important}
html[data-sl-theme] body:not(.sl-home) a:focus-visible,html[data-sl-theme] body #sl-header a:focus-visible{outline:2px solid var(--sl-link)!important;outline-offset:3px}
@media(max-width:1050px){html[data-sl-theme] body #sl-header{flex-wrap:wrap}html[data-sl-theme] body #sl-header nav{order:3;flex-basis:100%}html[data-sl-theme] body #sl-header .sl-actions{margin-left:auto}}
@media(max-width:550px){html[data-sl-theme] body #sl-header{padding:12px 16px!important}html[data-sl-theme] body #sl-header nav a{padding:7px 9px!important;font-size:13px!important}html[data-sl-theme] body #sl-header .sl-actions #sl-account{display:none}html[data-sl-theme] body #sl-header .sl-actions{gap:6px}}


/* Comfortable reading size across SellLynx */
html[data-sl-theme] body{font-size:17px!important}
html[data-sl-theme] body :is(p,li,td,summary,label){font-size:inherit}
html[data-sl-theme] body #sl-header nav a{font-size:15px!important}
html[data-sl-theme] body #sl-header #sl-account{font-size:14px!important}
html[data-sl-theme] body :is(input,select,textarea,button){font-size:16px!important}

/* SellLynx refined application navigation */
html[data-sl-theme] body #sl-header{
  background:var(--sl-panel)!important;
  border-bottom:1px solid var(--sl-border)!important;
  box-shadow:0 3px 18px rgba(0,0,0,.065)!important;
  padding:16px max(3vw,24px)!important;
  min-height:84px!important;
}
html[data-sl-theme] body #sl-header .sl-brand{
  font-size:27px!important;line-height:1.1!important;
  font-weight:850!important;letter-spacing:-1.1px!important;
  color:var(--sl-fg)!important;padding:7px 2px!important
}
html[data-sl-theme] body #sl-header nav{gap:7px!important}
html[data-sl-theme] body #sl-header nav a{
  border-radius:8px!important;font-size:15px!important;
  font-weight:650!important;padding:11px 15px!important;
  transition:background .12s,color .12s;
}
html[data-sl-theme] body #sl-header nav a.sl-active{
  color:var(--sl-link)!important;background:var(--sl-bg)!important;
  box-shadow:inset 0 -2px 0 var(--sl-accent)!important
}
html[data-sl-theme] body #sl-header .sl-actions{
  border-left:1px solid var(--sl-border);padding-left:17px;gap:11px!important
}
html[data-sl-theme] body #sl-header #sl-account{
  font-weight:650!important;max-width:190px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
html[data-sl-theme] body #sl-header #sl-profile{
  border:1px solid var(--sl-border)!important;border-radius:8px!important;
  padding:9px 12px!important
}
@media(max-width:1100px){
 html[data-sl-theme] body #sl-header .sl-actions{border-left:none;padding-left:0}
}

/* Keep authentication-dependent navigation genuinely hidden, despite theme display overrides. */
#sl-header [hidden], #sl-header nav[hidden], #sl-header a[hidden], #sl-header button[hidden] {display:none!important}

/* Always show the Log in label in white on the accent button. */
html[data-sl-theme] body #sl-header #sl-login, html[data-sl-theme] body #sl-header #sl-login:visited, html[data-sl-theme] body #sl-header #sl-login:hover, html[data-sl-theme] body #sl-header #sl-login:focus-visible, html[data-sl-theme] body #sl-header #sl-login:active { color: #fff !important; }

/* SellLynx visual identity */
#sl-header .sl-brand{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;text-decoration:none!important;color:var(--sl-fg)!important}
#sl-header .sl-logo-mark{width:44px;height:40px;object-fit:contain;flex:none}
#sl-header .sl-brand-accent{color:#078bd2!important}

/* Larger SellLynx branding on every page */
#sl-header .sl-logo-mark{width:76px!important;height:70px!important}
html[data-sl-theme] body #sl-header .sl-brand{font-size:31px!important;gap:10px!important}
@media(max-width:680px){#sl-header .sl-logo-mark{width:55px!important;height:52px!important}html[data-sl-theme] body #sl-header .sl-brand{font-size:25px!important}}


/* Consistent numeric fields without spinner controls across SellLynx */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {-webkit-appearance:none!important;margin:0!important}
input[type="number"] {-moz-appearance:textfield!important;appearance:textfield!important}


/* Shared navigation and control clarity, 2026-10-24. */
html[data-sl-theme] body #sl-private-nav .sl-nav-group>summary{
  display:inline-flex;align-items:center;min-height:42px;
  padding:9px 13px;border:1px solid transparent;border-radius:8px;
  color:var(--sl-fg)!important;background:transparent!important;
  font-weight:650;line-height:1.35
}
html[data-sl-theme] body #sl-private-nav .sl-nav-group[open]>summary,
html[data-sl-theme] body #sl-private-nav .sl-nav-group>summary.sl-active{
  color:var(--sl-fg)!important;background:var(--sl-input)!important;
  border-color:var(--sl-border)
}
html[data-sl-theme] body #sl-private-nav .sl-nav-menu{
  background:var(--sl-panel)!important;border-color:var(--sl-border)!important
}
html[data-sl-theme] body #sl-private-nav .sl-nav-menu a,
html[data-sl-theme] body #sl-private-nav .sl-nav-menu a:visited{
  color:var(--sl-fg)!important;background:transparent!important
}
html[data-sl-theme] body #sl-private-nav .sl-nav-menu a:hover,
html[data-sl-theme] body #sl-private-nav .sl-nav-menu a:focus-visible{
  color:var(--sl-fg)!important;background:var(--sl-input)!important
}
html[data-sl-theme] body :is(button,a,input,select,textarea,summary):focus-visible{
  outline:2px solid var(--sl-accent);outline-offset:2px
}
html[data-sl-theme] body button:disabled{cursor:not-allowed}
@media(max-width:750px){
 html[data-sl-theme] body #sl-private-nav .sl-nav-menu{max-width:calc(100vw - 24px);box-sizing:border-box}
}

/* Unified SellLynx action controls. Theme variables always control standard actions. */
html[data-sl-theme] body main :is(button,input[type="button"],input[type="submit"]):not(.range-choice):not(.sl-photo-toggle):not(.sl-icon-button):not([data-preserve-button-style]){box-sizing:border-box!important;min-height:42px!important;height:auto;padding:9px 15px!important;border-radius:8px!important;background:var(--sl-accent)!important;color:#fff!important;border:1px solid var(--sl-accent)!important;font:650 14px/1.35 system-ui,sans-serif!important;display:inline-flex;align-items:center;justify-content:center;gap:7px;vertical-align:middle;cursor:pointer}
html[data-sl-theme] body main :is(button,input[type="button"],input[type="submit"]):disabled{opacity:.55!important;cursor:not-allowed!important}
html[data-sl-theme] body main :is(button,input[type="button"],input[type="submit"]):not(:disabled):hover{filter:brightness(.94)}
html[data-sl-theme] body main :is(button,input[type="button"],input[type="submit"]).sl-secondary,html[data-sl-theme] body main #doctor-clear-selected,html[data-sl-theme] body main #review-rows,html[data-sl-theme] body main #review-close,html[data-sl-theme] body main #draft-copy-new,html[data-sl-theme] body main #draft-new{background:var(--sl-panel)!important;color:var(--sl-fg)!important;border:1px solid var(--sl-border)!important}
html[data-sl-theme] body main :is(button,input[type="button"],input[type="submit"]).sl-danger{background:#b42318!important;color:#fff!important;border-color:#b42318!important}
html[data-sl-theme] body main :is(button,input[type="button"],input[type="submit"])[hidden]{display:none!important}

/* Dashboard header/footer align with content */
@media(min-width:701px){html[data-sl-theme] body.sl-home #sl-header,html[data-sl-theme] body.sl-home #sl-footer{padding-left:max(20px,calc((100% - 1400px)/2))!important;padding-right:max(20px,calc((100% - 1400px)/2))!important}}
@media(max-width:700px){html[data-sl-theme] body.sl-home #sl-header,html[data-sl-theme] body.sl-home #sl-footer{padding-left:12px!important;padding-right:12px!important}}

/* Bounded dashboard shell: header/footer surfaces match the centered main container. */
html[data-sl-theme] body.sl-home #sl-header,
html[data-sl-theme] body.sl-home #sl-footer{
 box-sizing:border-box!important;
 width:calc(100% - 40px)!important;
 max-width:1400px!important;
 left:auto!important;
 margin-left:auto!important;
 margin-right:auto!important;
 padding-left:20px!important;
 padding-right:20px!important;
 border-left:1px solid var(--sl-border);
 border-right:1px solid var(--sl-border);
}
@media(max-width:700px){
 html[data-sl-theme] body.sl-home #sl-header,
 html[data-sl-theme] body.sl-home #sl-footer{
  width:calc(100% - 24px)!important;
  padding-left:12px!important;
  padding-right:12px!important;
 }
}

/* Public home: one centered width for shared shell and page, not a floating narrow header. */
html[data-sl-theme] body:has(main.public-home) main.public-home,
html[data-sl-theme] body:has(main.public-home) #sl-header,
html[data-sl-theme] body:has(main.public-home) #sl-footer{
 box-sizing:border-box!important;
 width:min(calc(100% - 32px),1200px)!important;
 max-width:1200px!important;
 margin-left:auto!important;margin-right:auto!important;
 left:auto!important;right:auto!important;
}
html[data-sl-theme] body:has(main.public-home) #sl-header,
html[data-sl-theme] body:has(main.public-home) #sl-footer{
 padding-left:24px!important;padding-right:24px!important;
}
@media(max-width:700px){
 html[data-sl-theme] body:has(main.public-home) #sl-header,
 html[data-sl-theme] body:has(main.public-home) #sl-footer{padding-left:12px!important;padding-right:12px!important}
}

/* Private navigation is fail-closed until auth/me confirms a current session. */
html[data-sl-theme] body:not(.sl-authenticated) #sl-private-nav,html[data-sl-theme] body:not(.sl-authenticated) #sl-profile,html[data-sl-theme] body:not(.sl-authenticated) #sl-signout{display:none!important}

/* Public account pages: no private tools, no wrapping top navigation, consistent shell. */
html[data-sl-theme] body:is(.sl-signin-page,.sl-signup-page) #sl-private-nav,html[data-sl-theme] body:is(.sl-signin-page,.sl-signup-page) #sl-profile,html[data-sl-theme] body:is(.sl-signin-page,.sl-signup-page) #sl-signout{display:none!important}
html[data-sl-theme] body:is(.sl-signin-page,.sl-signup-page){max-width:none!important;width:100%!important;margin:0!important;padding:0!important;min-height:100vh}
html[data-sl-theme] body:is(.sl-signin-page,.sl-signup-page) :is(#sl-header,#sl-footer){box-sizing:border-box!important;width:min(calc(100% - 32px),1200px)!important;max-width:1200px!important;margin-left:auto!important;margin-right:auto!important;left:auto!important;padding-left:24px!important;padding-right:24px!important}
html[data-sl-theme] body:is(.sl-signin-page,.sl-signup-page) #sl-header{flex-wrap:nowrap!important;gap:20px!important}
html[data-sl-theme] body:is(.sl-signin-page,.sl-signup-page) #sl-header .sl-actions{margin-left:auto!important}
html[data-sl-theme] body.sl-signup-page main{box-sizing:border-box!important;width:min(calc(100% - 32px),520px)!important;max-width:520px!important;margin:34px auto!important;padding:28px!important;border:1px solid var(--sl-border)!important;border-radius:12px!important;background:var(--sl-panel)!important}
html[data-sl-theme] body.sl-signup-page main h1{font-size:24px!important;line-height:1.2!important;margin-top:0!important}
html[data-sl-theme] body.sl-signup-page main input{height:44px!important;min-height:44px!important;padding:9px 12px!important}
html[data-sl-theme] body.sl-signup-page main button{min-height:44px!important;padding:10px 18px!important}
@media(max-width:600px){html[data-sl-theme] body:is(.sl-signin-page,.sl-signup-page) :is(#sl-header,#sl-footer){padding-inline:12px!important}html[data-sl-theme] body.sl-signup-page main{padding:20px!important}}

/* Lightweight cookie acknowledgement: never covers the whole page. */
#sl-cookie-consent{position:fixed;z-index:99999;bottom:18px;left:18px;box-sizing:border-box;width:min(470px,calc(100% - 36px));padding:19px 20px;border:1px solid var(--sl-border);border-radius:12px;background:var(--sl-panel);color:var(--sl-fg);box-shadow:0 12px 35px #0003;font:14px/1.5 system-ui,sans-serif}
#sl-cookie-consent strong{font-size:17px}#sl-cookie-consent p{margin:9px 0 14px}
#sl-cookie-consent>div{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
#sl-cookie-consent button{cursor:pointer;border-radius:7px;padding:9px 12px;background:var(--sl-accent);color:#fff;border:1px solid var(--sl-accent);font-weight:650}
#sl-cookie-consent button:first-child{background:var(--sl-panel);color:var(--sl-fg);border-color:var(--sl-border)}
#sl-cookie-consent a{color:var(--sl-link)}


/* Design pass 2026-10-26: live-eBay actions stand apart; secondary actions hold across all themes (incl. E-Theme). */
html[data-sl-theme] body :is(button,input[type="button"]).sl-publish:not(#sl-none){background:#176b3b!important;color:#fff!important;border:1px solid #176b3b!important}
html[data-sl-theme] body :is(button,input[type="button"]).sl-secondary:not(#sl-none){background:var(--sl-panel)!important;color:var(--sl-fg)!important;border:1px solid var(--sl-border)!important}
html[data-sl-theme] body button.sl-small:not(#sl-none){padding:5px 10px!important;font-size:14px!important;min-height:0!important}

/* ---- Shared header and footer: locked so they look the same on every page, logged in or out ----
   Width and position are set by site.js (edge to edge whatever the page layout); page styles cannot change these. */
html[data-sl-theme] body #sl-header:not(#sl-z),html[data-sl-theme] body #sl-footer:not(#sl-z){box-sizing:border-box!important;max-width:none!important;position:relative!important;left:auto!important;right:auto!important;margin-right:0!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important}
html[data-sl-theme] body #sl-header:not(#sl-z){padding:14px max(3vw,18px)!important;margin-top:0!important;margin-bottom:24px!important;min-height:76px!important}
html[data-sl-theme] body #sl-footer:not(#sl-z){padding-left:max(3vw,18px)!important;padding-right:max(3vw,18px)!important}
html[data-sl-theme] body #sl-header:not(#sl-z) :is(a,button,select,input,span,label,summary,nav,div){font-family:inherit!important}
html[data-sl-theme] body #sl-header:not(#sl-z) :is(#sl-signout,#sl-login){display:inline-block;box-sizing:border-box!important;font-size:15px!important;font-weight:750!important;line-height:1.3!important;padding:9px 13px!important;border:0!important;border-radius:7px!important;background:var(--sl-accent)!important;color:#fff!important;min-height:0!important;height:auto!important;width:auto!important;margin:0!important;box-shadow:none!important;text-decoration:none!important;cursor:pointer}
html[data-sl-theme] body #sl-header:not(#sl-z) :is(#sl-signout,#sl-login)[hidden]{display:none!important}
html[data-sl-theme] body #sl-header:not(#sl-z) #sl-theme{box-sizing:border-box!important;font-size:15px!important;line-height:1.3!important;padding:6px 8px!important;border:1px solid var(--sl-border)!important;border-radius:7px!important;background:var(--sl-input)!important;color:var(--sl-fg)!important;width:auto!important;min-width:98px!important;height:auto!important;min-height:0!important;margin:0!important}
html[data-sl-theme] body #sl-header:not(#sl-z){display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:18px!important}
html[data-sl-theme] body #sl-header:not(#sl-z) .sl-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:11px!important;margin-left:auto!important}
html[data-sl-theme] body #sl-header:not(#sl-z) #sl-private-nav{align-items:center!important}
html[data-sl-theme] body #sl-header:not(#sl-z) #sl-private-nav>:is(a,details){margin:0!important;padding-bottom:0!important;padding-top:0!important;border:0!important;height:auto!important;min-height:0!important}
html[data-sl-theme] body #sl-header:not(#sl-z) #sl-private-nav>details>summary{margin:0!important;display:flex!important;align-items:center!important}
html[data-sl-theme] body #sl-header:not(#sl-z) #sl-private-nav>a{padding-top:11px!important;padding-bottom:11px!important}
html[data-sl-theme] body :is(#sl-header,#sl-footer):not(#sl-z) :is(*,*::before,*::after){box-sizing:border-box!important}
@media(max-width:700px){html[data-sl-theme] body #sl-header:not(#sl-z){padding:12px 16px!important}html[data-sl-theme] body #sl-footer:not(#sl-z){padding-left:16px!important;padding-right:16px!important}}

/* After moving the signed-in theme selector to Profile. Allow native wrapping on smaller viewports. */
@media (min-width: 1200px) {
  html[data-sl-theme] body.sl-authenticated #sl-header:not(#sl-z) {
    padding-inline: 16px !important;
    gap: 10px !important;
  }
  html[data-sl-theme] body.sl-authenticated #sl-header:not(#sl-z) #sl-private-nav {
    gap: 2px !important;
  }
  html[data-sl-theme] body.sl-authenticated #sl-header:not(#sl-z) #sl-private-nav > details > summary {
    padding-inline: 4px;
    font-size: 14px;
    white-space: nowrap;
  }

  html[data-sl-theme] body.sl-authenticated #sl-header:not(#sl-z) #sl-private-nav > a {
    padding-inline: 6px !important;
  }
  html[data-sl-theme] body.sl-authenticated #sl-header:not(#sl-z) .sl-actions {
    gap: 6px !important;
    padding-inline-start: 8px;
  }
}
#sl-header #sl-request-link[hidden]{display:none!important}

#sl-header #sl-admin-applications[hidden]{display:none!important}
#sl-header #sl-admin-applications{white-space:nowrap;font-weight:700;text-decoration:none}
#sl-header .sl-applicant-badge{display:inline-block;margin-left:6px;border-radius:99px;background:#dc2626!important;color:#fff!important;-webkit-text-fill-color:#fff!important;min-width:18px;text-align:center;font-size:11px;font-weight:800;padding:1px 6px;line-height:18px}


/* Operator application and customer feature requests are primary navigation items. */
html[data-sl-theme] body #sl-header #sl-private-nav > :is(#sl-request-link,#sl-admin-applications) {
  display:inline-flex; align-items:center; gap:5px; white-space:nowrap;
  padding:9px 12px!important; font-size:14px; font-weight:700;
  color:var(--sl-muted)!important; text-decoration:none!important;
  border-radius:8px;
}
html[data-sl-theme] body #sl-header #sl-private-nav > :is(#sl-request-link,#sl-admin-applications):hover {
  background:var(--sl-bg)!important; color:var(--sl-fg)!important;
}
html[data-sl-theme] body #sl-header #sl-private-nav > :is(#sl-request-link,#sl-admin-applications)[hidden] {
  display:none!important;
}

/* SellLynx mobile audit repair 2026-11-12 */
@media (max-width:700px){
 html[data-sl-theme] body:has(.sl-template-below) main{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:14px 12px 90px!important}
 body:has(.sl-template-below) main :is(.panels,.panel,.sl-template-below,.sl-template-workspace,.sl-editor-panel,.sl-right-col,.sl-theme-fields,.sl-load-theme,.sl-quick-theme){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 body:has(.sl-template-below) main :is(input,select,textarea,iframe){max-width:100%;box-sizing:border-box}
 body:has(.sl-template-below) main .sl-quick-theme label{min-width:0;flex:1 1 100%}
 body:has(.sl-template-below) main .sl-template-workspace{overflow-x:auto;overscroll-behavior-x:contain}
 body:has(.sl-template-below) main :is(.sl-preview-controls,.sl-template-tools){flex-wrap:wrap}
 body:has(.sl-template-below) main #template-live-preview{max-width:100%!important;width:100%!important}
}
@media (max-width:359px){
 html[data-sl-theme] body main.iv-page,html[data-sl-theme] body main.pd-page,html[data-sl-theme] body main.ss-page{padding-inline:9px!important}
 html[data-sl-theme] body .ss-page .ss-card{padding:12px 9px}
 .pd-page .pd-card{padding:12px 9px}
 .iv-page .iv-card{padding:10px 8px}
}

/* SellLynx mobile narrow-screen follow-up 2026-11-12 */
@media (min-width:701px) and (max-width:900px){
 html[data-sl-theme] body:has(.sl-template-below) main{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:clip;padding-inline:16px!important}
 body:has(.sl-template-below) main :is(.panels,.panel,.sl-template-below,.sl-template-workspace,.sl-editor-panel,.sl-right-col,.sl-theme-fields,.sl-load-theme){box-sizing:border-box!important;max-width:100%!important;min-width:0!important}
 body:has(.sl-template-below) main :is(input,select,textarea,iframe){max-width:100%;box-sizing:border-box}
 body:has(.sl-template-below) main .sl-template-workspace{overflow-x:auto}
}
