@font-face{font-family:Estedad;src:url('/assets/Estedad-variable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{--nav:#fff;--nav2:#fff;--main:#f5f8fe;--surface:#fff;--ink:#202e45;--sub:#738198;--line:#e6ebf3;--accent:#126cf4;--accent2:#075ad3;--danger:#d63d57;--shadow:0 10px 38px rgba(25,46,91,.052)}
*{box-sizing:border-box}html,body{margin:0;padding:0;min-height:100%;font-family:Estedad,Tahoma,sans-serif;color:var(--ink)}body{background:var(--main)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.56;cursor:wait}a{color:var(--accent);text-decoration:none}[hidden]{display:none!important}
.auth-layout{display:grid;grid-template-columns:minmax(340px,43%) 1fr;min-height:100vh;background:#fff}.auth-hero{background:linear-gradient(155deg,#0c3b98,#0878fa);color:white;position:relative;overflow:hidden}.auth-hero:after{content:"";position:absolute;width:520px;height:520px;border:1px solid #ffffff20;border-radius:50%;left:-220px;top:25%}.auth-hero:before{content:"";position:absolute;width:650px;height:650px;border:1px solid #ffffff10;border-radius:50%;left:-310px;top:16%}.hero-inner{position:relative;z-index:2;min-height:100vh;display:flex;flex-direction:column;padding:44px 60px}.hero-brand{display:flex;align-items:center;gap:16px}.hero-brand img{height:68px;width:68px;background:white;padding:6px;border-radius:17px;object-fit:contain}.hero-brand strong{display:block;font-size:23px}.hero-brand small{display:block;opacity:.8;font-size:12px;letter-spacing:1px}.hero-copy{margin:auto 0}.hero-copy .eyebrow{font-size:14px;opacity:.85}.hero-copy h1{font-size:clamp(28px,3.15vw,50px);line-height:1.5;max-width:610px;margin:15px 0}.hero-copy p{font-size:15px;line-height:2.25;opacity:.9;max-width:500px}.hero-features{display:flex;flex-wrap:wrap;gap:12px}.hero-features div{padding:12px 16px;border:1px solid #ffffff37;border-radius:13px;background:#ffffff14;font-size:13px}.hero-features span{font-size:18px;margin-left:6px}.hero-foot{margin-top:35px;opacity:.65;font-size:12px}
.auth-side{display:flex;align-items:center;justify-content:center;padding:36px 32px;overflow:auto}.auth-content{width:100%;max-width:505px}.mobile-logo{display:none}.auth-heading{margin-bottom:26px}.soft-kicker{font-size:12px;font-weight:700;color:var(--accent)}.auth-heading h2{font-size:29px;letter-spacing:-.5px;margin:7px 0}.auth-heading p{margin:0;color:var(--sub);font-size:13px;line-height:2}.auth-tabs{display:flex;gap:7px;background:#f3f6fa;padding:7px;border-radius:15px;margin:22px 0}.auth-tabs button{flex:1;border:0;background:transparent;color:var(--sub);font-size:12px;padding:12px 5px;border-radius:11px;font-weight:600;white-space:nowrap}.auth-tabs .active{background:#fff;color:var(--accent);box-shadow:0 2px 10px #203c5f15}.auth-form{display:flex;flex-direction:column;gap:15px}.auth-form.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.auth-form label,.form-grid label,.form-inline label{display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:12px;color:#415572}.auth-form input,.auth-form select,.form-grid input,.form-grid select,.form-grid textarea,.form-inline input,.form-inline textarea,.form-inline select,textarea,input,select{border:1px solid #dfe6f0;border-radius:11px;background:#fff;padding:12px 14px;width:100%;min-height:45px;color:var(--ink);outline:none;font-size:13px}.auth-form input:focus,.form-grid input:focus,textarea:focus,select:focus,input:focus{border-color:#72a8ff;box-shadow:0 0 0 3px #116bf014}.auth-form .captcha-row{display:flex;align-items:center;gap:10px}.captcha-row img{background:#ecf4ff;border:1px solid var(--line);border-radius:10px;object-fit:fill;width:190px;height:48px}.captcha-row button{white-space:nowrap}.auth-footer{font-size:11px;color:#93a1b4;text-align:center;margin:25px auto}.helper{color:var(--sub);font-size:12px;line-height:2;margin:0}.wide{grid-column:1/-1!important}.btn{border:1px solid #e0e8f4;background:#fff;color:#51647e;border-radius:11px;min-height:39px;padding:8px 17px;font-weight:700;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.15s}.btn:hover{filter:brightness(.98);transform:translateY(-1px)}.btn.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.btn.danger{background:#fff2f4;color:#c82f4a;border-color:#ffdde4}.btn.secondary{background:#f7f9fe;color:#56708d}.btn.big{width:100%;min-height:51px;font-size:14px}.btn.small{padding:5px 10px;min-height:32px;font-size:11px}.message{padding:13px 17px;border-radius:13px;font-size:12px;margin:12px 0}.message.error{color:#a52641;background:#fff0f3;border:1px solid #ffd3dd}.message.success{color:#116853;background:#e4f8f1;border:1px solid #c9ecdf}
#shell{min-height:100vh;display:flex}#sidebar{position:fixed;right:0;top:0;bottom:0;width:258px;background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;z-index:20;box-shadow:0 3px 20px #1d30500b}.app-logo{display:flex;align-items:center;gap:11px;padding:24px 20px 17px}.sidebar-brand-image{width:60px;height:60px;object-fit:contain}.brand-identity strong{display:block;font-size:21px;color:#126cf4}.brand-identity small{display:block;font-size:10px;letter-spacing:1px;color:#9caac0}.profile{background:#f4f8ff;margin:5px 14px 19px;padding:12px 14px;border-radius:13px;line-height:2}.profile strong{display:block;font-size:13px}.profile small{display:block;font-size:10px;color:var(--sub);word-break:break-all}.nav-caption{font-size:10px;color:#9aaac1;margin:0 26px 8px}.nav-caption:before{content:'· ';font-weight:bold}#menu{padding:0 12px;display:flex;flex-direction:column;gap:2px;overflow-y:auto;flex:1}#menu>button:not(.btn){display:flex;align-items:center;gap:12px;text-align:right;width:100%;background:transparent;border:0;border-radius:10px;color:#64758f;font-weight:600;padding:11px 13px;font-size:12px}#menu>button:hover{background:#f5f9ff;color:#196eef}#menu>button.active{background:#eaf2ff;color:#0869f1}#menu .nav-icon{font-size:18px;width:23px;text-align:center;display:inline-flex;justify-content:center}#menu .btn{margin:20px 0 10px}.side-foot{text-align:center;color:#adbbca;font-size:10px;padding:14px;border-top:1px solid var(--line)}.app-main{margin-right:258px;min-width:0;flex:1;max-width:calc(100% - 258px)}.app-header{height:91px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px;padding:18px 34px;position:sticky;top:0;z-index:10}.header-identity{flex:1}.header-sub{font-size:11px;color:#a2aec0}.app-header h2{margin:2px 0;font-size:22px}.head-actions{display:flex;align-items:center;gap:14px;color:var(--sub);font-size:12px}.iconbtn{display:none;background:#f2f6fc;border:0;border-radius:10px;padding:9px 12px;font-size:18px}.view{padding:29px 36px;max-width:1550px;margin:0 auto}.page-foot{font-size:11px;text-align:center;color:#9eadc0;margin:35px 0 9px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:24px;box-shadow:var(--shadow);margin-bottom:18px}.card h3{font-size:15px;margin:0 0 18px}.card h4{margin:8px 0}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.section-head h3{margin:0}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:8px}.grid .card{margin-bottom:8px}.stat-card{position:relative;overflow:hidden}.stat-card:before{content:'';position:absolute;right:0;top:18px;height:50%;width:3px;background:#1175f4;border-radius:5px}.stat-label{font-size:12px;color:var(--sub)}.stat-number{font-size:29px;font-weight:800;margin:15px 0 6px;line-height:1.4}.stat-note{font-size:11px;color:#99a9b9}.tablewrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:right;font-size:12px}th{color:#90a0b3;font-weight:600;background:#f9fbfe}th,td{padding:13px 12px;border-bottom:1px solid #f0f3f8;white-space:nowrap}tbody tr:hover{background:#f8fbff}.empty{color:var(--sub);text-align:center;padding:20px}.pill{background:#f2f6fb;color:#5a6e86;border-radius:50px;padding:4px 12px;display:inline-flex;font-size:11px}.pill.active,.pill.paid,.pill.up{background:#dcf6ea;color:#187a53}.pill.unpaid,.pill.down,.pill.failed{background:#fff0ed;color:#bc4253}.pill.awaiting_payment,.pill.pending{background:#fff7e4;color:#a2731d}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid>button[type=submit]{align-self:end}.form-inline{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.form-inline label{flex:1}.checkboxrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:9px}.check{display:flex;align-items:center!important;flex-direction:row!important;gap:10px!important;border:1px solid #eef1f6;border-radius:9px;padding:10px 12px;min-height:44px}.check input{width:16px!important;min-height:auto!important;accent-color:var(--accent)}.group-title{border-right:3px solid #1b70f8;padding:3px 13px;font-weight:700;margin:20px 0 10px}.hint{padding:13px 17px;border:1px solid #e1eafa;background:#f6faff;color:#5e789a;border-radius:12px;line-height:2.1;margin:12px 0;font-size:12px}.help{color:var(--sub);font-size:12px;line-height:2}.mono{direction:ltr;text-align:right;font-family:ui-monospace,monospace}.chart{width:100%;max-width:100%;height:260px}.service-card{margin-bottom:15px}.ticketsplit{display:grid;grid-template-columns:260px 1fr;gap:18px}.ticket-item{padding:12px;border-bottom:1px solid var(--line);cursor:pointer}.ticket-item:hover{background:#f6faff}.bubble{padding:12px 16px;background:#f4f7fc;margin:10px 0;border-radius:12px}.bubble small{display:block;color:var(--sub)}
.catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.product-card{border:1px solid var(--line);border-radius:16px;padding:22px;background:#fff;display:flex;flex-direction:column;gap:12px}.product-card h3{font-size:17px;margin:0}.product-tag{font-size:11px;font-weight:600;color:#3578d9;background:#eef5ff;border-radius:30px;padding:5px 12px;align-self:flex-start}.product-spec{font-size:12px;color:#8092a5;line-height:2}.product-price{font-size:21px;font-weight:800;color:#1767de}.product-card .btn{margin-top:auto}.integration-row{display:flex;gap:13px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:14px}.integration-row b{font-size:13px}.integration-row p{font-size:11px;color:var(--sub);margin:4px 0}.badge-warning{color:#ad7415;background:#fff5e0;padding:6px 9px;border-radius:8px;font-size:11px}
@media(max-width:1100px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-inner{padding:30px}.auth-layout{grid-template-columns:40% 60%}.hero-copy h1{font-size:29px}}
@media(max-width:850px){#sidebar{transform:translateX(100%);transition:transform .2s}#sidebar.open{transform:translateX(0)}#shade.active{display:block!important;position:fixed;inset:0;background:#091e3975;z-index:15}.app-main{margin-right:0;max-width:100%}.iconbtn{display:block}.auth-layout{display:block}.auth-hero{display:none}.mobile-logo{display:flex;justify-content:center;align-items:center;gap:12px;margin-bottom:22px}.mobile-logo strong{color:#146ffa;font-size:22px}.auth-side{min-height:100vh}.app-header{padding:15px 20px;height:78px}.view{padding:22px 15px}.head-actions #now{display:none}}
@media(max-width:560px){.grid{grid-template-columns:1fr}.auth-side{padding:25px 18px}.auth-form.form-grid,.form-grid{grid-template-columns:1fr}.wide{grid-column:1/-1}.auth-tabs button{font-size:10px}.auth-heading h2{font-size:24px}.app-header h2{font-size:17px}.head-actions .btn{padding:6px 7px}.ticketsplit{grid-template-columns:1fr}.card{padding:17px}.hero-features{display:none}}

.public-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;margin:8px 0;background:#fff}.public-item b{font-size:13px;display:block}.public-item small{display:block;color:var(--sub);font-size:11px}.public-item strong{font-size:12px;color:var(--accent);white-space:nowrap}

/* v0.3.0 - offline dark mode, all major light surfaces replaced; daylight remains default */
.theme-toggle{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:13px;padding:9px 15px;min-height:41px;font-weight:700;font-size:13px;cursor:pointer}
.theme-toggle:hover{border-color:var(--accent)}
.auth-tools{display:flex;justify-content:flex-end;align-items:center;margin-bottom:17px}
.ticket-item{width:100%;display:block;text-align:right;border:0;background:transparent;color:var(--ink);font:inherit;line-height:2;cursor:pointer}
.ticket-item small{display:block;color:var(--sub)}
.member-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:9px;margin:14px 0}
.member{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:10px;font-size:12px}
.member input{width:17px;min-height:auto;accent-color:var(--accent)}
.member small{color:var(--sub);font-size:10px}.member span{font-weight:650}
.team-editor{padding:14px 0;margin-bottom:14px;border-bottom:1px solid var(--line)}
.post-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:15px}
.post{border:1px solid var(--line);border-radius:14px;padding:18px;background:var(--surface);line-height:2;display:flex;flex-direction:column;gap:10px}
.post h4{font-size:16px;margin:0}.post-body{line-height:2.2;font-size:12px;white-space:normal;overflow-wrap:anywhere}
.post small{font-size:11px;color:var(--sub)}.post-category{color:var(--accent);font-size:11px;font-weight:700}
.perm-editor{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:12px;margin:14px 0}
.perm-entry{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);padding:10px 12px;border-radius:11px}
.perm-entry>span{font-weight:700;font-size:12px}.perm-entry small{display:block;font-size:10px;font-weight:400;direction:ltr;color:var(--sub)}
.perm-entry select{width:115px;flex-shrink:0}
/* Use CSS custom properties for all major surfaces to avoid leftover white backgrounds in dark mode. */
html[data-theme="dark"]{color-scheme:dark;--nav:#111b29;--nav2:#152234;--main:#0d1420;--surface:#172232;--ink:#e6edf7;--sub:#a3afc3;--line:#2a3a50;--accent:#68a6ff;--accent2:#4390fc;--danger:#ff7589;--shadow:0 10px 30px rgba(0,0,0,.18)}
html[data-theme="dark"] body{background:var(--main);color:var(--ink)}
html[data-theme="dark"] #sidebar,html[data-theme="dark"] .app-header,html[data-theme="dark"] .auth-layout,html[data-theme="dark"] .auth-side,html[data-theme="dark"] .card,html[data-theme="dark"] .product-card{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .auth-content,html[data-theme="dark"] .auth-heading,html[data-theme="dark"] .view,html[data-theme="dark"] .app-main{color:var(--ink)}
html[data-theme="dark"] .auth-tabs,html[data-theme="dark"] .profile,html[data-theme="dark"] .hint,html[data-theme="dark"] .bubble,html[data-theme="dark"] .iconbtn{background:#1d2c42;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .auth-tabs .active{background:#2d4160;color:#dceafe;box-shadow:none}
html[data-theme="dark"] .auth-form input,html[data-theme="dark"] .auth-form select,html[data-theme="dark"] .form-grid input,html[data-theme="dark"] .form-grid select,html[data-theme="dark"] textarea,html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] .btn,html[data-theme="dark"] .theme-toggle{background:#101b29;color:var(--ink);border-color:#34465c}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8899ac}
html[data-theme="dark"] .btn.primary{background:#267cf1;color:#fff;border-color:#267cf1}
html[data-theme="dark"] .btn.secondary{background:#253853;color:#dce9fa;border-color:#384e6c}
html[data-theme="dark"] .btn.danger{background:#493041;color:#ffd9e0;border-color:#734056}
html[data-theme="dark"] .auth-form label,html[data-theme="dark"] .form-grid label,html[data-theme="dark"] .form-inline label{color:#d0deef}
html[data-theme="dark"] #menu>button:not(.btn){color:#becbde}
html[data-theme="dark"] #menu>button:hover,html[data-theme="dark"] #menu>button.active{background:#253d5c;color:#b5d9ff}
html[data-theme="dark"] .nav-caption,html[data-theme="dark"] .side-foot,html[data-theme="dark"] .head-actions,html[data-theme="dark"] .header-sub{color:var(--sub)}
html[data-theme="dark"] th{background:#202e41;color:#c0cede}
html[data-theme="dark"] td{border-bottom-color:var(--line)}
html[data-theme="dark"] tbody tr:hover{background:#203049}
html[data-theme="dark"] .pill{background:#2b3c52;color:#d9e5f5}
html[data-theme="dark"] .pill.active,html[data-theme="dark"] .pill.paid,html[data-theme="dark"] .pill.up{background:#14473c;color:#a1f3d7}
html[data-theme="dark"] .pill.unpaid,html[data-theme="dark"] .pill.down,html[data-theme="dark"] .pill.failed{background:#4a2532;color:#ffb4c4}
html[data-theme="dark"] .pill.awaiting_payment,html[data-theme="dark"] .pill.pending{background:#494023;color:#ffe2a5}
html[data-theme="dark"] .check,html[data-theme="dark"] .member,html[data-theme="dark"] .post,html[data-theme="dark"] .perm-entry{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .product-tag{background:#213c59;color:#b1d6ff}
html[data-theme="dark"] .product-price,html[data-theme="dark"] .brand-identity strong{color:#84b8ff}
html[data-theme="dark"] .message.error{background:#4a2234;color:#ffb9c9;border-color:#7b3c56}
html[data-theme="dark"] .message.success{background:#153e37;color:#a5f1d5;border-color:#246d5b}
html[data-theme="dark"] .badge-warning{background:#443922;color:#ffe2a0}
html[data-theme="dark"] .auth-footer{color:#9aaec7}
html[data-theme="dark"] .hero-brand img{background:#fff}
@media(max-width:700px){.head-actions{gap:7px}.theme-toggle{padding:8px 10px}.perm-editor{grid-template-columns:1fr}.member-grid{grid-template-columns:1fr 1fr}}

/* 0.3.1: placement beside refresh, fully local responsive layout */
.head-actions{gap:9px}
.head-actions .theme-toggle{min-height:39px;padding:8px 12px}
@media(max-width:610px){.head-actions{gap:6px}.head-actions .theme-toggle{padding:8px 10px}.head-actions #now{display:none}}

/* v0.4.2 - grouped catalog, compact cards, mobile-first discoverability; local assets only */
.service-category-list{display:flex;flex-direction:column;gap:23px;margin-top:20px}
.catalog-intro{margin:0 0 16px;color:var(--sub);font-size:13px;line-height:2}
.catalog-controls{display:flex;flex-direction:column;gap:12px;margin-bottom:13px}
.catalog-search-label{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:13px;padding:0 14px;background:var(--surface);max-width:610px;min-height:46px;color:var(--sub)}
.catalog-search-label input{border:0!important;outline:none!important;box-shadow:none!important;width:100%;min-width:0;height:43px;background:transparent!important;color:var(--ink)}
.catalog-search-label:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px rgba(44,118,237,.1)}
.catalog-tabs{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.catalog-tab{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:11px;font-size:12px;font-weight:650;min-height:38px;padding:7px 12px;cursor:pointer;transition:background .15s,border-color .15s}
.catalog-tab:hover{border-color:var(--accent)}.catalog-tab.active{background:var(--accent);border-color:var(--accent);color:#fff}
.catalog-result{margin:0;color:var(--sub);font-size:11px}
.service-category{border:1px solid var(--line);border-radius:17px;background:var(--surface);padding:18px;box-shadow:var(--shadow);min-width:0}
.service-category-head{display:flex;align-items:center;gap:12px;margin-bottom:17px;border-bottom:1px solid var(--line);padding-bottom:16px;min-width:0}
.service-category-icon{display:flex;align-items:center;justify-content:center;flex:0 0 45px;height:45px;border-radius:13px;background:color-mix(in srgb,var(--accent) 11%,var(--surface));color:var(--accent)}
.service-category-meta{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.service-category-meta strong{font-size:17px;line-height:1.7}.service-category-meta small{font-size:11px;color:var(--sub)}
.service-category-count{display:inline-flex;align-items:center;background:var(--main);border:1px solid var(--line);border-radius:30px;padding:5px 10px;font-size:11px;white-space:nowrap;color:var(--sub)}
.service-category .catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.service-category .product-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;min-width:0;padding:19px;box-shadow:0 3px 13px rgba(13,41,94,.025);transition:transform .18s,box-shadow .18s,border-color .18s;gap:12px}
.service-category .product-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 40%,var(--line));box-shadow:0 12px 27px rgba(13,41,94,.085)}
.product-card-top{display:flex;align-items:center;gap:8px;justify-content:space-between;flex-wrap:wrap}
.product-card-top .product-tag{align-self:auto}.product-code{color:var(--sub);font-size:11px}
.service-category .product-card h3{font-size:15px;line-height:1.9;overflow-wrap:anywhere}
.service-category .product-card .product-price{font-size:18px;color:var(--accent);font-weight:850;line-height:1.6}
.service-category .product-card .product-spec{font-size:12px;color:var(--sub);line-height:2;flex:1;overflow-wrap:anywhere}
.product-term{font-weight:600;color:var(--ink);font-size:12px;display:flex;flex-direction:column;gap:6px}
.product-term select{width:100%;max-width:100%;min-width:0;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:8px}
.product-note{font-size:11px;line-height:1.8;color:var(--sub)}
.product-buy{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;border-radius:11px}
.availability{font-size:10px;font-weight:750;border-radius:9px;padding:5px 7px}.is-available{background:#e8f8ef;color:#177746}.is-unavailable{background:#fff1e6;color:#9d5b22}
.catalog-empty{color:var(--sub);font-size:12px;border:1px dashed var(--line);padding:19px;border-radius:12px;grid-column:1/-1;line-height:2}
.service-category .service-owned-card{margin:0;min-width:0;box-shadow:none}
.service-category .service-owned-card .service-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
.service-category .service-owned-card .toolbar{display:flex;flex-wrap:wrap;gap:6px}
.service-category .service-owned-card .toolbar .btn{white-space:normal}
.product-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
.product-actions .btn{flex:1;white-space:normal}
.auth-tabs button[data-auth-tab="otp"]{line-height:1.9}
@media(min-width:721px) and (max-width:1160px){.service-category .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.service-category .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.service-category{padding:13px}.service-category-head{gap:8px}.service-category-meta strong{font-size:15px}}
@media(max-width:600px){.service-category .catalog-grid{grid-template-columns:1fr}.service-category-list{gap:14px}.service-category .product-card{padding:16px}.catalog-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;padding-bottom:4px}.catalog-tabs .catalog-tab{white-space:nowrap;flex-shrink:0;scroll-snap-align:start}.catalog-search-label{max-width:100%}.service-category-count{font-size:10px}.auth-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.auth-tabs button{min-width:0;white-space:normal;font-size:11px!important;line-height:1.8}}
html[data-theme="dark"] .service-category,html[data-theme="dark"] .catalog-search-label,html[data-theme="dark"] .service-category .product-card{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .service-category-count{background:#213047;border-color:var(--line)}
html[data-theme="dark"] .is-available{background:#174332;color:#9bffbd}
html[data-theme="dark"] .is-unavailable{background:#483526;color:#ffce9d}
html[data-theme="dark"] .catalog-tab.active{background:#267cf1;color:#fff;border-color:#267cf1}

/* Guest catalog uses the full content width; do not squeeze a six-category storefront into the login form column. */
.auth-layout.catalog-open{display:block;min-height:100vh}
.auth-layout.catalog-open .auth-hero{display:none}
.auth-layout.catalog-open .auth-side{display:block;padding:26px 28px;min-height:100vh}
.auth-layout.catalog-open .auth-content{max-width:1300px;margin:auto}
.auth-layout.catalog-open .mobile-logo{display:flex;align-items:center;justify-content:center;gap:14px}
.auth-layout.catalog-open .auth-heading{text-align:center}
.auth-layout.catalog-open .auth-tabs{max-width:675px;margin:18px auto 25px}
.auth-layout.catalog-open .auth-tools{position:absolute;left:25px;top:25px}
.auth-layout.catalog-open .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:980px){.auth-layout.catalog-open .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.auth-layout.catalog-open .auth-side{padding:22px 13px}.auth-layout.catalog-open .auth-tools{position:static;justify-content:flex-end}.auth-layout.catalog-open .catalog-grid{grid-template-columns:1fr}}

/* v0.4.3 - catalog, details and search side-by-side on desktop. No external CSS. */
.storefront-layout{display:grid;grid-template-columns:minmax(240px,280px) minmax(0,1fr);gap:20px;align-items:start;direction:rtl}
.storefront-panel{position:sticky;top:18px;align-self:start;display:flex;flex-direction:column;gap:14px;min-width:0;border:1px solid var(--line);border-radius:17px;background:var(--surface);padding:18px;box-shadow:var(--shadow)}
.storefront-panel-title,.storefront-result-head h3{margin:0;font-size:16px;color:var(--ink)}
.storefront-result-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:4px 2px 13px;border-bottom:1px solid var(--line)}
.storefront-result-head span{font-size:11px;color:var(--sub)}
.storefront-results{min-width:0}
.storefront-results .service-category-list{margin-top:14px;gap:16px}
.storefront-panel .catalog-search-label{width:100%;max-width:100%;padding:0 9px}
.storefront-panel .catalog-controls{margin:0}
.storefront-panel .catalog-tabs{display:grid;grid-template-columns:1fr;gap:5px;overflow:visible}
.storefront-panel .catalog-tab{text-align:right;font-size:12px;white-space:normal;min-height:37px}
.storefront-panel .catalog-result{font-size:11px;margin-top:3px}
.service-detail{display:flex;flex-direction:column;gap:9px;border:1px solid var(--line);border-radius:13px;background:var(--main);padding:13px;min-height:110px}
.service-detail-label{color:var(--accent);font-weight:750;font-size:12px}
.service-detail h4{font-size:14px;margin:0;color:var(--ink);line-height:1.8}
.service-detail p{font-size:12px;color:var(--sub);line-height:2;margin:0}
.service-detail strong{font-size:14px;color:var(--accent)}
.detail-meta{font-size:11px;color:var(--sub)}
.cart-panel{background:var(--surface);border:1px solid var(--line);border-radius:13px;overflow:hidden;padding:13px}
.cart-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;padding-bottom:9px;border-bottom:1px solid var(--line);margin-bottom:8px}
.cart-heading h3{font-size:14px;margin:0}.cart-count{background:var(--accent);color:#fff;border-radius:12px;padding:3px 10px;font-size:12px}
.cart-empty,.cart-help{color:var(--sub);font-size:11px;line-height:2;margin:7px 0}
.cart-row{border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px;padding:11px 0}
.cart-row:last-of-type{border-bottom:0}.cart-row strong{font-size:12px;line-height:1.8}.cart-row span{font-size:11px;color:var(--sub)}
.cart-remove{width:max-content;cursor:pointer;background:transparent;color:#ce334f;border:0;padding:5px 0;font:inherit;font-size:11px}
.cart-row-actions{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap}
.cart-continue{width:100%;justify-content:center}
.public-card-actions{display:flex;gap:7px;align-items:stretch;margin-top:auto}
.public-card-actions .btn{flex:1 1 50%;min-width:0;padding:9px 7px;font-size:11px;white-space:normal}
.guest-catalog-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:18px}
.guest-catalog-actions .btn{min-width:200px}
.auth-layout.catalog-open #public-catalog{max-width:none}
html[data-theme="dark"] .storefront-panel,html[data-theme="dark"] .cart-panel{background:var(--surface)}
html[data-theme="dark"] .service-detail{background:var(--main)}
@media(min-width:1000px){.storefront-results .service-category .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1320px){.storefront-results .service-category .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.storefront-layout{grid-template-columns:minmax(210px,250px) minmax(0,1fr);gap:12px}.storefront-panel{padding:12px}.storefront-results .service-category .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.storefront-layout{grid-template-columns:minmax(0,1fr);gap:14px}.storefront-panel{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.storefront-panel-title{grid-column:1/-1}.storefront-panel .catalog-controls{grid-column:1/-1}.storefront-panel .catalog-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px}.storefront-panel .catalog-tab{white-space:nowrap;flex:0 0 auto;padding:8px 11px}.service-detail,.cart-panel{min-width:0}.service-category .catalog-grid,.storefront-results .service-category .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.storefront-panel{grid-template-columns:minmax(0,1fr)}.storefront-panel-title,.storefront-panel .catalog-controls{grid-column:auto}.storefront-result-head span{display:none}.service-category .catalog-grid,.storefront-results .service-category .catalog-grid{grid-template-columns:minmax(0,1fr)}.guest-catalog-actions .btn{width:100%;min-width:0}.public-card-actions .btn{font-size:12px}}

/* v0.4.4: consistent orange inquiry state and accessible cart actions */
.btn.quote-state,.public-card-actions button[data-mode="inquiry"]{background:#e9831c!important;color:#fff!important;border-color:#d8710c!important;cursor:pointer!important;opacity:1!important}
.btn.quote-state:hover,.public-card-actions button[data-mode="inquiry"]:hover{background:#c96509!important}
html[data-theme="dark"] .public-card-actions button[data-mode="inquiry"]{background:#bd620e!important;color:#fff!important;border-color:#f9a443!important}
#menu [data-inquiry-count]{margin-inline-start:auto;white-space:nowrap;color:var(--accent);font-size:11px;font-weight:700}
.stat-card[data-open-inquiries]{cursor:pointer}.stat-card[data-open-inquiries]:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.guest-catalog-actions button{position:relative;z-index:1;pointer-events:auto}
@media(max-width:590px){.guest-catalog-actions{flex-direction:column}.guest-catalog-actions .btn{width:100%}}
