/* Customer pages use their own compact layout, separate from the management UI. */
.h5-body{--purple:#1677ff;--pink:#1677ff;--ink:#1f2329;--muted:#667085;--line:#e5e9ef;--surface:#fff;--bg:#f5f7fa;--gradient:#1677ff;background:#f5f7fa;color:var(--ink);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
.h5-body .h5-shell{width:100%;max-width:480px;min-height:100dvh;margin:auto;padding:12px 16px 24px;background:#f5f7fa}
.h5-body .h5-brand{min-height:48px;margin:0 0 16px;gap:8px}
.h5-body .h5-brand-logo{width:132px;height:44px;flex-shrink:0}
.h5-body .h5-brand small{font-size:11px;color:#667085;white-space:nowrap}
.h5-body .h5-brand-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:0}

.h5-body .h5-banner{display:block;width:100%;max-height:180px;margin-bottom:12px;border-radius:10px}
.h5-body .h5-shell .h5-hero{padding:20px;margin-bottom:16px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:none}
.h5-body .h5-hero .h5-eyebrow{display:block;margin-bottom:6px;color:#1677ff;font-size:12px;font-weight:600;letter-spacing:.04em}
.h5-body .h5-hero h1{color:var(--ink);font-size:22px;line-height:1.45;letter-spacing:0;overflow-wrap:anywhere}
.h5-body .h5-hero p{margin-top:8px;font-size:13px;line-height:1.7;color:#596579;opacity:1;overflow-wrap:anywhere}
.h5-body .h5-store-details:not(:empty){margin-top:14px;padding-top:4px;border-top:1px solid #edf0f4}
.h5-body .h5-phone{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:40px;color:#1677ff;font-weight:500}
.h5-body .h5-phone span{font-variant-numeric:tabular-nums}
.h5-body .h5-shell .nfc-module,.h5-body .h5-section{margin:0 0 16px;padding:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:none;overflow:hidden}
.h5-body .h5-section{padding:16px}
.h5-body .h5-section>h2{margin:0 0 12px;color:var(--ink);font-size:16px;line-height:1.5}
.h5-body .h5-shell .nfc-module-head{min-height:0;padding:16px 16px 0;border:0;font-size:16px;font-weight:600;line-height:1.5;color:var(--ink)}
.h5-body .h5-section-note{margin:5px 16px 0;color:#667085;font-size:12px;line-height:1.6}
.h5-body .h5-shell .nfc-module-body{padding:14px 12px 16px}
.h5-body .h5-shell .nfc-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.h5-body .h5-shell .publish-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.h5-body .h5-shell .service-grid:has(>.nfc-item:only-child){grid-template-columns:minmax(0,1fr)}
.h5-body .h5-shell .nfc-item{min-height:88px;min-width:0;padding:12px 4px;gap:8px;border:1px solid #edf0f4;border-radius:8px;background:#fff;color:var(--ink);font-size:12px;font-weight:500;line-height:1.45;box-shadow:none}
.h5-body .h5-shell .nfc-icon{width:32px;height:32px;padding:0;border-radius:8px;background:transparent;box-shadow:none}
.h5-body .h5-shell .publish-grid .nfc-item{min-height:118px;background:#f5faff;border-color:#d8e9ff}
.h5-body .h5-shell .service-grid>.nfc-item:only-child{min-height:60px;flex-direction:row;justify-content:flex-start;gap:12px;padding:12px 16px;font-size:13px}
.h5-body .h5-shell .nfc-item:not(.is-unconfigured):hover{border-color:#91caff;background:#f0f7ff}
.h5-body .h5-shell .nfc-item-status{margin:0;color:#1677ff;font-size:11px;font-weight:400}
.h5-body .h5-shell .nfc-item.is-unconfigured{opacity:1;background:#f7f8fa;border-color:transparent;color:#667085}
.h5-body .h5-shell .nfc-item.is-unconfigured .nfc-icon{opacity:.6}
.h5-body .h5-shell .nfc-item.is-unconfigured .nfc-item-status{color:#667085}
.h5-body .h5-activity-empty{margin:0 0 16px;padding:14px 16px;background:#edf5ff;border:1px solid #d8e9ff;border-radius:10px}
.h5-body .h5-activity-empty h2{font-size:14px;font-weight:600;line-height:1.5;color:#344054}
.h5-body .h5-activity-empty p{margin-top:4px;color:#667085;font-size:12px;line-height:1.65}
.h5-body .h5-shell .wifi-row{align-items:center;gap:10px}
.h5-body .h5-shell .wifi-info{flex:1}
.h5-body .h5-shell .wifi-name{white-space:normal;overflow-wrap:anywhere;font-size:14px}
.h5-body .h5-shell .wifi-password{overflow-wrap:anywhere;color:#667085;font-size:12px}
.h5-body .h5-shell .primary-btn{min-height:44px;border:1px solid #1677ff;border-radius:8px;padding:9px 14px;background:#1677ff;box-shadow:none;font-size:13px;font-weight:500}
.h5-body .btn{min-height:44px;padding:9px 14px;border-radius:8px;border-color:#d9dfe8;font-size:13px;font-weight:500;box-shadow:none;white-space:nowrap}
.h5-body .btn:hover{transform:none;box-shadow:none}
.h5-body .btn.primary{background:#1677ff;border:1px solid #1677ff;color:#fff}
.h5-body .btn.soft{background:#f0f7ff;border-color:#d8e9ff;color:#1677ff}
.h5-body .h5-package{align-items:flex-start;gap:12px;padding:14px 0}
.h5-body .h5-package:last-child{padding-bottom:0;border-bottom:0}
.h5-body .h5-package img{width:72px;height:72px;flex-shrink:0;border-radius:8px}
.h5-body .h5-package-info{flex:1;min-width:0}
.h5-body .h5-package p{font-size:14px;overflow-wrap:anywhere}
.h5-body .h5-package .actions{margin-top:10px;gap:8px}
.h5-body .h5-package strong{font-size:17px;color:#cf3d24}
.h5-body .h5-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 8px}
.h5-body .h5-link{min-height:60px;justify-content:center;color:#344054;font-size:12px;overflow-wrap:anywhere}
.h5-body .h5-extra-image{width:40px;height:40px;object-fit:cover;border-radius:8px}
.h5-body .h5-unavailable{margin:0 0 16px;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.h5-body .h5-unavailable summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px;padding:12px 16px;color:#596579;font-size:13px;cursor:pointer;list-style:none}
.h5-body .h5-unavailable summary::-webkit-details-marker{display:none}
.h5-body .h5-unavailable summary small{margin-left:4px;font-size:11px;color:#667085}
.h5-body .h5-disclosure{font-size:20px;line-height:1;transition:transform .15s}
.h5-body .h5-unavailable[open] .h5-disclosure{transform:rotate(180deg)}
.h5-body .h5-unavailable-note{margin:0;padding:0 16px 12px;font-size:12px;color:#667085}
.h5-body .h5-unavailable .nfc-module{margin:0;border:0;border-top:1px solid #edf0f4;border-radius:0}
.h5-body .h5-unavailable .nfc-module-head{font-size:13px;color:#667085;padding-top:12px}
.h5-body .h5-unavailable .nfc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.h5-body .h5-unavailable .nfc-item{min-height:90px}
.h5-body .h5-footer{padding:10px 0 0;color:#667085;font-size:11px;line-height:1.6}
.h5-body .h5-publication-status{margin-bottom:16px;padding:16px;border-color:#d8e9ff;border-radius:12px;box-shadow:none}
.h5-body .h5-publication-status h2{color:#1f2329;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.h5-body .h5-publication-status p{color:#667085}
.h5-body dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #e5e9ef;border-radius:12px;box-shadow:0 16px 48px #10204030}
.h5-body dialog::backdrop{background:#172b4d66;backdrop-filter:none}
.h5-body .modal-head{padding:14px 16px;border-color:#edf0f4}
.h5-body .modal-head h2{font-size:17px;line-height:1.5}
.h5-body .modal-head [data-close]{display:grid;place-items:center;min-width:44px;min-height:44px;margin:-6px -8px -6px 8px;color:#667085}
.h5-body .modal-body{padding:16px;overflow-wrap:anywhere}
.h5-body .modal-footer{padding:12px 16px;gap:8px;flex-wrap:wrap;border-color:#edf0f4}
.h5-body .modal-footer .btn{flex:1 1 auto}
.h5-body .h5-choice-intro{margin:0 0 14px;color:#667085;font-size:13px;line-height:1.7}
.h5-body .h5-activity-list{display:grid;gap:12px}
.h5-body .h5-activity-choice{display:block;width:100%;padding:16px;background:#fff;border:1px solid #dce6f4;border-radius:10px;text-align:left;cursor:pointer}
.h5-body .h5-activity-choice:hover{background:#f5faff;border-color:#91caff}
.h5-body .h5-choice-title{display:flex;align-items:flex-start;gap:8px}
.h5-body .h5-choice-title h3{min-width:0;font-size:14px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.h5-body .h5-choice-format{flex-shrink:0;margin-top:1px;padding:1px 6px;border-radius:4px;background:#eaf3ff;color:#1677ff;font-size:11px;line-height:1.8}
.h5-body .h5-activity-choice p{margin:9px 0 12px;color:#667085;font-size:12px;line-height:1.6}
.h5-body .h5-choice-action{display:flex;align-items:center;justify-content:space-between;min-height:28px;color:#1677ff;font-size:13px;font-weight:600}
.h5-body .h5-choice-note{margin:14px 0 0;color:#667085;font-size:12px;line-height:1.7}
.h5-body .info{border:1px solid #d8e9ff;border-radius:8px;background:#f0f7ff;color:#344054;font-size:13px}
.h5-body .work-preview textarea{font-size:14px;border-color:#d9dfe8;border-radius:8px}
.h5-body .toast{border-radius:8px;background:#24354b}
.h5-body :is(button,a,summary,textarea):focus-visible{outline:3px solid #91caff;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.h5-body *, .h5-body *::before,.h5-body *::after{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:374px){.h5-body .h5-shell{padding-inline:12px}.h5-body .h5-brand small{font-size:10px}.h5-body .h5-hero{padding:16px}.h5-body .h5-hero h1{font-size:20px}.h5-body .h5-shell .nfc-module-body{padding-inline:10px}.h5-body .h5-shell .nfc-grid{gap:6px}}

/* Customer-facing hierarchy: make the arrival, trust details, and next action clear at a glance. */
.h5-body{background:linear-gradient(180deg,#edf5ff 0,#f7f9fc 250px,#f5f7fa 100%)}
.h5-body .h5-shell{max-width:520px;padding:16px 16px 32px;background:transparent}
.h5-body .h5-brand{min-height:42px;margin-bottom:14px;padding:0 4px}
.h5-body .h5-brand-logo{width:126px;height:auto}
.h5-body .h5-brand-meta{margin-left:auto;padding:5px 9px;border:1px solid #dbeafe;border-radius:999px;background:#fff9}
.h5-body .h5-brand small{color:#4b6381;font-weight:500}
.h5-body .h5-shell .h5-hero{position:relative;isolation:isolate;margin-bottom:14px;padding:22px 20px 18px;overflow:hidden;border-color:#d9e9ff;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#f3f8ff 100%);box-shadow:0 10px 26px #1677ff12}
.h5-body .h5-shell .h5-hero::after{position:absolute;z-index:-1;right:-44px;top:-54px;width:154px;height:154px;border:28px solid #1677ff0d;border-radius:50%;content:""}
.h5-body .h5-hero .h5-eyebrow{display:inline-flex;align-items:center;min-height:25px;margin-bottom:9px;padding:0 9px;border-radius:999px;background:#e8f3ff;color:#1677ff;font-size:11px;letter-spacing:.08em}
.h5-body .h5-hero h1{max-width:90%;font-size:24px;font-weight:700;line-height:1.35;letter-spacing:-.02em}
.h5-body .h5-hero p{margin-top:7px;color:#52647c}
.h5-body .h5-store-details:not(:empty){display:flex;flex-wrap:wrap;gap:7px;margin-top:15px;padding-top:13px}
.h5-body .h5-store-details p{display:flex;align-items:center;min-height:28px;margin:0;padding:3px 8px;border:1px solid #e5edf8;border-radius:7px;background:#fff;color:#5b6b82;font-size:12px}
.h5-body .h5-phone{min-height:28px;color:#1677ff;font-weight:600}
.h5-body .h5-shell .nfc-module,.h5-body .h5-section{margin-bottom:14px;border-color:#e5ebf3;border-radius:16px;box-shadow:0 4px 14px #1f4c7a08}
.h5-body .h5-shell .nfc-module-head{padding:17px 16px 2px;font-size:16px;letter-spacing:-.01em}
.h5-body .h5-section-note{margin-top:4px}
.h5-body .h5-shell .nfc-module-body{padding:13px 12px 14px}
.h5-body .h5-shell .nfc-item{position:relative;min-height:94px;padding:12px 5px;border-color:#e8eef6;border-radius:12px;background:linear-gradient(180deg,#fff,#fbfcfe);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.h5-body .h5-shell .nfc-item:not(.is-unconfigured):active{transform:scale(.98);border-color:#91caff;box-shadow:0 4px 12px #1677ff1c}
.h5-body .h5-shell .publish-grid .nfc-item{min-height:122px;border-color:#dcecff;background:linear-gradient(145deg,#fafdff,#eef7ff)}
.h5-body .h5-shell .nfc-icon{width:36px;height:36px}
.h5-body .h5-shell .nfc-item-status{font-weight:500}
.h5-body .h5-activity-empty{position:relative;margin-bottom:14px;padding:16px 16px 16px 19px;border:1px solid #d8eaff;border-radius:14px;background:linear-gradient(90deg,#edf7ff,#f8fbff)}
.h5-body .h5-activity-empty::before{position:absolute;left:0;top:16px;bottom:16px;width:3px;border-radius:99px;background:#1677ff;content:""}
.h5-body .h5-activity-empty h2{font-size:15px;color:#223a59}
.h5-body .h5-activity-empty p{color:#60728b}
.h5-body .h5-shell .service-grid>.nfc-item:only-child{min-height:66px;border-color:#dcecff;background:#fbfdff}
.h5-body .h5-shell .wifi-row{padding:2px 2px 0}
.h5-body .h5-shell .primary-btn,.h5-body .btn{border-radius:10px;font-weight:600}
.h5-body .h5-shell .primary-btn{box-shadow:0 5px 12px #1677ff2b}
.h5-body .h5-unavailable{margin-bottom:14px;border-radius:14px;box-shadow:0 3px 10px #1f4c7a06}
.h5-body .h5-unavailable summary{min-height:56px;color:#53647a;font-weight:500}
.h5-body .h5-footer{padding:14px 4px 4px;text-align:center;color:#8a97a8}
@media(min-width:521px){.h5-body .h5-shell{margin-top:10px;margin-bottom:10px;border:1px solid #e4eaf1;border-radius:22px;background:#f8fafc;box-shadow:0 18px 54px #203b5e12}}
