:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#19302e;background:#f5f6f1;font-synthesis:none}*{box-sizing:border-box}body{margin:0;display:flex}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer;border:1px solid #cbd7d1;background:white;border-radius:10px;padding:11px 17px;color:#19302e}button:disabled{cursor:default;opacity:.6}.sidebar{width:234px;background:#102d28;color:#e9f1eb;min-height:100vh;padding:38px 24px;position:fixed;inset:0 auto 0 0}.brand{display:block;font-size:40px;font-weight:850;letter-spacing:-3px}.brand span{display:block;font-size:11px;letter-spacing:1.2px;font-weight:400;color:#a7c2b2;margin-top:3px}.label{font-size:10px;letter-spacing:2px;color:#8fac9e;margin-top:45px}nav{display:grid;gap:8px}nav a{padding:13px 14px;border-radius:9px;font-size:14px}nav a:hover,nav a[aria-current]{background:#25453b}.side-note{margin-top:60px;line-height:1.65;color:#aac6b6;font-size:14px}.side-note small{display:block;font-size:10px;margin-top:18px}main{margin-left:234px;width:calc(100% - 234px);padding:0 5vw}header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dde3dc;min-height:92px}header p{margin:8px 0;font-size:13px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#607a6a}.header-actions{display:flex;align-items:center;gap:15px;font-size:12px}.hero{display:flex;align-items:center;justify-content:space-between;padding:43px 0 38px;gap:25px}.pill{font-size:9px;letter-spacing:1.1px;border:1px solid #c3d2c5;border-radius:99px;padding:8px 12px;color:#436951}.hero h1{font-size:clamp(30px,3.7vw,52px);line-height:1.09;letter-spacing:-2px;margin:22px 0 18px}.hero p{max-width:530px;color:#67776c;font-size:14px;line-height:1.8}.hero-symbol{font-size:135px;letter-spacing:-15px;font-weight:900;background:#e4eadb;width:205px;height:205px;display:grid;place-items:center;border-radius:50%;color:#2d6347;position:relative}.hero-symbol span{font-size:42px;position:absolute;right:15px;top:10px;color:#8fa547}#notice{font-size:13px;color:#55694f;line-height:1.6;margin-bottom:20px}.login-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:22px}.card{border:1px solid #dde5db;border-radius:16px;background:#fff;padding:27px}.card h2{font-size:23px;letter-spacing:-.6px;margin:12px 0}.card p{color:#748074;font-size:13px;line-height:1.7}form{display:grid;gap:14px;margin-top:24px}label{font-size:12px;display:grid;gap:8px}input{border:1px solid #d5ddd4;border-radius:8px;padding:12px;width:100%;background:#fafbf8}.primary{background:#1d503d;color:white;border:0}.muted{font-size:11px!important;color:#8a9388!important}.intro{background:#edf1e7}.section-title{display:flex;align-items:center;justify-content:space-between;margin:5px 0 22px}.section-title h2{margin:7px 0;font-size:26px}.areas{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:25px}.area{padding:22px 17px;border-radius:14px;border:1px solid #dde2de}.area span{font-size:8px;letter-spacing:1px}.area h3{font-size:17px;margin:17px 0 7px}.area p{font-size:11px;line-height:1.7}.blue{background:#e3edf6}.green{background:#e4efe5}.purple{background:#eee8f6}.orange{background:#f6ecdf}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.module h3{font-size:15px;margin:14px 0 8px}.module p{font-size:11px}.badge{font-size:9px;display:inline-block;border-radius:20px;background:#eff3eb;padding:6px 9px}.empty{padding:32px;background:white;border:1px dashed #cad4c6;border-radius:14px}.org-list{display:grid;gap:14px}footer{font-size:10px;color:#8a9689;padding:28px 0 20px;line-height:1.6}[hidden]{display:none!important}:focus-visible{outline:3px solid #8da957;outline-offset:3px}@media(max-width:1050px){.areas,.grid{grid-template-columns:repeat(2,1fr)}.hero-symbol{width:140px;height:140px;font-size:90px}}@media(max-width:720px){body{display:block}.sidebar{position:static;width:100%;min-height:0;padding:20px}.brand{font-size:30px}.label,.side-note{display:none}nav{display:flex;overflow:auto;margin-top:18px;gap:5px}nav a{white-space:nowrap;font-size:12px;padding:9px}main{margin:0;width:100%;padding:0 20px}header{min-height:75px}.hero{padding:32px 0 20px}.hero-symbol{display:none}.login-layout,.grid{grid-template-columns:1fr}.areas{gap:9px}.card{padding:21px}.hero h1{letter-spacing:-1px}.section-title{align-items:start}.section-title button{font-size:11px}}
/* DIR233: acceso público independiente del panel administrativo.
   Los módulos protegidos conservan su diseño y control de permisos. */
.public-access-header{display:none}
body:has(#login-panel:not([hidden])){--public-blue:#245fff;--public-ink:#102b54;background:#f5f8fd;color:var(--public-ink);display:block}
body:has(#login-panel:not([hidden])) .sidebar{display:none!important}
body:has(#login-panel:not([hidden])) main{margin:0 auto;width:100%;max-width:1240px;padding:0 28px 50px}
body:has(#login-panel:not([hidden])) main>header{display:none}
body:has(#login-panel:not([hidden])) .public-access-header{display:block;position:relative;z-index:2;background:#fff;border-bottom:1px solid #e3eaf7}
.public-access-header nav{display:flex;align-items:center;gap:clamp(12px,2.3vw,34px);max-width:1480px;min-height:76px;padding:10px 24px;margin:auto}
.public-access-header a{color:#102b54;text-decoration:none;font-size:15px;font-weight:650}
.public-access-header .public-brand{display:inline-flex;align-items:center;gap:9px;margin-right:clamp(18px,4vw,58px);font-size:31px;font-weight:850;letter-spacing:-1.6px}
.public-brand svg{width:48px;height:48px;color:#075ef7;flex:none}
.public-access-header .public-nav-link{position:relative;white-space:nowrap;padding:12px 0}
.public-nav-link:hover{color:#245fff}
.public-nav-link:after{content:"";position:absolute;bottom:4px;left:0;right:0;background:#245fff;border-radius:3px;height:3px;transform:scaleX(0);transition:transform .2s}
.public-nav-link:hover:after,.public-nav-link:focus-visible:after{transform:scaleX(1)}
.public-access-current{margin-left:auto;white-space:nowrap;border-radius:12px;background:#2861ff;color:white;padding:14px 18px;font-size:14px;font-weight:700}
body:has(#login-panel:not([hidden])) .hero{padding:28px 0 18px}
body:has(#login-panel:not([hidden])) .hero h1{font-size:clamp(30px,3vw,44px);color:#112c55;margin:18px 0 12px}
body:has(#login-panel:not([hidden])) .hero p{color:#60748e}
body:has(#login-panel:not([hidden])) .hero-symbol{background:#e8efff;color:#2861ff}
body:has(#login-panel:not([hidden])) .hero-symbol span{color:#1a78e9}
body:has(#login-panel:not([hidden])) .pill{color:#1755bd;border-color:#cfdefb}
body:has(#login-panel:not([hidden])) .eyebrow{color:#2861ff}
body:has(#login-panel:not([hidden])) .card{border-color:#dce7f7;box-shadow:0 8px 26px #17385c0b}
body:has(#login-panel:not([hidden])) .card p{color:#647791}
body:has(#login-panel:not([hidden])) .intro{background:#eaf1ff}
body:has(#login-panel:not([hidden])) input{background:#fbfdff;border-color:#cfdbed;color:#102b54}
body:has(#login-panel:not([hidden])) .primary{background:#2861ff;color:white}
body:has(#login-panel:not([hidden])) button:hover{border-color:#2861ff}
body:has(#login-panel:not([hidden])) :focus-visible{outline:3px solid #79aaff;outline-offset:3px}
@media(max-width:720px){body:has(#login-panel:not([hidden])) main{padding:0 16px 36px}.public-access-header nav{justify-content:center;gap:10px 18px;flex-wrap:wrap;padding:13px 14px}.public-access-header .public-brand{margin:0;flex-basis:100%;justify-content:center}.public-access-current{margin:0;padding:11px 13px}.public-access-header .public-nav-link{font-size:13px}body:has(#login-panel:not([hidden])) .hero{padding:25px 0 18px}}

.public-brand img{width:48px;height:48px;object-fit:contain;flex:none}

/* DIR234: formularios reales, dos tarjetas del diseño aprobado */
body:has(#login-panel:not([hidden])) .login-layout{grid-template-columns:1.13fr .87fr;align-items:start;gap:26px}
body:has(#login-panel:not([hidden])) .login-layout .card{border-radius:20px;padding:32px;min-width:0}
body:has(#login-panel:not([hidden])) .login-layout .card h2{font-size:29px;letter-spacing:-.035em;color:#112a55;margin:15px 0}
body:has(#login-panel:not([hidden])) .login-layout .card>p{font-size:15px;line-height:1.6}
body:has(#login-panel:not([hidden])) .login-layout form{gap:14px;margin-top:24px}
body:has(#login-panel:not([hidden])) .login-layout label{font-size:14px;font-weight:700;color:#18355c}
body:has(#login-panel:not([hidden])) .login-layout input{height:51px;border-radius:11px;padding:12px 14px}
body:has(#login-panel:not([hidden])) .login-layout button{min-height:46px;font-size:14px;font-weight:700;border-color:#cfdef3;color:#1d427c}
body:has(#login-panel:not([hidden])) .login-layout button.primary{background:#2861ff;border-color:#2861ff;color:#fff}
body:has(#login-panel:not([hidden])) .login-layout button.primary:hover{background:#164fe3}
body:has(#login-panel:not([hidden])) .auth-register-card{background:#edf3ff}
body:has(#login-panel:not([hidden])) .auth-hidden-preview{display:none}
body:has(#login-panel:not([hidden])) #notice:not(:empty){border-radius:10px;background:#edf3ff;padding:12px 16px;color:#183c83}
@media(max-width:810px){body:has(#login-panel:not([hidden])) .login-layout{grid-template-columns:1fr}body:has(#login-panel:not([hidden])) .login-layout .card{padding:24px}}

/* DIR235: identidad azul también DESPUÉS de iniciar sesión, incluida consola MASTER.
   Se conserva todo el DOM, JS, formularios y comprobación de permisos existente. */
body:has(#workspace:not([hidden])){--htp-ink:#102b54;--htp-blue:#2861ff;background:#f5f8fd;color:var(--htp-ink);display:block}
body:has(#workspace:not([hidden])) .public-access-header{display:block;position:relative;z-index:3;background:white;border-bottom:1px solid #e3eaf7}
body:has(#workspace:not([hidden])) .sidebar{background:#0b2856;color:#eef4ff;top:76px;min-height:calc(100vh - 76px);height:calc(100vh - 76px);overflow-y:auto}
body:has(#workspace:not([hidden])) .sidebar .brand{color:white}
body:has(#workspace:not([hidden])) .sidebar .brand span,body:has(#workspace:not([hidden])) .side-note{color:#c4d6f6}
body:has(#workspace:not([hidden])) .sidebar .label{color:#8eb7f5}
body:has(#workspace:not([hidden])) .sidebar nav a:hover,body:has(#workspace:not([hidden])) .sidebar nav a[aria-current]{background:#2053a0;color:white}
body:has(#workspace:not([hidden])) main{margin-left:234px;width:calc(100% - 234px);padding:0 clamp(20px,4vw,68px) 45px}
body:has(#workspace:not([hidden])) main>header{border-color:#dce7f7}
body:has(#workspace:not([hidden])) .eyebrow{color:#245bcb}
body:has(#workspace:not([hidden])) .hero h1,body:has(#workspace:not([hidden])) .section-title h2{color:#102b54}
body:has(#workspace:not([hidden])) .hero p{color:#617594}
body:has(#workspace:not([hidden])) .hero-symbol{background:#e4edff;color:#245bcb}
body:has(#workspace:not([hidden])) .hero-symbol span{color:#2a7bef}
body:has(#workspace:not([hidden])) .pill{color:#205cca;border-color:#cadafa}
body:has(#workspace:not([hidden])) .card,body:has(#workspace:not([hidden])) .empty{border-color:#dce6f7;box-shadow:0 5px 22px #1e46830d;background:#fff}
body:has(#workspace:not([hidden])) .area{border-color:#d2dff0}
body:has(#workspace:not([hidden])) .blue{background:#e7f0ff}
body:has(#workspace:not([hidden])) .green{background:#eaf5ff}
body:has(#workspace:not([hidden])) .purple{background:#eeeefe}
body:has(#workspace:not([hidden])) .orange{background:#fff2e8}
body:has(#workspace:not([hidden])) button:hover{border-color:#2861ff}
body:has(#workspace:not([hidden])) button:focus-visible,body:has(#workspace:not([hidden])) a:focus-visible{outline:3px solid #85b5ff;outline-offset:3px}
@media(max-width:720px){body:has(#workspace:not([hidden])) .sidebar{position:static;width:100%;height:auto;min-height:0;padding:16px 20px}body:has(#workspace:not([hidden])) main{margin:0;width:100%;padding:0 18px 35px}body:has(#workspace:not([hidden])) .sidebar nav{margin-top:12px;display:flex;overflow-x:auto}body:has(#workspace:not([hidden])) .sidebar nav a{flex:none}}

/* DIR237: Perfil visible solamente con sesión comprobada. */
.profile-menu{position:relative;margin-left:auto;z-index:10}
.profile-menu[hidden],#guest-access[hidden],#profile-master-link[hidden]{display:none!important}
.profile-menu summary{list-style:none;display:flex;align-items:center;gap:9px;cursor:pointer;background:#2861ff;color:#fff;font-weight:750;font-size:14px;border-radius:12px;padding:14px 18px;user-select:none}
.profile-menu summary::-webkit-details-marker{display:none}
.profile-menu summary:hover{background:#1852de}
.profile-menu summary:focus-visible{outline:3px solid #84b4ff;outline-offset:3px}
.profile-dropdown{position:absolute;top:calc(100% + 8px);right:0;min-width:265px;padding:9px;border:1px solid #dbe5f7;border-radius:14px;box-shadow:0 16px 35px #15376526;background:#fff;color:#152d54}
.profile-dropdown a,.profile-dropdown button{display:block;width:100%;text-align:left;font-size:14px;font-weight:600;line-height:1.3;border:0;border-radius:8px;padding:12px;color:#183660;background:transparent;text-decoration:none}
.profile-dropdown a:hover,.profile-dropdown button:hover{background:#edf4ff;color:#2057c3}
.profile-email{font-size:12px;color:#5d718c;margin:5px 9px 7px;overflow-wrap:anywhere}
body:has(#workspace:not([hidden])) main>header .header-actions #identity{display:none}
body:has(#workspace:not([hidden])) main>header .header-actions #logout{display:none!important}
@media(max-width:720px){.profile-menu{margin:0}.profile-dropdown{right:0;min-width:min(265px,85vw)}}

/* DIR238: encabezado público idéntico al de Inicio, sin reglas heredadas del sidebar. */
html{scrollbar-gutter:stable}
.public-access-header nav{position:relative;display:flex;align-items:center;gap:clamp(12px,2.6vw,40px);max-width:1480px;min-height:72px;padding:12px 24px 12px 210px;margin:0 auto;overflow:visible}
.public-access-header .public-brand,
.public-access-header nav a.public-brand,
.public-access-header nav a.public-brand:hover,
.public-access-header nav a.public-brand:focus,
.public-access-header nav a.public-brand[aria-current]{position:absolute;left:24px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:9px;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#0b1f44!important;text-decoration:none;min-height:48px;font-size:32px;letter-spacing:-1.6px;white-space:nowrap}
.public-access-header .public-brand img{width:48px;height:48px;object-fit:contain;object-position:center;flex:none;background:transparent}
.public-access-header .public-brand strong{font-weight:900;color:#0b1f44}
.public-access-header nav .public-nav-link{padding:10px 1px 12px;background:transparent;border-radius:0}
.public-access-header nav .public-nav-link:hover{background:transparent;color:#245fff}
@media(max-width:780px){.public-access-header nav{padding:12px 24px;justify-content:center;flex-wrap:wrap}.public-access-header nav a.public-brand{position:static;transform:none;flex-basis:100%;justify-content:center;order:-1}.public-access-current,.profile-menu{margin-left:0}}

/* DIR239: icono de persona aprobado y tipografia compartida */
.profile-person-icon{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.public-access-header nav .public-nav-link{font-size:15px;font-weight:600;letter-spacing:0}

/* DIR240: perfil discreto, contorno fino y fondo blanco. */
.profile-menu summary{background:#fff!important;color:#173e76!important;border:1px solid #cddbf0!important;border-radius:12px;box-shadow:none;padding:11px 16px}
.profile-menu summary:hover{background:#f3f7ff!important;border-color:#96b4e9!important}
.profile-menu summary:focus-visible{outline:3px solid #a1c6ff}

/* DIR240: navegación pública interna sin destruir el cliente autenticado en memoria. */
.public-view[hidden]{display:none!important}
body.viewing-public>.sidebar,body.viewing-public>main{display:none!important}
body.viewing-public>.public-view{position:fixed;inset:var(--public-top,76px) 0 0;display:block;background:#f5f8fd;z-index:1}
.public-view iframe{display:block;width:100%;height:100%;border:0;background:#f5f8fd}
.public-access-header .public-nav-link[aria-current="page"]::after{transform:scaleX(1)}
body.viewing-public .public-access-header{display:block}

/* DIR241: profile menu must never inherit the legacy admin-nav green hover/focus. */
.public-access-header .profile-dropdown a,
.public-access-header .profile-dropdown button{display:block;box-sizing:border-box;width:100%;padding:12px;border:1px solid transparent!important;border-radius:9px;background:#fff!important;color:#193d73!important;box-shadow:none!important;text-decoration:none;font-weight:600;text-align:left}
.public-access-header .profile-dropdown a:hover,
.public-access-header .profile-dropdown button:hover,
.public-access-header .profile-dropdown a:focus-visible,
.public-access-header .profile-dropdown button:focus-visible{background:#eff5ff!important;color:#154fc0!important;border-color:#d7e5ff!important;box-shadow:none!important}
.public-access-header .profile-dropdown a:focus-visible,
.public-access-header .profile-dropdown button:focus-visible{outline:2px solid #699aff!important;outline-offset:1px}
.public-access-header .profile-dropdown a[aria-current]{background:#edf3ff!important;color:#154fc0!important}
.public-access-header .profile-dropdown a:active,
.public-access-header .profile-dropdown button:active{background:#e6efff!important;color:#143f92!important}
main>header .header-actions #identity{display:none!important}
main>header .header-actions #logout{display:none!important}
.profile-email:empty{display:none}

/* DIR246: experiencia cliente aislada de la consola administrativa */
body.customer-profile-view>.sidebar{display:none!important}
body.customer-profile-view>main{margin:0 auto!important;width:100%!important;max-width:1160px!important;padding:30px 24px 70px!important}
body.customer-profile-view main>header,body.customer-profile-view main>.hero,body.customer-profile-view main>#notice,body.customer-profile-view main>#workspace>.section-title,body.customer-profile-view main>#workspace>.areas{display:none!important}
body.customer-profile-view main>#workspace{display:block!important}
body.customer-profile-view main>#workspace>#content{display:block}
.customer-profile{max-width:1040px;margin:auto}
.customer-heading{display:flex;align-items:center;gap:18px;padding:25px 0;border-bottom:1px solid #dfebfa}
.customer-heading h2{font-size:31px;line-height:1.2;margin:0 0 7px;color:#102b54}
.customer-heading p{margin:0;color:#637993}
.customer-avatar{width:68px;height:68px;display:grid;place-items:center;border-radius:50%;background:#e6f0ff;color:#2563ff;font-size:35px}
.customer-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:27px 0}
.customer-tile{display:flex;align-items:flex-start;flex-direction:column;gap:10px;min-height:145px;padding:22px;border:1px solid #dae6f5;background:#fff;border-radius:15px;box-shadow:0 5px 20px #16345b0a;text-align:left;color:#102b54;cursor:pointer}
.customer-tile:hover,.customer-tile:focus-visible{background:#f0f6ff;border-color:#93b9fa;outline-offset:2px}
.customer-tile-icon{color:#2563ff;font-size:25px}
.customer-tile strong{font-size:17px}.customer-tile small{color:#697f98;font-size:13px}
.customer-detail{background:#fff;border:1px solid #e0e9f7;border-radius:15px;padding:23px;margin:12px 0 20px}
.customer-detail h3{margin:0 0 14px;color:#102b54;font-size:20px}
.customer-detail p{color:#657c98}
.customer-data-form{display:flex;flex-direction:column;gap:14px}.customer-data-form label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600}
.customer-data-form input{padding:13px;border:1px solid #d1e0ef;border-radius:10px;width:100%;max-width:620px}
.customer-data-form button{background:#2563ff;color:white;border:none;align-self:flex-start;padding:12px 22px}
.customer-explore{display:block;background:#edf4ff;color:#144fae;border:1px solid #d7e6fc;border-radius:13px;padding:18px 22px;text-decoration:none;font-weight:750}
.customer-explore:hover{background:#e2eeff}
@media(max-width:630px){.customer-tiles{grid-template-columns:1fr}body.customer-profile-view>main{padding:18px 14px 40px!important}.customer-tile{min-height:120px}}

/* SEC: customer accounts cannot browse admin navigation regardless of hash. */
body.restricted-client-view>.sidebar{display:none!important}
body.restricted-client-view>main{margin:0 auto!important;width:100%!important;max-width:1160px!important;padding:30px 24px 70px!important}
body.restricted-client-view main>header,body.restricted-client-view main>.hero,body.restricted-client-view main>#notice,body.restricted-client-view main>#workspace>.areas{display:none!important}

/* DIR249: confirmación visible del guardado de nombre del cliente. */
.customer-save-feedback{margin:12px 0 0;padding:11px 14px;background:#edf7f2;border:1px solid #a7d5bd;border-radius:10px;color:#205b42;font-size:14px;font-weight:600}

/* DIR250: photo identity and secure local avatar preview (no remote storage). */
.profile-avatar-wrap,.profile-avatar-mini{width:25px;height:25px;display:grid;place-items:center;overflow:hidden;border-radius:50%;flex:none;background:#edf4ff}
.profile-avatar-mini{width:43px;height:43px}
.profile-avatar-wrap img,.profile-avatar-mini img,.customer-avatar-photo{width:100%;height:100%;object-fit:cover;border-radius:50%}
.profile-avatar-wrap img[hidden],.profile-avatar-mini img[hidden],.customer-avatar-photo[hidden],.profile-avatar-wrap svg[hidden],.profile-avatar-mini svg[hidden]{display:none!important}
.profile-avatar-mini svg{width:23px;height:23px;fill:none;stroke:#245fff;stroke-width:1.8}
.profile-menu-identity{display:flex;align-items:center;gap:11px;padding:10px 8px 12px;border-bottom:1px solid #e1eafa;margin-bottom:5px}
.profile-menu-identity strong{display:block;color:#14345f;font-size:14px}
.profile-menu-identity .profile-email{margin:3px 0 0}
.customer-heading{flex-wrap:wrap}
.customer-avatar{overflow:hidden;flex:none}
.customer-avatar-controls{margin-left:auto;max-width:310px}
.customer-avatar-controls label{display:block;color:#2056c0;font-size:13px;font-weight:700}
.customer-avatar-controls input{display:block;width:100%;font-size:12px;margin-top:7px}
.customer-avatar-controls p{font-size:11px;color:#627a92;line-height:1.4}
@media(max-width:600px){.customer-avatar-controls{margin-left:0;flex-basis:100%;max-width:none}}

/* DIR251: perfil fotográfico con ventana centrada (referencia de calidad). */
.customer-photo-edit{margin-left:auto;padding:10px 17px;border:1px solid #b9cff2;border-radius:12px;background:#fff;color:#174b9f;font-size:14px;font-weight:700;cursor:pointer}
.customer-photo-edit:hover{background:#f0f6ff}
.customer-avatar-clickable{cursor:pointer;outline-offset:3px}
.customer-photo-modal{position:fixed;inset:0;margin:auto;width:min(640px,calc(100vw - 28px));max-height:min(690px,calc(100vh - 28px));padding:0;border:1px solid #dbe5f6;border-radius:19px;background:#fff;color:#112b53;box-shadow:0 20px 65px #0c234b5c;overflow:auto}
.customer-photo-modal::backdrop{background:rgba(9,24,50,.68)}
.customer-photo-modal-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e0e8f5;padding:17px 22px}
.customer-photo-modal-header h2{font-size:22px;letter-spacing:-.02em;margin:0}
.customer-photo-close{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:9px;background:transparent;color:#233c67;font-size:27px;cursor:pointer}
.customer-photo-close:hover{background:#edf3ff}
.customer-photo-modal-body{padding:32px 26px 27px;display:flex;align-items:center;flex-direction:column;gap:20px}
.customer-photo-preview{width:min(270px,60vw);height:min(270px,60vw);border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#e8f1ff;color:#2563ff;font-size:118px}
.customer-photo-preview img{width:100%;height:100%;object-fit:cover}
.customer-photo-preview img[hidden],.customer-photo-preview span[hidden]{display:none!important}
.customer-photo-hint{text-align:center;color:#667991;font-size:13px;max-width:430px;line-height:1.5;margin:0}
.customer-photo-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;width:100%}
.customer-photo-actions button{padding:12px 18px;border-radius:11px;font-size:14px;font-weight:700;cursor:pointer}
.customer-photo-choose{border:1px solid #2563ff;background:#2563ff;color:#fff}
.customer-photo-choose:hover{background:#144ed6}
.customer-photo-remove{border:1px solid #d6e2f3;background:#fff;color:#264b82}
.customer-photo-remove:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:600px){.customer-photo-modal-body{padding:20px 16px}.customer-photo-modal-header{padding:14px 17px}.customer-photo-edit{margin-left:0}}

/* DIR252: action explícita para aplicar vista previa local. */
.customer-photo-apply{border:1px solid #a4bde8;background:#edf4ff;color:#174fba}
.customer-photo-apply:hover{background:#dceaff}
.customer-photo-apply:disabled{opacity:.45;cursor:not-allowed}

/* DIR253 — HTP Premium: líneas precisas, superficie clara, iconos y controles ligeros */
:root{--premium-border:#dfe7f2;--premium-shadow:0 5px 22px rgba(21,51,93,.045)}
.public-access-header{border-bottom:1px solid var(--premium-border)!important}
.public-access-header .public-nav-link{font-weight:500!important}
.profile-menu summary{font-weight:600!important;border:1px solid var(--premium-border)!important;box-shadow:none!important}
.profile-dropdown{border:1px solid var(--premium-border)!important;box-shadow:0 10px 30px rgba(15,43,85,.09)!important}
body.customer-profile-view .customer-tile{border:1px solid var(--premium-border)!important;box-shadow:var(--premium-shadow)!important;border-radius:14px}
body.customer-profile-view .customer-tile strong{font-weight:600}
.customer-detail{border:1px solid var(--premium-border)!important;box-shadow:var(--premium-shadow)}
body:has(#workspace:not([hidden])) .opportunity-page{max-width:1020px;margin:15px auto 0;padding:26px 10px 36px}
.opportunity-eyebrow{font-size:12px;font-weight:600;letter-spacing:.13em;color:#2763be}
.opportunity-page h2{font-size:clamp(26px,3vw,38px);letter-spacing:-.035em;color:#132f57;font-weight:650;margin:12px 0}
.opportunity-subtitle{color:#647894;font-size:15px;line-height:1.6}
.opportunity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:30px 0 18px}
.opportunity-card{padding:28px;border:1px solid var(--premium-border);border-radius:16px;background:#fff;box-shadow:var(--premium-shadow)}
.opportunity-icon{display:grid;place-items:center;width:46px;height:46px;border:1px solid #cfe0ff;border-radius:12px;color:#2260d8;font-size:25px;font-weight:400;background:#f5f9ff}
.opportunity-card h3{font-size:20px;font-weight:620;margin:18px 0 8px;color:#17335d}
.opportunity-card p{font-size:14px;color:#667a92;line-height:1.6;min-height:44px}

body:has(#workspace:not([hidden])) .business-selector { max-width: 1120px; }
.business-selector-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.business-selector-toolbar p { margin: 0; color: #566987; }
.business-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 16px;
}
.business-selector-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px; }
.business-selector-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.business-selector-identity h3 {
  min-width: 0;
  margin: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.business-selector-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  background: #eaf0ff;
  color: #1b4db3;
  font-size: 21px;
  font-weight: 800;
}
.business-selector-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.business-selector-add, .business-selector-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
}
.business-selector-add { background: #245cf0; color: #fff; }
.business-selector-open { margin-top: auto; border: 1px solid #c9d7ed; color: #1645a0; background: #f5f8ff; }
.opportunity-pending{display:inline-block;margin-top:13px;border:1px solid #d8e3f2;border-radius:10px;padding:10px 14px;font-size:12px;color:#527099;background:#f9fbff}
.opportunity-note{font-size:12px;line-height:1.6;color:#78869c}
@media(max-width:650px){.opportunity-grid{grid-template-columns:1fr}.opportunity-page{padding:15px 0!important}}

/* DIR254: referencia aprobada, compacto y de trazos finos */
body:has(#workspace:not([hidden])) .opportunity-compact{max-width:800px;margin:22px auto 0;padding:22px 16px!important;background:#fff;border:1px solid #dee5ee;border-radius:13px;box-shadow:none}
.opportunity-compact h2{font-size:20px!important;letter-spacing:-.015em!important;font-weight:650!important;margin:0 0 10px!important;color:#162743!important}
.opportunity-compact .opportunity-subtitle{font-size:13px;line-height:1.6;margin:0;color:#6a7382}
.opportunity-compact .opportunity-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:18px 0 0}
.opportunity-compact .opportunity-card{padding:15px 17px!important;border:1px solid #dde4ed!important;border-radius:10px!important;box-shadow:none!important;background:#fff!important;min-width:0}
.opportunity-compact .opportunity-line-icon{display:block;width:23px;height:23px;color:#0860f2;margin-bottom:10px}
.opportunity-compact .opportunity-card h3{font-size:16px!important;font-weight:600!important;letter-spacing:0;margin:0 0 8px!important;color:#1b2b46}
.opportunity-compact .opportunity-card p{font-size:12px!important;margin:0 0 7px!important;min-height:0!important;line-height:1.5;color:#66758c}
.opportunity-compact .opportunity-action{font-size:12px;font-weight:600;color:#155fe6}
.opportunity-compact .opportunity-note{font-size:11px;margin:16px 2px 0;color:#7a899c}
@media(max-width:570px){.opportunity-compact .opportunity-grid{grid-template-columns:1fr}.opportunity-compact{margin:12px auto!important;padding:18px 14px!important}}

/* DIR256 visual harmonization: restrained dashboard density & device previews */
body{overflow-x:hidden}
main{min-width:0}
main .hero{min-height:0;padding-top:clamp(14px,2vw,25px);padding-bottom:clamp(14px,2vw,25px)}
main .hero h1{font-size:clamp(28px,3vw,43px);line-height:1.13}
main .hero p{font-size:clamp(13px,1.15vw,16px);line-height:1.5}
main .hero-symbol{transform:scale(.8);transform-origin:right center}
main .card{border-width:1px;box-shadow:0 4px 17px rgba(18,53,105,.045)}
main .grid{gap:12px}
main button{font-size:clamp(12px,.9vw,14px);font-weight:550}
main h2{font-size:clamp(19px,1.6vw,27px)}
master-preview{display:block}
.master-preview{margin:16px 0 26px;padding:20px;border:1px solid #dfe7f3;border-radius:14px;background:#fff}
.master-preview h3{font-size:20px;margin:0 0 8px;color:#122f5c}
.master-preview p{font-size:13px;color:#667c99;margin:0 0 13px}
.master-preview-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:14px}
.master-preview-toolbar select{min-width:180px;max-width:100%;border:1px solid #d2dff2;border-radius:9px;padding:10px;color:#15365e;background:white}
.master-preview-choice{min-width:72px;background:#fff;border:1px solid #ccdced;border-radius:9px;color:#15365e}
.master-preview-choice[aria-pressed=true]{background:#e9f1ff;color:#0d54c9;border-color:#b3cbfb}
.master-preview-stage{display:flex;justify-content:center;overflow:hidden;padding:14px;border:1px solid #dce5f2;background:#f4f7fb;border-radius:13px}
.master-preview-stage iframe{height:560px;width:100%;max-width:100%;border:1px solid #d5dfea;border-radius:10px;background:#fff}
.master-preview-stage.is-mobile iframe{width:390px;max-width:100%;height:650px}
@media(max-width:950px){main .hero-symbol{display:none}main .hero{padding:18px}body .sidebar{width:195px;padding:21px 16px}body>main{margin-left:195px}main .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body .sidebar{position:relative;inset:auto;width:100%;min-height:0;padding:12px 16px}body{display:block}body .sidebar nav{display:flex;gap:7px;overflow-x:auto;max-width:100%}body .sidebar nav a{flex:none;padding:8px 10px}body .sidebar .brand{font-size:24px}body .sidebar .side-note{display:none}body>main{margin:0!important;width:100%!important;padding:14px!important}main .grid{grid-template-columns:1fr}main .hero{margin-bottom:10px}main .hero h1{font-size:29px}.master-preview{padding:12px}.master-preview-stage{padding:7px}.master-preview-stage iframe{height:540px}}

/* DIR256: autenticado, priorizar trabajo sobre bienvenida repetida. */
body.workspace-authenticated main>.hero{display:none!important}
body.workspace-authenticated main>header{padding-top:11px!important;padding-bottom:11px!important}
body.workspace-authenticated #notice{margin-top:12px!important;margin-bottom:10px!important;font-size:12px}
body.workspace-authenticated #workspace{padding-top:4px!important}
body.workspace-authenticated .master-preview{margin-top:12px}

/* DIR350: owner branch controls, scoped to preserve Fase 1. */
.branch-location-editor,.branch-hours-editor{margin:14px 0;min-width:0}
.branch-location-editor summary,.branch-hours-editor summary{cursor:pointer;font-weight:650;line-height:1.5;color:#15365e}
.branch-location-editor .business-registration-form,.branch-hours-editor .business-registration-form{max-width:850px}
.branch-hours-editor input[type=checkbox]{width:auto;justify-self:start}
.branch-hours-editor select{width:100%;min-width:0;font:inherit;padding:12px;border:1px solid #d5ddd4;border-radius:8px;background:#fafbf8}
.business-weekly-hours{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.business-weekly-hours fieldset{min-width:0;border:1px solid #dce5ef;border-radius:12px;padding:12px;display:grid;gap:12px}
.business-weekly-hours legend{font-size:13px;font-weight:650;padding:0 6px}
.business-weekly-hours small{font-size:11px;line-height:1.6;color:#536a82}
.branch-hours-range{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-bottom:10px}
.branch-hours-range button{grid-column:1/-1;font-size:12px;padding:7px}
.branch-location-editor a{font-size:13px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){.business-weekly-hours{grid-template-columns:1fr}.branch-location-editor,.branch-hours-editor{padding:16px}.branch-hours-editor button{white-space:normal}}

/* DIR350 private catalog: independent of frozen Studio themes. */
.business-catalog-editor{margin:18px 0;min-width:0}
.business-catalog-editor summary{cursor:pointer;font-weight:650;line-height:1.6;color:#15365e}
.business-catalog-editor select{width:100%;min-width:0;font:inherit;border:1px solid #d5ddd4;border-radius:8px;padding:12px;background:#fafbf8}
.business-catalog-editor textarea{width:100%;min-height:96px;resize:vertical;font:inherit;border:1px solid #d5ddd4;border-radius:8px;padding:12px}
.business-catalog-editor input[type=checkbox]{width:auto;justify-self:start}
.business-catalog-editor fieldset{min-width:0;border:1px solid #dce5ef;border-radius:12px;padding:14px;display:grid;gap:12px;margin:12px 0}
.business-catalog-editor form>details{padding:12px;border:1px solid #dce5ef;border-radius:12px}
.catalog-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.catalog-toolbar input{flex:1;min-width:150px}.catalog-toolbar select{width:auto}
.business-product-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}
.business-product-card{border:1px solid #dce5ef;border-radius:14px;overflow:hidden;padding:12px;display:grid;gap:10px;align-content:start}
.business-product-card img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:9px}.business-product-card h4{overflow-wrap:anywhere;margin:0;font-size:16px}.business-product-card p{margin:0}.business-product-card button{font-size:12px;white-space:normal;overflow-wrap:anywhere}
.catalog-product-form{max-width:850px;scroll-margin-top:90px}
@media(max-width:1000px){.business-product-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.business-product-list{grid-template-columns:1fr}.business-catalog-editor{padding:16px}.catalog-toolbar>*{width:100%!important;flex:auto}.business-catalog-editor button{white-space:normal}}
/* Business profile uses the same private-editor visual language. */
.business-profile-editor{margin:18px 0;min-width:0}
.business-profile-editor summary{cursor:pointer;font-weight:650;line-height:1.6;color:#15365e}
.business-profile-editor textarea{width:100%;min-height:100px;resize:vertical;font:inherit;border:1px solid #d5ddd4;border-radius:8px;padding:12px}
.business-profile-editor nav{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}
.business-profile-editor nav a{border:1px solid #cad9ed;border-radius:20px;padding:8px 12px;text-decoration:none}
.business-profile-editor form{padding-top:16px}
@media(max-width:550px){.business-profile-editor{padding:16px}}

/* Private media library: immutable originals and independent logo/name. */
.business-media-editor{margin:18px 0;min-width:0}
.business-media-editor summary{cursor:pointer;font-weight:650;line-height:1.6;color:#15365e}
.business-media-editor select{width:100%;min-width:0;padding:12px;border:1px solid #d5ddd4;border-radius:8px;background:#fafbf8;font:inherit}
.business-media-selected{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.business-media-slot{min-width:0;border:1px solid #dce5ef;border-radius:14px;padding:14px;background:#f7faff}
.business-media-slot img{width:100%;height:150px;object-fit:contain;margin-bottom:12px}
.business-media-preview{max-width:100%;max-height:220px;object-fit:contain;border-radius:12px}
.business-media-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-top:16px}
.business-media-card{display:grid;align-content:start;gap:10px;padding:12px;min-width:0;border:1px solid #dce5ef;border-radius:12px}
.business-media-card img{width:100%;height:140px;object-fit:contain;background:#f4f7fb;border-radius:8px}
.business-media-card button,.business-media-slot button{white-space:normal}
@media(max-width:550px){.business-media-editor{padding:16px}.business-media-selected{grid-template-columns:1fr}}
.shop-container{width:100%;min-width:0}.shop-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:14px 0}.shop-canvas{width:100%;min-width:0;height:1000px;border:1px solid #dce5ef;border-radius:12px;background:#fff}.shop-checkout-review:not(:empty),.shop-receipt:not(:empty){display:grid;gap:14px;padding:24px;margin:18px 0;border:1px solid #b9cce0;border-radius:16px;background:#f5f9ff}.order-list{display:grid;gap:16px}.order-card{display:flex;flex-wrap:wrap;gap:10px;padding:20px;border:1px solid #dce5ef;border-radius:14px;min-width:0}.order-card h3,.order-card p,.order-card ol{flex-basis:100%;margin:0;overflow-wrap:anywhere}.order-card button{white-space:normal}.shop-actions a{display:inline-block;padding:10px}body.shop-view>.sidebar,body.shop-view main>header,body.shop-view main>.hero,body.shop-view #workspace>.areas{display:none!important}body.shop-view>main{margin:0 auto!important;max-width:1440px!important;padding:18px 24px 50px!important;width:100%!important}.shop-container h2{font-size:clamp(24px,4vw,40px)}@media(max-width:550px){body.shop-view>main{padding:16px 8px 30px!important}.shop-checkout-review:not(:empty),.shop-receipt:not(:empty){padding:16px}.order-card{padding:14px}.shop-canvas{border-radius:8px}}

body.shop-view #workspace>.section-title{display:none!important}
body.shop-view>main>footer{display:none!important}
html[data-public-storefront]{scrollbar-gutter:auto}
html[data-public-storefront] body{display:block;min-height:100dvh;margin:0;background:white}
html[data-public-storefront]:not([data-market-storefront]) body>.public-access-header,
html[data-public-storefront] body>.sidebar,
html[data-public-storefront] main>header,
html[data-public-storefront] main>.hero,
html[data-public-storefront] main>#notice,
html[data-public-storefront] main>#login-panel,
html[data-public-storefront] main>footer,
html[data-public-storefront] #workspace>.section-title,
html[data-public-storefront] #workspace>.areas{display:none!important}
html[data-public-storefront] body>main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
html[data-public-storefront] #workspace,html[data-public-storefront] #content{margin:0;padding:0!important}
.shop-storefront>.shop-actions{display:none}
.shop-storefront>.shop-canvas:not([hidden]){display:block;width:100%;height:100dvh;border:0;border-radius:0}
.shop-storefront>.shop-load-status:not([hidden]){margin:0;padding:1rem;color:#334155}
.shop-storefront>.shop-load-status:not([hidden])+.shop-canvas{height:calc(100dvh - 3rem)}
html[data-market-storefront] body:has(#workspace),
html[data-market-storefront] :is(body>main,#workspace:not([hidden]),#content,.shop-storefront){display:flex;flex-direction:column}
html[data-market-storefront] body:has(#workspace){height:100dvh;background:white}
html[data-market-storefront] body>.public-access-header{display:block;position:relative;z-index:3;flex:none;background:white}
html[data-market-storefront] :is(body>main,#workspace:not([hidden]),#content,.shop-storefront,.shop-canvas:not([hidden])){flex:1;min-height:0}
html[data-market-storefront] .shop-storefront>.shop-canvas:not([hidden]){height:auto}
.public-access-header a.public-access-current{color:white}
.public-access-header a.public-access-current:is(:hover,[aria-current]){background:#245fff}
@media(max-width:780px){
 html[data-market-storefront] .public-access-header nav{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:0 14px;padding:8px 16px}
 html[data-market-storefront] .public-access-header nav a.public-brand{grid-area:1/1/2/3;min-height:36px;font-size:24px;justify-content:start}
 html[data-market-storefront] .public-access-header .public-brand img{width:32px;height:32px}
 html[data-market-storefront] .public-access-header :is(.public-access-current,.profile-menu){grid-area:1/3;margin-left:0}
 html[data-market-storefront] .public-access-header .public-nav-link{grid-area:2/1;justify-self:start}
 html[data-market-storefront] .public-access-header .public-nav-link+.public-nav-link{grid-column:2/4}
}
.storefront-dialog{width:min(34rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem);padding:1.4rem;color:#162536;background:#fff;border:1px solid #cbd5e1;border-radius:14px;overflow:auto}
.storefront-dialog::backdrop{background:#17263877}
.storefront-dialog button{margin-block:.35rem}
.storefront-dialog .shop-fulfillment{padding:0;border:0;box-shadow:none}
.storefront-dialog .shop-fulfillment :is(input,select){padding:.5rem;border:1px solid #cbd5e1;border-radius:6px}
.storefront-dialog [role=status]:empty{display:none}
#storefront-login{width:min(54rem,calc(100% - 2rem))}
#storefront-login .login-layout{margin:0}
#storefront-login .login-layout .eyebrow,
#storefront-login .login-layout .card>p:not([id]){display:none}
#storefront-login .login-layout .card{padding:1rem}
.delivery-page{max-width:1100px;margin:auto}.delivery-page form,.shop-fulfillment form{display:grid;gap:12px}.delivery-page label,.shop-fulfillment label{display:grid;gap:5px;min-width:0}.delivery-page input,.delivery-page select,.shop-fulfillment input,.shop-fulfillment select{max-width:100%;min-width:0;width:100%;box-sizing:border-box}.delivery-page fieldset{min-width:0;margin:12px 0}.delivery-page .card,.delivery-page p{overflow-wrap:anywhere}.delivery-page button{max-width:100%;white-space:normal;margin:5px}.delivery-page details{margin-top:16px}.shop-fulfillment{margin:12px 0;padding:12px}.delivery-page .business-registration-form{width:100%}
/* DIR355 universal business classification: independent from product catalog categories. */
.universal-business-registration{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:940px;margin-top:20px;padding:22px;border:1px solid #d7e1f2;border-radius:16px;background:#fff}
.universal-business-registration>label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:14px;color:#19375d}
.universal-business-registration input:not([type=checkbox]),.universal-business-registration select{width:100%;min-width:0;padding:11px 12px;border:1px solid #c8d4e5;border-radius:9px;background:#fff;color:#142f54;font:inherit}
.universal-business-registration>fieldset,.universal-business-registration>.htp-pickup-map,.universal-business-registration>.registration-consent,.universal-business-registration>.business-registration-status{grid-column:1/-1;min-width:0}
.universal-business-registration>fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:14px;border:1px solid #d7e1f2;border-radius:10px}
.universal-business-registration fieldset label{display:flex;flex-direction:row;align-items:center;gap:9px;padding:8px;font-size:14px}.universal-business-registration input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;accent-color:#175bc4;margin:0}
.universal-business-registration>.registration-consent{flex-direction:row;align-items:flex-start;padding:12px;border-radius:9px;background:#f1f6ff;line-height:1.5}.universal-business-registration .registration-consent[hidden]{display:none}
.universal-business-registration>.htp-pickup-map{margin:0!important}.universal-business-registration>.htp-pickup-map label{font-size:13px}.universal-business-registration>button[type=submit]{background:#175bc4;color:#fff;border:0;font-weight:700;min-height:46px}
.master-business-categories{margin-top:24px}.category-admin-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px 0}.category-admin-form label{display:grid;gap:6px;min-width:0}.category-admin-form input,.category-admin-form select{max-width:100%;padding:9px;border:1px solid #c8d4e5;border-radius:8px}.category-admin-table{width:100%;font-size:13px;border-collapse:collapse}.category-admin-table td,.category-admin-table th{text-align:left;padding:9px;border-bottom:1px solid #dce4f0}.master-business-categories .card>div{overflow-x:auto}
@media(max-width:600px){.universal-business-registration{grid-template-columns:1fr;padding:14px;gap:12px}.universal-business-registration>fieldset{grid-template-columns:1fr}.category-admin-form{grid-template-columns:1fr}.category-admin-table{min-width:620px}}

/* Business identity and its shared private asset library (DIR372). */
.business-media-editor summary{cursor:pointer}
.business-media-slot{display:flex;flex-direction:column;gap:10px}
.business-media-slot h4,.business-media-slot p{margin:0}
.business-media-slot small{line-height:1.5}
.business-media-slot img{height:180px;object-fit:contain;background:white;border-radius:10px}
.business-media-slot button{min-height:44px}
.business-media-editor> a{display:block;margin-top:16px}
.business-media-library{margin:16px 0}
.business-media-dialog{width:min(90vw,800px);max-height:90vh;overflow:auto;border:1px solid #dce5ef;border-radius:16px;padding:20px}
.business-media-dialog img{display:block;max-width:100%;max-height:60vh;object-fit:contain;margin:auto}
.business-media-dialog::backdrop{background:#102033aa}
.business-studio-editor{min-width:0}
.business-studio-editor details{min-width:0;max-width:100%}
.business-studio-editor select{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.business-studio-editor button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.business-studio-editor dialog{box-sizing:border-box;width:min(90vw,540px);max-height:85vh;overflow:auto;overflow-wrap:anywhere;border:1px solid #dce5ef;border-radius:16px;padding:20px}
.business-studio-editor dialog::backdrop{background:#102033aa}

body:has(#workspace:not([hidden])) .business-panel {
  --business-ink: #122749;
  --business-muted: #526580;
  --business-accent: #1948a6;
  --business-line: #dce5f2;
  --business-shadow: 0 10px 26px rgba(19, 47, 92, .06);
  max-width: 1180px;
  padding-block-start: clamp(16px, 3vw, 32px);
}
.business-panel-header {
  display: grid;
  justify-items: start;
  padding: clamp(20px, 4vw, 42px);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(ellipse at 99% 2%, #285bbc, transparent 60%),
    linear-gradient(115deg, #0d2245, #173a7b);
}
.business-panel-header h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.05;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.business-panel-brand {
  margin: clamp(20px, 3vw, 32px) 0 .55rem;
  color: #c5dcff;
  font-size: .85rem;
  font-weight: 700;
}
.business-panel-back {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  padding: .35rem .8rem;
  border: 1px solid #8ca6d4;
  border-radius: 999px;
  color: #fff;
  font-size: .875rem;
  text-decoration: none;
}
.business-panel-back::before { content: '←' / ''; }
.business-panel-back:hover { background: #ffffff20; }
.business-workspace {
  display: grid;
  grid-template-columns: clamp(13rem, 23%, 16rem) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
  margin-top: clamp(14px, 2vw, 24px);
}
.business-workspace-sidebar,
.business-workspace-content > section {
  border: 1px solid var(--business-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--business-shadow);
}
.business-workspace-sidebar {
  display: grid;
  gap: .25rem;
  position: sticky;
  top: 1rem;
  width: 100%;
  max-width: none;
  padding: .65rem;
}
.business-workspace-sidebar a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem .75rem;
  border-inline-start: 3px solid transparent;
  border-radius: 10px;
  color: var(--business-muted);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.business-workspace-sidebar a:hover { background: #f2f6fc; color: var(--business-ink); }
.business-workspace-sidebar a[aria-current='page'] {
  border-inline-start-color: #3566d6;
  background: #eaf1ff;
  color: var(--business-accent);
}
.business-workspace :is(a, select):focus-visible {
  outline: 3px solid #3566d6;
  outline-offset: 3px;
}
.business-workspace-content { min-width: 0; }
.business-workspace-content > section { padding: clamp(16px, 3vw, 32px); }
.business-workspace-content > section[hidden] { display: none; }
.business-workspace-content > section > h3 {
  margin: 0 0 1rem;
  color: var(--business-ink);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -.025em;
}
.business-workspace-facts, .business-workspace-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.business-workspace-facts { margin: 0; }
.business-workspace-facts > div {
  padding: clamp(.8rem, 2vw, 1.2rem);
  border-radius: 14px;
  background: #eef4ff;
}
.business-workspace-facts dt, .business-workspace-action-description {
  color: var(--business-muted);
  font-size: .875rem;
  line-height: 1.45;
}
.business-workspace-facts dd {
  margin: .3rem 0 0;
  color: var(--business-ink);
  font-size: 1.05rem;
  font-weight: 700;
}
.business-workspace-actions-title {
  margin: 1.65rem 0 .75rem;
  color: var(--business-ink);
  font-size: 1rem;
}
.business-workspace-actions a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .4rem .75rem;
  padding: clamp(.8rem, 2vw, 1.1rem);
  border: 1px solid var(--business-line);
  border-radius: 14px;
  color: var(--business-ink);
  font-weight: 700;
  text-decoration: none;
}
.business-workspace-actions a:hover {
  border-color: #7fa2ea;
  background: #f5f8ff;
  box-shadow: var(--business-shadow);
}
.business-workspace-action-description { grid-column: 1 / -1; font-weight: 400; }
.business-workspace-action-arrow { color: var(--business-accent); }
.business-workspace-mobile { display: none; }
@media (max-width: 800px) {
  .business-workspace { grid-template-columns: minmax(0, 1fr); }
  .business-workspace-sidebar { display: none; }
  .business-workspace-mobile {
    display: grid;
    gap: .4rem;
    color: var(--business-ink);
    font-size: .9rem;
    font-weight: 700;
  }
  .business-workspace-mobile select {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: .65rem;
    border: 1px solid #a8b8d0;
    border-radius: 12px;
    background: white;
    color: var(--business-ink);
  }
}

@media (max-width: 520px) {
  .business-workspace-facts, .business-workspace-actions { grid-template-columns: minmax(0, 1fr); }
}

/* DIR106: prominent authenticated business navigation in opportunities */
.opportunity-compact .opportunity-business-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:22px 0 4px;padding:22px 24px;border:1px solid #b9d2fb;border-radius:13px;background:linear-gradient(110deg,#f2f7ff,#fff)}
.opportunity-compact .opportunity-business-kicker{display:block;margin-bottom:7px;font-size:10px;letter-spacing:.11em;font-weight:750;color:#1760c7}
.opportunity-compact .opportunity-business-copy h3{margin:0 0 6px;font-size:21px;font-weight:700;letter-spacing:-.025em;color:#132b53}
.opportunity-compact .opportunity-business-copy>p{margin:0;font-size:13px;line-height:1.5;color:#506681}
.opportunity-compact .opportunity-business-count{margin-top:11px!important;font-size:12px!important;font-weight:650;color:#1759b7!important}
.opportunity-compact .opportunity-business-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:44px;padding:11px 19px;border-radius:9px;background:#155fe6;color:#fff;font-size:13px;font-weight:700;text-decoration:none}
.opportunity-compact .opportunity-business-button:hover{background:#0d4ebf;color:#fff}
.opportunity-compact .opportunity-business-button:focus-visible{outline:3px solid #87b3ff;outline-offset:3px}
@media(max-width:570px){.opportunity-compact .opportunity-business-panel{flex-direction:column;align-items:stretch;padding:18px;gap:15px}.opportunity-compact .opportunity-business-button{width:100%}}.business-media-draft{margin-top:12px;padding:12px;border:1px solid #8eb6ff;border-radius:12px;background:#eef5ff}
.business-media-draft>img{display:block;max-width:100%;max-height:180px;object-fit:contain;margin:auto}
.business-media-draft>p{font-size:12px;color:#254b83}
.business-media-draft-actions{display:flex;gap:8px;flex-wrap:wrap}
.business-media-draft-actions button:first-child{background:#175ce0;color:white;border-color:#175ce0}
.business-media-draft-actions button{flex:1 1 130px;min-height:42px}
/* DIR109: keep each registered local together instead of mixing location and hours */
.business-branches-intro{color:#536682;line-height:1.6;margin:0 0 18px}
.business-branch-list{display:grid;gap:16px}
.business-branch-group{padding:18px;border:1px solid #d4e1f4;border-radius:16px;background:#f8fbff}
.business-branch-group-name{margin:0;font-size:19px;color:#112d5a}
.business-branch-group-caption{margin:5px 0 16px;color:#60728d;font-size:13px}
.business-branch-group>details{margin:10px 0;background:#fff}
.business-branch-create-title{margin:30px 0 10px}
@media(max-width:600px){.business-branch-group{padding:12px}}
/* DIR110: catalog subnavigation, dedicated category/product views */
.business-workspace-subnav{margin-left:12px!important;padding-left:22px!important;font-size:13px!important}
.business-catalog-intro{color:#526b87}
.business-catalog-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-top:20px}
.business-catalog-choices a{display:block;padding:22px;border:1px solid #cadcf3;border-radius:12px;text-decoration:none;font-weight:700}
.business-category-list{display:grid;gap:8px;margin:16px 0}
.business-category-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid #d8e3f3;border-radius:9px}
.business-category-item button{min-width:82px}

/* DIR112: sector-first template gallery; previews remain private until saved */
.studio-template-gallery{margin:16px 0;padding:16px;border:1px solid #d4e1f4;border-radius:14px;background:#f8fbff}
.studio-template-gallery input,.studio-template-gallery select{max-width:100%;margin:8px 10px 8px 0}
.studio-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:12px;max-height:430px;overflow:auto;padding:4px}
.studio-gallery-card{display:flex;flex-direction:column;align-items:stretch;gap:8px;text-align:left;padding:10px;border:1px solid #cbd9eb;border-radius:10px;background:#fff;color:#183154;cursor:pointer}
.studio-gallery-card:hover,.studio-gallery-card:focus-visible{outline:2px solid #2163d7;outline-offset:1px}
.studio-gallery-swatch{display:block;height:76px;border-radius:7px}
.studio-gallery-card small{font-size:11px;color:#526b87}
/* DIR384: progressive catalog and product editing */
.catalog-heading{display:flex;flex-direction:column;gap:4px;margin-bottom:14px}
.catalog-heading h3{margin:0;font-size:clamp(1.3rem,2.5vw,1.8rem)}
.catalog-heading p{margin:0;color:#64748b}
.catalog-toolbar{align-items:center}
.catalog-toolbar button:last-child{background:#135dc7;color:white;border-color:#135dc7;font-weight:700}
.business-product-card{background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.05);transition:box-shadow .15s,border-color .15s}
.business-product-card:hover{border-color:#9bbcf1;box-shadow:0 8px 20px rgba(15,23,42,.1)}
.catalog-card-summary{display:grid;gap:5px}
.catalog-card-summary strong{font-size:1.15rem}
.catalog-card-summary small{color:#64748b}
.catalog-product-form{margin:16px auto;max-width:760px}
.catalog-product-form>h3{font-size:1.5rem;margin-bottom:2px}
.catalog-form-actions{display:flex;flex-wrap:wrap;gap:10px;position:sticky;bottom:0;padding:12px 0;background:var(--card-bg,#fff);border-top:1px solid #e2e8f0;z-index:2}
.catalog-form-actions button[type=submit]{background:#135dc7;color:white;font-weight:700}
.business-catalog-editor>button:not([hidden]){margin:12px 0}
@media(max-width:550px){.catalog-form-actions{display:grid;grid-template-columns:1fr 1fr}.catalog-form-actions button:last-child{grid-column:1/-1}}

/* DIR386 — guided product editor, responsive and keyboard-accessible */
.catalog-product-form{max-width:900px;margin:12px auto 30px}
.catalog-product-form>h3{font-size:1.4rem;color:#102d5a}
.catalog-product-form>p{color:#64748b;font-size:.88rem}
.product-editor-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0 20px}
.product-editor-steps span{padding:10px 8px;border:1px solid #dbe5f4;border-radius:9px;background:#f6f9ff;color:#38547b;font-size:.8rem;font-weight:650;text-align:center}
.product-editor-steps span:first-child{background:#eaf2ff;color:#1459bf;border-color:#b8d1ff}
.product-editor-layout{display:grid;gap:14px}
.product-editor-panel,.product-editor-fold,.product-editor-promotion{padding:16px;border:1px solid #dce6f3;border-radius:11px;background:#fff;box-shadow:0 1px 4px #0b28510a}
.product-editor-panel>h4{margin:0 0 14px;padding:9px 12px;background:#eff5ff;color:#183c78;border-radius:7px;font-size:1rem}
.product-editor-info{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px}
.product-editor-info>h4{grid-column:1/-1}
.product-editor-info>label:first-of-type{grid-column:1}
.product-editor-info>label:nth-of-type(3){grid-column:1}
.product-editor-info>label:last-of-type{grid-column:2;grid-row:2/span 3}
.product-editor-photo{min-height:150px;display:grid;place-items:center;border:1px dashed #b9cce6;border-radius:9px;margin-top:8px;padding:10px;background:#f7faff}
.product-editor-photo img{max-width:100%;max-height:175px;object-fit:contain}
.product-editor-photo p{font-size:.8rem;color:#6a7b93;text-align:center}
.product-editor-panel label{min-width:0}
.product-editor-panel input,.product-editor-panel select,.product-editor-panel textarea{max-width:100%;box-sizing:border-box}
.product-editor-fold summary,.product-editor-promotion summary{cursor:pointer;font-weight:700;color:#173e7a;padding:4px 0}
.product-editor-fold[open] summary,.product-editor-promotion[open] summary{margin-bottom:14px}
.product-editor-final-price{display:block;margin:12px 0;color:#14743d}
.catalog-form-actions{padding:14px;background:#fff;box-shadow:0 -3px 10px #102d5a10}
@media(max-width:650px){.product-editor-info{grid-template-columns:1fr}.product-editor-info>label{grid-column:1!important;grid-row:auto!important}.product-editor-steps{gap:4px}.product-editor-steps span{font-size:.69rem;padding:8px 4px}.product-editor-panel,.product-editor-fold,.product-editor-promotion{padding:12px}}
.product-editor-photo-actions{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}
.product-editor-photo-actions button{flex:1 1 110px;min-width:0}
.product-editor-photo-status{font-size:.82rem;color:#39577b;margin:6px 0}

.product-editor-info>div:last-child{grid-column:2;grid-row:2/span 3}
@media(max-width:650px){.product-editor-info>div:last-child{grid-column:1;grid-row:auto}}

/* DIR388: the image preview is the sole photo selector; no illustrative-image dropdown. */
.product-editor-info>label:last-of-type{grid-column:1;grid-row:auto}
.product-editor-info>div:last-child>select[hidden]{display:none!important}

/* DIR 385/386: compact responsive variant prices and configurable complements. */
.product-variants-list,.product-option-choices{display:grid;gap:7px}
.product-variant-row,.product-choice-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(110px,1fr) 34px;gap:9px;align-items:center}
.product-variant-row label,.product-choice-row label{min-width:0;margin:0}
.product-variant-row input,.product-choice-row input{width:100%;min-width:0;box-sizing:border-box}
.product-variant-columns,.product-choice-columns{font-size:.82rem;color:#425676}
.product-remove-option{width:34px;height:36px;padding:0!important;border:1px solid #dbe3ed;border-radius:7px;background:white;cursor:pointer;font-size:1.3rem}
.product-add-option{width:100%;margin-top:12px;border:1px dashed #a7bddc!important;border-radius:8px;padding:11px!important;background:#f5f9ff;color:#12488f;cursor:pointer}
.product-option-groups{display:grid;gap:12px}
.product-option-group{border:1px solid #dce6f3;border-radius:11px;padding:14px;background:#f9fbff}
.product-option-group-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.product-option-group-header h4{margin:0;color:#173e7a}
.product-remove-group{border:0;background:transparent;color:#8b3b45;cursor:pointer}
.product-option-group-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(85px,.65fr) minmax(85px,.65fr);gap:10px;align-items:end}
.product-option-group-fields label{min-width:0}
.product-option-group-fields input{width:100%;min-width:0;box-sizing:border-box}
.product-options-help,.product-editor-fold>p{font-size:.8rem;color:#61718b;line-height:1.4}
.product-option-repeat{display:flex;align-items:center;gap:8px;margin-top:12px}
@media(max-width:540px){.product-option-group-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.product-option-group-fields label:first-child{grid-column:1/-1}.product-variant-row,.product-choice-row{grid-template-columns:minmax(0,1.35fr) minmax(85px,1fr) 28px;gap:5px}.product-remove-option{width:28px}.product-option-group{padding:9px}}


/* DIR387: three real, accessible product editor tabs. */
.product-editor-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.product-editor-steps .product-editor-tab{padding:10px 8px;border:1px solid #dbe5f4;border-radius:9px;background:#f6f9ff;color:#38547b;font-size:.8rem;font-weight:650;text-align:center;cursor:pointer;min-width:0}
.product-editor-steps .product-editor-tab[aria-selected="true"]{background:#eaf2ff;color:#1459bf;border-color:#b8d1ff}
.product-editor-steps .product-editor-tab:focus-visible{outline:2px solid #1459bf;outline-offset:2px}
.product-editor-tab-panel{display:grid;gap:14px}
.product-editor-tab-panel[hidden]{display:none!important}
@media(max-width:650px){.product-editor-steps .product-editor-tab{font-size:.7rem;padding:8px 4px}}

/* DIR389: two orderly product action rows, with stable 320px mobile layout. */
.business-catalog-editor .catalog-toolbar{display:grid;grid-template-columns:minmax(0,2fr) minmax(120px,1fr) minmax(132px,1fr);gap:10px 12px;align-items:stretch}
.business-catalog-editor .catalog-toolbar>input[type=search],.business-catalog-editor .catalog-toolbar>select,.business-catalog-editor .catalog-toolbar>button{box-sizing:border-box;width:100%;min-width:0;margin:0;min-height:44px;white-space:normal}
.business-catalog-editor .catalog-toolbar>input[type=search]{grid-column:1;grid-row:1}
.business-catalog-editor .catalog-toolbar>select{grid-column:2;grid-row:1}
.business-catalog-editor .catalog-toolbar>button:nth-of-type(1){grid-column:3;grid-row:1}
.business-catalog-editor .catalog-toolbar>button:nth-of-type(2){grid-column:1;grid-row:2;justify-self:start;max-width:230px}
.business-catalog-editor .catalog-toolbar>button:nth-of-type(3){grid-column:2;grid-row:2}
.business-catalog-editor .catalog-toolbar>button:nth-of-type(4){grid-column:3;grid-row:2}
@media(max-width:700px){.business-catalog-editor .catalog-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.business-catalog-editor .catalog-toolbar>input[type=search]{grid-column:1 / -1;grid-row:1}.business-catalog-editor .catalog-toolbar>select{grid-column:1;grid-row:2}.business-catalog-editor .catalog-toolbar>button:nth-of-type(1){grid-column:2;grid-row:2}.business-catalog-editor .catalog-toolbar>button:nth-of-type(2){grid-column:1;grid-row:3;max-width:none}.business-catalog-editor .catalog-toolbar>button:nth-of-type(3){grid-column:2;grid-row:3}.business-catalog-editor .catalog-toolbar>button:nth-of-type(4){grid-column:1 / -1;grid-row:4}}
@media(max-width:360px){.business-catalog-editor .catalog-toolbar{grid-template-columns:minmax(0,1fr)}.business-catalog-editor .catalog-toolbar>input[type=search],.business-catalog-editor .catalog-toolbar>select,.business-catalog-editor .catalog-toolbar>button:nth-of-type(2),.business-catalog-editor .catalog-toolbar>button:nth-of-type(3),.business-catalog-editor .catalog-toolbar>button:nth-of-type(4),.business-catalog-editor .catalog-toolbar>button:nth-of-type(1){grid-column:1;grid-row:auto;width:100%!important}}

/* DIR390: contextual matrix/branch cards */
.business-branch-choice-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.business-branch-choice{min-width:0;min-height:92px;text-align:left;padding:20px;border:2px solid #d4dfeb;border-radius:14px;background:#fff;color:#16365c;font:inherit;font-weight:700;cursor:pointer;overflow-wrap:anywhere}
.business-branch-choice.is-active{border-color:#1479e8;background:#f1f7ff;box-shadow:0 0 0 1px #1479e8}
.business-branch-choice:focus-visible,.business-branch-add-button:focus-visible{outline:3px solid #1479e8;outline-offset:3px}
.business-branch-add-button{padding:12px 18px;border-radius:10px;border:1px solid #1479e8;background:#f1f7ff;color:#124e91;cursor:pointer;font:inherit;font-weight:650;margin:10px 0}
@media(max-width:420px){.business-branch-choice-cards{grid-template-columns:1fr;gap:9px}.business-branch-choice{min-height:64px;padding:14px}}

/* DIR391: consistent three-column product toolbar */
.business-catalog-editor .catalog-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.business-catalog-editor .catalog-toolbar>input[type=search]{grid-area:1 / 1}
.business-catalog-editor .catalog-toolbar>select{grid-area:1 / 2}
.business-catalog-editor .catalog-toolbar>button:nth-of-type(1){grid-area:1 / 3}
.business-catalog-editor .catalog-toolbar>button:nth-of-type(2){grid-area:2 / 1;max-width:none;justify-self:stretch}
.business-catalog-editor .catalog-toolbar>button:nth-of-type(3){grid-area:2 / 2}
.business-catalog-editor .catalog-toolbar>button:nth-of-type(4){grid-area:2 / 3}
.business-catalog-editor .catalog-toolbar>input[type=search],.business-catalog-editor .catalog-toolbar>select,.business-catalog-editor .catalog-toolbar>button{min-width:0;width:100%;max-width:none;min-height:48px;box-sizing:border-box;overflow-wrap:anywhere;text-align:center;justify-self:stretch}
.business-catalog-editor .catalog-toolbar>input[type=search]{text-align:left}
@media(max-width:700px){.business-catalog-editor .catalog-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.business-catalog-editor .catalog-toolbar>input[type=search]{grid-area:1 / 1 / 2 / 3}.business-catalog-editor .catalog-toolbar>select{grid-area:2 / 1}.business-catalog-editor .catalog-toolbar>button:nth-of-type(1){grid-area:2 / 2}.business-catalog-editor .catalog-toolbar>button:nth-of-type(2){grid-area:3 / 1}.business-catalog-editor .catalog-toolbar>button:nth-of-type(3){grid-area:3 / 2}.business-catalog-editor .catalog-toolbar>button:nth-of-type(4){grid-area:4 / 1 / 5 / 3}}
@media(max-width:360px){.business-catalog-editor .catalog-toolbar{grid-template-columns:minmax(0,1fr)}.business-catalog-editor .catalog-toolbar>input[type=search],.business-catalog-editor .catalog-toolbar>select,.business-catalog-editor .catalog-toolbar>button:nth-of-type(1),.business-catalog-editor .catalog-toolbar>button:nth-of-type(2),.business-catalog-editor .catalog-toolbar>button:nth-of-type(3),.business-catalog-editor .catalog-toolbar>button:nth-of-type(4){grid-column:1;grid-row:auto}}


/* DIR392 shared visual language for branch and catalog workspaces */
.business-unified-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0 24px}
.business-unified-card{display:flex!important;align-items:center;gap:14px;text-align:left;min-width:0;min-height:90px;padding:18px 20px;border:1.5px solid #dce2eb!important;border-radius:16px!important;background:#fff!important;color:#172033!important;box-shadow:none!important;cursor:pointer}
.business-unified-card.is-active{border-color:#2563eb!important;background:#f5f9ff!important}
.business-unified-card:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.business-unified-card span:not(.business-unified-icon){display:flex;flex-direction:column;gap:4px;min-width:0}
.business-unified-card strong{font-size:1rem;font-weight:700;line-height:1.3}
.business-unified-card small{font-size:.85rem;color:#64748b;line-height:1.3}
.business-unified-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#f1f5f9;color:#475569;font-size:23px}
.business-unified-card.is-active .business-unified-icon{background:#dbeafe;color:#1d4ed8}
.business-section-subtitle{color:#64748b;margin:6px 0 16px}
.business-catalog-editor .catalog-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.business-catalog-editor .catalog-heading>div{min-width:0}
.business-primary-action,.business-branch-add-button{background:#111827!important;color:#fff!important;border:1px solid #111827!important;border-radius:999px!important;padding:11px 19px!important;font-weight:700!important;min-height:44px}
.business-catalog-editor .catalog-toolbar{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr)!important}
.business-catalog-editor .catalog-toolbar>input[type=search]{grid-column:1 / 3!important;grid-row:1!important}
.business-catalog-editor .catalog-toolbar>select{grid-column:3!important;grid-row:1!important}
.business-catalog-editor .catalog-toolbar>button:nth-of-type(1){grid-column:1!important;grid-row:2!important;max-width:none!important}
.business-catalog-editor .catalog-toolbar>button:nth-of-type(2){grid-column:2!important;grid-row:2!important}
.business-catalog-editor .catalog-toolbar>button:nth-of-type(3){grid-column:3!important;grid-row:2!important}
.business-catalog-editor .catalog-toolbar>button{background:#fff!important;color:#172033!important;border:1px solid #cbd5e1!important;border-radius:12px!important}
.business-unified-panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.business-unified-panel-heading h3{margin:0}
@media(max-width:550px){.business-unified-cards{grid-template-columns:1fr;gap:10px}.business-unified-card{min-height:74px}.business-catalog-editor .catalog-toolbar{grid-template-columns:1fr!important}.business-catalog-editor .catalog-toolbar>input[type=search],.business-catalog-editor .catalog-toolbar>select,.business-catalog-editor .catalog-toolbar>button{grid-column:1!important;grid-row:auto!important}.business-catalog-editor .catalog-heading{align-items:stretch}.business-catalog-editor .catalog-heading>.business-primary-action{width:100%}}

.business-icon-store::before{content:'🏬'}
.business-icon-grid::before{content:'▦'}
.business-icon-package::before{content:'▣'}
.business-unified-category-panel .business-registration-form{max-width:100%}
.business-unified-category-panel .business-category-list{margin-bottom:16px}
.business-catalog-editor .catalog-heading>.business-primary-action{flex:0 0 auto}
.business-catalog-editor .catalog-toolbar>button:nth-of-type(3){font-size:0}
.business-catalog-editor .catalog-toolbar>button:nth-of-type(3)::before{content:'↻';font-size:22px;vertical-align:middle}


/* DIR394: operational dashboard, responsive and keyboard accessible */
.business-dashboard{display:grid;gap:14px;color:#172033}
.business-dashboard-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.business-dashboard-controls select,.business-dashboard-controls button{min-height:44px;border:1px solid #cbd5e1;border-radius:10px;background:white;padding:8px 12px;color:#172033}
.business-dashboard-controls button{background:#111827;color:#fff;cursor:pointer}
.business-dashboard-section{padding:18px;border:1px solid #e2e8f0;border-radius:16px;background:white;margin-bottom:14px}
.business-dashboard-section h4{margin:0 0 14px;font-size:1.05rem}
.business-dashboard-kpis,.business-dashboard-status{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.business-dashboard-kpi{display:flex;flex-direction:column;gap:8px;padding:15px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;min-width:0}
.business-dashboard-kpi span{font-size:.85rem;color:#64748b}
.business-dashboard-kpi strong{font-size:1.3rem;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.business-dashboard-bars{display:flex;align-items:flex-end;gap:6px;overflow-x:auto;padding:12px 0}
.business-dashboard-bar{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:54px;font-size:.72rem;font-variant-numeric:tabular-nums}
.business-dashboard-bar-fill{width:24px;background:#2563eb;border-radius:5px 5px 0 0}
.business-dashboard-section li{padding:5px 0}
.business-dashboard-note{font-size:.82rem;color:#64748b}
@media(max-width:720px){.business-dashboard-kpis,.business-dashboard-status{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.business-dashboard-controls select,.business-dashboard-controls button{width:100%}.business-dashboard-section{padding:12px}.business-dashboard-kpi{padding:10px}.business-dashboard-kpi strong{font-size:1.05rem}}

/* DIR395 progressive catalog administration */
.business-unified-count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;padding:2px 9px;border-radius:999px;background:#e2e8f0;color:#172033;font-weight:700;font-variant-numeric:tabular-nums}
.catalog-category-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 16px}
.catalog-category-actions button{background:#111827;color:white;border:0;border-radius:10px;padding:11px 18px;min-height:44px;cursor:pointer}
.catalog-category-count{color:#64748b;font-size:.9rem}
.business-unified-category-panel .business-category-list{display:grid;gap:10px;margin:0}
.business-unified-category-panel .catalog-category-row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:13px 16px;border:1px solid #e2e8f0;border-radius:12px;background:white}
.catalog-category-info{display:grid;gap:4px;min-width:0;flex:1}
.catalog-category-info strong{overflow-wrap:anywhere}
.catalog-category-info small{color:#64748b}
.catalog-category-state{font-size:.78rem;border-radius:999px;padding:5px 9px;background:#f1f5f9;white-space:nowrap}
.catalog-category-state.is-active{background:#dcfce7;color:#166534}
.catalog-category-state.is-inactive{background:#fee2e2;color:#991b1b}
.business-unified-category-panel .catalog-category-row button{min-height:44px;padding:8px 14px;border-radius:10px;border:1px solid #cbd5e1;background:white;color:#172033}
.business-unified-category-panel .catalog-category-form{margin:0 0 16px;padding:16px;border:1px solid #cbd5e1;border-radius:14px}
.business-unified-category-panel .catalog-category-form[hidden]{display:none!important}
.business-unified-category-panel .catalog-category-form select[hidden]{display:none!important}
@media(max-width:360px){.business-unified-category-panel .catalog-category-row{flex-wrap:wrap;padding:12px}.business-unified-category-panel .catalog-category-row button{width:100%}.catalog-category-actions{flex-wrap:wrap}}

/* DIR396: compact management, keyboard/touch accessible */
.branch-compact-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px;margin:12px 0}.branch-compact-summary p{margin:0;padding:12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;color:#374151;overflow-wrap:anywhere}.business-branch-group{background:#fff;border-color:#e5e7eb}.business-branch-group>details:not([open]){display:none}.business-branch-group>details[open]{display:block}.business-branch-group .business-workspace-actions{display:flex;flex-wrap:wrap;gap:8px}.business-branch-group .business-workspace-actions button{min-height:44px}.business-branch-choice{border-color:#e5e7eb;color:#111827}.business-branch-choice.is-active{border-color:#111827;background:#f9fafb;box-shadow:none}@media(max-width:420px){.business-branch-group{padding:12px}.business-branch-group .business-workspace-actions button{width:100%}}

.branch-order-editor{padding:16px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}.branch-order-editor fieldset{min-width:0;border:1px solid #e5e7eb;border-radius:10px;padding:10px}.branch-order-editor .business-weekly-hours{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}.branch-order-editor button{min-height:44px}.branch-order-editor textarea{max-width:100%}@media(max-width:420px){.branch-order-editor{padding:12px}.branch-order-editor .branch-hours-range{flex-wrap:wrap}}

.branch-order-editor .branch-order-toggle{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:44px;width:100%;flex-direction:row!important;text-align:left}.branch-order-editor .branch-order-toggle input[type=checkbox]{flex:0 0 auto;width:18px;height:18px;margin:0;accent-color:#111827}.branch-order-editor .branch-order-toggle span{flex:1;line-height:1.4}.branch-order-editor .business-weekly-hours .branch-order-toggle{min-height:32px}
.branch-order-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.branch-order-actions button{min-height:44px}.branch-order-editor select{max-width:100%;min-height:44px}.branch-order-editor .business-weekly-hours[hidden]{display:none!important}@media(max-width:320px){.branch-order-actions{flex-direction:column;align-items:stretch}.branch-order-actions button{width:100%}.branch-order-editor fieldset{min-width:0}.branch-order-editor .branch-hours-range{flex-wrap:wrap}}

/* DIR396: publication is the primary action only when the branch is ready */
.business-branch-group .branch-publish-cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 22px;border:1px solid #111827;border-radius:11px;background:#111827;color:#fff;font-weight:750;font-size:0.95rem;letter-spacing:.01em;box-shadow:0 3px 9px rgba(17,24,39,.18);cursor:pointer;transition:background .15s,transform .15s,box-shadow .15s}
.business-branch-group .branch-publish-cta::before{content:'✓';display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#fff;color:#111827;font-weight:800}
.business-branch-group .branch-publish-cta:not(:disabled):hover{background:#293548;box-shadow:0 5px 14px rgba(17,24,39,.23);transform:translateY(-1px)}
.business-branch-group .branch-publish-cta:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.business-branch-group .branch-publish-cta:disabled{background:#e5e7eb;color:#64748b;border-color:#cbd5e1;box-shadow:none;cursor:not-allowed;transform:none}
.business-branch-group .branch-publish-cta:disabled::before{background:#cbd5e1;color:#fff}
.business-branch-group .branch-publish-hint{margin:7px 0 14px;font-size:.86rem;color:#475569;line-height:1.5}
@media(max-width:420px){.business-branch-group .branch-publish-cta{width:100%}}

.orders-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr));gap:12px;align-items:end;margin-block:12px}.orders-filters label{display:grid;gap:5px;min-width:0}.orders-filters input,.orders-filters select{min-width:0;width:100%}.orders-pagination:not([hidden]){display:flex;gap:8px;margin-block:12px}.order-card>details{width:100%;overflow-wrap:anywhere}

.order-operation-form fieldset { display: grid; gap: .55rem; padding: .6rem; margin-block: .5rem; border: 1px solid var(--line, #d8e0e8); border-radius: .4rem; }
.order-operation-form fieldset[hidden], .order-operation-form label[hidden], .order-print-summary { display: none; }
.order-operation-form label { display: grid; gap: .25rem; }
@media print {
  body:has(> .order-print-summary) > :not(.order-print-summary) { display: none !important; }
  .order-print-summary { display: block; color: #111; background: #fff; }
}

.order-whatsapp-form { display: grid; gap: .5rem; justify-items: start; }


/* Save progress and confirmation in the branch overview. */
.branch-contact-editor form[aria-busy="true"] input{background:#f1f5f9;color:#64748b;border-color:#cbd5e1;cursor:wait}
.branch-contact-editor form[aria-busy="true"] button{cursor:wait}
.branch-save-confirmation:not([hidden]){margin:12px 0;padding:12px;border:1px solid #bbf7d0;border-radius:10px;background:#f0fdf4;color:#166534}

/* Guest order checkout and receipt. */
.shop-guest-contact{display:grid;gap:.7rem}
.shop-guest-contact[hidden]{display:none}
.shop-guest-contact h3,.shop-guest-contact p{margin:.2rem 0}
.shop-guest-contact label{display:grid;gap:.35rem;font-weight:600}
.shop-guest-contact input{box-sizing:border-box;width:100%;max-width:100%;min-width:0;padding:.65rem;border:1px solid #b9cbd0;border-radius:.5rem;font:inherit}
.storefront-dialog .shop-guest-contact{padding:0;border:0;box-shadow:none;margin-bottom:1.1rem}
.shop-order-dialog{box-sizing:border-box;overflow-wrap:anywhere}
.shop-order-dialog form,.shop-order-dialog label,.shop-order-dialog input,.shop-order-dialog select{max-width:100%;box-sizing:border-box}
.shop-order-dialog .shop-receipt>ul{padding-left:1.2rem}
.shop-order-dialog .shop-receipt>ul li{margin:.45rem 0}
.shop-order-dialog .shop-receipt>strong{display:block;margin:1rem 0;font-size:1.1rem}
.shop-order-dialog .shop-receipt>a{display:inline-block;margin:.45rem 0}
.guest-tracking-actions{margin-top:1.3rem;padding-top:1rem;border-top:1px solid #d8e3e6}
.guest-tracking-actions h4{font-size:1.1rem;margin:.1rem 0 .6rem}
.guest-tracking-actions .guest-tracking-link{display:block;border-radius:.6rem;padding:.75rem 1rem;background:#006c77;color:#fff;text-align:center;font-weight:650;text-decoration:none;margin:.8rem 0}
.guest-tracking-actions button{width:100%}
.guest-tracking-actions input{display:block;width:100%;padding:.6rem}
.guest-tracking-actions p{font-size:.9rem}
.guest-link-feedback:empty{display:none}
.guest-optional-account{color:#52636c}
@media(max-width:480px){.shop-order-dialog{padding:1rem}.shop-order-dialog>button{width:100%}}

.shop-order-dialog :is(.shop-receipt,.shop-checkout-review):not(:empty){gap:.65rem;padding:1rem;margin:.6rem 0}
.shop-order-dialog :is(.shop-receipt,.shop-checkout-review)>:is(p,h3,ul){margin:0}
.shop-order-dialog .shop-receipt>strong{margin:.35rem 0}

.public-access-header #public-market-cart:not([hidden]){display:inline-flex;align-items:center;gap:8px;margin-left:auto;padding:8px 12px;min-height:42px;border:1px solid #d7e3f5;border-radius:12px;background:white;color:#133463;cursor:pointer;white-space:nowrap;font:inherit;font-weight:650}
.public-access-header #public-market-cart:hover{border-color:#2563ff;background:#f5f9ff}
.public-access-header #public-market-cart svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.public-access-header #public-market-cart .cart-counter{min-width:22px;padding:2px 4px;text-align:center;border-radius:999px;background:#eef4ff;font-size:12px}
.public-access-header #public-market-cart:not([hidden])~.profile-menu{margin-left:0}
@media(max-width:780px){.public-access-header #public-market-cart:not([hidden]){margin-left:0}}

.public-access-header #public-market-cart:not([hidden]){background:#fff1f0;border-color:#e8bbb8;color:#aa4b47}
.public-access-header #public-market-cart:hover{background:#ffe4e1;border-color:#d98e88}
.public-access-header #public-market-cart .cart-counter{background:#f4d4d1;color:#963e3b}
.public-access-header #public-market-cart:focus-visible{outline:3px solid #edb1ab;outline-offset:3px}
@media(max-width:780px){
 html[data-market-storefront] .public-access-header .public-nav-link+.public-nav-link{grid-column:2}
 html[data-market-storefront] #public-market-cart:not([hidden]){grid-area:2/3;justify-self:end}
}

.business-panel-identity{display:flex;align-items:center;flex-wrap:wrap;gap:clamp(10px,2vw,20px);min-width:0;width:100%}
.business-panel-identity img{width:clamp(44px,7vw,76px);aspect-ratio:1;object-fit:contain;background:#fff;border-radius:14px}
.delivery-page .business-workspace-content,.delivery-registration-card{min-width:0}
.delivery-create-content{margin-block:16px}
.delivery-registration-card{width:auto!important;margin-block:12px;max-width:none}
.delivery-registration-card>label{display:flex;gap:6px}
.delivery-registration-card textarea{width:100%;min-height:88px;padding:11px 12px;border:1px solid #c8d4e5;border-radius:9px;font:inherit;color:#142f54;resize:vertical}
.delivery-registration-card>label:has(textarea),.delivery-registration-card .delivery-registration-wide,.delivery-registration-actions{grid-column:1/-1}
.delivery-registration-card .delivery-media-field{min-width:0;grid-column:1/-1;padding:12px;border:1px solid #d7e1f2;border-radius:10px;background:#f8faff}
.delivery-registration-card .delivery-media-field input{max-width:100%}
.delivery-registration-card .htp-pickup-map{margin:0!important}
.delivery-registration-card .registration-consent{display:flex;flex-direction:row;align-items:center}
.delivery-registration-card .delivery-registration-actions{justify-content:flex-end}
.delivery-registration-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;padding:0;gap:6px;margin:12px 0}
.delivery-registration-progress[hidden]{display:none}
.delivery-registration-progress li{display:flex;align-items:center;gap:7px;border:1px solid #d7e1f2;border-radius:10px;padding:8px;color:#526580;font-size:clamp(.72rem,2vw,.94rem);line-height:1.25}
.delivery-registration-progress li span{display:grid;place-items:center;flex:none;width:1.55em;height:1.55em;border-radius:50%;background:#e9eff8}
.delivery-registration-progress li[aria-current='step']{background:#eaf1ff;border-color:#7ca5e6;color:#143f8d}
.delivery-registration-progress li[aria-current='step'] span{background:#175bc4;color:#fff}
.delivery-registration-progress li.is-complete{color:#143f8d}
.business-registration-back{display:inline-flex;margin:0 0 12px;color:#143f8d;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.business-registration-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.business-registration-cancel{min-height:42px;padding:9px 16px;border:1px solid #b9c9df;border-radius:9px;background:#fff;color:#173451;font:inherit;font-weight:650;cursor:pointer}
.business-registration-actions button[type=submit],.business-registration-actions .delivery-primary{min-height:42px;padding:9px 18px}
.delivery-name-registration>p:first-child{margin-top:0}
.business-lifecycle-editor{margin-top:18px;border:1px solid #d7e1f2;border-radius:12px;padding:16px}
.business-lifecycle-editor h4{margin:0 0 8px}
.business-lifecycle-editor form>label{display:grid;gap:7px;font-weight:650}
.business-lifecycle-editor form input{min-height:42px;padding:8px 10px;border:1px solid #c8d4e5;border-radius:9px;font:inherit}
.business-lifecycle-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.business-lifecycle-actions button{min-height:40px;padding:8px 13px;border:1px solid #bccbe0;border-radius:9px;background:#fff;color:#173451;font:inherit;font-weight:650;cursor:pointer}
.business-lifecycle-actions button:disabled{opacity:.55;cursor:not-allowed}
.business-lifecycle-actions .business-lifecycle-delete{border-color:#d8a8a8;color:#9b3030}
.business-lifecycle-editor [role=status][data-state=error]{color:#a12626}
.business-lifecycle-editor [role=status][data-state=success]{color:#08755d}
.business-selector-type{display:block;color:#8b4c1c;font-weight:650}
@media(max-width:520px){.business-registration-actions>*{flex:1 1 100%}.business-lifecycle-actions>*{flex:1 1 100%}}
.delivery-commercial-draft .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.delivery-page button.delivery-primary,.delivery-commercial-draft button.delivery-primary,.delivery-page .delivery-registration-card>button[type='submit']{min-height:44px;padding:10px 14px;margin:0;border:1px solid #175bc4;border-radius:9px;background:#175bc4;color:#fff;font-weight:700}
.delivery-page button.delivery-primary:hover,.delivery-commercial-draft button.delivery-primary:hover,.delivery-page .delivery-registration-card>button[type='submit']:hover{background:#154f9f}
.delivery-page .business-workspace-content>section>.card,.delivery-page .business-workspace-facts{margin-block:12px}
.delivery-page .business-workspace-content .card{margin-block:10px}
.delivery-page .business-workspace-facts dt{line-height:1.35}
@media(max-width:390px){.delivery-registration-progress li{display:grid;justify-items:start;padding:6px}.delivery-registration-card .delivery-registration-actions{align-items:stretch;justify-content:normal}}

.delivery-page .business-workspace-mobile{display:none}
@media(max-width:800px){.delivery-page .business-workspace-mobile{display:grid}}

.business-selector-actions{display:flex;flex-wrap:wrap;gap:8px}
.business-selector-type{display:block;color:#526580;margin-top:3px}

/* Delivery uses the Business workspace shell and dashboard cards. */
.delivery-page .business-workspace-sidebar { max-height: calc(100vh - 2rem); overflow-y: auto; }
.delivery-nav-group { min-width: 0; margin-top: .35rem; padding-top: .45rem; border-top: 1px solid #e3eaf5; }
.delivery-nav-group > p {
  margin: .25rem .75rem;
  color: var(--business-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.delivery-page .delivery-tablist, .delivery-page .delivery-state-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-block: .45rem .95rem;
}
.delivery-page :is(.delivery-tablist,.delivery-state-filters) > button {
  min-height: 40px;
  margin: 0;
  padding: .45rem .68rem;
  border-color: #ccd9ec;
  color: var(--business-ink);
  font-size: .875rem;
}
.delivery-page :is(.delivery-tablist [aria-selected='true'],.delivery-state-filters [aria-pressed='true'],.delivery-zone-list [aria-pressed='true']) {
  border-color: #6795eb;
  background: #eaf1ff;
  color: var(--business-accent);
  font-weight: 700;
}
.delivery-page > [role='status']:empty { display: none; }
.delivery-page > [role='status']:not(:empty) {
  position: sticky;
  top: .35rem;
  z-index: 10;
  padding: .7rem .9rem;
  border: 1px solid #cbdaf0;
  border-radius: 10px;
  background: #eff5ff;
  color: #174988;
}
.delivery-page > [role='status'][data-state='error'], .delivery-coverage-form > [role='status']:not(:empty) {
  border-color: #e7c2c3;
  background: #fff3f3;
  color: #8a2226;
  padding: .7rem .9rem;
  border-radius: 10px;
}
.delivery-coverage-form > [role='status']:empty { display: none; }
.delivery-kpis { margin: .55rem 0; }
.delivery-kpis :is(dt,dd) { margin: 0; }
.delivery-kpis dt { color: var(--business-muted); font-size: .83rem; line-height: 1.35; }
.delivery-kpis dd { color: var(--business-ink); font-weight: 740; font-size: clamp(1rem, 2vw, 1.35rem); }
.delivery-record { margin-top: .75rem; min-width: 0; overflow-wrap: anywhere; }
.delivery-record > p { margin-block: .5rem; }
.delivery-record > h5 { margin: .85rem 0 .3rem; }
.delivery-record-meta, .delivery-linked-record {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  padding-block: .3rem;
}
.delivery-linked-record + .delivery-linked-record { border-top: 1px solid #e3eaf5; }
.delivery-linked-record > strong { margin-inline-end: auto; }
.delivery-state { padding: .28rem .55rem; border-radius: 999px; background: #edf3fd; color: #204776; font-size: .82rem; }
.delivery-audit-list { display: grid; gap: .55rem; padding-inline-start: 1.3rem; }
.delivery-audit-list span { display: block; color: var(--business-muted); font-size: .875rem; }
.delivery-coverage-map { isolation: isolate; height: clamp(250px, 38vh, 410px); border: 1px solid #cddcec; border-radius: 12px; background: #eaf1f8; }
.delivery-zone-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .8rem; align-items: start; }
.delivery-zone-list { display: grid; gap: .35rem; list-style: none; padding: 0; margin: .6rem 0; }
.delivery-zone-list button { margin: 0; width: 100%; text-align: start; overflow-wrap: anywhere; }
.delivery-page .delivery-zone-detail { display: grid; gap: .65rem; margin: .55rem 0; padding: .7rem; border: 1px solid #cddcec; border-radius: 10px; }
.delivery-coverage-form > [role='tabpanel'] > label { margin-bottom: .65rem; }
.delivery-page label:has(> input[type='checkbox']) { display: flex; align-items: center; }
.delivery-page label > input[type='checkbox'] { width: auto; margin: 0 .35rem; }
.delivery-page :is(input,select)[aria-invalid='true'] { border-color: #ad3e40; outline: 2px solid #eabdc0; }
@media (max-width: 550px) {
 .delivery-zone-workspace { grid-template-columns: minmax(0, 1fr); gap: 0; }
 .delivery-page :is(.delivery-tablist,.delivery-state-filters) > button { min-height: 44px; }
}
