/* Mobile layout only. Desktop and persisted settings remain unchanged. */
@media(max-width:700px){
html,body{min-width:0!important;width:100%;overflow-x:hidden;font-size:16px}
*{box-sizing:border-box}input,select,textarea{font-size:16px!important;max-width:100%;min-height:44px}button,.button{min-height:44px;white-space:normal!important}h1{font-size:24px!important}h2{font-size:20px!important}
#tools-bar{position:relative!important;padding:12px!important;gap:8px!important;height:auto!important;display:flex;flex-wrap:wrap}
#tools-bar nav{position:fixed!important;bottom:0;left:0;right:0;z-index:1000;display:grid!important;grid-template-columns:repeat(4,1fr);gap:0!important;background:var(--surface,#1c2433);padding-bottom:env(safe-area-inset-bottom);width:100%!important;overflow:visible!important}
#tools-bar nav button{padding:8px 2px!important;min-width:0!important;width:auto!important;font-size:12px!important;height:auto!important;min-height:48px}#tools-bar nav button img,#tools-bar nav button svg{width:18px;height:18px}
#tool-account-actions{flex-wrap:wrap!important;gap:6px!important;width:100%;justify-content:flex-start}#tool-account-actions button{width:auto!important;padding:8px!important;font-size:12px!important}
body:has(#tools-bar){padding-bottom:120px}#shell[hidden]{display:none!important}
aside,.sidebar,.product-channel-switch{position:static!important;width:100%!important;height:auto!important;max-height:none!important;padding:12px!important}aside nav,.sidebar nav,.product-channel-switch{display:flex!important;flex-wrap:wrap;gap:6px}aside .aside-bottom,aside footer,aside .nav-label,aside .brand{display:none!important}
main,.shell,.product-registration-content{margin:0!important;width:100%!important;min-width:0!important;padding:12px!important}.product-registration-layout{display:block!important}
.tool-panel{height:calc(100dvh - 220px)!important;min-height:420px}.tool-panel iframe{min-height:400px}.toolbar,.header-actions,.top,.heading,.drop-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
.grid,.form-grid,.detail-summary,.stats,.cards{grid-template-columns:1fr!important}dialog{width:calc(100% - 16px)!important;max-width:none!important;max-height:90dvh!important;padding:16px!important}dialog form{min-width:0!important}#fields{grid-template-columns:1fr!important}
table{font-size:14px!important}td,th{padding:10px 8px!important}table{display:block;overflow-x:auto;max-width:100%}.panel{padding:14px!important}label{max-width:100%}.product-layout,.registration-grid{display:block!important}
}

/* Keep long mobile navigation labels legible on a single text line. */
@media(max-width:700px){
#tools-bar nav button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;line-height:1.3!important;letter-spacing:-.25px!important;white-space:nowrap!important;word-break:keep-all!important;min-height:58px!important}
#tools-bar nav #tool-cafe24,#tools-bar nav #tool-translation{font-size:10px!important}
#tools-bar nav button::before{flex-shrink:0!important;margin:0!important}
}

@media(max-width:700px){.mobile-registration{padding:20px;width:100%;line-height:1.7}.mobile-registration button{width:100%}.product-download,.cafe24-download{display:none!important}}
@media(max-width:700px){.mobile-registration form{display:grid;gap:14px}.mobile-registration label{display:grid;gap:6px}.mobile-registration input,.mobile-registration textarea{width:100%;padding:12px}.mobile-result{white-space:pre-wrap;word-break:break-word;font:13px/1.6 monospace}.mobile-registration>button{margin-bottom:12px}}
@media(max-width:700px){.coupang-workspace{padding:12px!important;min-width:0!important;width:100%!important}.cp-grid,.cp-variant{display:grid!important;grid-template-columns:minmax(0,1fr)!important}.coupang-workspace input,.coupang-workspace select,.coupang-workspace textarea{width:100%!important}.coupang-workspace button{max-width:100%;white-space:normal!important}}
@media(max-width:700px){.mobile-variants fieldset{min-width:0;margin:16px 0;padding:12px;border:1px solid var(--line,#465269)}.mobile-registration input[type=checkbox],.coupang-workspace input[type=checkbox]{width:20px!important;min-height:20px!important}.mobile-registration select{width:100%;min-height:44px}.mobile-registration-review{background:var(--surface,#1c2332);color:var(--text,#edf1ff)}.mobile-lookups section{max-height:240px;overflow:auto;margin:12px 0}}
