:root{--purple:#8f3dac;--pink:#ff628b;--orange:#ffad77;--navy:#1c2956;--ink:#282336;--muted:#888293;--line:#eee9f1;--surface:#fff;--bg:#f8f7fa;--gradient:linear-gradient(110deg,#8c3bad,#d455af 55%,#ff7295 80%,#ffb27c);font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--purple);text-decoration:none}img{max-width:100%}h1,h2,h3,p{margin:0}h1{font-size:1.65rem;letter-spacing:-.035em}h2{font-size:1.12rem}h3{font-size:1rem}small,.muted{color:var(--muted)}small{font-size:.8rem}button{border:0;background:none;color:inherit}.btn{display:inline-flex;gap:8px;align-items:center;justify-content:center;border:1px solid var(--line);background:white;border-radius:10px;padding:9px 16px;min-height:42px;font-size:.875rem;font-weight:600;transition:transform .15s,box-shadow .15s}.btn:hover{box-shadow:0 4px 14px #71329216;transform:translateY(-1px)}.btn.primary{background:var(--gradient);color:#fff;border:0}.btn.soft{background:#f4eaf8;border-color:#f4eaf8;color:var(--purple)}.btn.danger{color:#c93f5f}.btn.small{padding:5px 10px;min-height:32px;font-size:.8rem}.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.brand{display:flex;gap:9px;align-items:center;font-size:1.18rem;font-weight:750;color:var(--purple)}.brand img{width:45px;height:45px;object-fit:cover;border-radius:14px}.brand span{background:var(--gradient);background-clip:text;color:transparent}.brand small{display:block;background:none;color:var(--muted);font-size:.68rem;font-weight:500;letter-spacing:.16em}.boot{display:grid;place-content:center;min-height:100vh;gap:15px;text-align:center;color:var(--muted)}.boot img{width:85px;margin:auto}.layout{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:230px;background:white;border-right:1px solid var(--line);padding:27px 18px;display:flex;flex-direction:column;z-index:20}.nav-label{font-size:.75rem;color:#a69dad;letter-spacing:.1em;margin:28px 13px 10px}.nav-link{display:flex;gap:12px;align-items:center;padding:10px 14px;margin:3px 0;border-radius:10px;color:#777080;font-size:.9rem}.nav-link:hover{background:#fbf7fc}.nav-link.active{background:linear-gradient(90deg,#f3e7f9,#fff2f4);color:var(--purple);font-weight:650}.nav-icon{width:22px;font-size:1.1rem;text-align:center}.sidebar-bottom{margin-top:auto;padding:18px 10px 0}.quota-mini{background:linear-gradient(135deg,#f8edf9,#fff3ed);padding:14px;border-radius:13px;font-size:.8rem}.quota-mini strong{font-size:1.35rem;color:var(--purple)}.main{grid-column:2;min-width:0}.topbar{height:76px;background:#ffffffd9;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 36px;position:sticky;top:0;z-index:10;backdrop-filter:blur(16px);font-size:.85rem}.topbar .crumb{color:var(--muted)}.avatar{display:grid;place-content:center;width:34px;height:34px;background:#f3e5f7;color:var(--purple);border-radius:50%;font-weight:650}.content{padding:30px 36px 60px;max-width:1500px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}.page-head p{font-size:.875rem;color:var(--muted);margin-top:4px}.welcome{display:flex;justify-content:space-between;align-items:center;padding:28px 32px;border-radius:20px;background:linear-gradient(110deg,#f1e5fa,#ffeff3 60%,#fff0df);margin-bottom:25px;position:relative;overflow:hidden}.welcome h1{color:#62317d}.welcome p{color:#96708d;margin-top:7px;font-size:.875rem}.welcome-symbol{font-size:4rem;font-weight:300;color:#d481b450}.eyebrow{font-size:.72rem;color:var(--purple);letter-spacing:.16em;font-weight:650;margin-bottom:8px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:15px;padding:22px}.stat-top{display:flex;justify-content:space-between;color:#81768a;font-size:.85rem}.stat-icon{display:grid;place-content:center;background:#f7effa;color:var(--purple);width:35px;height:35px;border-radius:10px}.stat strong{display:block;font-size:2rem;font-weight:650;color:var(--navy);line-height:1.3;margin-top:12px}.stat small{display:block;margin-top:8px}.grid2{display:grid;grid-template-columns:1.55fr 1fr;gap:22px}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;margin-bottom:22px}.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:10px}.steps{display:grid;gap:10px}.step{display:flex;gap:14px;padding:14px;background:#fbf9fc;border-radius:12px;align-items:center}.step .number{width:34px;height:34px;background:#f0e2f6;color:var(--purple);display:grid;place-content:center;border-radius:10px;font-weight:700}.step p{font-size:.8rem;color:var(--muted)}.step .btn{margin-left:auto}.chart{height:170px;display:flex;gap:16px;align-items:flex-end;padding-top:18px}.bar-col{flex:1;text-align:center;min-width:0}.bar{width:60%;margin:auto;background:linear-gradient(#c775ce,#9560b4);border-radius:5px 5px 0 0;min-height:4px}.bar-col small{font-size:.68rem}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px;flex-wrap:wrap}.tabs{display:flex;background:#f1edf4;padding:4px;border-radius:10px;gap:3px;flex-wrap:wrap}.tab{padding:6px 14px;border-radius:7px;font-size:.85rem;color:#8b8092}.tab.active{background:#fff;box-shadow:0 2px 5px #4a23550d;color:var(--purple);font-weight:600}.search{max-width:260px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:17px}.field label{font-size:.85rem;font-weight:600;color:#62586c}.field input,.field select,.field textarea,input.input,select.input{border:1px solid #e5dfeb;border-radius:9px;padding:10px 12px;background:#fff;color:var(--ink);width:100%;min-height:43px;outline:none}.field input:focus,.field select:focus,.field textarea:focus,input.input:focus{border-color:#ba6dd0;box-shadow:0 0 0 3px #a654c013}.field textarea{resize:vertical;min-height:95px}.field small{font-size:.75rem}.form-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.field.full,.form-section{grid-column:1/-1}.form-section{font-size:.92rem;color:var(--purple);font-weight:650;border-top:1px solid var(--line);padding:18px 0 15px;margin-top:5px}.form-section:first-child{border:0;padding-top:0}.check{display:flex;align-items:center;gap:8px;padding:8px 0;font-size:.85rem}.check input{accent-color:var(--purple);width:17px;height:17px;min-height:0}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:5px 12px}.tag{display:inline-flex;align-items:center;padding:3px 9px;font-size:.72rem;border-radius:6px;background:#f4edf8;color:#9655aa;white-space:nowrap}.tag.green{background:#eaf7f1;color:#45856b}.tag.orange{background:#fff2e5;color:#b4824a}.tag.gray{background:#f2f1f4;color:#91899a}.tag.red{background:#ffedf1;color:#c76077}.store-grid,.library-grid,.package-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.store-card{padding:0;overflow:hidden}.store-banner{height:85px;background:linear-gradient(110deg,#efdff5,#ffe4ec,#ffe9d4);padding:20px;display:flex;justify-content:space-between;align-items:center}.store-letter{display:grid;place-content:center;width:50px;height:50px;border-radius:13px;background:#ffffffc9;color:var(--purple);font-size:1.4rem;font-weight:650}.store-body{padding:20px}.store-body h2{margin-bottom:9px}.store-body p{font-size:.8rem;color:var(--muted);margin:5px 0}.store-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:17px}.store-buttons .btn{padding:7px 3px;font-size:.75rem}.store-footer{padding:13px 20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.notice{border:1px solid #f0dfc9;background:#fff9f0;color:#997646;font-size:.85rem;border-radius:10px;padding:12px 16px;margin-bottom:20px}.info{border:1px solid #eaddf0;background:#faf5fd;color:#886098;font-size:.85rem;border-radius:10px;padding:12px 16px;margin-bottom:20px}.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:13px}table{width:100%;border-collapse:collapse;font-size:.85rem;text-align:left}th{background:#fcfafd;color:#9a8eA1;font-size:.78rem;font-weight:500;padding:13px 17px;white-space:nowrap}td{padding:15px 17px;border-top:1px solid var(--line);vertical-align:middle}td p{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}td .thumb{width:54px;height:44px;object-fit:cover;border-radius:7px}.empty{padding:55px 20px;text-align:center;color:var(--muted);background:#fff;border-radius:14px}.empty-symbol{font-size:2rem;color:#d8bbdf;margin-bottom:8px}.empty p{font-size:.85rem;margin-top:7px}.empty .btn{margin-top:18px}.pagination{display:flex;justify-content:flex-end;gap:12px;align-items:center;font-size:.8rem;margin-top:15px}.library-card{text-align:left;cursor:pointer;transition:.15s}.library-card:hover{border-color:#c88bd4;transform:translateY(-2px)}.library-icon{width:48px;height:48px;background:linear-gradient(140deg,#efe0f7,#ffe9ed);border-radius:12px;display:grid;place-content:center;font-size:1.5rem;color:var(--purple);margin-bottom:16px}.library-card p{margin:7px 0 15px;font-size:.8rem;color:var(--muted)}.copy-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.copy-card{margin:0}.copy-card p{font-size:.9rem;line-height:1.85;margin:15px 0;white-space:pre-wrap}.copy-images{display:flex;gap:5px;flex-wrap:wrap}.copy-images img{width:60px;height:60px;object-fit:cover;border-radius:8px}.copy-footer{display:flex;justify-content:space-between;align-items:center;margin-top:15px;border-top:1px solid var(--line);padding-top:12px}.media-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:20px}.group{display:flex;justify-content:space-between;align-items:center;padding:10px;border-radius:9px;font-size:.85rem;cursor:pointer}.group.active{background:#f2e8f8;color:var(--purple)}.media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.media-item{padding:10px;border:1px solid var(--line);border-radius:12px;background:white}.media-item img{width:100%;height:135px;object-fit:cover;border-radius:8px;background:#f5f1f7}.media-item p{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:6px 0}.progress{height:7px;background:#eee7f2;border-radius:9px;overflow:hidden}.progress span{display:block;height:100%;background:var(--gradient)}.price{font-size:2rem;color:var(--purple);margin:20px 0 6px}.package-card{position:relative}.package-card.featured{border-color:#cc87d6;background:linear-gradient(160deg,#fff,#fdf4f9)}.package-card .btn{width:100%;margin-top:20px}.package-card small{display:block}.diagnostic{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.diagnostic p{font-size:.8rem;color:var(--muted)}.diagnostic-status{width:25px;height:25px;background:#f4e8f7;color:var(--purple);border-radius:50%;text-align:center}.diagnostic-status.ok{background:#eaf7f1;color:#45856b}.faq{padding:18px 0;border-bottom:1px solid var(--line)}.faq summary{cursor:pointer;font-size:.95rem;font-weight:600}.faq p{margin-top:12px;font-size:.875rem;color:#897c90;line-height:1.9}.login{min-height:100vh;display:grid;grid-template-columns:1.2fr 1fr;background:white}.login-art{padding:10vh 9%;background:radial-gradient(ellipse at 20% 30%,#ecd6fa,transparent 60%),radial-gradient(ellipse at 90% 85%,#ffe2cf,transparent 60%),#fff8fc;display:flex;flex-direction:column;justify-content:center}.login-art h1{font-size:3rem;line-height:1.4;background:var(--gradient);background-clip:text;color:transparent;margin:35px 0 16px}.login-art p{color:#9b7a9d}.login-art .mark{width:190px;height:190px;border-radius:42px;box-shadow:0 20px 70px #96478e1a}.login-form{align-self:center;width:min(420px,90%);margin:auto;padding:30px}.login-form h2{font-size:1.6rem;margin:35px 0 6px}.login-form p{color:var(--muted);font-size:.9rem;margin-bottom:30px}.login-form .btn{width:100%}.login-note{font-size:.8rem;color:var(--muted);margin-top:22px;line-height:1.8}dialog{border:1px solid var(--line);border-radius:19px;padding:0;width:min(780px,94vw);max-height:90vh;color:var(--ink);box-shadow:0 30px 110px #41234f35}dialog::backdrop{background:#25152b55;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:20px 25px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.modal-head button{font-size:1.4rem}.modal-body{padding:24px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 25px;border-top:1px solid var(--line);background:#fff;position:sticky;bottom:0;z-index:2}.modal-body .form-grid{margin-bottom:-15px}.qr{text-align:center}.qr img{width:250px;height:250px}.qr code{display:block;word-break:break-all;font-size:.8rem;margin:15px}.scene{border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:12px}.scene .form-grid{margin-bottom:0}.scene .field{margin-bottom:0}.scene-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.editor{min-height:220px;border:1px solid var(--line);padding:16px;border-radius:10px;outline:none}.editor img,.editor video{max-width:100%;max-height:250px}.toast{background:var(--navy);color:#fff;padding:12px 20px;border-radius:12px;font-size:.875rem;margin-top:10px;box-shadow:0 8px 30px #15244722;max-width:420px}.toast.error{background:#b34e72}#toasts{position:fixed;right:25px;bottom:25px;z-index:1000}.skeleton{padding:70px;text-align:center;color:var(--muted)}.mobile-nav{display:none}.h5-body{background:#f4eff7}.h5-shell{max-width:460px;min-height:100vh;margin:0 auto;background:#f8f6fa;padding:20px 15px 35px}.h5-brand{margin:3px 6px 16px}.h5-hero{border-radius:22px;padding:26px 23px;background:var(--gradient);color:white;margin-bottom:17px}.h5-hero h1{font-size:1.4rem;color:white}.h5-hero p{font-size:.8rem;opacity:.9;margin-top:9px}.h5-hero small{color:#ffffffbb}.h5-banner{width:100%;max-height:180px;object-fit:cover;border-radius:15px;margin-bottom:15px}.h5-section{background:white;border-radius:16px;padding:19px 16px;margin-bottom:14px;border:1px solid #f1eaf4}.h5-section h2{font-size:.9rem;margin-bottom:17px}.h5-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:19px 7px}.h5-link{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;font-size:.71rem;color:#6e6179;line-height:1.45}.platform-icon{width:40px;height:40px;display:grid;place-content:center;border-radius:13px;font-size:1.15rem;font-weight:650;background:#f4e5fa;color:#9144ad}.platform-icon.pink{background:#ffedf2;color:#f1608c}.platform-icon.orange{background:#fff0e5;color:#e99a65}.platform-icon.navy{background:#edf0fa;color:#394774}.h5-link small{font-size:.65rem;color:#bcafc3}.h5-footer{text-align:center;color:#b8a9c1;font-size:.7rem;padding:15px}.h5-wifi{display:flex;align-items:center;justify-content:space-between}.h5-wifi p{font-size:.9rem}.h5-wifi small{font-size:.75rem}.h5-package{display:flex;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}.h5-package img{width:80px;height:80px;object-fit:cover;border-radius:10px}.h5-package p{font-size:.9rem}.h5-package strong{color:var(--pink)}.h5-rich{overflow-wrap:anywhere;font-size:.9rem}.h5-rich img,.h5-rich video{max-width:100%;height:auto}.h5-shell.orange .h5-hero{background:linear-gradient(110deg,#ff9068,#ffc38c)}.h5-shell.business .h5-hero{background:linear-gradient(110deg,#172650,#48568b)}.h5-shell.trend .h5-hero{background:linear-gradient(110deg,#a442b9,#fe82a8)}.work-preview video,.work-preview img{width:100%;max-height:360px;object-fit:contain;border-radius:10px}.work-preview textarea{width:100%;min-height:140px;border:1px solid var(--line);border-radius:10px;padding:12px;margin:12px 0}.mobile-menu-button{display:none}
@media(min-width:1500px){.content{padding-top:40px}}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.store-grid,.library-grid,.package-grid{grid-template-columns:repeat(2,1fr)}.media-grid{grid-template-columns:repeat(3,1fr)}.content{padding:24px}.topbar{padding:0 24px}.grid2{grid-template-columns:1fr}.layout{grid-template-columns:205px 1fr}.sidebar{width:205px;padding:23px 12px}}@media(max-width:760px){.layout{display:block}.sidebar{display:none;width:230px;box-shadow:0 0 0 100vmax #28153260}.sidebar.open{display:flex}.main{width:100%}.topbar{height:64px;padding:0 16px}.topbar .crumb{display:none}.mobile-menu-button{display:block}.content{padding:21px 16px}.welcome{padding:23px}.welcome-symbol{display:none}.welcome h1{font-size:1.45rem}.stats{gap:12px}.stat{padding:17px}.stat strong{font-size:1.65rem}.page-head{align-items:flex-start}.page-head h1{font-size:1.4rem}.store-grid,.library-grid,.package-grid,.copy-list{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.choices{grid-template-columns:repeat(2,1fr)}.media-layout{grid-template-columns:1fr}.media-layout aside{display:flex;flex-wrap:wrap;gap:8px}.media-grid{grid-template-columns:repeat(2,1fr)}.login{grid-template-columns:1fr}.login-art{display:none}.login-form{padding:25px 15px}.modal-body{padding:18px}.modal-head{padding:16px 18px}.card{padding:18px}.topbar .user-name{display:none}.search{max-width:none;width:100%}.toolbar{align-items:stretch}.step{padding:11px;gap:9px}.step .btn{font-size:.75rem;padding:6px 9px}.h5-shell{padding:16px 12px}#toasts{right:12px;left:12px;bottom:15px}.toast{max-width:none}}

.h5-shell.minimal { background:#f6f5fa; }
.h5-shell.minimal .h5-hero { background:#fff; color:#342e46; border:1px solid #e9e4f2; box-shadow:none; }
.h5-shell.minimal .h5-hero small { color:#80748f; }
.h5-shell.minimal .h5-hero a { color:#695096 !important; }
.h5-shell.minimal .h5-link { background:#fff; border:1px solid #eee9f5; box-shadow:none; }
.h5-shell.minimal .platform-icon { background:#eee9f5; color:#75559c; }

.h5-shell.minimal .h5-hero h1 { color:#342e46; }

.h5-module-title{display:flex;align-items:center;gap:8px}.h5-module-title img{width:24px;height:24px;object-fit:contain}.h5-platform-logo{display:block;width:40px;height:40px;object-fit:contain;flex-shrink:0}

/* Reference module geometry with the shared purple/pink brand palette. */
.h5-shell{max-width:430px;padding-left:10px;padding-right:10px}
.h5-shell .nfc-module{--accent:var(--purple);--accent2:var(--pink);margin-bottom:10px;background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 5px 16px rgba(113,50,146,.08);color:var(--ink);font-family:"PingFang SC","Microsoft YaHei",sans-serif;line-height:normal}
.h5-shell .nfc-module-head{margin:0;min-height:40px;padding:10px 13px;display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--line);font-size:14px;font-weight:750;letter-spacing:normal;color:var(--purple);line-height:normal}
.h5-shell .nfc-module-head img,.h5-shell .nfc-module-head svg{width:20px;height:20px;object-fit:contain;flex-shrink:0}
.h5-shell .nfc-module-body{padding:11px}
.h5-shell .nfc-grid{display:grid;gap:8px}.h5-shell .grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.h5-shell .grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.h5-shell .grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.h5-shell .nfc-item{min-width:0;min-height:70px;padding:8px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:color-mix(in srgb,var(--accent) 5%,#fff);border:1px solid color-mix(in srgb,var(--accent) 14%,var(--line));border-radius:13px;font-family:inherit;font-size:11px;font-weight:650;line-height:normal;color:inherit;text-align:center;transition:transform .16s ease,box-shadow .16s ease;-webkit-tap-highlight-color:transparent}
.h5-shell .nfc-item:active{transform:scale(.96)}.h5-shell .nfc-icon{width:34px;height:34px;padding:4px;display:block;object-fit:contain;border-radius:11px;background:#fff;box-shadow:0 2px 8px rgba(113,50,146,.1);flex-shrink:0}
.h5-shell .nfc-item.is-unconfigured{opacity:.72}.h5-shell .nfc-item-status{display:block;margin-top:-4px;color:var(--muted);font-size:9px;font-weight:500}
.h5-shell .publish-grid .nfc-item{min-height:72px}.h5-shell .wechat-grid .nfc-item{min-height:52px;flex-direction:row;font-size:13px}.h5-shell .wechat-grid .nfc-icon{width:30px;height:30px}
.h5-shell .wifi-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.h5-shell .wifi-info{min-width:0}.h5-shell .wifi-name{font-size:15px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.h5-shell .wifi-password{margin-top:3px;color:var(--muted);font-size:12px}.h5-shell .primary-btn{flex-shrink:0;border:0;border-radius:12px;padding:9px 14px;background:var(--gradient);color:#fff;font-family:inherit;font-size:12px;font-weight:700;line-height:normal;box-shadow:0 4px 10px color-mix(in srgb,var(--accent) 28%,transparent)}
@media(max-width:350px){.h5-shell .grid-4{grid-template-columns:repeat(3,minmax(0,1fr))}.h5-shell .nfc-item{font-size:10px}}

.reference-stores .store-card-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 12px; }
.reference-stores .store-card {
    overflow: hidden; background: #fff; border: 1px solid #e9edf3; border-radius: 16px;
    padding: 0; box-shadow: 0 5px 20px rgba(31, 45, 70, .06); transition: box-shadow .2s, transform .2s;
}
.reference-stores .store-card:hover { box-shadow: 0 9px 28px rgba(31, 45, 70, .1); transform: translateY(-1px); }
.reference-stores .store-card .sc-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg,#fcf7fd,#fff5f8); border-bottom: 1px solid #edf1f5; }
.reference-stores .store-card .sc-logo { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; background: var(--gradient); box-shadow: 0 6px 14px rgba(69, 118, 230, .22); }
.reference-stores .store-card .sc-main { min-width: 0; flex: 1; }
.reference-stores .store-card .sc-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.reference-stores .store-card .sc-name { min-width: 0; font-size: 17px; font-weight: 700; color: #202632; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reference-stores .store-card .sc-id { color: #9aa1ad; font-size: 12px; }
.reference-stores .store-card .sc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 5px; color: #737b88; font-size: 12px; }
.reference-stores .store-card .sc-meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.reference-stores .store-card .sc-meta i { color: #9aa5b3; }
.reference-stores .store-card .sc-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.reference-stores .store-card .sc-quick-btn { height: 34px; padding: 0 11px; border: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: #fff; color: #536072; font-size: 12px; white-space: nowrap; box-shadow: 0 2px 8px rgba(30, 45, 70, .07); }
.reference-stores .store-card .sc-quick-btn:hover { color: var(--purple); background: #f4eaf8; }
.reference-stores .store-card .sc-icon-btn { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #667085; box-shadow: 0 2px 8px rgba(30, 45, 70, .07); }
.reference-stores .store-card .sc-icon-btn:hover { color: var(--purple); background: #f4eaf8; }
.reference-stores .store-card .sc-icon-btn.danger:hover { color: #e54848; background: #fff0f0; }
.reference-stores .store-card .sc-content { padding: 14px 18px 18px; }
.reference-stores .store-card .sc-section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; color: #343b47; font-size: 13px; font-weight: 700; }
.reference-stores .store-card .sc-page-name { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9aa1ad; font-size: 12px; font-weight: 400; }
.reference-stores .store-card .sc-config-grid { display: grid; grid-template-columns: repeat(7, minmax(82px, 1fr)); border: 1px solid #edf0f4; border-radius: 13px; overflow: hidden; background: #fff; }
.reference-stores .store-card .sc-config-item { position: relative; min-height: 88px; padding: 12px 5px 10px; border: 0; border-right: 1px solid #f0f2f5; border-bottom: 1px solid #f0f2f5; background: #fff; color: #4d5664; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; font-size: 12px; cursor: pointer; transition: background .18s, color .18s; }
.reference-stores .store-card .sc-config-item:hover { z-index: 1; color: var(--purple); background: #fcf7fd; }
.reference-stores .store-card .sc-config-item .cfg-icon { width: 35px; height: 35px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; background: var(--cfg-bg, #f4eaf8); color: var(--cfg-color, var(--purple)); }
.reference-stores .store-card .sc-config-item .cfg-icon.brand-icon { background: transparent; }
.reference-stores .store-card .sc-config-item .cfg-icon.brand-icon img { display: block; width: 35px; height: 35px; object-fit: contain; border-radius: 10px; }
.reference-stores .store-card .sc-config-item .cfg-label { line-height: 1.2; white-space: nowrap; }
.reference-stores .store-card .sc-empty { padding: 22px; border: 1px dashed #ccd5e2; border-radius: 12px; text-align: center; color: #7c8592; background: #fafbfd; }
.reference-stores .store-card .sc-empty .btn { margin-top: 10px; }
@media (max-width: 992px) { .reference-stores .store-card .sc-config-grid { grid-template-columns: repeat(5, minmax(70px, 1fr)); } }
@media (max-width: 576px) {
    .reference-stores .store-card-list { gap: 12px; }
    .reference-stores .store-card .sc-head { padding: 13px; align-items: flex-start; }
    .reference-stores .store-card .sc-content { padding: 12px; }
    .reference-stores .store-card .sc-meta { display: grid; gap: 3px; }
    .reference-stores .store-card .sc-config-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .reference-stores .store-card .sc-config-item { min-height: 80px; padding: 10px 3px 8px; }
    .reference-stores .store-card .sc-head { flex-wrap: wrap; }
    .reference-stores .store-card .sc-head-actions { width: 100%; justify-content: flex-end; }
    .reference-stores .store-card .sc-quick-btn { flex: 1; min-width: 72px; }
}


.reference-stores svg{width:1em;height:1em;flex-shrink:0}.reference-stores .sc-logo svg{width:22px;height:22px}.reference-stores .sc-section-title>span{display:flex;align-items:center;gap:4px}.reference-stores .sc-id{overflow-wrap:anywhere}.reference-stores .sc-main{overflow:hidden}.store-editor{max-width:800px}.store-editor-basic{max-width:500px}.store-editor-basic .form-grid{grid-template-columns:1fr}.store-editor .field[hidden],.store-editor .check[hidden],.store-editor .form-section[hidden]{display:none}.store-editor .form-section{border-bottom:1px solid var(--line);padding-bottom:8px}.store-editor .field label{font-size:14px}

/* Store dialogs: original grouping, dimensions and hints, shared brand colours. */
.store-editor .modal-head{padding:16px;border-bottom:1px solid var(--line)}.store-editor .modal-head h2{font-size:20px;font-weight:500}.store-editor .modal-body{padding:16px;max-height:calc(100dvh - 190px);overflow:auto}.store-editor .modal-footer{padding:16px;border-top:1px solid var(--line);gap:8px}.store-editor .modal-footer .btn{border-radius:8px;font-size:14px}.store-editor .form-grid{gap:16px}.store-editor .full,.store-editor .store-form-section,.store-editor .store-note{grid-column:1/-1}.store-editor .store-form-section h3{font-size:16px;font-weight:500;border-bottom:1px solid var(--line);padding-bottom:8px;margin:0 0 16px}.store-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.store-editor .field input,.store-editor .field select,.store-editor .field textarea,.store-input-group input{font-size:16px;border:1px solid #ded6e2;border-radius:6px;padding:6px 12px;min-width:0;width:100%;background:white;color:var(--ink)}.store-editor .field label{font-size:16px;font-weight:400}.store-editor .field small{font-size:14px}.store-note{padding:12px 16px;background:#fbf8fc;border:1px solid var(--line);border-radius:6px;color:#756b7c;font-size:14px;line-height:1.5}.store-input-group{display:flex;align-items:center;gap:0;width:100%}.store-input-group input{flex:1;border-radius:6px 0 0 6px}.store-input-group .btn{white-space:nowrap;flex-shrink:0;border-radius:0 6px 6px 0;min-height:38px;padding:6px 12px}.store-label-row{display:flex;justify-content:space-between;align-items:center;gap:8px}.store-text-button{padding:6px 0;font-size:14px;color:var(--purple)}.store-banner-preview img{display:block;max-height:150px;margin-top:8px;border-radius:8px}.store-banner-preview img[hidden],.store-banner-preview button[hidden]{display:none}.store-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.store-template-card{padding:8px;border:1px solid var(--line);border-radius:6px;background:#fff;text-align:center}.store-template-card.selected{border-color:var(--purple);box-shadow:0 0 0 1px var(--purple);background:#faf3fc}.store-template-card img{height:200px;width:100%;object-fit:contain;border:1px solid var(--line);border-radius:6px;background:#fafafa;margin-bottom:8px}.store-template-card strong{font-size:14px}.store-module-group{margin:10px 0}.store-module-group>strong{color:var(--muted);font-size:14px}.store-module-group>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}.store-module-group .check{font-size:14px;align-items:flex-start}.store-switch{border-bottom:1px solid var(--line);padding:8px 0}.store-switch small{display:block;margin-left:26px}.store-chips{display:flex;flex-wrap:wrap;gap:8px;padding:10px;background:#fbf8fc;border:1px solid var(--line);border-radius:12px;min-height:48px;margin-bottom:12px}.store-chip{font-size:14px;padding:5px 9px;border:1px solid var(--line);border-radius:20px;background:#f4eaf8;color:var(--purple)}.store-tutorial{max-width:500px}.store-tutorial .modal-body{padding:0;max-height:80dvh;overflow:auto}.store-tutorial img{display:block;width:100%;height:auto}.store-editor .editor{min-height:260px}.store-editor .modal-footer>a{margin-right:auto}
@media(max-width:767px){.store-fields{grid-template-columns:1fr}.store-module-group>div{grid-template-columns:repeat(2,minmax(0,1fr))}}

.store-qr-dialog{max-width:340px}.store-qr-dialog .modal-footer{justify-content:center}.store-qr-dialog .qr small{overflow-wrap:anywhere}.store-qr-dialog img[hidden]{display:none}.store-editor .extra-row{display:flex;flex-direction:column;gap:8px}.store-editor .extra-row>.btn{align-self:flex-end}

dialog.store-editor{max-height:calc(100dvh - 32px);overflow:hidden}.store-editor::backdrop,.store-tutorial::backdrop{backdrop-filter:none;background:rgba(0,0,0,.5)}.store-editor .modal-body{max-height:calc(100dvh - 200px)}

/* Reference shell geometry; retain the existing purple/pink brand palette. */
.reference-admin,.reference-merchant{font-family:'Microsoft YaHei',Arial,sans-serif}
.reference-admin .layout,.reference-merchant .layout{grid-template-columns:226px minmax(0,1fr)}
.reference-admin .sidebar,.reference-merchant .sidebar{width:226px;padding:0;gap:0}
.reference-admin .sidebar>.brand,.reference-merchant .sidebar>.brand{height:64px;min-height:64px;padding:0 20px;margin:0;border-bottom:1px solid var(--line)}
.reference-merchant .sidebar>.brand{height:58px;min-height:58px}
.reference-admin .sidebar>.brand img,.reference-merchant .sidebar>.brand img{width:36px;height:36px}
.reference-admin .sidebar>.brand small,.reference-merchant .sidebar>.brand small{display:none}
.reference-admin .sidebar>.nav-label,.reference-merchant .sidebar>.nav-label{display:none}
.reference-admin .sidebar nav,.reference-merchant .sidebar nav{overflow-y:auto;flex:1;padding:14px 12px;min-height:0}
.reference-admin .sidebar .nav-link,.reference-merchant .sidebar .nav-link{margin:2px 0;padding:9px 16px;min-height:40px;font-size:.93rem;border-radius:10px}
.reference-admin .sidebar-bottom,.reference-merchant .sidebar-bottom{position:static;padding:12px;margin:0;flex-shrink:0}
.reference-admin .topbar{height:64px;min-height:64px}.reference-merchant .topbar{height:58px;min-height:58px}
.reference-admin .content,.reference-merchant .content{padding:24px;max-width:none}
.nav-parent{width:100%;border:0;background:transparent;text-align:left;font:inherit;cursor:pointer;display:flex;align-items:center;color:inherit}
.nav-chevron{margin-left:auto;transition:transform .18s}.nav-parent[aria-expanded=true] .nav-chevron{transform:rotate(180deg)}
.nav-children[hidden]{display:none!important}.nav-children{margin:4px 0 6px 21px;border-left:1px solid var(--line);padding-left:8px}
.reference-admin .nav-children .nav-link{font-size:.85rem;padding:8px 12px;min-height:34px}.nav-children .nav-icon{display:none}.nav-parent.active-parent{color:var(--purple);font-weight:600}
@media(max-width:760px){.reference-admin .layout,.reference-merchant .layout{display:block}.reference-admin .content,.reference-merchant .content{padding:16px}.reference-admin .sidebar,.reference-merchant .sidebar{width:226px}.reference-admin .topbar,.reference-merchant .topbar{padding:0 16px}}

/* Modal sizes observed in original Bootstrap forms (sm / default / lg). */
.reference-admin #dialog[data-reference-size=normal],.reference-merchant #dialog[data-reference-size=normal]:not(.store-dialog){width:500px;max-width:calc(100vw - 32px)}
.reference-admin #dialog[data-reference-size=large],.reference-merchant #dialog[data-reference-size=large]:not(.store-dialog){width:800px;max-width:calc(100vw - 32px)}
.reference-admin #dialog[data-reference-size=small],.reference-merchant #dialog[data-reference-size=small]{width:300px;max-width:calc(100vw - 32px)}
.reference-admin .modal-head,.reference-merchant .modal-head{padding:16px;border-bottom:1px solid var(--line)}
.reference-admin .modal-body,.reference-merchant .modal-body{padding:16px}.reference-admin .modal-footer,.reference-merchant .modal-footer{padding:12px 16px;border-top:1px solid var(--line)}
.reference-admin .modal-head h2,.reference-merchant .modal-head h2{font-size:1.25rem;font-weight:500}
.reference-admin table th,.reference-merchant table th{font-size:.82rem;padding:13px 14px;font-weight:600;white-space:nowrap}
.reference-admin table td,.reference-merchant table td{font-size:.88rem;padding:13px 14px;vertical-align:middle}
.reference-admin .page-head,.reference-merchant .page-head{margin-bottom:20px}.reference-admin .page-head h1,.reference-merchant .page-head h1{font-size:1.5rem;font-weight:600}
.reference-admin .card,.reference-merchant .card{border-radius:16px}.reference-admin .table-wrap,.reference-merchant .table-wrap{border-radius:16px}

.settings-replica>.content{padding:0!important}.settings-replica .row{display:flex;flex-wrap:wrap;margin:0 -12px}.settings-replica .row>[class*=col-]{padding:0 12px;min-width:0}.settings-replica .col-md-8{width:66.666667%}.settings-replica .col-md-4{width:33.333333%}.settings-replica .col-md-6,.settings-replica .col-lg-6{width:50%}.settings-replica .card{padding:0;overflow:hidden;margin-bottom:24px}.settings-replica .card-header{padding:16px 20px;border-bottom:1px solid var(--line);font-weight:600;display:flex;align-items:center;justify-content:space-between}.settings-replica .card-body{padding:20px}.settings-replica .form-label{display:block;margin-bottom:8px}.settings-replica .form-control,.settings-replica .form-select{display:block;width:100%;padding:8px 12px;border:1px solid var(--line);border-radius:6px;font:inherit;background:white;color:inherit}.settings-replica textarea{min-height:130px;resize:vertical}.settings-replica .form-text,.settings-replica small{font-size:.875rem;color:var(--muted);line-height:1.6}.settings-replica .mb-3{margin-bottom:16px}.settings-replica .mb-4{margin-bottom:24px}.settings-replica .mt-2{margin-top:8px}.settings-replica .mt-3{margin-top:16px}.settings-replica .mt-4{margin-top:24px}.settings-replica .mb-0{margin-bottom:0}.settings-replica .d-flex{display:flex}.settings-replica .justify-content-between{justify-content:space-between}.settings-replica .align-items-center{align-items:center}.settings-replica .gap-2{gap:8px}.settings-replica .flex-wrap{flex-wrap:wrap}.settings-replica .btn-primary{background:var(--gradient);color:white}.settings-replica .btn-outline-primary{border:1px solid var(--purple);color:var(--purple);background:white}.settings-replica .btn-sm{font-size:.875rem;padding:5px 10px}.settings-replica .btn-success{background:var(--gradient);color:white}.settings-replica .alert{padding:12px 16px;border:1px solid var(--line);border-radius:8px;margin-bottom:16px;line-height:1.7;background:#f7f2fb}.settings-replica .text-danger{color:#b34e72}.settings-replica .text-muted{color:var(--muted)}.settings-replica h4{font-size:1.5rem;margin-bottom:24px}.settings-replica h5,.settings-replica h6{font-size:1rem;margin:12px 0}.settings-replica ol,.settings-replica ul{padding-left:22px;line-height:1.9}.settings-replica p{line-height:1.7;margin-bottom:12px}.settings-replica .badge{border-radius:5px;padding:3px 7px;background:#eee5f5;color:var(--purple)}.settings-replica .w-100{width:100%}.settings-replica .d-none{display:none!important}
@media(max-width:767px){.settings-replica .col-md-8,.settings-replica .col-md-4,.settings-replica .col-md-6,.settings-replica .col-lg-6{width:100%}}

/* Reference Bootstrap semantic notice colours take precedence over brand panels. */
:is(.reference-admin,.reference-merchant) .alert-info,:is(.reference-admin,.reference-merchant) .info{color:#055160;background:#cff4fc;border:1px solid #b6effb}
:is(.reference-admin,.reference-merchant) .alert-warning,:is(.reference-admin,.reference-merchant) .notice{color:#664d03;background:#fff3cd;border:1px solid #ffecb5}
:is(.reference-admin,.reference-merchant) .alert-success{color:#0f5132;background:#d1e7dd;border:1px solid #badbcc}
:is(.reference-admin,.reference-merchant) .alert-danger{color:#842029;background:#f8d7da;border:1px solid #f5c2c7}
:is(.reference-admin,.reference-merchant) .alert-primary{color:#084298;background:#cfe2ff;border:1px solid #b6d4fe}
:is(.reference-admin,.reference-merchant) .alert-secondary{color:#41464b;background:#e2e3e5;border:1px solid #d3d6d8}
:is(.reference-admin,.reference-merchant) .alert-light{color:#636464;background:#fefefe;border:1px solid #fdfdfe}
.reference-admin .info,:is(.reference-admin,.reference-merchant) .notice{padding:12px 16px;border-radius:6px;line-height:1.6}

/* 系统设置沿用原站开关与警告按钮样式。 */
.settings-replica .form-switch{display:flex;align-items:center;gap:8px}.settings-replica .form-switch .form-check-input{appearance:none;width:32px;height:16px;min-width:32px;padding:0;margin:0;border:1px solid #bfc3c7;border-radius:16px;background:#fff;position:relative;cursor:pointer}.settings-replica .form-switch .form-check-input:before{content:"";position:absolute;width:12px;height:12px;left:1px;top:1px;border-radius:50%;background:#adb5bd}.settings-replica .form-switch .form-check-input:checked{background:var(--purple);border-color:var(--purple)}.settings-replica .form-switch .form-check-input:checked:before{left:17px;background:#fff}.settings-replica .form-switch .form-check-input:focus-visible{outline:2px solid var(--purple);outline-offset:3px}.settings-replica .btn-warning{background:#ffc107;border:1px solid #ffc107;color:#000}

.modules-replica .module-group{margin-bottom:24px}.modules-replica .module-group h6{border-bottom:1px solid #dee2e6;padding-bottom:8px;margin:0 0 8px;font-weight:500}.modules-replica .module-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 24px}.modules-replica .module-grid label{cursor:pointer}.modules-replica .btn-outline-success{color:#198754;border:1px solid #198754;background:transparent}.modules-replica .btn-outline-secondary{color:#6c757d;border:1px solid #6c757d;background:transparent}.modules-replica #modules-save-status{display:block;margin-top:8px;font-size:14px}@media(max-width:767px){.modules-replica .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:575px){.modules-replica .module-grid{grid-template-columns:1fr}}

/* 支付配置原站栅格：整行模式区、8/4配置与说明、整行虚拟支付区。 */
.settings-replica[data-settings-replica="payconfig"] .col-12{width:100%}
.settings-replica[data-settings-replica="payconfig"] .col-lg-8{width:66.666667%}
.settings-replica[data-settings-replica="payconfig"] .col-lg-4{width:33.333333%}
.settings-replica[data-settings-replica="payconfig"] .align-items-end{align-items:flex-end}
.settings-replica[data-settings-replica="payconfig"] .mb-2{margin-bottom:8px}
.settings-replica[data-settings-replica="payconfig"] .border-primary{border-color:#0d6efd}
.settings-replica[data-settings-replica="payconfig"] .border-success{border-color:#198754}
.settings-replica[data-settings-replica="payconfig"] code{color:#d63384;overflow-wrap:anywhere}
.settings-replica[data-settings-replica="payconfig"] .small{font-size:.875em}
.settings-replica[data-settings-replica="payconfig"] .content>div>h4{margin-bottom:0}
@media(max-width:991px){.settings-replica[data-settings-replica="payconfig"] .col-lg-8,.settings-replica[data-settings-replica="payconfig"] .col-lg-4,.settings-replica[data-settings-replica="payconfig"] .col-lg-6{width:100%}}

.settings-replica[data-settings-replica="dashboard"] .col{flex:1;min-width:100px;padding:0 12px;text-align:center}.settings-replica[data-settings-replica="dashboard"] .col-md-2{width:16.666667%}.settings-replica[data-settings-replica="dashboard"] .stat-value{font-size:32px;font-weight:700}.settings-replica[data-settings-replica="dashboard"] .stat-card{text-align:center}.settings-replica[data-settings-replica="dashboard"] #adminTodayDetails h4{margin-bottom:8px}.settings-replica[data-settings-replica="dashboard"] .mb-2{margin-bottom:8px}
.statistics-filter{display:flex;gap:24px;align-items:flex-end}.statistics-filter>div{width:25%}.statistics-overview{display:grid;grid-template-columns:repeat(4,1fr);text-align:center}.statistics-replica .card-body h4{margin:0 0 8px}.statistics-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px;text-align:center}.statistics-ranking{list-style:none!important;counter-reset:ranking;padding:0!important;margin:0}.statistics-ranking li{counter-increment:ranking;display:flex;align-items:center;gap:8px;border:1px solid #dee2e6;padding:8px 16px}.statistics-ranking li:before{content:counter(ranking) "."}.statistics-ranking li>span:first-child{flex:1}.statistics-ranking li+li{border-top:0}.statistics-replica .statistics-ranking .badge{background:var(--purple);color:white}
@media(max-width:767px){.settings-replica[data-settings-replica="dashboard"] .col-md-2{width:100%}.statistics-metrics{grid-template-columns:repeat(2,1fr)}.statistics-filter{flex-wrap:wrap}.statistics-filter>div{width:100%}}

.settings-replica .col-12{width:100%}.settings-replica .col-md-3{width:25%}.settings-replica .col-md-2{width:16.666667%}.settings-replica .col{flex:1;min-width:0;padding:0 12px}.settings-replica .text-center{text-align:center}.settings-replica .text-end{text-align:right}.settings-replica .mb-2{margin-bottom:8px}.settings-replica .mb-1{margin-bottom:4px}.settings-replica .p-3{padding:16px}.settings-replica .border{border:1px solid #dee2e6}.settings-replica .rounded{border-radius:6px}.settings-replica .h-100{height:100%}.settings-replica .flex-grow-1{flex:1}.settings-replica .ms-3{margin-left:16px}.settings-replica .bg-primary{background:var(--gradient);color:#fff}.settings-replica .bg-success{background:#198754;color:#fff}.settings-replica .bg-warning{background:#ffc107}.settings-replica .bg-secondary{background:#6c757d;color:#fff}.settings-replica .progress-bar{height:100%}.settings-replica .btn-light{background:#f8f9fa;color:#212529}.settings-replica .btn-outline-secondary{border:1px solid #6c757d;background:transparent;color:#6c757d}.merchant-overview .dash-info-card{background:var(--gradient)!important}.merchant-overview #dashCards .card-body{display:flex;align-items:center;gap:12px}.merchant-overview #todayDetails h4{margin:0 0 8px}
@media(max-width:767px){.settings-replica .col-md-3,.settings-replica .col-md-2{width:100%}.merchant-overview .col{min-width:100px;flex-basis:33%}}

.reference-filter{display:flex;align-items:flex-end;gap:16px;margin-bottom:24px}.reference-filter .field{margin:0}.reference-filter>div{min-width:160px}fieldset.form-grid{border:0;padding:0;margin:0 0 16px;min-width:0}@media(max-width:767px){.reference-filter{flex-wrap:wrap}.reference-filter>div{flex:1;min-width:140px}}

.activity-item{background:white;border:1px solid #eef0f3;border-radius:12px;padding:14px;margin-bottom:12px;box-shadow:0 2px 8px #0000000a}.activity-title{font-size:1.05rem;font-weight:600;background:none;border:0;text-align:left;margin-bottom:5px;cursor:pointer}.activity-meta{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.quota-balance{max-width:50%}@media(max-width:767px){.quota-balance{max-width:100%}.activity-meta{align-items:flex-start;gap:12px;flex-direction:column}}

.settings-replica .card-header{display:block}.settings-replica .card-header.d-flex,.modules-replica .card-header{display:flex}.settings-replica .card-header .bi{margin-right:6px}.merchant-overview .dash-info-card small{color:inherit}.reference-merchant .media-layout{grid-template-columns:minmax(180px,25%) minmax(0,1fr)}.settings-replica .gap-3{gap:16px}.settings-replica .align-items-end{align-items:flex-end}
@media(max-width:991px){.settings-replica .col-lg-6{width:100%}}
@media(max-width:767px){.reference-merchant .media-layout{grid-template-columns:1fr}}

.film-section{border-top:1px solid var(--line);padding:12px 0}.film-section summary{cursor:pointer;font-weight:600}.film-section>.form-grid{padding-top:16px}.film-stepper{display:flex;align-items:center}.film-stepper input{min-width:0;text-align:center}.film-picker{width:800px;max-width:calc(100vw - 32px);max-height:90vh}.film-picker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.film-picker-item{border:1px solid var(--line);padding:10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.film-picker-item img{width:84px;height:48px;object-fit:contain}@media(max-width:575px){.film-picker-grid{grid-template-columns:1fr}}

[hidden]{display:none!important}
#default-plan-inline .form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:767px){#default-plan-inline .form-grid{grid-template-columns:1fr}}
.reference-merchant .media-layout>*{min-width:0}.reference-merchant .media-layout .card-head{flex-wrap:wrap}.reference-merchant .media-item{min-width:0}@media(max-width:767px){.reference-merchant .media-layout{grid-template-columns:minmax(0,1fr)}.reference-merchant .media-layout aside{display:block}.reference-merchant .media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Reference copy editor: half-width title, quarter-width platform and image tiles. */
.copy-edit-dialog .form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.copy-edit-title{grid-column:span 2}.copy-edit-platform{grid-column:span 1}
.copy-edit-images{display:flex;flex-wrap:wrap;gap:8px}
.copy-edit-image,.copy-edit-add{width:80px;height:80px;position:relative;border-radius:8px;overflow:hidden;border:1px solid #e3e6f0;background:#f8f9fa}
.copy-edit-image img{width:100%;height:100%;object-fit:cover;display:block}
.copy-edit-image button{position:absolute;right:2px;top:2px;background:rgba(220,53,69,.9);color:white;border:0;border-radius:50%;width:20px;height:20px;padding:0;font-size:14px;line-height:1;cursor:pointer}
.copy-edit-add{border:1px dashed #adb5bd;background:#fff;font-size:32px;color:#adb5bd;cursor:pointer}
@media(max-width:767px){.copy-edit-dialog .form-grid{grid-template-columns:minmax(0,1fr)}.copy-edit-title,.copy-edit-platform{grid-column:1}}

/* All video players preserve the source aspect ratio, including portrait footage. */
video{max-width:100%;height:auto;object-fit:contain;aspect-ratio:auto}
.media-item video{display:block;width:100%;height:auto;max-height:360px;object-fit:contain;border-radius:8px;background:#f5f1f7}
/* Store-scoped merchant workspace */
.reference-merchant .sidebar .store-nav{padding-top:0}.reference-merchant .sidebar .nav-label{margin:10px 12px 6px;letter-spacing:.04em}.reference-merchant .sidebar .nav-link{min-height:36px;padding:7px 14px;font-size:13px}.reference-merchant .sidebar .merchant-nav{flex:0 0 auto;padding:0 12px 4px;border-top:1px solid #eee8f3}.reference-merchant .sidebar .merchant-nav-divider{border:0;padding:0;margin-top:10px}.reference-merchant .store-switcher{flex-shrink:0}
.compute-hero strong small{color:#f3e9ff}.compute-orders table{min-width:680px}.compute-plan-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.store-delete-dialog select{border:1px solid #ded5e9;border-radius:8px;padding:7px 10px;background:#fff;color:#473754}
.reference-merchant .store-switcher{margin:8px 16px 12px;padding:15px;border:1px solid #e9e4f2;border-radius:14px;background:linear-gradient(140deg,#faf6ff,#f2f7ff)}
.store-switcher label{display:block;font-size:12px;font-weight:700;color:#655779;margin-bottom:8px}
.store-switcher select{width:100%;min-height:42px;border:1px solid #ddd4ed;border-radius:8px;padding:8px;color:#34284b;background:white;font-weight:600}
.store-switcher small{display:block;margin-top:8px;font-size:11px;color:#716780}
.reference-merchant .merchant-nav-divider{border-top:1px solid #edeaf2;margin-top:14px;padding-top:18px}
.current-store-badge{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 12px;border-radius:20px;background:#f3effa;color:#6a489b;font-size:12px}
.add-store-card{text-align:center;max-width:780px;margin:28px auto;padding:48px 28px!important;border:1px solid #e9e2f4}
.add-store-card p{color:#797183;line-height:1.8}.add-store-symbol{width:72px;height:72px;display:grid;place-items:center;margin:0 auto 24px;border-radius:22px;background:linear-gradient(135deg,#efe7ff,#ffe9e9);color:#8a53c5;font-size:38px}
.store-creation-steps{display:flex;justify-content:center;flex-wrap:wrap;gap:18px;margin:28px 0}.store-creation-steps span{background:#f7f5fa;padding:10px 16px;border-radius:8px;color:#67557b;font-size:13px}
.compute-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:32px;border-radius:18px;color:#fff;background:linear-gradient(115deg,#674a9d,#8764c0 60%,#b28dcc);margin-bottom:24px;box-shadow:0 8px 24px #6d4c9818}
.compute-hero>div>strong{display:block;font-size:48px;line-height:1.4;font-weight:700}.compute-hero strong small{font-size:15px;margin-left:10px}.compute-hero p{margin-bottom:0;color:#f1e9ff}.compute-hero-details{display:grid;gap:14px;min-width:240px}.compute-hero-details span{display:flex;justify-content:space-between;gap:28px;font-size:13px}
.compute-plan-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px;margin:18px 0}.compute-plan{padding:24px!important;border:1px solid #e9e1f1!important;box-shadow:none!important}.compute-plan h3{margin:18px 0 12px}.compute-plan-points{font-size:30px;font-weight:700;color:#694699;margin:12px 0}.compute-plan-points small{font-size:13px;font-weight:400}.compute-plan-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #eee8f5;padding-top:20px;margin-top:20px}.compute-plan-footer strong{font-size:23px;color:#3f304e}
.store-delete-dialog{width:min(780px,94vw)!important}.store-delete-intro{display:flex;gap:16px;align-items:center}.store-delete-intro h3{margin:0 0 8px}.store-delete-intro p{margin:0;color:#787181}.store-danger-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:#fff0f0;color:#c83b4b;font-size:25px;font-weight:700}
.store-delete-metrics{display:flex;gap:16px;flex-wrap:wrap;padding:18px;background:#f8f6fb;border-radius:12px;margin:20px 0}.store-delete-metrics span{flex:1;color:#786f82;min-width:180px}.store-delete-metrics strong{display:block;color:#3e3449;font-size:22px;margin-top:7px}.store-delete-modes{border:0;padding:0;margin:20px 0}.store-delete-modes legend{font-weight:600;margin-bottom:14px}.store-delete-modes>label{display:flex;gap:12px;align-items:center;padding:16px;border:1px solid #e6e0ed;border-radius:10px;margin:10px 0;cursor:pointer}.store-delete-modes>label:has(input:checked){border-color:#9870c2;background:#faf7fe}.store-delete-modes small{display:block;color:#807889;margin-top:6px}.store-delete-modes label:has(input:disabled){opacity:.65;cursor:default}
.store-transfer-list{max-height:330px;overflow:auto;border:1px solid #eae5f0;border-radius:10px}.store-transfer-row{display:flex;gap:14px;padding:14px;align-items:center;border-bottom:1px solid #f0ecf4}.store-transfer-row>label{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.store-transfer-row label span{min-width:0}.store-transfer-row strong{display:block;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:330px}.store-transfer-row small{font-size:11px;color:#9986af}.store-transfer-row select{max-width:220px;min-height:38px}.store-danger-note{background:#fff4f2;border:1px solid #f5d9d4;color:#9f4436;padding:16px;border-radius:10px;line-height:1.7}.store-clear-confirm{margin-top:16px;color:#ad3f38}.store-delete-dialog [data-delete-error]{color:#b5353f}.store-balance-summary{padding:24px!important;margin-top:24px}
@media(max-width:640px){.compute-hero{padding:24px;align-items:stretch;flex-direction:column;gap:20px}.compute-hero-details{min-width:0}.compute-hero>div>strong{font-size:38px}.store-transfer-row{flex-wrap:wrap}.store-transfer-row>label{flex-basis:100%}.store-transfer-row select{max-width:100%;width:100%}.store-transfer-row strong{max-width:240px}.current-store-badge{max-width:110px}.add-store-card{padding:28px 18px!important}.store-delete-dialog .toolbar{align-items:stretch;flex-direction:column}}

/* Anchored store picker: available for every merchant account. */
.reference-merchant .store-switch-entry{flex-shrink:0;padding:16px 12px 10px}
.store-switch-button{display:flex;align-items:center;gap:10px;width:100%;padding:14px 12px;border:1.5px solid #b88ad9;border-radius:15px;background:linear-gradient(115deg,#fff,#faf5ff);box-shadow:0 5px 14px #69399010;text-align:left;color:#41205d;min-height:80px}
.store-switch-button:hover,.store-switch-button[aria-expanded=true]{border-color:#8944b7;box-shadow:0 6px 20px #71369220;background:#fcf8ff}.store-switch-button:focus-visible,.store-picker-option:focus-visible{outline:3px solid #bd95e3;outline-offset:3px}
.store-switch-symbol{font-size:27px;color:#8945b4;line-height:1}.store-switch-text{flex:1;min-width:0}.store-switch-text strong{display:block;font-size:15px}.store-switch-text small{display:block;font-size:12px;color:#8b7c99;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.store-switch-chevron{font-size:22px;transition:transform .15s}.store-switch-button[aria-expanded=true] .store-switch-chevron{transform:rotate(180deg)}
.store-picker{position:fixed;inset:auto;margin:0;padding:0;border:1px solid #e4d5ee;border-radius:19px;background:#fff;color:#352043;box-shadow:0 18px 60px #34204430;overflow:auto;width:540px;max-width:calc(100vw - 24px);font-size:14px}
.store-picker::backdrop{background:transparent}.store-picker header{display:flex;justify-content:space-between;gap:12px;padding:22px 22px 14px}.store-picker header h2{font-size:20px;line-height:1.5}.store-picker header p{color:#9a8aa8;font-size:12px;margin-top:4px}.store-picker header button{align-self:flex-start;width:30px;height:30px;border-radius:8px;color:#8c769c;font-size:23px}.store-picker header button:hover{background:#f4edf9}
.store-picker-search{display:flex;gap:10px;align-items:center;margin:0 22px 16px;padding:9px 12px;background:#faf7fc;border:1px solid #ece3f1;border-radius:10px;color:#9270ab}.store-picker-search input{width:100%;border:0!important;outline:none;background:transparent;font-size:13px;color:#4a365c;padding:0!important;min-width:0}.store-picker-search:focus-within{border-color:#a867cd}
.store-picker-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 22px 20px;max-height:340px;overflow:auto}.store-picker-option{position:relative;display:flex;flex-direction:column;gap:9px;min-width:0;min-height:112px;padding:16px;border:1px solid #e3dce8;border-radius:14px;text-align:left;background:#fff;color:#382349}.store-picker-option:hover{border-color:#b17acf;background:#fdfaff}.store-picker-option.selected{border:2px solid #9145ba;background:linear-gradient(115deg,#faf2ff,#fff8fc);padding:15px;box-shadow:0 3px 9px #8b47b512}.store-picker-name{font-size:15px;font-weight:650;line-height:1.5;padding-right:17px;overflow-wrap:anywhere}.store-picker-meta{display:flex;align-items:center;gap:5px;font-size:11px;color:#93829e}.store-status-dot{width:6px;height:6px;border-radius:50%;background:#64b99b}.store-status-dot.disabled{background:#a99eae}.store-picker-current{margin-left:auto;color:#9145ba}.store-picker-address{color:#ab9fb2;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.store-picker-check{position:absolute;right:12px;top:16px;display:grid;place-items:center;background:#9349bb;color:#fff;border-radius:50%;width:20px;height:20px;font-size:13px}.store-picker-empty{grid-column:1/-1;padding:24px;text-align:center;color:#9b8ba6}.store-picker footer{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;border-top:1px solid #f0e8f5;color:#a28eaf;font-size:12px;background:#fcfaff}
.reference-stores .store-card.is-current-store{border-color:#b985d5;box-shadow:0 5px 20px #8545aa12}.current-store-tag{background:#f3e6fc;color:#9145ba;font-size:11px}
@media(max-width:600px){.store-picker header{padding:18px 16px 12px}.store-picker-search{margin:0 16px 14px}.store-picker-options{padding:0 16px 16px;gap:10px}.store-picker-option{padding:12px;min-height:112px}.store-picker-option.selected{padding:11px}.store-picker-name{font-size:13px}.store-picker-check{right:8px;top:13px;width:17px;height:17px}.store-picker-meta{flex-wrap:wrap}.store-picker-current{margin-left:0}.store-picker footer{padding:12px 16px}}

/* Store-switch reference specification: graphite navigation, lavender cards, outlined SVGs. */
:is(.reference-merchant,.reference-admin) .layout{grid-template-columns:260px minmax(0,1fr)}
:is(.reference-merchant,.reference-admin) .sidebar{width:260px;background:radial-gradient(ellipse at 100% 90%,#244b8d 0,transparent 50%),linear-gradient(155deg,#494953 0%,#1a1f29 46%,#132139 100%);border-right:1px solid #3d4051;color:#f7f7ff}
:is(.reference-merchant,.reference-admin) .sidebar>.brand{border-color:#ffffff13;height:64px;min-height:64px}:is(.reference-merchant,.reference-admin) .sidebar>.brand span{background:none;color:#fff;font-size:21px;letter-spacing:-.5px}:is(.reference-merchant,.reference-admin) .sidebar>.brand img{box-shadow:0 0 15px #cda5ff18}
:is(.reference-merchant,.reference-admin) .sidebar .nav-label{color:#b8b8c9;font-size:11px;margin:12px 12px 7px}.reference-merchant .sidebar .merchant-nav{border-color:#ffffff16;background:#10142018}
:is(.reference-merchant,.reference-admin) .sidebar .nav-link{color:#f1eff6;font-size:14px;min-height:40px;padding:9px 14px;gap:13px;border:1px solid transparent;border-radius:12px;margin:3px 0}:is(.reference-merchant,.reference-admin) .sidebar .nav-link:hover{background:#ffffff0c;border-color:#ffffff14}:is(.reference-merchant,.reference-admin) .sidebar .nav-link.active{color:#fff;background:linear-gradient(110deg,#8b4dba,#70479e);border-color:#cf9ee766;box-shadow:0 4px 14px #06091215;font-weight:600}
:is(.reference-merchant,.reference-admin) .sidebar .nav-icon{display:flex;width:20px;height:20px;flex-shrink:0;color:#ede9f7}.nav-icon svg{width:20px;height:20px}.nav-active-arrow{display:none;margin-left:auto;width:20px;height:20px;background:#cdb1f031;border:1px solid #e9d5ff47;border-radius:50%;align-items:center;justify-content:center}.nav-active-arrow svg{width:13px;height:13px}.nav-link.active .nav-active-arrow{display:flex}
.reference-merchant .store-switch-entry{padding:14px 12px 8px}.store-current-card{display:flex;align-items:center;gap:12px;padding:14px 12px;margin:0 0 14px;border:1.5px solid #7b4294;border-radius:12px;background:linear-gradient(110deg,#e6d4fa 0%,#fff9ff 60%,#e9dfff 100%);box-shadow:0 4px 13px #160d2226;color:#341441;min-height:74px}.store-current-card>div{min-width:0;flex:1}.store-current-card strong{display:block;font-size:14px;line-height:1.5}.store-current-card small{display:block;font-size:12px;color:#4f365d;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:4px}.store-current-icon{width:30px;height:30px;flex:none;color:#6f258a}.store-current-icon svg{width:100%;height:100%}
.store-switch-button{min-height:54px;padding:10px 12px;gap:10px;border:1px solid #bab1c16b;border-radius:14px;background:linear-gradient(110deg,#ffffff29,#ffffff13);box-shadow:inset 0 1px 0 #ffffff15;color:#fff}.store-switch-button>strong{font-size:14px;white-space:nowrap}.store-switch-button:hover,.store-switch-button[aria-expanded=true]{background:linear-gradient(110deg,#ffffff36,#d9bdf32b);border-color:#dec2f4a6;box-shadow:0 0 16px #b481d91a}.store-switch-symbol{width:23px;height:23px;display:flex;flex:none;color:#f4e5ff;filter:drop-shadow(0 0 6px #d3a4f28f)}.store-switch-symbol svg{width:100%;height:100%}.store-switch-capsule{display:flex;align-items:center;gap:4px;margin-left:auto;padding:5px 8px;border:1px solid #a86fc0;border-radius:99px;background:linear-gradient(180deg,#edcef9,#fffaff);box-shadow:0 0 0 2px #cfb0e52e;color:#62317b;font-weight:600;font-size:11px;white-space:nowrap}.store-switch-capsule svg{width:16px;height:16px;flex:none}
.store-picker{border:1px solid #cbc5d5;border-radius:16px;box-shadow:0 12px 32px #2c194d30;background:#fff;color:#211328}.store-picker header{padding:20px 20px 14px;align-items:center}.store-picker header h2{font-size:19px;font-weight:700}.store-picker header button{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#f5f3f8;border:1px solid #efecf3;color:#5f2c77}.store-picker header button svg{width:18px;height:18px}.store-picker-search{height:36px;min-height:36px;margin:0 20px 16px;border:1.5px solid #6f3189;border-radius:10px;background:#fff;padding:0 12px;gap:10px}.store-picker-search input{height:32px;font-size:13px!important;color:#32253d}.store-picker-search input::placeholder{color:#92909a}.store-picker-search>svg{width:18px;height:18px;flex:none;color:#8b8594}.store-picker-search:focus-within{border-color:#7c5cff;box-shadow:0 0 0 2px #7c5cff12}
.store-picker-options{gap:12px;padding:0 20px 16px}.store-picker-option{min-height:116px;padding:16px 14px;gap:10px;border:1px solid #bdbac1;border-radius:12px;background:#fff;box-shadow:none}.store-picker-option:hover{border-color:#9f74b7;background:#faf7fc}.store-picker-option.selected{border:2px solid #772795;border-radius:12px;padding:15px 13px;background:linear-gradient(125deg,#f0e0fb,#fbf2fb 65%,#ece0ff);box-shadow:none}.store-picker-name{font-size:13px;font-weight:500;color:#201225;line-height:1.5;padding-right:22px}.store-picker-option.selected .store-picker-name{font-size:14px;font-weight:700}.store-picker-meta{color:#777080;font-size:12px;gap:7px}.store-status-dot{background:#22c55e;width:7px;height:7px}.store-picker-current{font-size:12px;color:#5a2574}.store-picker-check{top:15px;right:12px;width:23px;height:23px;background:#7b249b;border:1px solid #672182;box-shadow:none}.store-picker-check svg{width:17px;height:17px}.store-picker-address{font-size:11px;color:#9b929f}.store-picker footer{padding:12px 20px;background:#fff;border-color:#eeeaf2}.store-picker footer a{display:flex;align-items:center;gap:3px;color:#73418f}.store-picker footer svg{width:14px;height:14px}
.reference-merchant .sidebar-bottom .quota-mini{position:relative;background:#fff;border:1px solid #e5dbf0;border-radius:12px;padding:12px 12px 12px 47px;color:#372044;font-size:11px}.reference-merchant .sidebar-bottom .quota-mini strong{color:#4d2767;font-size:22px}.quota-card-icon{position:absolute;left:12px;top:19px;width:25px;height:25px;color:#72478e}.quota-card-icon svg{width:100%;height:100%}.reference-merchant .quota-mini a{color:#6e3b8b}
@media(max-width:760px){:is(.reference-merchant,.reference-admin) .layout{display:block}:is(.reference-merchant,.reference-admin) .sidebar{width:260px}.store-picker-options{gap:10px;padding:0 16px 16px}.store-picker-search{margin-left:16px;margin-right:16px}.store-picker header{padding:16px}.store-picker-option{padding:13px 11px}.store-picker-option.selected{padding:12px 10px}.store-picker-name{font-size:13px}.store-picker-option.selected .store-picker-name{font-size:14px}.store-picker-meta{gap:5px;font-size:11px}.store-picker-current{font-size:11px}.store-picker-check{width:20px;height:20px;right:9px;top:13px}.store-picker-check svg{width:15px;height:15px}}

/* Preserve the original brand artwork and share navigation treatment across both consoles. */
:is(.reference-merchant,.reference-admin) .sidebar>.brand img{display:block;flex:none;width:40px;height:40px;object-fit:contain;border-radius:10px;box-shadow:none;background:#fff}
.reference-admin .sidebar .nav-parent.active-parent{color:#edceff;background:#ffffff0c}
.reference-admin .nav-chevron{display:flex;width:16px;height:16px;align-items:center;justify-content:center;transform:rotate(90deg)}
.reference-admin .nav-chevron svg{width:16px;height:16px}
.reference-admin .nav-parent[aria-expanded=true] .nav-chevron{transform:rotate(270deg)}
.reference-admin .nav-children{border-left-color:#ffffff26;margin-left:23px;padding-left:8px}
.reference-admin .sidebar .nav-children .nav-link{padding:8px 10px;font-size:13px;gap:10px;min-height:38px}
.reference-admin .sidebar .nav-children .nav-icon{display:flex;width:18px;height:18px}
.reference-admin .nav-children .nav-icon svg{width:18px;height:18px}
.reference-admin .sidebar-bottom .quota-mini{background:#fff;border:1px solid #e5dbf0;border-radius:12px;color:#372044;padding:14px}
.reference-admin .sidebar-bottom .quota-mini small{color:#807387}
:is(.reference-merchant,.reference-admin) .sidebar .nav-link:focus-visible{outline:2px solid #e3bcff;outline-offset:2px}
:is(.reference-merchant,.reference-admin) .sidebar nav{scrollbar-width:thin;scrollbar-color:#8c809d55 transparent}

/* Full original logo lockup, with its artwork and lettering kept together. */
:is(.reference-merchant,.reference-admin) .sidebar>.brand-wordmark{height:88px;min-height:88px;justify-content:center;padding:8px 20px}
:is(.reference-merchant,.reference-admin) .sidebar>.brand-wordmark img{width:216px;height:72px;max-width:100%;object-fit:contain;border-radius:0;background:transparent;box-shadow:none}

.quota-store-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#807387;margin:2px 0}

/* Permission-scoped management panels. */
.business-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.business-head h1,.business-head h2{margin:0}.business-head p{margin:4px 0 0;color:#81778e;font-size:13px}.business-table{overflow:auto}.business-table table{width:100%;border-collapse:collapse}.business-table th,.business-table td{text-align:left;padding:12px;border-bottom:1px solid #ede8f3;vertical-align:top;white-space:normal}.business-table th{color:#75677f;font-size:12px;font-weight:650}.business-table small{display:block;color:#81778e;margin-top:3px}.business-table .actions{display:flex;gap:6px;flex-wrap:wrap}.business-note{background:#f1e8fb;border:1px solid #dec9ee;color:#51316b;padding:12px 14px;border-radius:10px;margin-bottom:16px;line-height:1.6}.business-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.business-permissions label{display:flex;align-items:flex-start;gap:8px;color:#4a3b55;font-size:13px}.permission-group{border:1px solid #e8deef;border-radius:12px;padding:14px 16px;margin:12px 0;background:#fff}.permission-group h3{margin:0 0 10px;color:#4e2c65;font-size:15px}.permission-group .business-permissions{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){.business-head{align-items:flex-start;flex-direction:column;gap:10px}.business-table{font-size:13px}.business-table th,.business-table td{padding:10px 8px}.business-permissions,.permission-group .business-permissions{grid-template-columns:1fr}.business-note{font-size:13px}}

.business-permissions input[type=checkbox]{accent-color:#7c3eaa}.permission-group legend{padding:0 6px;font-weight:600;color:#51316b}.permission-group label{padding:4px 0}

/* Platform credentials use the same readable business form controls. */
.channel-settings{max-width:1100px;margin:auto}.channel-config{display:grid;gap:16px}.channel-config .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.channel-config label{display:grid;gap:6px;font-size:14px;font-weight:500;min-width:0}.channel-config input,.channel-config select{width:100%;min-width:0;height:40px;border:1px solid #dddce7;border-radius:12px;padding:0 12px;background:#fff;color:#282336}.channel-config input[readonly]{background:#f7f7fb;color:#686278;font-size:12px}.channel-config input:focus,.channel-config select:focus{outline:2px solid #7c5cff55;outline-offset:1px}.channel-config .error:empty{display:none}.channel-config .error{color:#b42342}.channel-config .toolbar{margin:0}.channel-config p{font-size:13px}.channel-config .btn.primary{background:linear-gradient(120deg,#7C5CFF,#6366F1);border-radius:12px}.channel-config:focus-within{border-color:#d5cbff}@media(max-width:700px){.channel-config{padding:16px}.channel-config .form-grid{grid-template-columns:1fr}.channel-config .toolbar{flex-wrap:wrap}.channel-config button[type=submit]{width:100%}}

/* H5 publication state survives OAuth redirects and manual refreshes. */
.h5-publication-status{display:grid;gap:14px;margin:0 0 14px;padding:16px;background:#fff;border:1px solid #e7def0;border-radius:16px;box-shadow:0 5px 16px rgba(113,50,146,.08)}.h5-publication-status h2{margin:3px 0 5px;color:#603777;font-size:15px}.h5-publication-status p{margin:0 0 7px;color:#756b7c;font-size:12px;line-height:1.65}.h5-publication-status>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.h5-publication-status>.actions:has(>:only-child){grid-template-columns:1fr}.h5-publication-status .btn{min-width:0;padding-inline:10px}
#dialog .coupon-result{text-align:center;padding:8px}#dialog .coupon-result>strong{display:block;margin:0 auto 12px;color:var(--purple);font-size:2rem;line-height:1.2;letter-spacing:.08em;overflow-wrap:anywhere;word-break:break-word}#dialog .coupon-result p{margin:6px 0}#dialog .coupon-result small{display:block;margin-top:14px}

.h5-body{--purple:#7C5CFF;--gradient:linear-gradient(120deg,#7C5CFF,#6366F1)}.h5-body .h5-brand{display:flex;align-items:center;justify-content:space-between;gap:12px}.h5-body .h5-brand-logo{display:block;width:150px;height:50px;object-fit:contain;background:transparent;border-radius:0}.h5-body .h5-brand small{font-size:12px}.h5-body .btn{border-radius:12px;min-height:40px}.h5-body .h5-hero{border-radius:16px}.h5-body dialog{border-radius:16px}
