/* Shared customer branding. No administrator links or permissions live here. */
[hidden] { display: none !important; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 24px; border-bottom: 1px solid #ffffff16; background: #0b111af2; }
.site-wordmark { display: inline-flex; align-items: center; gap: 14px; min-width: 0; color: #f5f7fa; text-decoration: none; }
.site-wordmark strong { min-width: 0; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; font-size: 27px; white-space: nowrap; letter-spacing: -.03em; }
.site-wordmark small { padding-left: 16px; border-left: 1px solid #ffffff35; font-size: 16px; color: #a9b5c4; }
.site-logo { display: block; width: 44px; height: 44px; border-radius: 11px; flex: 0 0 auto; }
.admin-page-brand { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.site-header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.site-models-link { color: #c5d0dd; text-decoration: none; font-size: 13px; }
.shop-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 20px; border: 1px solid #ffe628; border-radius: 12px; background: #ffe628; color: #161912; font-size: 14px; font-weight: 700; font-family: inherit; text-decoration: none; cursor: pointer; text-align: center; }
.shop-button:hover { background: #fff26c; }
.shop-button.secondary { background: #202a35; border-color: #ffffff35; color: #f5f7fa; }
.shop-button:focus-visible, .site-models-link:focus-visible, .site-wordmark:focus-visible, .shop-close:focus-visible { outline: 2px solid #d7ff43; outline-offset: 4px; }
.brand-configurator { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.brand-configurator .app { min-height: 0; height: 100%; }
.brand-configurator .palette { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: none; }
.brand-configurator .swatch-name { font-size: 11px; }
.brand-configurator .swatch-chip { height: 25px; }
.brand-share-actions { display: grid; gap: 10px; }
.brand-share-actions .share-note:empty { display: none; }
.brand-signature, .brand-watermark { position: absolute; pointer-events: none; user-select: none; z-index: 2; }
.brand-signature { left: 26px; bottom: 84px; font-size: 13px; color: #cdd6e3; }
.brand-watermark { transform: translate(-50%, -50%) rotate(-8deg); font-family: "Microsoft YaHei", sans-serif; font-weight: 700; letter-spacing: .045em; white-space: nowrap; color: rgba(255,255,255,.25); -webkit-text-stroke: .02em rgba(0,0,0,.5); paint-order: stroke fill; mix-blend-mode: normal; }
.brand-catalog .catalog-header { padding: 14px 0; background: transparent; }
.brand-catalog .catalog-label { white-space: normal; line-height: 1.6; }
.brand-catalog .site-wordmark small { font-size: 14px; }
.brand-footer { padding: 16px 20px; font-size: 12px; color: #94a3b3; text-align: center; }
.shop-dialog { box-sizing: border-box; width: min(410px, calc(100vw - 28px)); max-width: calc(100vw - 28px); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; padding: 28px; border: 1px solid #435166; border-radius: 20px; background: #131d28; color: #edf3fa; text-align: center; box-shadow: 0 30px 90px #0008; }
.shop-dialog::backdrop { background: #03070db8; backdrop-filter: blur(5px); }
.shop-close { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 8px; color: #c7d3e1; background: transparent; font-size: 30px; cursor: pointer; }
.shop-badge { display: table; padding: 7px 13px; border-radius: 8px; background: #ffe628; color: #161912; font-weight: 800; font-size: 13px; }
.shop-logo { display: block; width: 72px; height: 72px; margin: 14px auto; border-radius: 16px; }
.shop-dialog h2 { margin: 8px 0; font-size: 24px; overflow-wrap: anywhere; }
.shop-description, .shop-instructions, .shop-caption { color: #aab8c9; line-height: 1.7; font-size: 14px; margin: 10px 0 16px; }
.shop-qr-wrap { width: 216px; max-width: 100%; margin: 22px auto 12px; padding: 12px; border-radius: 12px; background: #fff; }
#shopQr { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.shop-actions { display: grid; gap: 10px; }
.shop-feedback { min-height: 20px; color: #d7ff43; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.shop-caption { margin-bottom: 0; padding-top: 16px; border-top: 1px solid #ffffff18; }
.site-settings-form { display: grid; gap: 18px; max-width: 820px; }
.site-settings-form fieldset { display: grid; gap: 18px; min-width: 0; padding: 0; margin: 0; border: 0; }
.site-settings-form .text-input { width: 100%; }
.orders-main .admin-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site-settings-form label:not(.site-setting-switch) { display: grid; gap: 8px; font-size: 14px; }
.site-setting-switch { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px solid #ffffff25; border-radius: 12px; background: #ffe62808; font-size: 16px; }
.site-setting-switch input { width: 22px; height: 22px; flex-shrink: 0; accent-color: #d7ff43; }
.site-settings-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-settings-actions button { min-width: 130px; padding: 12px 18px; }
@media (max-width: 780px) {
  .brand-configurator { display: block; height: auto; overflow: auto; }
  .site-header { min-height: 66px; padding: 10px 14px; gap: 10px; }
  .site-wordmark { gap: 9px; }
  .site-wordmark strong { font-size: 21px; }
  .site-wordmark small { display: none; }
  .site-logo { width: 36px; height: 36px; border-radius: 9px; }
  .site-header-actions { gap: 12px; }
  .shop-button { padding: 9px 12px; font-size: 13px; }
  .brand-catalog .catalog-header { flex-wrap: wrap; gap: 12px; }
  .brand-catalog .catalog-label { display: none; }
  .brand-signature { bottom: 72px; left: 16px; font-size: 12px; }
  .shop-dialog { padding: 22px; }
  .shop-logo { width: 60px; height: 60px; margin: 12px auto; }
}
@media (max-width: 370px) { .site-models-link { display: none; } }
