/* Bridge the supplied HTML theme to the existing CI4 screens. */
.html-ui{--wine:var(--brand,#890d42);font-family:'DM Sans',Arial,sans-serif;line-height:1.55;min-width:320px}.html-ui h1,.html-ui h2,.html-ui h3{line-height:1.25}.html-ui img{max-width:100%}.html-ui button:disabled{opacity:.5;cursor:not-allowed;transform:none}.html-ui [hidden]{display:none!important}.html-ui .alert{max-width:1324px;margin:18px auto;padding:15px;border-radius:10px}.html-ui .alert.error{background:#ffe5ec;color:#9a1940}.html-ui .alert.ok{background:#e2f7ee;color:#16774e}.html-ui .logo{display:block;font-size:28px;max-width:290px;line-height:1.05;white-space:normal}.custom-logo{max-height:70px;max-width:220px;object-fit:contain}.search input{padding-right:45px}.search-submit{position:absolute;right:8px;top:4px;padding:6px 10px;border:0;background:none;color:var(--wine);font-size:25px}.html-ui .icons a{color:var(--ink)}.html-ui .nav .mega{grid-template-columns:1fr 1fr}.html-ui .store-content{min-height:45vh}.html-ui .store-content>.container{max-width:1380px;margin:auto}.html-ui .hero-copy{padding:0;align-self:auto;background:none}.html-ui .hero-eyebrow{letter-spacing:3px}.html-ui .hero p{color:#fff}.editorial-title{font:600 30px Georgia,serif;color:var(--wine)}.all-creators{border-radius:50%;background:#f8dce9;width:min(145px,100%);aspect-ratio:1;display:grid;place-items:center;color:#a10f50;font-size:45px;margin:auto}.html-ui .product-grid{grid-template-columns:repeat(var(--card-columns,4),minmax(0,1fr))}.html-ui .product{min-width:0;border-radius:var(--card-radius,13px)}.html-ui .photo{padding:0;display:block;aspect-ratio:auto}.html-ui .product .photo>a{display:block}.html-ui .product .photo img{width:100%;height:270px;object-fit:cover}.html-ui .quick a{display:grid;place-items:center;background:#fff;border-radius:50%;width:36px;height:36px;color:var(--wine);font-size:20px}.html-ui .quick form{margin:0;padding:0;box-shadow:none;border:0;background:transparent}.html-ui .quick{z-index:2}.html-ui .product:focus-within .quick{opacity:1;transform:none}.html-ui .product-body{display:flex;flex-direction:column;align-items:stretch;height:calc(100% - 270px);min-height:180px}.html-ui .product-body>form,.html-ui .product-body>.btn{margin-top:auto}.html-ui .product-body h3{color:#252337;min-height:36px}.html-ui .sample-label{display:block;color:#90650f;font-size:10px;margin:3px 0 8px}.html-ui .price{font-size:16px}.html-ui .help{margin:7px 0 12px}.html-ui .newsletter form{display:flex;gap:8px;align-items:center}.html-ui .newsletter h2{font-size:22px;margin:0}.html-ui .footer .logo{font-size:30px}.html-ui .footer hr{border:0;border-top:1px solid #ffffff22;margin-top:25px}.html-ui .profilehero{justify-content:space-between}.html-ui .profilehero>div{min-width:0}.html-ui .profilehero>img{flex-shrink:0}.html-ui .pagehead h1{font-family:Georgia,serif}.html-ui .pagehead{margin:0}.html-ui .pagehead .breadcrumbs{margin-bottom:10px}.html-ui .shop-layout{align-items:start}.html-ui .shop-layout aside{position:sticky;top:15px}.html-ui #catalogFilters{display:grid;gap:14px}.html-ui #catalogFilters .checks label{margin:5px 0}.html-ui #catalogFilters input[type=range]{padding:0}.html-ui #catalogFilters .field input{width:100%}.html-ui #catalogFilters hr{width:100%;border:0;border-top:1px solid var(--line);margin:5px 0}.html-ui .pagination{display:flex;gap:6px;flex-wrap:wrap;margin-top:25px}.html-ui .product-list-view .product-grid{grid-template-columns:1fr}.html-ui .product-list-view .product{display:grid;grid-template-columns:minmax(120px,220px) minmax(0,1fr)}.html-ui .product-list-view .product-body{height:auto;min-height:0}.html-ui .product-list-view .photo img{height:100%;min-height:220px}.html-ui .product-list-view .product-body .btn{align-self:flex-start;width:auto;margin-top:12px}.html-ui .detail{gap:50px}.html-ui .detail h1{font-family:Georgia,serif;font-size:38px}.html-ui .zoom-frame{touch-action:pan-y}.html-ui .detail-main{height:560px;object-fit:contain;user-select:none;touch-action:pan-y}.html-ui .zoom-tools{z-index:3}.html-ui .zoom-tools button{color:var(--ink);padding:0;background:white}.html-ui .thumbs{overflow:auto}.html-ui .thumbs button{background:white;padding:3px;border:2px solid transparent;border-radius:9px;flex-shrink:0}.html-ui .thumbs button[aria-pressed=true]{border-color:var(--wine)}.html-ui .thumbs img{width:76px;height:76px;display:block}.html-ui .qty{align-items:stretch}.html-ui .qty input{width:62px;text-align:center;border:0;border-radius:0;padding:6px}.html-ui .qty button{color:var(--wine);margin:0}.html-ui .purchase-actions{display:flex;gap:15px;flex-wrap:wrap;margin:15px 0}.html-ui .detail>section>form{margin:15px 0}.html-ui .detail label{display:grid;gap:8px}.html-ui .checkout-split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:25px;align-items:start}.html-ui .order-summary{position:sticky;top:20px}.html-ui .cart-row{display:grid;grid-template-columns:100px minmax(0,1fr);gap:20px;padding:22px 0;border-bottom:1px solid var(--line)}.html-ui .cart-row img{height:100px;width:100px;object-fit:cover;border-radius:9px}.html-ui .cart-row form{margin:8px 0}.html-ui .cart-row .inline-form{display:flex;align-items:end;gap:10px}.html-ui .cart-row input[name=quantity]{width:75px;display:block}.html-ui .drawer .cart-row{grid-template-columns:65px minmax(0,1fr);gap:12px}.html-ui .drawer .cart-row img{height:65px;width:65px}.html-ui dialog{width:min(960px,94vw);max-height:90vh;overflow:auto;background:#fff;border:0;border-radius:16px;padding:25px;box-shadow:var(--shadow);color:var(--ink)}.html-ui dialog::backdrop{background:#160c1a8c}.html-ui dialog .detail{gap:25px;grid-template-columns:1fr 1fr}.html-ui dialog .detail-main{height:350px}.html-ui dialog .dialog-header{display:flex;justify-content:end;margin-bottom:12px}.html-ui .gallery-full{height:75vh;width:100%;object-fit:contain}.html-ui .drawer-dialog{margin:0 0 0 auto;border-radius:0;height:100vh;max-height:100vh;width:min(460px,100vw)}.html-ui .auth-panel{max-width:520px;margin:40px auto}.html-ui .auth-panel h1{font-family:Georgia,serif}.html-ui .auth-panel form,.html-ui .form-grid,.html-ui .address-form{display:grid;gap:16px}.html-ui .auth-panel label,.html-ui .address-form label{display:grid;gap:7px}.html-ui .cms-content{max-width:1000px;margin:40px auto;padding:25px}.html-ui .store-content>h1,.html-ui .store-content>form,.html-ui .store-content>p{max-width:1000px;margin:25px auto}.html-ui .store-content>.two{max-width:1300px;margin:30px auto}.html-ui .panel{min-width:0}.html-ui .account-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:25px}.html-ui .field input,.html-ui .field textarea,.html-ui .field select{width:100%}.html-ui input[type=checkbox],.html-ui input[type=radio]{width:auto;min-width:0;padding:0;margin-right:6px}.html-ui input[type=hidden]{display:none}.html-ui .muted{overflow-wrap:anywhere}
/* Existing management workflows use the same supplied panel grammar. */
.html-ui.panel-ui{background:#f7f8fd}.html-ui.panel-ui .sidebar{width:238px;background:var(--navy);padding:25px 13px;position:fixed;height:100vh;top:0;left:0;display:block;overflow-y:auto}.html-ui.panel-ui .management-content{margin-left:238px;min-width:0}.html-ui .admin-brand{color:#d8b26b;align-items:flex-start;padding:5px 14px;margin-bottom:22px}.html-ui .admin-brand>span{font-size:25px}.html-ui .admin-brand strong{font:600 29px Georgia;line-height:1.1}.html-ui .admin-brand small{font-size:8px;color:#d8b26b}.html-ui.panel-ui .sidebar nav{display:block}.html-ui.panel-ui .sidebar nav>a{padding:12px 14px;margin:3px 0;font-size:12px;box-shadow:none}.html-ui.panel-ui .sidebar a[aria-current]{background:#3d7af2}.html-ui.panel-ui .nav-more{margin-top:8px}.html-ui.panel-ui .nav-more>a{padding:10px 14px!important;display:flex!important}.html-ui.panel-ui .management-top{height:72px;padding:0 30px;display:flex;align-items:center;justify-content:space-between}.html-ui.panel-ui main.content{padding:30px;max-width:1700px;width:100%;margin:auto;overflow:visible}.html-ui.panel-ui main>h1{font-size:26px;font-weight:700;margin:0 0 25px}.html-ui.panel-ui main>h2{font-size:18px;margin:26px 0 15px}.html-ui.panel-ui main>form,.html-ui.panel-ui main>.form,.html-ui.panel-ui main>details,.html-ui.panel-ui main>.container{background:white;border:1px solid #ebe8f0;border-radius:14px;padding:22px;box-shadow:0 5px 20px #17203c08;margin:18px 0;max-width:100%;width:100%}.html-ui.panel-ui main>form,.html-ui.panel-ui .form{display:flex;gap:15px;align-items:end;flex-wrap:wrap}.html-ui.panel-ui form label{display:flex;flex-direction:column;gap:6px;min-width:160px;flex:1}.html-ui.panel-ui label input,.html-ui.panel-ui label select,.html-ui.panel-ui label textarea{width:100%}.html-ui.panel-ui button:not(.nav-toggle):not(.sidebar-logout):not(.table-sort):not(.tab):not(.iconbtn){background:var(--wine);border:1px solid var(--wine);border-radius:8px;color:#fff;padding:9px 14px;font-size:12px;line-height:1.4}.html-ui.panel-ui .btn.outline{background:#fff;color:var(--wine)}.html-ui.panel-ui button.btn.soft{background:#fae5ee;color:var(--wine);border-color:#fae5ee}.html-ui.panel-ui main td form{display:flex;gap:6px;align-items:center;flex-wrap:wrap;min-width:150px}.html-ui.panel-ui main td input,.html-ui.panel-ui main td select{max-width:180px;padding:8px 10px}.html-ui.panel-ui main td form label{min-width:100px}.html-ui.panel-ui main td form+form{margin-top:8px}.html-ui .table-card{background:#fff;border:1px solid #ebe8f0;border-radius:14px;padding:22px;box-shadow:0 5px 20px #17203c08;margin:20px 0;max-width:100%;min-width:0}.html-ui .table-card table{display:table!important;width:100%;border-collapse:collapse;border-radius:0;margin:0;background:#fff}.html-ui .table-card .tablewrap{width:100%;max-width:100%;overflow:auto}.html-ui .table-card th{text-transform:uppercase;font-size:11px;padding:13px;background:#f9f8fc;text-align:left;white-space:nowrap;color:#747b8c}.html-ui .table-card td{padding:14px 13px;font-size:12px;border-bottom:1px solid #f0eef3;white-space:normal;min-width:80px}.html-ui .table-card .toolbar{gap:10px;display:flex;margin:0 0 16px;flex-wrap:wrap}.html-ui .table-card .toolbar input{min-width:180px;flex:1;max-width:420px}.html-ui .table-card .table-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:15px;font-size:12px}.html-ui .table-card .page-controls{display:flex;gap:6px;align-items:center}.html-ui .table-card .table-sort{background:transparent;border:0;padding:0;color:inherit;text-align:left;font:inherit;text-transform:inherit}.html-ui .table-card .status-filter{max-width:180px}.html-ui .stock-thumb{width:42px;height:42px;display:block;flex-shrink:0}.html-ui .stock-thumb>img{height:42px;width:42px;border-radius:7px;object-fit:cover}.html-ui .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.html-ui .stat{background:white;border:1px solid #e9eaf1;border-radius:12px;padding:22px;box-shadow:0 5px 18px #18253b08;color:#7b8090;font-size:12px}.html-ui .stat h2{font-size:24px;margin:10px 0;color:var(--ink)}.html-ui .dashboard-row{grid-template-columns:1.7fr 1fr}.html-ui .dashboard-panel,.html-ui .kpi-card{border-radius:14px;padding:22px;box-shadow:0 5px 20px #17203c08}.html-ui .kpi-card>strong{font-size:24px}.html-ui .dashboard-panel table{font-size:12px}.html-ui .dashboard-panel td{font-size:12px!important}.html-ui .dashboard-panel .table-card{padding:0;border:0;box-shadow:none;margin:0}.html-ui .sales-chart{height:260px}.html-ui .demo-banner{background:#fff5df;border:1px solid #f4dfaa;color:#946819;border-radius:10px;padding:15px;font-size:12px;margin:0 0 22px}.html-ui .dashboard-title{margin-bottom:25px}.html-ui .dashboard-title h1{font-size:26px}.html-ui .sidebar-logout{color:#fff!important;background:none!important}.html-ui .sidebar .sidecap{margin-top:10px}.html-ui .nav-toggle{display:none;background:none!important;color:var(--ink)!important}.html-ui .ui-icon{width:22px;height:22px}.html-ui .tiny-avatar,.html-ui .admin-avatar{overflow:hidden}.html-ui .quick-actions{grid-template-columns:repeat(5,minmax(0,1fr))}.html-ui .site-section{margin:25px 0;padding:25px;border-radius:14px}.html-ui .site-section img{max-height:450px;object-fit:cover}.html-ui .builder-grid>*{min-width:0}.html-ui .visual-preview{max-width:100%}.html-ui details>summary{cursor:pointer;font-weight:700}.html-ui .table-actions{align-items:center}.html-ui .auth-panel .btn{width:100%}.html-ui .tabs{padding-top:15px}.html-ui .print-only{display:none}
@media(hover:none){.html-ui .quick{opacity:1;transform:none;flex-direction:row;right:6px;bottom:6px}.html-ui .quick button,.html-ui .quick a{width:32px;height:32px}}
@media(max-width:1100px){.html-ui .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.html-ui .dashboard-row{grid-template-columns:1fr}.html-ui .dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.html-ui .detail{gap:25px}.html-ui .detail-main{height:460px}.html-ui .logo{max-width:220px;font-size:25px}.html-ui .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.html-ui.panel-ui .sidebar{transform:translateX(-100%);width:250px;z-index:50}.html-ui.panel-ui.nav-open .sidebar{transform:translateX(0)}.html-ui.panel-ui .management-content{margin-left:0}.html-ui .nav-toggle{display:block}.html-ui .account-grid{grid-template-columns:1fr}.html-ui.panel-ui main.content{padding:17px}.html-ui .detail h1{font-size:30px}}
@media(max-width:750px){.html-ui .top{padding:12px 16px;flex-wrap:wrap}.html-ui .top .logo{max-width:60%;font-size:24px}.html-ui .search{order:3;width:100%}.html-ui .nav{overflow-x:auto;justify-content:flex-start;gap:18px}.html-ui .nav .mega{position:fixed;left:16px;right:16px;top:160px;max-height:65vh;overflow:auto}.html-ui .hero{height:420px}.html-ui .hero-copy{right:4%;top:27%;max-width:56%}.html-ui .hero h1{font-size:38px}.html-ui .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.html-ui .product .photo img{height:200px}.html-ui .product-body{height:calc(100% - 200px);padding:12px;min-height:195px}.html-ui .product-body h3{font-size:13px}.html-ui .shop-layout aside{position:static;display:block}.html-ui .detail{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}.html-ui .detail-main{height:min(85vw,420px)}.html-ui .checkout-split{grid-template-columns:minmax(0,1fr)}.html-ui .order-summary{position:static}.html-ui .newsletter form{width:100%;flex-wrap:wrap}.html-ui .newsletter input{margin:0;flex:1;min-width:140px;width:auto}.html-ui .newsletter h2{font-size:19px}.html-ui .footergrid{gap:20px;grid-template-columns:1fr 1fr}.html-ui .profilehero{align-items:center;gap:15px}.html-ui .profilehero .editorial-title{font-size:26px}.html-ui .profilehero img{width:90px;height:90px}.html-ui dialog .detail{grid-template-columns:minmax(0,1fr)}.html-ui .quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.html-ui .table-card{padding:14px}.html-ui .table-card .toolbar input{min-width:140px;width:auto}.html-ui .table-card .table-footer{gap:8px}.html-ui .product-list-view .product{grid-template-columns:120px minmax(0,1fr)}.html-ui .product-list-view .photo img{min-height:200px}.html-ui .auth-panel{margin:25px 16px}.html-ui .form-grid{grid-template-columns:1fr}.html-ui .pagehead{padding:28px 0}.html-ui .pagehead h1{font-size:30px}.html-ui .cart-row{grid-template-columns:70px minmax(0,1fr);gap:12px}.html-ui .cart-row img{width:70px;height:70px}.html-ui .detail .price{font-size:22px}.html-ui .management-user{gap:10px}.html-ui .view-store{display:none}.html-ui .dashboard-panel table{display:table!important}.html-ui .round-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.html-ui .kpi-card>strong{font-size:20px}.html-ui .stats .stat{padding:15px}.html-ui .stat h2{font-size:20px}.html-ui .store-content>h1,.html-ui .store-content>form,.html-ui .store-content>p{margin:20px 16px}.html-ui .cms-content{margin:20px 16px;padding:15px}.html-ui .shop-layout .filter-row select{min-width:130px}}
@media(max-width:390px){.html-ui .product .photo img{height:155px}.html-ui .product-body{height:calc(100% - 155px);padding:10px}.html-ui .product-body .price{font-size:14px}.html-ui .product .btn{padding:9px 5px;font-size:11px}.html-ui .round-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.html-ui .hero h1{font-size:32px}.html-ui .footer .logo{font-size:23px}}
@media(prefers-reduced-motion:reduce){.html-ui *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.html-ui .sidebar,.html-ui .management-top,.html-ui .toolbar,.html-ui .table-footer,.html-ui .footer,.html-ui .nav,.html-ui .top,.html-ui .announcement{display:none!important}.html-ui .management-content{margin:0!important}.html-ui .tablewrap{overflow:visible}.html-ui .print-only{display:block}}
.html-ui .hero{margin:0;border-radius:0;padding:0;text-align:initial}.html-ui .hero h1{max-width:none;color:#fff}.html-ui .benefits{display:block;border:0;padding:22px 0}.html-ui .benefit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}.html-ui .benefit-grid small{display:block}.html-ui .product .photo{height:270px}.html-ui .product .photo>a{width:100%;height:100%}.html-ui .product .photo img{max-height:none;max-width:none;object-fit:cover;aspect-ratio:auto}.html-ui .photo img{border-radius:0}.html-ui .thumbs img{border-radius:9px}.html-ui .hero-copy h1{margin-left:0;margin-right:0}@media(max-width:750px){.html-ui .benefit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.html-ui .product .photo{height:200px}}@media(max-width:390px){.html-ui .product .photo{height:155px}}

.html-ui .hero h1,.html-ui .section-title,.html-ui .editorial-title,.html-ui .detail h1,.html-ui .pagehead h1,.html-ui .auth-panel h1,.html-ui .logo{font-family:'Playfair Display',Georgia,serif}

.html-ui .management-user{margin-left:auto}.html-ui .html-dashboard-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:20px;margin-bottom:20px}.html-ui .html-dashboard-grid>.dashboard-panel{margin:0}.html-ui .tiny-avatar>img{width:100%;height:100%;object-fit:cover;border-radius:50%}.html-ui .admin-brand{display:block;text-align:left}.html-ui .admin-brand strong{display:block;margin:6px 0}.html-ui .admin-brand small{display:block;letter-spacing:3px}.html-ui .product-body{height:auto;min-height:210px}.html-ui .product{display:flex;flex-direction:column}.html-ui .product .product-body{flex:1}.html-ui .product .photo{flex-shrink:0}.html-ui .product .photo>a>img{height:100%;width:100%;object-fit:cover}.html-ui .quick a{font-family:Arial,sans-serif}.html-ui .product-list-view .product{display:grid}.html-ui .panel-ui main>.panel{margin-bottom:20px}.html-ui .contact-inbox p{white-space:normal}@media(max-width:1050px){.html-ui .html-dashboard-grid{grid-template-columns:1fr}.html-ui .sales-chart{height:230px}}@media(max-width:750px){.html-ui .product-body{min-height:195px}.html-ui .html-dashboard-grid{gap:15px}.html-ui .admin-title h1{font-size:23px}}

.html-ui.customer-ui{background:var(--page-bg,#fffafc)}.html-ui .logo{color:var(--accent,#b78a3f)}.html-ui .header-centered{justify-content:center;flex-wrap:wrap}.html-ui .header-centered .logo{width:100%;max-width:none;text-align:center}.html-ui .footergrid{grid-template-columns:repeat(var(--footer-columns,4),minmax(0,1fr))}.html-ui #visual-content:empty{display:none}.html-ui .gallery-full{border-radius:10px}@media(max-width:750px){.html-ui .footergrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:390px){.html-ui .footergrid{grid-template-columns:minmax(0,1fr)}}
.html-ui.customer-ui .nav{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center}.html-ui.customer-ui .nav>a,.html-ui.customer-ui .nav>.hasmega{flex:0 0 auto}.html-ui.customer-ui .nav>a{display:block}.html-ui .editorial-title{overflow-wrap:break-word}.html-ui .store-content .filter-row>.editorial-title{font-size:clamp(21px,2.2vw,30px)}@media(max-width:750px){.html-ui.customer-ui .nav{justify-content:flex-start;overflow-x:auto;min-height:47px;max-height:75px;padding:0 14px}.html-ui.customer-ui .nav a{white-space:nowrap}.html-ui.customer-ui .footergrid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.html-ui .drawer-dialog .checkout-split{display:block}.html-ui .drawer-dialog .order-summary{position:static;margin-top:20px}.html-ui .drawer-dialog .panel{padding:15px}.html-ui .drawer-dialog .cart-row .inline-form{flex-wrap:wrap}

.html-ui .user-menu{position:relative}.html-ui .user-menu>summary{cursor:pointer;list-style:none}.html-ui .user-menu>div{position:absolute;right:0;top:32px;width:200px;border:1px solid #e8e5ed;border-radius:12px;background:#fff;box-shadow:var(--shadow);padding:15px;z-index:40}.html-ui .user-menu a{display:block;margin-bottom:12px}.html-ui .user-menu button{width:100%}.html-ui .management-user .user-menu{font-size:12px}
