/* NOSOService public chrome. A rendered public root is required for every rule.
   Admin, bot and settings-ACP views never receive this visual layer. */
body:has(#page .noso-public-view) #topbar {
  padding: 18px 24px 0;
  border: 0;
  background: linear-gradient(#08080af5, #08080a00);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body:has(#page .noso-public-view) #topbar.scrolled { background: linear-gradient(#08080afc, #08080a00); }
body:has(#page .noso-public-view) #topbar .nav-wrap {
  min-height: 76px;
  max-width: 1360px;
  padding: 0 24px;
  gap: 22px;
  border: 1px solid #ffffff17;
  border-radius: 14px;
  background: #101013f5;
  box-shadow: 0 12px 36px #00000024, inset 0 1px #ffffff05;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body:has(#page .noso-public-view) #topbar .brand {
  min-width: 185px;
  min-height: 44px;
  gap: 11px;
  flex-shrink: 0;
  font-size: 16px;
  letter-spacing: -.4px;
  color: #f5f5f5;
}
body:has(#page .noso-public-view) #topbar .brand img { width: 42px; height: 42px; border-radius: 12px; }
body:has(#page .noso-public-view) #topbar .brand-thin { color: #bfc4ca; }
body:has(#page .noso-public-view) #topbar .brand small { color: #a7acb4; font-size: 9px; letter-spacing: .16em; margin-top: 7px; }
body:has(#page .noso-public-view) #topbar .primary-nav { gap: 3px; padding: 0; border: 0; background: transparent; }
body:has(#page .noso-public-view) #topbar .primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  line-height: 18px;
  white-space: nowrap;
  color: #bfc4ca;
}
body:has(#page .noso-public-view) #topbar .primary-nav a:hover { color: #f5f5f5; background: #ffffff08; }
body:has(#page .noso-public-view) #topbar .primary-nav a.active { color: #f5f5f5; background: #75090226; border-color: #d51c2b38; }
body:has(#page .noso-public-view) #topbar .nav-actions { min-width: 185px; gap: 10px; flex-shrink: 0; }
body:has(#page .noso-public-view) #topbar .nav-separator { height: 20px; background: #ffffff18; }
body:has(#page .noso-public-view) :is(#topbar, #cart-drawer) .icon-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  background: #19181c;
  color: #f5f5f5;
  flex-shrink: 0;
}
body:has(#page .noso-public-view) :is(#topbar, #cart-drawer) .icon-button:hover { background: #262328; border-color: #ffffff30; }
body:has(#page .noso-public-view) #topbar .login-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 12px 14px;
  gap: 9px;
  border: 1px solid #d51c2b70;
  border-radius: 10px;
  background: #8b101b;
  color: #f5f5f5;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  box-shadow: inset 0 1px #ffffff0d;
}
body:has(#page .noso-public-view) #topbar .login-btn:not(:disabled):hover { background: #a01620; border-color: #d51c2b; }
body:has(#page .noso-public-view) #topbar .cart-count { min-width: 18px; height: 18px; right: -3px; top: -3px; background: #d51c2b; color: #fff; font-size: 10px; }
body:has(#page .noso-public-view) #mobile-nav {
  top: 104px;
  right: 24px;
  left: 24px;
  max-height: calc(100dvh - 128px);
  padding: 10px;
  overflow-y: auto;
  border: 1px solid #ffffff26;
  border-radius: 14px;
  background: #101013;
  box-shadow: 0 18px 45px #00000070;
}
body:has(#page .noso-public-view) #mobile-nav a { min-height: 48px; padding: 14px 16px; border: 0; border-radius: 9px; color: #bfc4ca; font-size: 14px; line-height: 20px; }
body:has(#page .noso-public-view) #mobile-nav a:hover { background: #75090228; color: #f5f5f5; }

body:has(#page .noso-public-view) #footer { border-color: #ffffff14; background: #08080a; }
body:has(#page .noso-public-view) #footer::before { content: ""; position: absolute; top: -1px; left: max(24px, calc((100% - 1264px) / 2)); width: 48px; height: 2px; background: #d51c2b; pointer-events: none; }
body:has(#page .noso-public-view) #footer .footer-inner { max-width: 1360px; padding: 46px 48px 30px; }
body:has(#page .noso-public-view) #footer .footer-top { align-items: flex-start; gap: 26px 40px; }
body:has(#page .noso-public-view) #footer .footer-main { gap: 16px; }
body:has(#page .noso-public-view) #footer .footer-brand { width: 58px; height: 58px; border-radius: 12px; border-color: #89303d61; background: #1a1317; color: #f5f5f5; font-size: 24px; }
body:has(#page .noso-public-view) #footer .red-dot { color: #d51c2b; }
body:has(#page .noso-public-view) #footer .footer-main strong { color: #f5f5f5; font-size: 15px; }
body:has(#page .noso-public-view) #footer .footer-main p { color: #bfc4ca; font-size: 12px; line-height: 1.75; }
body:has(#page .noso-public-view) #footer .footer-links { max-width: 720px; gap: 0 24px; }
body:has(#page .noso-public-view) #footer .footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #bfc4ca; font-size: 12px; font-weight: 550; }
body:has(#page .noso-public-view) #footer .footer-links a:hover { color: #f5f5f5; }
body:has(#page .noso-public-view) #footer .footer-disclaimer { max-width: 1060px; margin-top: 28px; padding-top: 24px; border-color: #ffffff14; color: #bfc4ca; font-size: 12px; line-height: 1.85; }
body:has(#page .noso-public-view) #footer .footer-bottom { margin-top: 28px; padding-top: 22px; border-color: #ffffff14; color: #a7acb4; font-size: 10px; line-height: 1.8; letter-spacing: .08em; flex-wrap: wrap; }

body:has(#page .noso-public-view) #drawer-shade { background: #000000b8; backdrop-filter: blur(4px); }
body:has(#page .noso-public-view) #cart-drawer {
  width: min(100%, 460px);
  height: 100dvh;
  border-color: #ffffff26;
  background: #101013;
  box-shadow: -24px 0 70px #00000080;
  transition: transform .28s ease;
}
body:has(#page .noso-public-view) #cart-drawer .drawer-header { padding: 28px; gap: 16px; border-color: #ffffff17; }
body:has(#page .noso-public-view) #cart-drawer .mini-kicker { color: #bfc4ca; font-size: 10px; letter-spacing: .16em; }
body:has(#page .noso-public-view) #cart-drawer h2 { font-size: 30px; color: #f5f5f5; letter-spacing: -.05em; }
body:has(#page .noso-public-view) #cart-drawer .red-dot { color: #d51c2b; }
body:has(#page .noso-public-view) #cart-drawer .cart-items { padding: 16px 28px; min-height: 0; }
body:has(#page .noso-public-view) #cart-drawer .cart-line { gap: 14px; border-color: #ffffff14; padding: 22px 0; animation: none; }
body:has(#page .noso-public-view) #cart-drawer .cart-line-art { width: 68px; height: 64px; border: 1px solid #d51c2b30; border-radius: 10px; background: linear-gradient(135deg, #331218, #171518); color: #e1cbd0; font-size: 20px; }
body:has(#page .noso-public-view) #cart-drawer .cart-line-info strong { color: #f5f5f5; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
body:has(#page .noso-public-view) #cart-drawer .cart-line-info p { color: #bfc4ca; font-size: 12px; line-height: 1.6; }
body:has(#page .noso-public-view) #cart-drawer .cart-line button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #ffffff14; border-radius: 9px; background: #19181c; color: #bfc4ca; }
body:has(#page .noso-public-view) #cart-drawer .cart-line button:hover { background: #33171d; color: #f5f5f5; border-color: #d51c2b55; }
body:has(#page .noso-public-view) #cart-drawer .cart-empty { padding: 70px 18px; }
body:has(#page .noso-public-view) #cart-drawer .cart-empty > svg { color: #c38a95; }
body:has(#page .noso-public-view) #cart-drawer .cart-empty h3 { color: #f5f5f5; font-size: 23px; letter-spacing: -.04em; }
body:has(#page .noso-public-view) #cart-drawer .cart-empty p { color: #bfc4ca; font-size: 14px; line-height: 1.8; }
body:has(#page .noso-public-view) #cart-drawer .cart-empty .btn { margin-top: 22px; }
body:has(#page .noso-public-view) #cart-drawer .cart-summary { padding: 26px 28px; padding-bottom: max(26px, env(safe-area-inset-bottom)); border-color: #ffffff17; background: #171518; }
body:has(#page .noso-public-view) #cart-drawer .cart-summary > div:first-child { color: #bfc4ca; font-size: 13px; }
body:has(#page .noso-public-view) #cart-drawer .cart-summary strong { color: #f5f5f5; font-size: 24px; }
body:has(#page .noso-public-view) #cart-drawer .cart-summary small { color: #bfc4ca; font-size: 11px; line-height: 1.75; }
body:has(#page .noso-public-view) #cart-drawer .btn { min-height: 48px; padding: 13px 18px; border-radius: 10px; border: 1px solid #d51c2b75; background: #8b101b; color: #f5f5f5; font-size: 13px; box-shadow: none; }
body:has(#page .noso-public-view) #cart-drawer .btn:not(:disabled):hover { background: #a01620; border-color: #d51c2b; }
body:has(#page .noso-public-view) #cart-drawer button svg { width: 18px; height: 18px; flex-shrink: 0; }
body:has(#page .noso-public-view) #cart-drawer .btn::after { display: none; }
body:has(#page .noso-public-view) #cart-drawer .form-input { min-height: 46px; border: 1px solid #ffffff30; border-radius: 9px; background: #0d0d10; color: #f5f5f5; font-size: 13px; }
body:has(#page .noso-public-view) #cart-drawer .form-input::placeholder { color: #a7acb4; }

/* The existing project link follows the footer in normal flow. It must never
   float over catalog or purchase controls. Unmarked admin views keep old CSS. */
body:has(#page .noso-public-view) .creator-fab { position: relative; inset: auto; z-index: auto; display: flex; width: max-content; max-width: calc(100% - 44px); margin: 24px auto 36px; min-height: 64px; gap: 11px; padding: 10px 16px 10px 10px; border-color: #a14d5a80; border-radius: 12px; background: #171518f5; color: #f5f5f5; box-shadow: 0 12px 32px #00000030; backdrop-filter: none; }
body:has(#page .noso-public-view) .creator-fab:hover { border-color: #d51c2b; background: #24171d; box-shadow: 0 12px 32px #00000060; }
body:has(#page .noso-public-view) .creator-fab-symbol { width: 42px; height: 42px; border-radius: 9px; background: #8b101b; box-shadow: none; }
body:has(#page .noso-public-view) .creator-fab-copy { display: grid; }
body:has(#page .noso-public-view) .creator-fab-copy strong { font-size: 13px; }
body:has(#page .noso-public-view) .creator-fab-copy small { color: #bfc4ca; font-size: 11px; }
body:has(#page .noso-public-view) .creator-fab-arrow { display: block; color: #bfc4ca; }

/* Motion never moves a shared control's hit rectangle. Drawer open/close
   transforms are deliberately left to its existing .open state. */
body:has(#page .noso-public-view) :is(#topbar, #mobile-nav, #footer, #cart-drawer) :is(a, button),
body:has(#page .noso-public-view) .creator-fab {
  touch-action: manipulation;
  -webkit-tap-highlight-color: #d51c2b26;
  transition-property: background-color, border-color, color, box-shadow, opacity;
  transition-duration: .16s;
  transition-timing-function: ease;
  transform: none;
  translate: none;
  scale: none;
}
body:has(#page .noso-public-view) :is(#topbar, #mobile-nav, #footer, #cart-drawer) :is(a, button):is(:hover, :active),
body:has(#page .noso-public-view) .creator-fab:is(:hover, :active) { transform: none; translate: none; scale: none; }
body:has(#page .noso-public-view) :is(#topbar, #mobile-nav, #cart-drawer) button:not(:disabled):active,
body:has(#page .noso-public-view) .creator-fab:active { box-shadow: inset 0 2px 6px #00000050; }
body:has(#page .noso-public-view) :is(#topbar, #mobile-nav, #footer, #cart-drawer) :is(a, button, input):focus-visible,
body:has(#page .noso-public-view) .creator-fab:focus-visible { outline: 2px solid #f5f5f5; outline-offset: 4px; }
body:has(#page .noso-public-view) :is(#topbar, #cart-drawer) button :is(svg, [data-icon]),
body:has(#page .noso-public-view) .creator-fab :is(span, svg) { pointer-events: none; }
body:has(#page .noso-public-view) .creator-fab-arrow { transform: none; }
body:has(#page .noso-public-view) .creator-fab:hover .creator-fab-arrow { transform: none; }

@media (max-width: 1100px) {
  body:has(#page .noso-public-view) #topbar .primary-nav { display: none; }
  body:has(#page .noso-public-view) #topbar .mobile-trigger { display: inline-flex; }
  body:has(#page .noso-public-view) #topbar .brand { min-width: 0; }
  body:has(#page .noso-public-view) #topbar .nav-actions { min-width: 0; }
  body:has(#page .noso-public-view) #topbar .nav-wrap { gap: 16px; }
}
@media (min-width: 1101px) {
  body:has(#page .noso-public-view) #mobile-nav { display: none; }
}
@media (max-width: 639px) {
  body:has(#page .noso-public-view) #topbar { padding: 12px 12px 0; }
  body:has(#page .noso-public-view) #topbar .nav-wrap { min-height: 70px; gap: 10px; padding-inline: 12px; border-radius: 12px; }
  body:has(#page .noso-public-view) #topbar .brand { gap: 9px; font-size: 15px; }
  body:has(#page .noso-public-view) #topbar .brand img { width: 38px; height: 38px; }
  body:has(#page .noso-public-view) #topbar .brand .brand-thin,
  body:has(#page .noso-public-view) #topbar .brand small,
  body:has(#page .noso-public-view) #topbar .nav-separator,
  body:has(#page .noso-public-view) #topbar .login-arrow { display: none; }
  body:has(#page .noso-public-view) #topbar .nav-actions { gap: 8px; }
  body:has(#page .noso-public-view) #topbar .login-btn { width: auto; gap: 8px; padding-inline: 10px; }
  body:has(#page .noso-public-view) #topbar #login-label { display: inline; max-width: 75px; overflow: hidden; text-overflow: ellipsis; }
  body:has(#page .noso-public-view) #mobile-nav { top: 92px; right: 12px; left: 12px; max-height: calc(100dvh - 110px); }
  body:has(#page .noso-public-view) #footer .footer-inner { padding: 34px 22px 28px; }
  body:has(#page .noso-public-view) #footer .footer-main { min-width: 0; }
  body:has(#page .noso-public-view) #footer .footer-links { justify-content: flex-start; gap: 0 22px; }
  body:has(#page .noso-public-view) #footer .footer-bottom { padding-bottom: 40px; letter-spacing: .04em; }
  body:has(#page .noso-public-view) #cart-drawer .drawer-header { padding: 24px 22px; }
  body:has(#page .noso-public-view) #cart-drawer .cart-items { padding-inline: 22px; }
  body:has(#page .noso-public-view) #cart-drawer .cart-summary { padding-inline: 22px; }
  body:has(#page .noso-public-view) .creator-fab { padding: 10px 14px 10px 10px; min-height: 64px; }
  body:has(#page .noso-public-view) .creator-fab-symbol { width: 42px; height: 42px; }
}
@media (max-width: 360px) {
  body:has(#page .noso-public-view) #topbar .brand > span { display: none; }
  body:has(#page .noso-public-view) #topbar .nav-wrap { gap: 8px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  body:has(#page .noso-public-view) :is(#topbar, #mobile-nav, #footer, #cart-drawer, #drawer-shade, .creator-fab),
  body:has(#page .noso-public-view) :is(#topbar, #mobile-nav, #footer, #cart-drawer, .creator-fab) * { transition-duration: .01ms !important; animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  body:has(#page .noso-public-view) #topbar .nav-wrap { background: #101013; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body:has(#page .noso-public-view) #drawer-shade { background: #000000d9; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  body:has(#page .noso-public-view) :is(#topbar .nav-wrap, #mobile-nav, #cart-drawer) { border-color: #bfc4ca; }
  body:has(#page .noso-public-view) :is(#footer .footer-disclaimer, #footer .footer-bottom, #topbar .primary-nav a, #cart-drawer .cart-summary small) { color: #f5f5f5; }
}

