/* WAVE's compact horizontal brand stays legible on phones and desktops. */
.brand{gap:10px;min-width:0}
.brand-symbol{display:block;flex:0 0 34px;width:34px;height:34px}
.brand-symbol svg{display:block;width:100%;height:100%}
.brand-lockup{display:flex;flex-direction:column;gap:5px;align-items:flex-start}
.brand .brand-word{display:block;font-family:'Inter','Arial Black',sans-serif;font-size:31px;font-weight:900;font-style:italic;line-height:.9;letter-spacing:-1.8px;color:#25272b}
.brand .brand-word>span{color:var(--orange)}
.brand .brand-sub{display:block;writing-mode:horizontal-tb;white-space:nowrap;padding:0 0 0 2px;font-size:11px;font-weight:650;line-height:1.1;letter-spacing:3px;color:#686b64}
.header-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}
.stores-entry{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12px;color:#777977;border:1px solid #deded7;border-radius:30px;padding:10px 13px;white-space:nowrap;line-height:1.4}
.stores-entry:hover{color:var(--orange);border-color:#ffc6b3;background:#fff8f3}
.stores-entry.active{background:#fff0e8;color:#df6038;border-color:#ffd4c3}
.header-actions .admin-entry{line-height:1.4}

/* Sorting keeps a compact label even where editable fields use larger text. */
#app .sort-select{font-size:10px!important;font-weight:700;color:#bd5736;line-height:1.4!important;min-height:36px;max-width:100px;flex:0 0 auto}
.sort-control{position:relative;flex:0 0 auto}
.sort-control .sort-select{display:flex;align-items:center;gap:4px}
.sort-menu{position:absolute;right:0;top:calc(100% + 5px);width:125px;padding:5px;background:#fffefa;border:1px solid #e8e9df;border-radius:10px;box-shadow:0 8px 30px #242a161c;z-index:6}
.sort-menu[hidden]{display:none}
.sort-option{display:block;width:100%;padding:11px;border:0;text-align:left;font-size:12px;color:#737b67;border-radius:6px;background:none}
.sort-option:hover,.sort-option[aria-checked="true"]{color:#bd5736;background:#fff0e6;font-weight:700}
.catalogue-content{touch-action:pan-y;min-height:150px;transition:transform .15s ease-out}
.catalogue-content.is-swiping{transition:none;user-select:none}
.catalogue-content img{-webkit-user-drag:none}
.category-status{font-size:11px;color:#8a8e80;line-height:1.8;margin:0 0 15px}
.category-status:empty{display:none}
.platform-badge.platform-pending{background:#5b5b50e8;color:#fff9df}.platform-pending:before{background:#e5c47f}
.inventory-explainer,.catalogue-import-note{font-size:11px;line-height:1.9;color:#8d8063;background:#fbf4e6;border:1px solid #eee3cb;border-radius:9px;padding:12px 15px;margin:14px 0}
.catalogue-import-note strong{color:#71664f}.a-stock-note{display:block;font-size:10px;color:#b18b4f;margin-top:5px}
.category-swipe-hint{display:none;color:#a0a391;text-align:center;font-size:10px;margin:15px 0 0}

@media(max-width:1150px){
  .header-inner{gap:20px}
  .desktop-nav{gap:22px}
  .brand .preview-pill{display:none}
  .brand .brand-sub{display:block}
  .header-actions{gap:7px}
  .stores-entry,.header-actions .admin-entry{padding:9px 11px}
}

@media(min-width:681px) and (max-width:900px){
  .header-inner{padding:0 22px;gap:15px}
  .desktop-nav{gap:16px}
  .desktop-nav a{font-size:12px}
  .header-actions{gap:6px}
  .stores-entry,.header-actions .admin-entry{font-size:11px;padding:9px}
  .brand-symbol{flex-basis:29px;width:29px;height:29px}
  .brand .brand-word{font-size:28px}
  .brand .brand-sub{font-size:10px;letter-spacing:2.5px}
}

@media(max-width:680px){
  .category-swipe-hint{display:block}
  #app .sort-select{font-size:10px!important;max-width:90px;min-height:38px}
  .community-page{overflow-x:clip}
  .site-header{height:76px}
  .header-inner{padding:0 16px;gap:12px}
  .brand{gap:8px;flex-shrink:0}
  .brand-symbol{flex-basis:29px;width:29px;height:29px}
  .brand-lockup{gap:5px}
  .brand .brand-word{font-size:29px;letter-spacing:-1.7px}
  .brand .brand-sub{display:block;font-size:10px;letter-spacing:2.6px}
  .header-actions{gap:7px;margin-left:auto}
  .stores-entry,.header-actions .admin-entry{padding:8px 9px;gap:4px;font-size:10px;min-height:35px}
  .stores-entry svg,.header-actions .admin-entry svg{width:13px;height:13px}
  .header-actions #admin-icon{display:inline-flex}
}

@media(max-width:360px){
  .header-inner{padding:0 12px;gap:7px}
  .brand{gap:6px}
  .brand-symbol{flex-basis:25px;width:25px;height:25px}
  .brand .brand-word{font-size:26px;letter-spacing:-1.6px}
  .brand .brand-sub{display:block;font-size:9px;letter-spacing:2.4px}
  .header-actions{gap:5px}
  .stores-entry,.header-actions .admin-entry{padding:8px 7px;gap:3px;font-size:10px}
  .stores-entry svg,.header-actions .admin-entry svg{width:12px;height:12px}
}

/* iOS zooms focused fields whose computed text size is below 16px.
   Apply the size to every editable field, including dynamically mounted forms.
   Keep normal pinch-to-zoom available; no focus/blur viewport manipulation. */
@media(max-width:1024px),(hover:none){
  body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),textarea,select),
  #app :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),textarea,select),
  #modal :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),textarea,select){
    font-size:16px!important;line-height:1.5!important;min-width:0;
  }
  #app .input,#modal .input,#app .a-select,#modal .a-select{min-height:46px}
  #app textarea.input,#modal textarea.input{min-height:112px}
  #app .feedback-textarea{min-height:149px}
  #app .search-box,#app .wishlist-search,#app .a-search{min-height:46px;height:auto}
  #app .search-box{padding:10px 12px}
  #app .search-box input,#app .wishlist-search input,#app .a-search input{min-height:24px}
  #app .sort-select{min-height:42px;max-width:140px;padding:7px 2px}
  #modal .review-submit-row{flex-wrap:wrap}
  #modal .review-submit-row .input{flex:1 1 130px;max-width:100%;width:130px}
  #app .feedback-form-row{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
}

@media(max-width:360px){
  #app .sort-select{max-width:126px}
  #app .feedback-form-row{grid-template-columns:1fr}
  #modal .a-form-grid{grid-template-columns:minmax(0,1fr)}
}
