*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;background:#f6f7fb;color:#121623;line-height:1.5}a{text-decoration:none;color:inherit}button,input,textarea,select{font:inherit}.topbar{min-height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 5vw;border-bottom:1px solid #e4e7ee;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);position:sticky;top:0;z-index:50}.brand{display:flex;align-items:center;gap:10px;font-weight:850;font-size:21px;white-space:nowrap}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:transparent;overflow:hidden;flex:0 0 auto;box-shadow:0 6px 18px rgba(20,40,100,.18)}.brand-mark img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}.brand-mark.small{width:32px;height:32px;border-radius:10px}.main-nav{display:flex;align-items:center;gap:16px;font-size:13px;color:#565d6d}.main-nav a{padding:8px 2px}.main-nav a:hover{color:#171923}.icon-btn{border:1px solid #dfe3eb;background:#fff;border-radius:10px;padding:8px 10px;cursor:pointer}.hero{max-width:1240px;margin:0 auto;padding:76px 5vw 54px;display:grid;grid-template-columns:1.08fr .92fr;gap:55px;align-items:center}.eyebrow{font-size:11px;letter-spacing:.18em;font-weight:800;color:#747c8d;text-transform:uppercase}.hero h1{font-size:clamp(48px,6.4vw,82px);line-height:.96;letter-spacing:-.06em;margin:15px 0 22px}.hero h1 span{color:#71798a}.hero p{max-width:640px;font-size:18px;color:#626b7d}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.primary,.secondary,.secondary-btn,.action{display:inline-flex;align-items:center;justify-content:center;border-radius:12px;padding:12px 16px;border:1px solid #171923;cursor:pointer}.primary,.action{background:#171923;color:#fff}.secondary,.secondary-btn{background:#fff;color:#171923;border-color:#dce1ea}.trust-row{display:flex;gap:16px;flex-wrap:wrap;margin-top:18px;color:#697184;font-size:12px}.hero-card{position:relative;border-radius:28px;background:linear-gradient(145deg,#141620,#212535);padding:24px;min-height:390px;overflow:hidden;display:flex;flex-direction:column;justify-content:center;gap:12px;box-shadow:0 24px 70px rgba(24,29,48,.18)}.showcase-label{color:#aeb6c7;font-size:11px;text-transform:uppercase;letter-spacing:.15em;font-weight:800;margin-bottom:3px}.showcase-item{position:relative;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.08);color:#fff;border-radius:16px;padding:16px 18px;text-align:left;display:flex;flex-direction:column;gap:3px;cursor:pointer}.showcase-item span{font-size:12px;color:#aab2c2}.showcase-glow{position:absolute;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.2),transparent 65%);right:-95px;top:-85px}.section-block,.category-strip,.feature-band,.page-hero,.prose-page{max-width:1240px;margin:0 auto;padding-left:5vw;padding-right:5vw}.section-block{padding-bottom:84px}.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:22px}.section-head.compact{margin-top:8px}.section-head h2,.category-strip h2,.feature-band h2{font-size:38px;letter-spacing:-.04em;margin:6px 0 0}.search-box{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dfe3eb;border-radius:12px;padding:0 12px;width:320px}.search-box input{border:0;outline:0;width:100%;padding:12px 4px;background:transparent}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.tool{background:#fff;border:1px solid #e1e5ed;border-radius:18px;padding:21px;min-height:180px;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;transition:transform .18s,box-shadow .18s,border-color .18s}.tool:hover{transform:translateY(-3px);box-shadow:0 18px 35px rgba(19,25,42,.08);border-color:#cdd3df}.tool-icon{font-size:30px}.tool h3{margin:10px 0 5px;font-size:18px}.tool p{margin:0;color:#737c8e;font-size:13px}.pill{font-size:11px;color:#596275;background:#f0f2f6;padding:6px 9px;border-radius:999px;align-self:flex-start;margin-top:12px}.category-strip{padding-bottom:75px}.category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:23px}.category-card{background:#fff;border:1px solid #e1e5ed;border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:7px;transition:.18s}.category-card:hover{transform:translateY(-3px);box-shadow:0 16px 28px rgba(19,25,42,.07)}.category-card span{font-size:27px}.category-card small{color:#737c8e}.feature-band{margin-bottom:80px;padding-top:48px;padding-bottom:48px;border-radius:26px;background:#eceef4;display:grid;grid-template-columns:1fr 1fr;gap:50px}.feature-band p{margin:5px 0;color:#646d80;font-size:16px}.page-hero{padding-top:64px;padding-bottom:34px}.page-hero h1{font-size:clamp(42px,5vw,64px);letter-spacing:-.055em;margin:8px 0 12px}.page-hero p{max-width:740px;color:#6a7283;font-size:17px;margin:0}.category-list{padding-bottom:80px}.prose-page{padding-bottom:80px;max-width:900px}.prose-page h3{margin-top:32px}.prose-page p{color:#5f6879}.info-form label{display:block;font-weight:700;margin-bottom:15px}.info-form input,.info-form textarea,.tool-panel input,.tool-panel textarea,.tool-panel select,.text-input{width:100%;padding:11px 13px;border:1px solid #dfe3eb;border-radius:11px;background:#fff;outline:none}.info-form label input,.info-form label textarea{margin-top:7px}.modal{display:none;position:fixed;inset:0;background:rgba(9,11,18,.58);z-index:90;padding:5vh 20px}.modal.show{display:block}.modal-box{max-width:900px;max-height:90vh;overflow:auto;margin:auto;background:#fff;border-radius:24px;padding:30px;position:relative;box-shadow:0 35px 90px rgba(0,0,0,.22)}.close{position:absolute;right:15px;top:9px;border:0;background:transparent;font-size:31px;cursor:pointer;color:#7b8392}.tool-panel h2{margin:0 0 7px;font-size:30px;letter-spacing:-.03em}.tool-panel .muted{color:#70798b}.drop{border:2px dashed #d4dae4;border-radius:16px;padding:37px;text-align:center;margin:20px 0;background:#fafbfd}.drop input{max-width:360px;margin:12px auto;display:block}.row{display:flex;gap:10px;flex-wrap:wrap;margin:13px 0;align-items:center}.row>label{display:flex;align-items:center;gap:7px;flex:1;min-width:130px}.row>label input,.row>label select{flex:1}.tool-panel textarea{min-height:190px;margin:13px 0;resize:vertical}.result{background:#f3f5f8;padding:13px;border-radius:12px;margin-top:12px;word-break:break-word}.result.success{border:1px solid #cde6d4}.result.warning{border:1px solid #f0d39b;background:#fff8e9}.error-text{color:#b42318}.empty-state{padding:30px;text-align:center;color:#727b8c;background:#fff;border:1px dashed #d8dde7;border-radius:16px;margin-top:14px}.crop-workspace{margin-top:16px}.crop-workspace canvas{display:block;max-width:100%;height:auto;border:1px solid #dfe3eb;border-radius:14px;touch-action:none;cursor:crosshair;background:#f6f7fb}.tool-output{text-align:center;padding:16px}.icon-preview{max-width:256px;display:block;border-radius:24px;border:1px solid #dfe3eb;margin:12px auto}.color-big{width:120px!important;height:80px!important;padding:0!important;border-radius:16px!important}.color-readout{display:grid;gap:6px;margin-top:15px}.serp-preview,.og-preview{border:1px solid #dfe3eb;border-radius:16px;padding:18px;margin-top:15px;background:#fff}.serp-url{color:#2f7d32;font-size:12px}.serp-title{color:#1a0dab;font-size:20px;margin:4px 0}.serp-preview>div:last-child{color:#4d5668}.og-image{height:150px;border-radius:12px;background:linear-gradient(135deg,#171923,#4e57a8);color:#fff;display:grid;place-items:center;margin-bottom:14px}.checklist{display:grid;gap:10px}.checklist label{padding:12px;border:1px solid #e2e6ed;border-radius:12px;background:#fafbfd}.pdf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.pdf-card{padding:16px;border:1px solid #dfe3eb;border-radius:15px;background:#fff;cursor:pointer;transition:.15s;outline:none}.pdf-card:hover,.pdf-card:focus{transform:translateY(-2px);box-shadow:0 10px 22px rgba(0,0,0,.08);border-color:#b9c1cf}.pdf-card h3{margin:8px 0 5px;font-size:16px}.pdf-card p{min-height:38px;margin:0 0 10px;font-size:13px;color:#60697b}.pdf-icon{font-size:28px}.pdf-status{display:inline-block;font-size:11px;padding:5px 8px;border-radius:999px;background:#f1f3f6}.pdf-card.engine .pdf-status{background:#fff3cd}.pdf-card.planned .pdf-status{background:#eee}.pdf-notice{padding:14px;margin:16px 0;border:1px solid #e2e5ea;border-radius:12px;background:#f7f8fa}.download-link{display:inline-block;margin:11px 0;color:#2d52b8}.footer-brand{display:flex;align-items:center;gap:9px}.footer-brand div{display:flex;flex-direction:column}.footer-brand small{color:#7a8393}footer{padding:28px 5vw;border-top:1px solid #e1e5ed;display:flex;justify-content:space-between;align-items:center;gap:20px;color:#737c8d;font-size:12px}.footer-links{display:flex;gap:15px;flex-wrap:wrap}.footer-links a:hover{text-decoration:underline}
body.dark{background:#0d1016;color:#f5f6f8}body.dark .topbar{background:rgba(16,19,27,.92);border-color:#252b37}body.dark .main-nav{color:#b7bfcc}body.dark .tool,body.dark .category-card,body.dark .search-box,body.dark .modal-box,body.dark .section-head input,body.dark .icon-btn,body.dark .secondary,body.dark .secondary-btn,body.dark .prose-page input,body.dark .prose-page textarea,body.dark .tool-panel input,body.dark .tool-panel textarea,body.dark .tool-panel select,body.dark .text-input,body.dark .serp-preview,body.dark .og-preview,body.dark .checklist label,body.dark .pdf-card{background:#151a23;color:#eef1f5;border-color:#2a313e}body.dark .tool p,body.dark .page-hero p,body.dark .feature-band p,body.dark .prose-page p,body.dark .pdf-card p,body.dark .muted,body.dark .footer-brand small{color:#a7afbd}body.dark .pill{background:#242a35;color:#c7ced9}body.dark .feature-band{background:#181d27}body.dark .drop{background:#11151c;border-color:#343b48}body.dark .result{background:#1b212c}body.dark .pdf-card.engine .pdf-status{background:#4b3d13;color:#ffe99b}body.dark .pdf-card.planned .pdf-status{background:#2a3039}body.dark .privacy{background:#151a23}.secondary-btn:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:980px){.main-nav{gap:10px}.main-nav a:nth-child(n+7){display:none}.hero{grid-template-columns:1fr}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feature-band{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pdf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.topbar{padding:0 4vw}.main-nav a{display:none}.hero{padding-top:50px}.hero h1{font-size:52px}.grid,.pdf-grid,.category-grid{grid-template-columns:1fr}.search-box{width:100%}.section-head{align-items:stretch;flex-direction:column}.feature-band{margin-bottom:55px}.modal-box{padding:24px 18px}.footer-links{display:none}footer{flex-wrap:wrap}}

/* ================= ToolBox Catalog V2 ================= */
.topbar{position:sticky;top:0;z-index:80;height:76px;background:rgba(255,253,251,.94);backdrop-filter:blur(16px)}
.main-nav{align-items:center;gap:6px}
.top-cat{border:0;background:transparent;color:#4e5666;font:inherit;font-weight:700;font-size:13px;padding:10px 11px;border-radius:10px;cursor:pointer;white-space:nowrap}
.top-cat:hover,.top-cat[aria-expanded="true"]{background:#f0f2f6;color:#141821}
.top-cat span{font-size:12px;margin-left:3px}
.utility-link{font-size:13px;font-weight:650;color:#6b7382;padding:10px 7px}
.utility-link:hover{color:#161a23}
.mega-menu{position:fixed;top:76px;left:50%;transform:translateX(-50%);width:min(1120px,calc(100vw - 28px));z-index:79}
.mega-menu[hidden]{display:none}
.mega-panel{background:rgba(255,255,255,.98);border:1px solid #dfe3eb;border-radius:20px;box-shadow:0 24px 60px rgba(22,28,43,.16);padding:22px;display:grid;grid-template-columns:1.2fr 2fr auto;gap:20px;align-items:center}
.mega-intro{display:flex;gap:13px;align-items:flex-start}
.mega-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#f0f2f6;font-size:23px;flex:none}
.mega-intro h3{font-size:20px;margin:2px 0 5px;letter-spacing:-.03em}
.mega-intro p{margin:0;color:#737c8c;font-size:12px;line-height:1.5}
.mega-links{display:flex;flex-wrap:wrap;gap:8px}
.mega-link{border:1px solid #e0e4eb;background:#fafbfc;color:#4c5565;border-radius:12px;padding:10px 12px;cursor:pointer;font:inherit;font-size:12px;font-weight:700}
.mega-link:hover{background:#171923;color:#fff;border-color:#171923}
.mega-all{border:0;background:#171923;color:#fff;border-radius:12px;padding:12px 15px;font:inherit;font-weight:800;cursor:pointer;white-space:nowrap}
.hero-v2{padding-top:70px;padding-bottom:44px}
.hero-v2 .hero-copy{max-width:720px}
.hero-v2 .hero-copy p{max-width:690px}
.hero-category-preview{min-height:520px;justify-content:flex-start;padding:22px}
.hero-category-preview .showcase-item{min-height:58px;display:grid;grid-template-columns:34px 1fr;column-gap:10px;align-items:center}
.hero-category-preview .showcase-item>b{font-size:14px}
.hero-category-preview .showcase-item>span:last-child{grid-column:2}
.showcase-icon{grid-row:1 / span 2;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.1);font-size:16px}
.about-blurb{max-width:1240px;margin:0 auto;padding:0 5vw 42px}
.about-blurb-inner{border:1px solid #e1e5ed;border-radius:24px;background:linear-gradient(135deg,#f5f6fa,#eef0f6);padding:28px 32px}
.about-blurb h2{font-size:32px;line-height:1.1;letter-spacing:-.04em;margin:8px 0 10px;max-width:830px}
.about-blurb p{margin:0;max-width:820px;color:#687183}
.catalog-shell{max-width:1240px;margin:0 auto;padding:0 5vw 90px}
.catalog-head{padding-top:15px;margin-bottom:17px}
.catalog-head h2{font-size:38px;letter-spacing:-.04em;margin:6px 0 2px}
.catalog-count{font-size:12px;color:#7a8392}
.catalog-search{margin-left:auto}
.filter-bar{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0 7px;position:sticky;top:76px;z-index:60;background:rgba(247,248,251,.95);backdrop-filter:blur(10px)}
.filter-chip,.subfilter-chip{border:1px solid #dde2ea;background:#fff;color:#4c5565;border-radius:999px;padding:9px 13px;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.filter-chip:hover,.filter-chip.active{background:#171923;color:#fff;border-color:#171923}
.subfilter-bar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:9px 0 17px;border-bottom:1px solid #e2e6ed;margin-bottom:17px}
.subfilter-bar.static{margin-bottom:14px;border-bottom:0}
.subfilter-label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:850;color:#7a8291;margin-right:4px}
.subfilter-chip:hover,.subfilter-chip.active{background:#eef1f6;border-color:#cbd2dd;color:#171b23}
.tool-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.1em;font-weight:850;color:#8a92a0;margin-top:5px}
.catalog-card{min-height:175px}
.catalog-card .tool-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#f1f3f7;font-size:24px}
.catalog-card h3{font-size:17px}
.catalog-card p{max-width:30ch}
.pill.engine{background:#fff3cd;color:#7a5800}.pill.planned{background:#eceff3;color:#6b7380}.pill.ready{background:#eaf6ed;color:#286b39}
.all-catalog-page{padding-top:18px}

body.dark .topcat,body.dark .top-cat{color:#b9c1cf}
body.dark .top-cat:hover,body.dark .top-cat[aria-expanded="true"]{background:#202631;color:#fff}
body.dark .utility-link{color:#aab3c1}
body.dark .mega-panel{background:rgba(20,25,34,.98);border-color:#2b3340;box-shadow:0 24px 60px rgba(0,0,0,.35)}
body.dark .mega-icon,body.dark .mega-link{background:#1b212b;border-color:#303846;color:#d2d8e1}
body.dark .mega-link:hover{background:#fff;color:#171923;border-color:#fff}
body.dark .filter-bar{background:rgba(13,16,22,.95)}
body.dark .filter-chip,body.dark .subfilter-chip{background:#171c25;color:#ccd3de;border-color:#2a323f}
body.dark .filter-chip:hover,body.dark .filter-chip.active{background:#fff;color:#171923;border-color:#fff}
body.dark .subfilter-chip:hover,body.dark .subfilter-chip.active{background:#252c37;color:#fff;border-color:#3a4452}
body.dark .about-blurb-inner{background:linear-gradient(135deg,#171c25,#1c222c);border-color:#2a313e}
body.dark .about-blurb p{color:#a9b2c0}
body.dark .catalog-count{color:#8d97a7}
body.dark .catalog-card .tool-icon{background:#1d232d}

@media(max-width:1180px){.main-nav .utility-link{display:none}.mega-panel{grid-template-columns:1fr;}.mega-all{justify-self:start}.hero-category-preview{min-height:0}.hero-category-preview .showcase-item{min-height:52px}}
@media(max-width:900px){.top-cat{font-size:12px;padding:9px 8px}.hero-category-preview{display:grid;grid-template-columns:1fr 1fr}.showcase-label{grid-column:1/-1}.filter-bar{top:70px}}
@media(max-width:620px){.topbar{height:auto;min-height:70px;align-items:flex-start}.main-nav{overflow-x:auto;max-width:100%;padding-bottom:4px}.top-cat{font-size:11px}.hero-category-preview{grid-template-columns:1fr}.filter-bar{position:static;overflow-x:auto;flex-wrap:nowrap}.filter-chip{white-space:nowrap}.catalog-head{gap:10px}.catalog-search{width:100%}.mega-menu{top:70px}.about-blurb-inner{padding:24px}.about-blurb h2{font-size:26px}}

/* ================= ToolBox Catalog V3 — clean header + grouped catalog ================= */
.topbar{display:flex;align-items:center;gap:22px;height:72px;padding:0 4vw;background:rgba(255,253,251,.96);border-bottom:1px solid #e5e8ee;position:sticky;top:0;z-index:90}
.brand{flex:0 0 auto}
.main-nav{display:flex;align-items:center;gap:3px;min-width:0;flex:1}
.nav-spacer{flex:1 1 auto;min-width:12px}
.top-cat{background:transparent;border:0;color:#414959;font:inherit;font-size:12px;font-weight:800;letter-spacing:.01em;padding:9px 9px;border-radius:9px;cursor:pointer;white-space:nowrap}
.top-cat:hover,.top-cat[aria-expanded="true"]{background:#eef1f5;color:#111620}
.top-cat span{font-size:10px;margin-left:3px}
.utility-link{font-size:12px;font-weight:700;color:#6a7383;padding:8px 7px;white-space:nowrap}
.utility-link:hover{color:#151922}
.hero-v3{max-width:1240px;margin:0 auto;padding:92px 5vw 52px;display:block}
.hero-copy-wide{max-width:980px}
.hero-v3 .hero-copy-wide h1{font-size:clamp(54px,7.5vw,92px);max-width:920px}
.hero-v3 .hero-copy-wide p{max-width:900px;font-size:18px;color:#616a7b}
.hero-search-wide{max-width:720px;margin-top:24px}
.about-blurb{padding-top:0}
.about-blurb-inner{background:#f1f3f7}
.catalog-shell{padding-top:4px}
.catalog-head{margin-bottom:10px}
.filter-bar{gap:9px;padding:13px 0 10px;position:sticky;top:72px}
.filter-chip{font-size:12px;padding:9px 14px;font-weight:800}
.subfilter-bar{gap:8px;padding:10px 0 18px}
.subfilter-chip{font-size:11px;padding:8px 12px}
.tool-group{margin:34px 0 0}
.tool-group-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:14px}
.tool-group-head h3{font-size:28px;line-height:1.1;margin:6px 0 4px;letter-spacing:-.03em}
.tool-group-head p{margin:0;color:#70798a;max-width:760px;font-size:13px}
.group-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d9dee7;background:#fff;color:#353d4b;border-radius:10px;padding:9px 12px;font:inherit;font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap}
.group-link:hover{background:#171923;color:#fff;border-color:#171923}
.pdf-flat-grid[hidden]{display:none}
.page-pdf-grid{display:none}
body.dark .topbar{background:rgba(16,19,27,.97);border-color:#252b37}
body.dark .top-cat{color:#c2cad6}
body.dark .top-cat:hover,body.dark .top-cat[aria-expanded="true"]{background:#222934;color:#fff}
body.dark .utility-link{color:#aeb7c5}
body.dark .about-blurb-inner{background:#171c25}
body.dark .group-link{background:#171c25;color:#d5dbe4;border-color:#2c3440}
body.dark .group-link:hover{background:#fff;color:#171923;border-color:#fff}
@media(max-width:1180px){.top-cat{font-size:11px;padding:8px 7px}.utility-link{font-size:11px;padding:7px 5px}}
@media(max-width:980px){.topbar{height:auto;min-height:72px;align-items:flex-start}.main-nav{overflow-x:auto;padding-bottom:4px}.nav-spacer{display:none}.utility-link{display:none}.hero-v3{padding-top:60px}.tool-group-head{align-items:flex-start;flex-direction:column}.group-link{align-self:flex-start}}
@media(max-width:620px){.topbar{gap:10px;padding:0 3vw}.main-nav{gap:2px}.top-cat{font-size:10px;padding:8px 6px}.top-cat span{display:none}.hero-v3{padding-top:50px}.hero-v3 .hero-copy-wide h1{font-size:50px}.hero-v3 .hero-copy-wide p{font-size:16px}.filter-bar{top:70px;overflow-x:auto;flex-wrap:nowrap}.filter-chip{white-space:nowrap}.tool-group-head h3{font-size:23px}}


/* ================= ToolBox UI V4 — compact cards + hover menus + original SVG icons ================= */
:root{
  --tb-navy:#171923;
  --tb-ink:#121623;
  --tb-muted:#697286;
  --tb-border:#dfe4ec;
  --tb-surface:#ffffff;
  --tb-page:#f5f7fb;
}

/* Header: category menus open on hover and remain open while the pointer is over the menu. */
.mega-menu{top:72px;width:min(1180px,calc(100vw - 34px));}
.mega-panel{display:block;padding:18px 20px;border-radius:18px;background:rgba(255,255,255,.985);border:1px solid #dce2eb;box-shadow:0 24px 70px rgba(17,23,38,.16)}
.mega-head{display:grid;grid-template-columns:auto 1fr auto;gap:13px;align-items:center;padding-bottom:14px;border-bottom:1px solid #e8ebf0}
.mega-category-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:#f2f4f7;color:#1d2431}
.mega-category-icon .tb-icon{width:26px;height:26px}
.mega-head h3{margin:2px 0 3px;font-size:18px;letter-spacing:-.02em}
.mega-head p{margin:0;color:#768094;font-size:12px}
.mega-close{width:32px;height:32px;border:1px solid #dce1e9;background:#fff;border-radius:10px;color:#70798a;font-size:20px;line-height:1;cursor:pointer}
.mega-close:hover{background:#171923;color:#fff;border-color:#171923}
.mega-subnav{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px;padding-top:15px}
.mega-link{display:flex;align-items:center;gap:9px;text-align:left;border:1px solid #e1e5ed;background:#fbfcfe;color:#394252;border-radius:12px;padding:11px 12px;cursor:pointer;font-size:12px;font-weight:800;transition:.16s}
.mega-link:hover{background:#171923;color:#fff;border-color:#171923;transform:translateY(-1px)}
.mega-link-icon{width:24px;height:24px;display:grid;place-items:center;border-radius:7px;background:#eef1f5;flex:none}
.mega-link-icon .tb-icon{width:15px;height:15px}
.mega-link:hover .mega-link-icon{background:rgba(255,255,255,.12);color:#fff}
.mega-all{margin-top:13px;border:0;background:#171923;color:#fff;border-radius:11px;padding:10px 14px;font-size:12px;font-weight:850;cursor:pointer}
.mega-all:hover{background:#2b3140}

/* Original icon family for tool cards. */
.tb-icon{width:100%;height:100%;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tool-icon-wrap{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;color:#263143;background:#eef2f6;box-shadow:inset 0 0 0 1px rgba(255,255,255,.8)}
.tool-icon-wrap .tb-icon{width:27px;height:27px}
.catalog-card:nth-child(4n+1) .tool-icon-wrap{color:#4263a8;background:#edf2ff}
.catalog-card:nth-child(4n+2) .tool-icon-wrap{color:#3f7d66;background:#ecf7f0}
.catalog-card:nth-child(4n+3) .tool-icon-wrap{color:#a26544;background:#fff2ea}
.catalog-card:nth-child(4n+4) .tool-icon-wrap{color:#7958a8;background:#f3edfb}

/* Compact square-ish cards: restore the broad card feel instead of tall narrow tiles. */
.category-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.catalog-card{min-height:0;aspect-ratio:1.08/1;padding:19px;border-radius:16px}
.catalog-card h3{font-size:17px;line-height:1.22;margin:8px 0 6px}
.catalog-card p{font-size:12.5px;line-height:1.45;max-width:none}
.catalog-card .tool-kicker{margin-top:9px}
.catalog-card .pill{margin-top:10px}
.grid.category-list .catalog-card{width:100%}

/* Keep PDF grids consistent with the main catalog. */
.pdf-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.pdf-card{min-height:0;aspect-ratio:1.1/1;padding:18px;border-radius:16px;display:flex;flex-direction:column;justify-content:space-between}
.pdf-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#eef2f6;color:#49609a}
.pdf-icon .tb-icon{width:27px;height:27px}
.pdf-card:nth-child(4n+2) .pdf-icon{color:#3f7d66;background:#ecf7f0}
.pdf-card:nth-child(4n+3) .pdf-icon{color:#a26544;background:#fff2ea}
.pdf-card:nth-child(4n+4) .pdf-icon{color:#7958a8;background:#f3edfb}
.pdf-card h3{font-size:16px;line-height:1.25}
.pdf-card p{font-size:12.5px;line-height:1.45}

/* Filter area: keep All first, but avoid turning the page into one endless pill bar. */
.filter-bar{position:sticky;top:72px;z-index:60;padding:12px 0 10px;background:rgba(245,247,251,.96);backdrop-filter:blur(10px)}
.filter-chip{border-radius:10px;padding:9px 13px}
.subfilter-bar{border-bottom:1px solid #e3e7ee;padding:8px 0 15px;margin-bottom:5px}

/* Dark mode */
body.dark .mega-panel{background:rgba(20,25,34,.99);border-color:#2d3542}
body.dark .mega-head{border-color:#2c3440}
body.dark .mega-category-icon{background:#1d2430;color:#e4e9f0}
body.dark .mega-head p{color:#a9b2c1}
body.dark .mega-close{background:#1b212b;border-color:#313948;color:#bfc7d3}
body.dark .mega-link{background:#1a202a;color:#d7dde5;border-color:#303846}
body.dark .mega-link-icon{background:#242c37}
body.dark .tool-icon-wrap,body.dark .pdf-icon{box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)}
body.dark .filter-bar{background:rgba(13,16,22,.96)}

@media(max-width:1100px){
  .category-list,.pdf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mega-subnav{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .category-list,.pdf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mega-subnav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .catalog-card,.pdf-card{aspect-ratio:1/1}
}
@media(max-width:520px){
  .category-list,.pdf-grid{grid-template-columns:1fr}
  .mega-subnav{grid-template-columns:1fr}
  .catalog-card,.pdf-card{aspect-ratio:auto;min-height:205px}
}


/* ================= ToolBox V5 — cleaner header, real tool mega menus, square cards ================= */
.topbar{height:70px;min-height:70px;padding:0 3.6vw;gap:18px}
.main-nav{display:flex;align-items:center;gap:2px;min-width:0;flex:1}
.nav-spacer{flex:1 1 auto;min-width:16px}
.top-cat{display:inline-flex;align-items:center;justify-content:center;gap:4px;border:0;background:transparent;color:#454d5c;font-size:12px;font-weight:800;letter-spacing:.01em;padding:9px 9px;border-radius:9px;cursor:pointer;white-space:nowrap}
.top-cat:hover,.top-cat[aria-expanded="true"]{background:#eef1f5;color:#121722}
.top-cat span{font-size:10px;line-height:1;opacity:.8}
.utility-link{font-size:12px;font-weight:700;color:#687181;padding:8px 6px;white-space:nowrap}
.icon-btn{padding:8px 9px}

.category-list{grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:16px}
.catalog-card{min-height:0 !important;aspect-ratio:1/1 !important;padding:19px !important;border-radius:17px}
.catalog-card .tool-icon-wrap{width:50px;height:50px;border-radius:14px}
.catalog-card .tool-kicker{margin-top:10px}
.catalog-card h3{font-size:18px;line-height:1.22;margin:8px 0 6px}
.catalog-card p{font-size:13px;line-height:1.45;max-width:32ch}
.catalog-card .pill{margin-top:11px}

.pdf-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:16px}
.pdf-card{min-height:0 !important;aspect-ratio:1/1 !important;padding:19px !important;border-radius:17px}
.pdf-card h3{font-size:17px;line-height:1.22}
.pdf-card p{font-size:13px;line-height:1.45}

.mega-menu{position:fixed;top:70px;left:50%;transform:translateX(-50%);width:min(1180px,calc(100vw - 34px));z-index:120}
.mega-panel{display:block;padding:18px 20px 20px;border-radius:18px;background:rgba(255,255,255,.985);border:1px solid #dce2eb;box-shadow:0 24px 70px rgba(17,23,38,.16)}
.mega-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:13px;align-items:center;padding-bottom:14px;border-bottom:1px solid #e8ebf0}
.mega-category-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:#f2f4f7;color:#1d2431}
.mega-category-icon .tb-icon{width:25px;height:25px}
.mega-head h3{margin:2px 0 3px;font-size:18px;letter-spacing:-.02em}
.mega-head p{margin:0;color:#768094;font-size:12px}
.mega-all-top{margin:0}
.mega-tool-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding-top:17px;max-height:min(64vh,560px);overflow:auto;padding-right:4px}
.mega-tool-group{min-width:0}
.mega-group-title{font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:900;color:#7a8292;margin-bottom:8px}
.mega-tool-list{display:grid;grid-template-columns:1fr;gap:6px}
.mega-tool-link{display:flex;align-items:center;gap:8px;width:100%;padding:8px 9px;border:1px solid #e2e6ed;background:#fbfcfe;color:#313a4a;border-radius:11px;cursor:pointer;text-align:left;font-size:12px;font-weight:750;transition:.15s}
.mega-tool-link:hover{background:#171923;color:#fff;border-color:#171923;transform:translateX(1px)}
.mega-tool-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#eef1f5;color:#3b4a66;flex:none}
.mega-tool-icon .tb-icon{width:15px;height:15px}
.mega-tool-link:hover .mega-tool-icon{background:rgba(255,255,255,.12);color:#fff}

.filter-bar{position:sticky;top:70px;z-index:60;display:flex;flex-wrap:wrap;gap:8px;padding:12px 0 10px;background:rgba(245,247,251,.96);backdrop-filter:blur(10px)}
.filter-chip{border:1px solid #dce2ea;background:#fff;color:#4d5565;border-radius:999px;padding:9px 14px;font-size:12px;font-weight:800}
.filter-chip:hover,.filter-chip.active{background:#171923;color:#fff;border-color:#171923}
.subfilter-bar{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0 16px;margin-bottom:7px;border-bottom:1px solid #e3e7ee}

body.dark .top-cat{color:#c3cad5}
body.dark .top-cat:hover,body.dark .top-cat[aria-expanded="true"]{background:#202731;color:#fff}
body.dark .utility-link{color:#b6bfcd}
body.dark .mega-panel{background:rgba(20,25,34,.995);border-color:#2d3542}
body.dark .mega-head{border-color:#2c3440}
body.dark .mega-head p{color:#a9b2c1}
body.dark .mega-all-top{background:#fff;color:#171923}
body.dark .mega-group-title{color:#9aa4b3}
body.dark .mega-tool-link{background:#1a202a;color:#d7dde5;border-color:#303846}
body.dark .mega-tool-icon{background:#242c37;color:#dce2eb}
body.dark .mega-tool-link:hover{background:#fff;color:#171923;border-color:#fff}
body.dark .mega-tool-link:hover .mega-tool-icon{background:#eef1f6;color:#171923}
body.dark .filter-bar{background:rgba(13,16,22,.96)}
body.dark .filter-chip{background:#171c25;color:#ccd3de;border-color:#2a323f}

@media(max-width:1180px){
  .category-list,.pdf-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
  .mega-tool-groups{grid-template-columns:repeat(3,minmax(0,1fr))}
  .main-nav{gap:1px}
  .top-cat{padding-left:7px;padding-right:7px}
  .utility-link{padding-left:4px;padding-right:4px}
}
@media(max-width:980px){
  .nav-spacer{display:none}
  .utility-link{display:none}
  .mega-tool-groups{grid-template-columns:repeat(2,minmax(0,1fr))}
  .category-list,.pdf-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}
@media(max-width:760px){
  .topbar{height:auto;min-height:70px;align-items:flex-start;padding:8px 3vw;gap:10px}
  .main-nav{overflow-x:auto;padding-bottom:3px}
  .top-cat{font-size:11px;padding:8px 7px}
  .category-list,.pdf-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .catalog-card,.pdf-card{aspect-ratio:1/1 !important}
  .mega-menu{top:70px;width:calc(100vw - 18px)}
  .mega-tool-groups{grid-template-columns:1fr;max-height:65vh}
}
@media(max-width:520px){
  .topbar{flex-direction:column;align-items:stretch}
  .brand{justify-content:center}
  .main-nav{justify-content:flex-start;overflow-x:auto}
  .category-list,.pdf-grid{grid-template-columns:1fr !important}
  .catalog-card,.pdf-card{aspect-ratio:auto !important;min-height:210px !important}
  .mega-tool-groups{grid-template-columns:1fr}
}

/* ================= ToolBox V6 — restore original tool-card layout ================= */
/* The catalog groups must stack vertically; only the cards inside each group use the grid. */
#toolGrid{display:block !important;width:100%;}
.tool-group{display:block !important;width:100%;margin:34px 0 0;}

/* Restore the original broad 3-column tool cards used by the base ToolBox UI. */
.category-list{display:grid !important;grid-template-columns:repeat(6,minmax(0,1fr)) !important;gap:15px !important;}
.catalog-card{min-height:180px !important;aspect-ratio:auto !important;padding:21px !important;border-radius:18px !important;}
.catalog-card .tool-icon-wrap{width:46px;height:46px;border-radius:12px;}
.catalog-card h3{font-size:18px;line-height:1.2;margin:10px 0 5px;}
.catalog-card p{font-size:13px;line-height:1.5;max-width:none;}
.catalog-card .tool-kicker{margin-top:9px;}
.catalog-card .pill{margin-top:12px;}

/* Keep PDF cards on the same original card system. */
.pdf-grid{display:grid !important;grid-template-columns:repeat(6,minmax(0,1fr)) !important;gap:15px !important;}
.pdf-card{min-height:180px !important;aspect-ratio:auto !important;padding:21px !important;border-radius:18px !important;}
.pdf-icon{width:46px;height:46px;border-radius:12px;}
.pdf-card h3{font-size:18px;line-height:1.2;margin:10px 0 5px;}
.pdf-card p{font-size:13px;line-height:1.5;min-height:0;}

/* Give the main category navigation a more even, polished alignment. */
.topbar{height:72px;min-height:72px;padding:0 4.5vw;gap:24px;}
.main-nav{gap:6px;}
.top-cat{padding:9px 10px;font-size:12px;}
.utility-link{padding:8px 6px;}

@media(max-width:1180px){
  .category-list,.pdf-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
}
@media(max-width:980px){
  .category-list,.pdf-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}
@media(max-width:760px){
  .category-list,.pdf-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .catalog-card,.pdf-card{aspect-ratio:auto !important;min-height:190px !important;}
}
@media(max-width:520px){
  .category-list,.pdf-grid{grid-template-columns:1fr !important;}
  .catalog-card,.pdf-card{min-height:190px !important;}
}


/* ================= ToolBox V8 — hero-only refresh =================
   Only the homepage hero presentation is changed here. The catalog, cards,
   tool logic, menus, pages and existing V6 styling remain intact. */
.hero-ivpdf{
  max-width:1240px;
  margin:0 auto;
  padding:72px 5vw 44px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.hero-ivpdf::before,
.hero-ivpdf::after{
  content:"";
  position:absolute;
  width:260px;
  height:260px;
  border-radius:50%;
  pointer-events:none;
  opacity:.55;
}
.hero-ivpdf::before{
  left:-170px;
  top:-100px;
  background:radial-gradient(circle,rgba(217,224,245,.72),transparent 68%);
}
.hero-ivpdf::after{
  right:-170px;
  top:-95px;
  background:radial-gradient(circle,rgba(247,227,236,.72),transparent 68%);
}
.hero-ivpdf-inner{position:relative;z-index:1;max-width:1120px;margin:0 auto;}
.hero-ivpdf .eyebrow{margin-bottom:12px;}
.hero-ivpdf h1{
  max-width:1040px;
  margin:0 auto;
  font-size:clamp(42px,5.1vw,72px);
  line-height:1.04;
  letter-spacing:-.055em;
  font-weight:850;
}
.hero-ivpdf p{
  max-width:920px;
  margin:12px auto 0;
  color:#596274;
  font-size:18px;
  line-height:1.5;
}
.hero-category-wrap{
  max-width:1100px;
  margin:28px auto 0;
}
.hero-category-wrap .filter-bar{
  position:static !important;
  justify-content:center;
  padding:0;
  background:transparent;
  backdrop-filter:none;
  border:0;
}
.hero-category-wrap .filter-chip{
  border:1px solid #d7dce6;
  background:#fff;
  color:#4f5869;
  border-radius:999px;
  padding:9px 16px;
  font-size:13px;
  font-weight:800;
  box-shadow:0 2px 7px rgba(24,30,44,.035);
}
.hero-category-wrap .filter-chip:hover,
.hero-category-wrap .filter-chip.active{
  background:#171923;
  color:#fff;
  border-color:#171923;
  box-shadow:0 6px 16px rgba(23,25,35,.12);
}
.hero-category-wrap .subfilter-bar{
  justify-content:center;
  margin:14px auto 0;
  padding:10px 0 0;
  border-bottom:0;
}
.catalog-search{width:320px;}
body.dark .hero-ivpdf p{color:#aeb7c6}
body.dark .hero-category-wrap .filter-chip{background:#171c25;color:#cfd6df;border-color:#2b3340}
body.dark .hero-category-wrap .filter-chip:hover,
body.dark .hero-category-wrap .filter-chip.active{background:#fff;color:#171923;border-color:#fff}
@media(max-width:760px){
  .hero-ivpdf{padding-top:52px;padding-bottom:34px;}
  .hero-ivpdf h1{font-size:clamp(37px,10vw,56px);}
  .hero-ivpdf p{font-size:16px;}
  .hero-category-wrap .filter-bar{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;}
  .hero-category-wrap .filter-chip{white-space:nowrap;}
  .hero-category-wrap .subfilter-bar{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;}
  .catalog-search{width:100%;}
}


/* ================= ToolBox V9 — centered hero + horizontal category bar ================= */
.topbar{
  min-height:70px;
  height:70px;
  padding:0 3.2vw;
  gap:18px;
}
.main-nav{
  display:flex;
  align-items:center;
  gap:0;
  min-width:0;
  flex:1 1 auto;
}
.top-cat{
  font-size:12px;
  padding:9px 10px;
  border-radius:8px;
  white-space:nowrap;
}
.nav-spacer{flex:1 1 auto;min-width:12px}
.utility-link{font-size:12px;font-weight:700;padding:7px 5px;white-space:nowrap}
.auth-actions{display:inline-flex;align-items:center;gap:8px;margin-left:6px;margin-right:14px;white-space:nowrap}
.auth-login,.auth-signup{
  border:1px solid transparent;
  border-radius:9px;
  padding:8px 12px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.auth-login{background:transparent;color:#222735}
.auth-login:hover{background:#f0f2f6}
.auth-signup{background:#e6332a;color:#fff;border-color:#e6332a}
.auth-signup:hover{background:#c92b24;border-color:#c92b24}

/* Only the hero is changed here; the catalog/tool sections remain untouched. */
.hero-ivpdf{
  max-width:none;
  margin:0;
  padding:72px 4vw 44px;
  display:block;
  background:#f6f7fb;
  text-align:center;
}
.hero-ivpdf-inner{
  max-width:1320px;
  margin:0 auto;
}
.hero-ivpdf .eyebrow{
  margin-bottom:14px;
  text-align:center;
}
.hero-ivpdf h1{
  max-width:1320px;
  margin:0 auto;
  font-size:clamp(36px,4.25vw,60px);
  line-height:1.08;
  letter-spacing:-.045em;
  font-weight:850;
  text-align:center;
  white-space:nowrap;
}
.hero-ivpdf p{
  max-width:1120px;
  margin:14px auto 0;
  color:#596274;
  font-size:17px;
  line-height:1.5;
  text-align:center;
}
.hero-category-wrap{
  max-width:1220px;
  margin:30px auto 0;
}
.hero-category-wrap .filter-bar{
  position:static !important;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:nowrap;
  gap:10px;
  overflow-x:auto;
  padding:0 2px 4px;
  background:transparent;
  backdrop-filter:none;
  border:0;
  scrollbar-width:none;
}
.hero-category-wrap .filter-bar::-webkit-scrollbar{display:none}
.hero-category-wrap .filter-chip{
  flex:0 0 auto;
  border:1px solid #d4d9e3;
  background:#fff;
  color:#4b5566;
  border-radius:999px;
  padding:10px 18px;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  box-shadow:0 2px 7px rgba(24,30,44,.035);
}
.hero-category-wrap .filter-chip:hover,
.hero-category-wrap .filter-chip.active{
  background:#171923;
  color:#fff;
  border-color:#171923;
  box-shadow:0 6px 16px rgba(23,25,35,.12);
}
.hero-category-wrap .subfilter-bar{
  justify-content:center;
  gap:8px;
  max-width:100%;
  margin:15px auto 0;
  padding:0;
  border:0;
}
.hero-category-wrap .subfilter-chip{
  flex:0 0 auto;
  white-space:nowrap;
}

body.dark .hero-ivpdf{background:#0d1016}
body.dark .hero-ivpdf p{color:#aeb7c6}
body.dark .auth-login{color:#e5e9ef}
body.dark .auth-login:hover{background:#1e2530}
body.dark .auth-signup{background:#e33a31;border-color:#e33a31}

@media(max-width:1180px){
  .topbar{padding:0 2.3vw;gap:10px}
  .utility-link{display:none}
  .hero-ivpdf h1{font-size:clamp(34px,4vw,54px)}
}
@media(max-width:900px){
  .topbar{height:auto;min-height:70px;align-items:center;overflow:hidden}
  .main-nav{overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
  .main-nav::-webkit-scrollbar{display:none}
  .top-cat{font-size:11px;padding:8px 8px}
  .nav-spacer{display:none}
  .hero-ivpdf{padding-top:56px}
  .hero-ivpdf h1{white-space:normal;font-size:clamp(36px,7vw,54px)}
  .hero-ivpdf p{font-size:16px}
  .hero-category-wrap .filter-bar{justify-content:flex-start}
}
@media(max-width:620px){
  .topbar{padding:0 3vw;gap:8px}
  .brand{font-size:19px}
  .brand-mark{width:33px;height:33px}
  .top-cat{font-size:10px;padding:8px 7px}
  .auth-actions{display:none}
  .hero-ivpdf{padding-top:46px;padding-bottom:35px}
  .hero-ivpdf h1{font-size:clamp(34px,10vw,48px)}
  .hero-ivpdf p{font-size:15px;line-height:1.45}
  .hero-category-wrap .filter-bar{justify-content:flex-start;gap:7px}
  .hero-category-wrap .filter-chip{padding:9px 14px;font-size:12px}
}


/* V11: remove the extra homepage intro/catalog header block */
.about-blurb{display:none !important;}
.catalog-head{display:none !important;}
.catalog-shell{padding-top:0;}

/* V12: compact PDF group header; keep all other catalog styling unchanged */
.tool-group-pdf{margin-top:10px}
.tool-group-head-pdf{display:flex;align-items:center;justify-content:flex-start;margin-bottom:12px}
.group-open-pdf{display:inline-flex;align-items:center;gap:8px;padding:11px 16px;border-radius:12px;background:#171923;color:#fff;font-weight:800;border:1px solid #171923}
.group-open-pdf:hover{transform:translateY(-1px);box-shadow:0 10px 18px rgba(19,25,42,.10)}
.hero-ivpdf{padding-bottom:22px}
@media(max-width:620px){.hero-ivpdf{padding-bottom:18px}.tool-group-pdf{margin-top:4px}}

/* V15: make every tool catalog use the same full-width six-card grid and equal card size. */
.grid{grid-template-columns:repeat(6,minmax(0,1fr)) !important;gap:15px !important;}
.grid > .tool{height:272px !important;min-height:272px !important;overflow:hidden !important;}

@media (max-width:1180px){
  .grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
  .grid > .tool{height:260px !important;min-height:260px !important;}
}
@media (max-width:900px){
  .grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
  .grid > .tool{height:245px !important;min-height:245px !important;}
}
@media (max-width:620px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .grid > .tool{height:225px !important;min-height:225px !important;}
}
@media (max-width:430px){
  .grid{grid-template-columns:1fr !important;}
  .grid > .tool{height:225px !important;min-height:225px !important;}
}

/* V14: uniform tool-card sizing — keep every desktop catalog/PDF card the same height */
.category-list .catalog-card,
.pdf-grid .pdf-card {
  height: 272px !important;
  min-height: 272px !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
}

@media (max-width:1180px){
  .category-list .catalog-card,
  .pdf-grid .pdf-card {
    height: 260px !important;
    min-height: 260px !important;
  }
}

@media (max-width:900px){
  .category-list .catalog-card,
  .pdf-grid .pdf-card {
    height: 245px !important;
    min-height: 245px !important;
  }
}

@media (max-width:620px){
  .category-list .catalog-card,
  .pdf-grid .pdf-card {
    height: 225px !important;
    min-height: 225px !important;
  }
}

/* V16: full-width six-card catalog rows on desktop. Preserve all existing content/UI; adjust only card grid geometry. */
@media (min-width: 1181px){
  .category-list,
  .pdf-grid{
    width: calc(100vw - 60px) !important;
    max-width: none !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .category-list .catalog-card,
  .pdf-grid .pdf-card{
    width: 100% !important;
    height: 272px !important;
    min-height: 272px !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 1180px) and (min-width: 981px){
  .category-list,
  .pdf-grid{
    width: calc(100vw - 48px) !important;
    max-width: none !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 15px !important;
  }

  .category-list .catalog-card,
  .pdf-grid .pdf-card{
    width: 100% !important;
    height: 260px !important;
    min-height: 260px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 980px) and (min-width: 761px){
  .category-list,
  .pdf-grid{
    width: calc(100vw - 40px) !important;
    max-width: none !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .category-list .catalog-card,
  .pdf-grid .pdf-card{
    width: 100% !important;
    height: 245px !important;
    min-height: 245px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 760px) and (min-width: 521px){
  .category-list,
  .pdf-grid{
    width: calc(100vw - 28px) !important;
    max-width: none !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .category-list .catalog-card,
  .pdf-grid .pdf-card{
    width: 100% !important;
    height: 225px !important;
    min-height: 225px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 520px){
  .category-list,
  .pdf-grid{
    width: calc(100vw - 20px) !important;
    max-width: none !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .category-list .catalog-card,
  .pdf-grid .pdf-card{
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    box-sizing: border-box !important;
  }
}

/* V17: remove redundant PDF CTA and keep PDF subgroup headings left-aligned. */
.tool-group-pdf .tool-group-head,
.tool-group-pdf .tool-group-head > div {
  justify-content:flex-start !important;
  align-items:flex-start !important;
  text-align:left !important;
}
.tool-group-pdf .tool-group-head h3,
.tool-group-pdf .tool-group-head p,
.tool-group-pdf .tool-group-head .eyebrow {
  text-align:left !important;
}
@media(max-width:980px){
  .tool-group-pdf .tool-group-head {
    align-items:flex-start !important;
  }
}

/* V18: align PDF subgroup headings exactly with the first tool card column. */
.tool-group-pdf .tool-group-head{
  width:calc(100vw - 60px) !important;
  max-width:none !important;
  margin-left:50% !important;
  margin-right:0 !important;
  transform:translateX(-50%) !important;
  box-sizing:border-box !important;
  margin-bottom:12px !important;
}
.tool-group-pdf .tool-group-head > div{margin:0 !important;}
@media (max-width:1180px) and (min-width:981px){
  .tool-group-pdf .tool-group-head{
    width:calc(100vw - 48px) !important;
  }
}
@media (max-width:980px) and (min-width:761px){
  .tool-group-pdf .tool-group-head{
    width:calc(100vw - 40px) !important;
  }
}
@media (max-width:760px) and (min-width:521px){
  .tool-group-pdf .tool-group-head{
    width:calc(100vw - 28px) !important;
  }
}
@media (max-width:520px){
  .tool-group-pdf .tool-group-head{
    width:calc(100vw - 20px) !important;
  }
}

/* V19: keep homepage category/subcategory headings flush-left with the first tool card. */
.catalog-shell #toolGrid .tool-group:not(.tool-group-pdf) .tool-group-head{
  width:100% !important;
  max-width:none !important;
  margin:0 0 12px !important;
  padding:0 !important;
  justify-content:flex-start !important;
  align-items:flex-start !important;
  text-align:left !important;
}
.catalog-shell #toolGrid .tool-group:not(.tool-group-pdf) .tool-group-head > div{
  width:100% !important;
  margin:0 !important;
  text-align:left !important;
}
.catalog-shell #toolGrid .tool-group:not(.tool-group-pdf) .tool-group-head .eyebrow,
.catalog-shell #toolGrid .tool-group:not(.tool-group-pdf) .tool-group-head h3,
.catalog-shell #toolGrid .tool-group:not(.tool-group-pdf) .tool-group-head p{
  text-align:left !important;
}

/* V22: align non-PDF subgroup headings with the first card column only.
   Based strictly on V19. Do not change the card grid geometry. */
.catalog-shell #toolGrid .tool-group:not(.tool-group-pdf) .tool-group-head{
  width:calc(100vw - 60px) !important;
  max-width:none !important;
  margin-left:50% !important;
  margin-right:0 !important;
  transform:translateX(-50%) !important;
  box-sizing:border-box !important;
  margin-bottom:12px !important;
}
@media (max-width:1180px) and (min-width:981px){
  .catalog-shell #toolGrid .tool-group:not(.tool-group-pdf) .tool-group-head{
    width:calc(100vw - 48px) !important;
  }
}
@media (max-width:980px) and (min-width:761px){
  .catalog-shell #toolGrid .tool-group:not(.tool-group-pdf) .tool-group-head{
    width:calc(100vw - 40px) !important;
  }
}
@media (max-width:760px) and (min-width:521px){
  .catalog-shell #toolGrid .tool-group:not(.tool-group-pdf) .tool-group-head{
    width:calc(100vw - 28px) !important;
  }
}
@media (max-width:520px){
  .catalog-shell #toolGrid .tool-group:not(.tool-group-pdf) .tool-group-head{
    width:calc(100vw - 20px) !important;
  }
}

/* V22 exact spacing correction: remove the vertical gap between consecutive subgroup sections. */
.catalog-shell #toolGrid .tool-group + .tool-group{
  margin-top:0 !important;
}

/* Housax Workspace */
.workspace-auth{padding:10px 4px 4px;max-width:520px;margin:auto}.workspace-auth label{display:grid;gap:7px;margin:14px 0;font-weight:700}.workspace-auth input{width:100%;box-sizing:border-box}.auth-switch{margin-top:14px;background:none;border:0;text-decoration:underline;cursor:pointer;font:inherit}.auth-error{margin:12px 0;padding:10px 12px;border-radius:10px;border:1px solid #efb4b4;background:#fff1f1;color:#9d2020}.workspace-page{max-width:1250px;margin:0 auto;padding:42px 24px 80px}.workspace-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:26px}.workspace-head h1{margin:5px 0}.workspace-grid{display:grid;grid-template-columns:220px 1fr;gap:22px}.workspace-sidebar{display:grid;align-content:start;gap:6px;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}.workspace-sidebar a{padding:11px 12px;border-radius:10px;text-decoration:none;color:inherit}.workspace-sidebar a.active,.workspace-sidebar a:hover{background:var(--soft);font-weight:700}.workspace-main{display:grid;gap:18px}.workspace-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.workspace-card,.workspace-panel{border:1px solid var(--line);border-radius:18px;background:var(--panel);padding:20px;box-shadow:0 8px 24px rgba(0,0,0,.04)}.workspace-card span{display:block;color:var(--muted);font-size:13px}.workspace-card strong{display:block;font-size:28px;margin-top:6px}.workspace-panel h2{margin:6px 0 8px}.panel-row{display:flex;justify-content:space-between;gap:12px;align-items:center}.activity-list{display:grid;gap:8px}.activity-list>div{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid var(--line)}.activity-list small{color:var(--muted)}.loading-state{padding:35px;text-align:center;color:var(--muted)}.workspace-link{font-weight:700;text-decoration:none;padding:8px 10px}.dark .workspace-card,.dark .workspace-panel,.dark .workspace-sidebar{box-shadow:none}.dark .auth-error{background:#3a1d1d;color:#ffd0d0;border-color:#743333}@media(max-width:800px){.workspace-grid{grid-template-columns:1fr}.workspace-cards{grid-template-columns:1fr 1fr}.workspace-head{flex-direction:column}}@media(max-width:520px){.workspace-cards{grid-template-columns:1fr}.workspace-page{padding-left:14px;padding-right:14px}}

.workspace-head h1{font-size:clamp(30px,5vw,44px);font-weight:800;letter-spacing:-.02em;line-height:1.1}.workspace-panel h2{font-size:22px;font-weight:800}.workspace-panel .hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}

.tool-manager-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.tool-manager-panel{padding:22px}.tool-manager-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:20px}.tool-manager-filters{display:grid;grid-template-columns:220px 180px;gap:8px;min-width:410px}.tool-manager-list{display:grid;gap:8px}.tool-manager-row{display:grid;grid-template-columns:46px minmax(180px,1.2fr) minmax(220px,2fr) 100px;gap:16px;align-items:center;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.tool-manager-row.is-off{opacity:.62}.tool-manager-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--soft)}.tool-manager-info{display:grid;gap:3px;min-width:0}.tool-manager-info b{font-size:14px}.tool-manager-info small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tm-status{display:inline-flex;width:max-content;padding:3px 7px;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.tm-working{background:#e9f7ee;color:#18743d}.tm-engine{background:#fff3df;color:#94620c}.tm-planned{background:#edf0f5;color:#657084}.tool-manager-desc{font-size:13px;color:var(--muted);line-height:1.4}.tm-switch{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;cursor:pointer;font-weight:800;font-size:12px}.tm-switch input{position:absolute;opacity:0;pointer-events:none}.tm-switch span{width:42px;height:24px;border-radius:999px;background:#b8bfca;position:relative;transition:.2s}.tm-switch span:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.2s}.tm-switch input:checked+span{background:#1d8f54}.tm-switch input:checked+span:after{left:21px}.tm-switch em{font-style:normal;min-width:22px}.workspace-admin-link{font-weight:800;border:1px dashed var(--line)}@media(max-width:1000px){.tool-manager-toolbar{display:grid;align-items:stretch}.tool-manager-filters{min-width:0;grid-template-columns:1fr 1fr}.tool-manager-row{grid-template-columns:42px 1fr 90px}.tool-manager-desc{grid-column:2 / -1}.tool-manager-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.tool-manager-summary{grid-template-columns:1fr}.tool-manager-filters{grid-template-columns:1fr}.tool-manager-row{grid-template-columns:40px 1fr 82px;gap:10px}.tool-manager-desc{display:none}.tm-switch{font-size:10px}}

/* ===== Housax icon system & card polish ===== */
.hx-icon{width:22px;height:22px;flex:none;display:inline-block;vertical-align:-4px;fill:none;stroke:currentColor}
.tool-panel h2{display:flex;align-items:center;gap:12px}
.tool-panel h2 .hx-icon{width:40px;height:40px;padding:9px;border-radius:11px;background:#f1f3f7;color:#263143;stroke-width:1.8;box-sizing:border-box}
body.dark .tool-panel h2 .hx-icon{background:#1d232d;color:#dce2eb}
.tool-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:12px;background:#f1f3f7;color:#263143;font-size:0}
.tool-icon .hx-icon{width:24px;height:24px}
body.dark .tool-icon{background:#1d232d;color:#dce2eb}
.tool-manager-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#f1f3f7;color:#263143;font-size:0;flex:none}
.tool-manager-icon .hx-icon{width:20px;height:20px}
body.dark .tool-manager-icon{background:#1d232d;color:#dce2eb}
.tb-icon{stroke-width:1.8}
.tool,.catalog-card,.pdf-card{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.tool:hover,.catalog-card:hover,.pdf-card:hover,.pdf-card:focus-visible{transform:translateY(-2px);box-shadow:0 8px 22px rgba(19,25,42,.07)}
.tool h3,.catalog-card h3{letter-spacing:-.01em}
.tool p,.catalog-card p{overflow-wrap:anywhere}

/* Housax professional icon system V4 — deep vivid high-contrast palette */
.tool-icon-wrap{width:56px !important;height:56px !important;border-radius:16px !important;display:grid;place-items:center;color:#3159b5;background:#eaf0ff;box-shadow:inset 0 0 0 1px rgba(49,89,181,.08)}
.tool-icon-wrap .tb-icon{width:31px !important;height:31px !important;stroke-width:2.15}
.catalog-card .tool-icon-wrap{width:56px !important;height:56px !important}
.catalog-card:nth-child(4n+1) .tool-icon-wrap{color:#e5322d;background:#ffe0de}
.catalog-card:nth-child(4n+2) .tool-icon-wrap{color:#047857;background:#d7f5e8}
.catalog-card:nth-child(4n+3) .tool-icon-wrap{color:#c2410c;background:#ffdfcf}
.catalog-card:nth-child(4n+4) .tool-icon-wrap{color:#6d28d9;background:#e8dcff}
.pdf-icon{width:56px !important;height:56px !important;border-radius:16px !important;display:grid;place-items:center}
.pdf-icon .tb-icon{width:31px !important;height:31px !important;stroke-width:2.15}
.pdf-card:nth-child(4n+1) .pdf-icon{color:#e5322d;background:#ffe0de}
.pdf-card:nth-child(4n+2) .pdf-icon{color:#047857;background:#d7f5e8}
.pdf-card:nth-child(4n+3) .pdf-icon{color:#c2410c;background:#ffdfcf}
.pdf-card:nth-child(4n+4) .pdf-icon{color:#6d28d9;background:#e8dcff}
.tool-icon-wrap,.pdf-icon{transition:transform .18s ease,box-shadow .18s ease}
.catalog-card:hover .tool-icon-wrap,.pdf-card:hover .pdf-icon{transform:translateY(-1px);box-shadow:0 8px 18px rgba(49,89,181,.10)}
body.dark .tool-icon-wrap,body.dark .pdf-icon{box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
body.dark .catalog-card:nth-child(4n+1) .tool-icon-wrap,body.dark .pdf-card:nth-child(4n+1) .pdf-icon{color:#ff716b;background:#54201e}
body.dark .catalog-card:nth-child(4n+2) .tool-icon-wrap,body.dark .pdf-card:nth-child(4n+2) .pdf-icon{color:#63e6b1;background:#123f31}
body.dark .catalog-card:nth-child(4n+3) .tool-icon-wrap,body.dark .pdf-card:nth-child(4n+3) .pdf-icon{color:#ff9a68;background:#4d2515}
body.dark .catalog-card:nth-child(4n+4) .tool-icon-wrap,body.dark .pdf-card:nth-child(4n+4) .pdf-icon{color:#c084fc;background:#3b2059}

/* Housax official visual system — derived from the approved Housax logo */
:root{
  --hx-blue:#0069FD;
  --hx-cyan:#08C7F5;
  --hx-red:#FF304A;
  --hx-pink:#F90A52;
  --hx-yellow:#FFE20A;
  --hx-orange:#FF8A00;
  --hx-ink:#10182b;
  --hx-blue-soft:#eef5ff;
  --hx-cyan-soft:#eafcff;
  --hx-red-soft:#fff0f3;
  --hx-yellow-soft:#fff9df;
}
body{background:linear-gradient(180deg,#f7fbff 0%,#f8f9fd 45%,#ffffff 100%);color:var(--hx-ink)}
.topbar{border-bottom-color:#dfe8f7;box-shadow:0 5px 22px rgba(0,76,190,.06)}
.brand-logo{display:flex;align-items:center;justify-content:center;width:126px;height:54px;flex:0 0 auto;overflow:hidden}
.brand-logo img{width:100%;height:100%;object-fit:contain;display:block}
.footer-logo{width:82px;height:54px}
.main-nav{color:#34415a}
.top-cat{transition:color .18s,background .18s,transform .18s}
.top-cat:hover{color:var(--hx-blue);background:var(--hx-blue-soft);border-radius:9px}
.main-nav a:hover{color:var(--hx-blue)}
.hero{position:relative}
.hero:before{content:"";position:absolute;inset:12px 5vw auto auto;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(0,199,245,.14),rgba(0,105,253,0) 68%);pointer-events:none}
.hero h1 span{background:linear-gradient(90deg,var(--hx-blue),var(--hx-cyan),var(--hx-red));-webkit-background-clip:text;background-clip:text;color:transparent}
.primary,.action{background:linear-gradient(135deg,var(--hx-blue),#1554df);border-color:var(--hx-blue);box-shadow:0 10px 24px rgba(0,105,253,.2)}
.primary:hover,.action:hover{background:linear-gradient(135deg,#0056e8,var(--hx-red));transform:translateY(-1px)}
.secondary:hover,.secondary-btn:hover{border-color:var(--hx-blue);color:var(--hx-blue)}
.hero-card{background:linear-gradient(145deg,#0636c8 0%,#0069fd 48%,#08c7f5 100%);box-shadow:0 28px 70px rgba(0,74,205,.22)}
.hero-card:after{content:"";position:absolute;inset:auto -40px -90px auto;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.24),transparent 67%);pointer-events:none}
.section-head h2:after,.category-strip h2:after,.feature-band h2:after{content:"";display:block;width:54px;height:5px;border-radius:99px;margin-top:11px;background:linear-gradient(90deg,var(--hx-red),var(--hx-yellow))}
.tool{position:relative;overflow:hidden}
.tool:before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:linear-gradient(90deg,var(--hx-blue),var(--hx-cyan));opacity:.85}
.tool:nth-child(3n+2):before{background:linear-gradient(90deg,var(--hx-red),var(--hx-pink))}
.tool:nth-child(3n):before{background:linear-gradient(90deg,var(--hx-yellow),var(--hx-orange))}
.tool:hover{border-color:#9fc2ff;box-shadow:0 20px 40px rgba(0,105,253,.1)}
.category-card{position:relative;overflow:hidden}
.category-card:nth-child(5n+1){background:linear-gradient(145deg,#fff,#eef5ff);border-color:#cfe0ff}
.category-card:nth-child(5n+2){background:linear-gradient(145deg,#fff,#ecfcff);border-color:#c8f2fa}
.category-card:nth-child(5n+3){background:linear-gradient(145deg,#fff,#fff0f3);border-color:#ffd3dc}
.category-card:nth-child(5n+4){background:linear-gradient(145deg,#fff,#fff8e5);border-color:#ffe7a7}
.category-card:nth-child(5n){background:linear-gradient(145deg,#fff,#f5efff);border-color:#dfd0ff}
.category-card:hover{border-color:#8db4ff;box-shadow:0 18px 34px rgba(0,105,253,.1)}
.feature-band{background:linear-gradient(120deg,#eef5ff 0%,#f8fcff 48%,#fff0f3 100%);border:1px solid #dce8fa;box-shadow:0 18px 45px rgba(24,64,130,.06)}
.search-box:focus-within{border-color:#8bb5ff;box-shadow:0 0 0 4px rgba(0,105,253,.09)}
footer{border-top-color:#dce6f4;background:linear-gradient(180deg,#fff,#f7fbff)}
.footer-links a:hover{color:var(--hx-red)}
.pill{background:#eef5ff;color:#2456a8}
body.dark{background:linear-gradient(180deg,#091226 0%,#0d1016 55%,#10131a 100%);color:#f5f6f8}
body.dark .topbar{border-color:#24395f;box-shadow:0 5px 24px rgba(0,0,0,.2)}
body.dark .top-cat:hover{color:#8fc0ff;background:#13264b}
body.dark .hero h1 span{background:linear-gradient(90deg,#66a5ff,#49ddff,#ff7183);-webkit-background-clip:text;background-clip:text}
body.dark .hero-card{background:linear-gradient(145deg,#071d73,#0759d9 50%,#087e9c)}
body.dark .category-card:nth-child(5n+1),body.dark .category-card:nth-child(5n+2),body.dark .category-card:nth-child(5n+3),body.dark .category-card:nth-child(5n+4),body.dark .category-card:nth-child(5n){background:#151a23;border-color:#2b3850}
body.dark .feature-band{background:linear-gradient(120deg,#142442,#18232d 48%,#2a1820);border-color:#2b3850}
body.dark .tool:hover{border-color:#3769b5;box-shadow:0 20px 40px rgba(0,105,253,.16)}

/* Refined Housax wordmark */
.brand{gap:0;cursor:pointer;display:inline-flex;align-items:center;text-decoration:none;color:#10182b;min-width:max-content;position:relative;z-index:90}
.brand-wordmark{display:inline-flex;align-items:center;height:46px;line-height:1;white-space:nowrap;font-weight:950;letter-spacing:-.06em;font-size:29px}
.brand-letter{display:inline-block}
.brand-house{display:inline-flex;width:42px;height:42px;margin:0 1px 0 3px;align-items:center;justify-content:center;flex:0 0 42px;transform:translateY(1px)}
.brand-house img{width:42px;height:42px;display:block;object-fit:contain}
.brand-rest{display:inline-block;margin-left:-1px}
.brand:hover .brand-wordmark{filter:brightness(.98)}
.brand:focus-visible{outline:3px solid rgba(0,105,253,.25);outline-offset:4px;border-radius:8px}
@media(max-width:900px){
 .brand-wordmark{font-size:25px}
 .brand-house{width:37px;height:37px;flex-basis:37px}
 .brand-house img{width:37px;height:37px}
}

/* Housax wordmark V2 — circular mark and stronger readable scale */
.brand-letter,.brand-rest{font-weight:950}
.brand-house{border-radius:50%;overflow:hidden;box-shadow:0 4px 12px rgba(0,105,253,.18)}
.brand-house img{border-radius:50%}
.brand:hover .brand-house{transform:translateY(1px) scale(1.04);box-shadow:0 6px 16px rgba(0,105,253,.24)}
@media(max-width:620px){
  .brand-wordmark{font-size:23px}
  .brand-house{width:35px;height:35px;flex-basis:35px}
  .brand-house img{width:35px;height:35px}
}

/* Housax final wordmark — circle house replaces the "o" */
.brand{
  min-width:max-content !important;
  gap:0 !important;
  padding:4px 0 !important;
}
.brand-wordmark{
  display:inline-flex !important;
  align-items:center !important;
  height:50px !important;
  font-size:32px !important;
  font-weight:950 !important;
  letter-spacing:-.065em !important;
  line-height:1 !important;
}
.brand-letter,.brand-rest{
  font-size:32px !important;
  font-weight:950 !important;
  color:#10182b !important;
}
.brand-house{
  width:46px !important;
  height:46px !important;
  flex:0 0 46px !important;
  margin:0 2px !important;
  border-radius:50% !important;
  overflow:hidden !important;
  clip-path:circle(50%) !important;
  background:#0069FD !important;
  box-shadow:0 5px 14px rgba(0,105,253,.22) !important;
  transform:none !important;
}
.brand-house img{
  width:46px !important;
  height:46px !important;
  border-radius:50% !important;
  object-fit:cover !important;
  display:block !important;
}
.brand:hover .brand-house{
  transform:scale(1.045) !important;
  box-shadow:0 7px 18px rgba(0,105,253,.28) !important;
}
.brand:focus-visible{
  outline:3px solid rgba(0,105,253,.25) !important;
  outline-offset:5px !important;
  border-radius:10px !important;
}
@media(max-width:900px){
  .brand-wordmark{font-size:28px !important}
  .brand-letter,.brand-rest{font-size:28px !important}
  .brand-house,.brand-house img{width:42px !important;height:42px !important;flex-basis:42px !important}
}
@media(max-width:620px){
  .brand-wordmark{font-size:25px !important}
  .brand-letter,.brand-rest{font-size:25px !important}
  .brand-house,.brand-house img{width:38px !important;height:38px !important;flex-basis:38px !important}
}


/* Housax wordmark final polish — larger integrated circular house icon */
.brand-wordmark{height:56px !important;font-size:34px !important;letter-spacing:-.068em !important}
.brand-letter,.brand-rest{font-size:34px !important}
.brand-house{width:52px !important;height:52px !important;flex:0 0 52px !important;margin:0 2px !important;border-radius:50% !important}
.brand-house img{width:52px !important;height:52px !important;border-radius:50% !important}
@media(max-width:900px){
  .brand-wordmark{font-size:30px !important}
  .brand-letter,.brand-rest{font-size:30px !important}
  .brand-house,.brand-house img{width:47px !important;height:47px !important;flex-basis:47px !important}
}
@media(max-width:620px){
  .brand-wordmark{font-size:27px !important}
  .brand-letter,.brand-rest{font-size:27px !important}
  .brand-house,.brand-house img{width:42px !important;height:42px !important;flex-basis:42px !important}
}


/* Housax X — final brand color */
.brand-x{color:#E5322D !important;font-size:34px !important;font-weight:950 !important;display:inline-block !important}
@media(max-width:900px){.brand-x{font-size:30px !important}}
@media(max-width:620px){.brand-x{font-size:27px !important}}

/* Exact approved Housax icon — do not recolor or reshape */
.brand-house{border-radius:16px !important;overflow:hidden !important;clip-path:none !important;box-shadow:none !important}
.brand-house img{border-radius:16px !important;object-fit:cover !important}

/* Final Housax click hit-area fix */
.topbar{position:sticky;z-index:9999}
.brand{position:relative;z-index:10000;pointer-events:auto !important;cursor:pointer !important}
.brand *{pointer-events:auto !important}

/* Housax Mega Menu — vivid professional icon colors */
.mega-category-icon{
  width:52px !important;
  height:52px !important;
  border-radius:15px !important;
  border:1px solid transparent !important;
  box-shadow:0 8px 18px rgba(20,35,70,.08) !important;
}
.mega-category-icon .tb-icon{
  width:28px !important;
  height:28px !important;
  stroke-width:2.35 !important;
}
.mega-category-icon .tb-pdf{color:#E5322D}
.mega-category-icon .tb-image{color:#0069FD}
.mega-category-icon .tb-etsy{color:#F05A28}
.mega-category-icon .tb-amazon{color:#D97706}
.mega-category-icon .tb-seo{color:#7C3AED}
.mega-category-icon .tb-more{color:#008F78}

.mega-category-icon:has(.tb-pdf){background:#FFE1DF !important;border-color:#FFC2BE !important}
.mega-category-icon:has(.tb-image){background:#DCE9FF !important;border-color:#BBD2FF !important}
.mega-category-icon:has(.tb-etsy){background:#FFE5D8 !important;border-color:#FFCBB5 !important}
.mega-category-icon:has(.tb-amazon){background:#FFF0CC !important;border-color:#FFDEA0 !important}
.mega-category-icon:has(.tb-seo){background:#EDE1FF !important;border-color:#D8BFFF !important}
.mega-category-icon:has(.tb-more){background:#D9F7F1 !important;border-color:#B7EDE3 !important}

.mega-tool-icon{
  width:34px !important;
  height:34px !important;
  border-radius:10px !important;
  border:1px solid transparent !important;
  box-shadow:0 4px 10px rgba(20,35,70,.06) !important;
}
.mega-tool-icon .tb-icon{
  width:19px !important;
  height:19px !important;
  stroke-width:2.25 !important;
}
.mega-tool-link:hover{
  transform:translateY(-1px) !important;
  box-shadow:0 8px 18px rgba(20,35,70,.08) !important;
}
.mega-tool-link:hover .mega-tool-icon{
  color:inherit !important;
}

/* PDF — vivid red */
.mega-tool-link:has(.tb-pdf){border-color:#FFD1CE;background:#FFF7F6}
.mega-tool-link:has(.tb-pdf) .mega-tool-icon{color:#E5322D;background:#FFE1DF;border-color:#FFC2BE}

/* Images — vivid blue */
.mega-tool-link:has(.tb-image){border-color:#C9DBFF;background:#F6F9FF}
.mega-tool-link:has(.tb-image) .mega-tool-icon{color:#0069FD;background:#DCE9FF;border-color:#BBD2FF}

/* Etsy — vivid orange */
.mega-tool-link:has(.tb-etsy){border-color:#FFD3C0;background:#FFF8F4}
.mega-tool-link:has(.tb-etsy) .mega-tool-icon{color:#F05A28;background:#FFE5D8;border-color:#FFCBB5}

/* Amazon — vivid amber */
.mega-tool-link:has(.tb-amazon){border-color:#FFE0A8;background:#FFFBF2}
.mega-tool-link:has(.tb-amazon) .mega-tool-icon{color:#D97706;background:#FFF0CC;border-color:#FFDEA0}

/* SEO — vivid purple */
.mega-tool-link:has(.tb-seo){border-color:#DCC8FF;background:#FAF7FF}
.mega-tool-link:has(.tb-seo) .mega-tool-icon{color:#7C3AED;background:#EDE1FF;border-color:#D8BFFF}

/* More — vivid teal */
.mega-tool-link:has(.tb-more){border-color:#BFECE3;background:#F4FCFA}
.mega-tool-link:has(.tb-more) .mega-tool-icon{color:#008F78;background:#D9F7F1;border-color:#B7EDE3}

body.dark .mega-tool-link:has(.tb-pdf){background:#32191A;border-color:#6B2B2C}
body.dark .mega-tool-link:has(.tb-image){background:#172743;border-color:#2C4E87}
body.dark .mega-tool-link:has(.tb-etsy){background:#352018;border-color:#70402D}
body.dark .mega-tool-link:has(.tb-amazon){background:#332712;border-color:#6B5220}
body.dark .mega-tool-link:has(.tb-seo){background:#291D3D;border-color:#533B79}
body.dark .mega-tool-link:has(.tb-more){background:#15332E;border-color:#285E55}

/* Housax navigation V2 — colored category icons + one color per tool */
.top-cat{
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
}
.top-cat-icon{
  width:27px !important;
  height:27px !important;
  display:grid !important;
  place-items:center !important;
  flex:0 0 27px !important;
  border-radius:8px !important;
}
.top-cat-icon svg{
  width:21px !important;
  height:21px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2.3 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}
.top-pdf .top-cat-icon{color:#E5322D;background:#FFE1DF}
.top-image .top-cat-icon{color:#0069FD;background:#DCE9FF}
.top-etsy .top-cat-icon{color:#F05A28;background:#FFE5D8}
.top-amazon .top-cat-icon{color:#D97706;background:#FFF0CC}
.top-seo .top-cat-icon{color:#7C3AED;background:#EDE1FF}
.top-more .top-cat-icon{color:#008F62;background:#D8F4E7}
.top-chevron{font-size:10px !important;color:#7b8494 !important;margin-left:0 !important}

.mega-tool-link{
  border-color:#e3e7ee !important;
  background:#fff !important;
}
.mega-tool-link .mega-tool-icon{
  color:var(--mega-color) !important;
  background:var(--mega-bg) !important;
  border:1px solid color-mix(in srgb,var(--mega-color) 22%,white) !important;
}
.mega-tool-link:hover{
  background:color-mix(in srgb,var(--mega-bg) 35%,white) !important;
  color:#202737 !important;
  border-color:color-mix(in srgb,var(--mega-color) 28%,white) !important;
}
.mega-tool-link:hover .mega-tool-icon{
  color:var(--mega-color) !important;
  background:var(--mega-bg) !important;
}
.mega-tool-icon .tb-icon{
  width:20px !important;
  height:20px !important;
  stroke-width:2.35 !important;
}
.mega-group-title{color:#697386 !important}
.mega-panel{
  border-color:#dce4ef !important;
  box-shadow:0 26px 70px rgba(24,43,77,.15) !important;
}
.brand-letter,.brand-rest{color:#10182b !important}
.brand-x{color:#10182b !important}
@media(max-width:760px){
  .top-cat-icon{width:25px !important;height:25px !important;flex-basis:25px !important}
  .top-cat-icon svg{width:19px !important;height:19px !important}
}

/* Navigation category icons — explicit visible SVG rendering */
.top-cat-icon{
  display:inline-grid !important;
  place-items:center !important;
  width:30px !important;
  height:30px !important;
  min-width:30px !important;
  flex:0 0 30px !important;
  border-radius:9px !important;
  overflow:hidden !important;
}
.top-cat-icon svg{
  display:block !important;
  width:21px !important;
  height:21px !important;
  min-width:21px !important;
  min-height:21px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2.4 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}
.top-cat.top-pdf .top-cat-icon{color:#E5322D !important;background:#FFE1DF !important}
.top-cat.top-image .top-cat-icon{color:#0069FD !important;background:#DCE9FF !important}
.top-cat.top-etsy .top-cat-icon{color:#F05A28 !important;background:#FFE5D8 !important}
.top-cat.top-amazon .top-cat-icon{color:#D97706 !important;background:#FFF0CC !important}
.top-cat.top-seo .top-cat-icon{color:#7C3AED !important;background:#EDE1FF !important}
.top-cat.top-more .top-cat-icon{color:#008F62 !important;background:#D8F4E7 !important}
.top-chevron{font-size:10px !important;line-height:1 !important;color:#697386 !important;margin-left:1px !important}

/* Category filter buttons — match the colored top navigation icons */
.filter-chip{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
}
.filter-chip-icon{
  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:7px !important;
}
.filter-chip-icon .tb-icon{
  width:18px !important;
  height:18px !important;
  stroke-width:2.35 !important;
}
.filter-chip .all-filter-icon{
  color:#334155 !important;
  background:#E8EDF5 !important;
}
.filter-chip .all-filter-icon svg{
  width:17px !important;
  height:17px !important;
  fill:currentColor !important;
  stroke:none !important;
}
.filter-chip.filter-pdf .filter-chip-icon{color:#E5322D !important;background:#FFE1DF !important}
.filter-chip.filter-image .filter-chip-icon{color:#0069FD !important;background:#DCE9FF !important}
.filter-chip.filter-etsy .filter-chip-icon{color:#F05A28 !important;background:#FFE5D8 !important}
.filter-chip.filter-amazon .filter-chip-icon{color:#D97706 !important;background:#FFF0CC !important}
.filter-chip.filter-seo .filter-chip-icon{color:#7C3AED !important;background:#EDE1FF !important}
.filter-chip.filter-more .filter-chip-icon{color:#008F62 !important;background:#D8F4E7 !important}
.filter-chip.active .filter-chip-icon{
  box-shadow:0 2px 7px rgba(30,45,70,.12) !important;
}
body.dark .filter-chip .all-filter-icon{color:#d7deea !important;background:#293240 !important}

/* Filter bar final: keep the original pill buttons, add only a small colored icon */
.filter-chip{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  height:42px !important;
  min-height:42px !important;
  padding:9px 14px !important;
  border-radius:999px !important;
}
.filter-chip-icon{
  display:inline-grid !important;
  place-items:center !important;
  width:22px !important;
  min-width:22px !important;
  height:22px !important;
  min-height:22px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:6px !important;
  background:transparent !important;
}
.filter-chip-icon .tb-icon{
  display:block !important;
  width:20px !important;
  min-width:20px !important;
  height:20px !important;
  min-height:20px !important;
  max-width:20px !important;
  max-height:20px !important;
  margin:0 !important;
  padding:0 !important;
  stroke-width:2.35 !important;
}
.filter-chip .all-filter-icon{
  background:transparent !important;
  color:#171923 !important;
}
.filter-chip .all-filter-icon svg{
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  min-height:18px !important;
}
.filter-chip.filter-pdf .filter-chip-icon{color:#E5322D !important}
.filter-chip.filter-image .filter-chip-icon{color:#0069FD !important}
.filter-chip.filter-etsy .filter-chip-icon{color:#F05A28 !important}
.filter-chip.filter-amazon .filter-chip-icon{color:#D97706 !important}
.filter-chip.filter-seo .filter-chip-icon{color:#7C3AED !important}
.filter-chip.filter-more .filter-chip-icon{color:#008F62 !important}
.filter-chip:hover .filter-chip-icon,
.filter-chip.active .filter-chip-icon{background:transparent !important;box-shadow:none !important}

/* Final Housax brand + Etsy storefront icon */
.brand-wordmark{height:52px !important;font-size:32px !important}
.brand-letter,.brand-rest{color:#10182b !important;font-size:32px !important;font-weight:950 !important}
.brand-house{
  width:46px !important;height:46px !important;flex:0 0 46px !important;
  margin:0 2px !important;border-radius:50% !important;overflow:hidden !important;
  clip-path:circle(50%) !important;background:#0069FD !important;
  box-shadow:0 4px 12px rgba(0,105,253,.20) !important;
}
.brand-house img{
  width:46px !important;height:46px !important;display:block !important;
  object-fit:contain !important;border-radius:50% !important;
}
.brand-x{color:#10182b !important}
.brand:hover .brand-house{transform:scale(1.035) !important}
.tool-icon .tb-icon.tb-etsy{
  width:34px !important;height:34px !important;display:block !important;
  color:#F05A28 !important;stroke:currentColor !important;fill:none !important;
  stroke-width:2.25 !important;stroke-linecap:round !important;stroke-linejoin:round !important;
}
@media(max-width:900px){
  .brand-wordmark{font-size:29px !important}
  .brand-letter,.brand-rest{font-size:29px !important}
  .brand-house,.brand-house img{width:43px !important;height:43px !important;flex-basis:43px !important}
}

/* Exact approved Etsy storefront icon */
.etsy-exact-icon{
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  min-height:22px !important;
  display:block !important;
  object-fit:cover !important;
  border-radius:6px !important;
}
.top-cat .etsy-exact-icon{
  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  min-height:24px !important;
  border-radius:7px !important;
}
.filter-chip .etsy-exact-icon{
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  min-height:22px !important;
  border-radius:6px !important;
}
.tool-icon .etsy-exact-icon{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  min-height:34px !important;
  border-radius:10px !important;
}

/* Amazon top and bottom use the exact same SVG geometry and sizing */
.top-cat.top-amazon .top-cat-icon{
  width:22px !important;height:22px !important;min-width:22px !important;min-height:22px !important;
}
.top-cat.top-amazon .top-cat-icon .tb-icon{
  width:20px !important;height:20px !important;min-width:20px !important;min-height:20px !important;
  display:block !important;stroke:currentColor !important;fill:none !important;
  stroke-width:2.35 !important;stroke-linecap:round !important;stroke-linejoin:round !important;
}

/* Housax integrated brand mark — house + editing tools */
.brand-house{width:48px !important;height:48px !important;flex:0 0 48px !important;margin:0 2px !important;border-radius:0 !important;overflow:visible !important;box-shadow:none !important;transform:none !important;background:transparent !important}
.housax-brand-mark{width:48px !important;height:48px !important;display:block !important;overflow:visible !important}
.housax-brand-mark .house-shape{fill:#E5322D;stroke:#10182b;stroke-width:2.2;stroke-linejoin:round}
.housax-brand-mark .house-door{fill:#fff;stroke:#10182b;stroke-width:2;stroke-linejoin:round}
.housax-brand-mark .tool-wrench{fill:#1D4ED8;stroke:#fff;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
.housax-brand-mark .tool-slider{fill:none;stroke:#047857;stroke-width:2.5;stroke-linecap:round}
.brand:hover .housax-brand-mark{transform:scale(1.04);filter:drop-shadow(0 5px 8px rgba(20,40,100,.18))}
.brand:hover .brand-house{transform:none !important;box-shadow:none !important}
@media(max-width:900px){.brand-house,.housax-brand-mark{width:44px !important;height:44px !important;flex-basis:44px !important}}
@media(max-width:620px){.brand-wordmark{font-size:25px !important}.brand-letter,.brand-rest{font-size:25px !important}.brand-house,.housax-brand-mark{width:40px !important;height:40px !important;flex-basis:40px !important}}

/* Refined Housax colorful house/tools mark */
.brand-house{width:48px !important;height:48px !important;flex:0 0 48px !important;margin:0 2px !important;border-radius:0 !important;overflow:visible !important;background:transparent !important;box-shadow:none !important}
.housax-brand-mark{width:48px !important;height:48px !important;display:block !important}
.housax-brand-mark .house-roof{fill:none;stroke:#E5322D;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.housax-brand-mark .house-body{fill:#E8F0FF;stroke:#1D4ED8;stroke-width:2.4;stroke-linejoin:round}
.housax-brand-mark .house-door{fill:#fff;stroke:#047857;stroke-width:2.3;stroke-linejoin:round}
.housax-brand-mark .tool-sliders{fill:none;stroke:#C2410C;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.brand:hover .housax-brand-mark{transform:scale(1.04);filter:drop-shadow(0 5px 9px rgba(29,78,216,.18))}
@media(max-width:900px){.brand-house,.housax-brand-mark{width:44px !important;height:44px !important;flex-basis:44px !important}}
@media(max-width:620px){.brand-house,.housax-brand-mark{width:40px !important;height:40px !important;flex-basis:40px !important}}

.brand{width:88px!important;height:76px!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 88px!important}.housax-full-logo{width:78px!important;height:78px!important;display:block!important;object-fit:contain!important}.brand:hover .housax-full-logo{transform:scale(1.035)}
@media(max-width:900px){.brand{width:76px!important;height:68px!important;flex-basis:76px!important}.housax-full-logo{width:68px!important;height:68px!important}}@media(max-width:620px){.brand{width:68px!important;height:62px!important;flex-basis:68px!important}.housax-full-logo{width:61px!important;height:61px!important}}
/* Final Housax header lockup: icon above name */
.brand{width:auto!important;height:auto!important;min-width:88px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;gap:0!important}
.housax-brand-stack{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;line-height:1!important;gap:2px!important}
.housax-brand-icon{width:43px!important;height:43px!important;display:block!important;object-fit:contain!important}
.housax-brand-name{display:block!important;font-size:21px!important;line-height:1!important;font-weight:950!important;letter-spacing:-.055em!important;color:#10182b!important}
.brand:hover .housax-brand-icon{transform:scale(1.04);filter:drop-shadow(0 4px 8px rgba(20,70,180,.18))}
@media(max-width:900px){.brand{min-width:76px!important}.housax-brand-icon{width:39px!important;height:39px!important}.housax-brand-name{font-size:19px!important}}
@media(max-width:620px){.brand{min-width:68px!important}.housax-brand-icon{width:35px!important;height:35px!important}.housax-brand-name{font-size:17px!important}}

/* Housax horizontal wordmark: large and crisp in header */
.brand{min-width:250px!important;height:72px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;flex:0 0 auto!important}
.housax-brand-stack{display:block!important;width:250px!important}
.housax-brand-icon{display:none!important}
.housax-brand-name{display:none!important}
.housax-full-logo{display:block!important;width:250px!important;height:auto!important;max-height:68px!important;object-fit:contain!important;object-position:left center!important}
@media(max-width:900px){.brand{min-width:210px!important;height:64px!important}.housax-full-logo{width:210px!important;max-height:58px!important}}
@media(max-width:620px){.brand{min-width:165px!important;height:56px!important}.housax-full-logo{width:165px!important;max-height:48px!important}}
/* Housax header final alignment */
.brand{min-width:250px!important;width:250px!important;height:70px!important;overflow:visible!important}
.housax-full-logo{width:238px!important;height:60px!important;max-width:none!important;max-height:none!important;object-fit:fill!important;object-position:left center!important}
@media(max-width:900px){.brand{min-width:210px!important;width:210px!important;height:62px!important}.housax-full-logo{width:202px!important;height:51px!important}}
@media(max-width:620px){.brand{min-width:175px!important;width:175px!important;height:56px!important}.housax-full-logo{width:168px!important;height:42px!important}}

/* ===== Housax Professional Admin Control Center ===== */
.workspace-premium{max-width:1380px}
.workspace-premium .workspace-head{padding:8px 2px 28px}
.workspace-premium .workspace-head h1{font-size:clamp(34px,4vw,48px);letter-spacing:-.04em}
.workspace-hero-card{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:26px 28px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,var(--panel),var(--soft));box-shadow:0 14px 40px rgba(20,30,60,.06)}
.workspace-hero-card h2{margin:12px 0 4px;font-size:24px}
.workspace-hero-card p{margin:0;color:var(--muted)}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#16a34a;margin-right:7px;box-shadow:0 0 0 4px rgba(22,163,74,.12)}
.role-badge,.admin-live{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#eaf0ff;color:#3159b5;font-weight:800;font-size:11px;text-transform:uppercase;letter-spacing:.06em}
.workspace-nav{padding:10px;background:var(--panel);position:sticky;top:18px}
.workspace-nav a{display:flex;align-items:center;gap:9px}
.workspace-nav-label{padding:12px 12px 5px;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.12em}
.admin-entry-panel{display:flex;justify-content:space-between;align-items:center;gap:20px;background:linear-gradient(135deg,#101a35,#1d4ed8);color:#fff;border:0}
.admin-entry-panel p{color:#dce6ff}
.admin-entry-panel .primary{background:#fff;color:#17326f}
.stat-card small{display:block;color:var(--muted);margin-top:7px;font-size:11px}

.admin-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;align-items:start}
.admin-sidebar{position:sticky;top:18px;display:grid;gap:5px;padding:10px;border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:0 10px 28px rgba(20,30,60,.04)}
.admin-sidebar a{display:flex;align-items:center;gap:10px;padding:12px 13px;border-radius:11px;text-decoration:none;color:inherit;font-weight:700;font-size:13px}
.admin-sidebar a span{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:var(--soft);font-size:13px}
.admin-sidebar a:hover,.admin-sidebar a.active{background:#edf3ff;color:#2454b8}
.admin-content{min-width:0}
.admin-welcome,.admin-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}
.admin-welcome{padding:26px;border-radius:22px;background:linear-gradient(135deg,#111827,#243b76);color:#fff}
.admin-welcome h2,.admin-section-head h2{margin:5px 0 7px;font-size:25px;letter-spacing:-.025em}
.admin-welcome p{margin:0;color:#d5def2;max-width:650px}
.admin-kicker{font-size:10px;font-weight:900;letter-spacing:.14em;color:#6d88c9}
.admin-welcome .admin-kicker{color:#b9c9f4}
.admin-live{background:rgba(255,255,255,.12);color:#fff}
.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}
.admin-stat{padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}
.admin-stat span{font-size:12px;color:var(--muted);font-weight:700}
.admin-stat strong{display:block;font-size:31px;line-height:1.1;margin:9px 0 4px;letter-spacing:-.03em}
.admin-stat small{color:var(--muted)}
.admin-quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.admin-quick-grid a{display:flex;flex-direction:column;gap:7px;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--panel);text-decoration:none;color:inherit;transition:.18s}
.admin-quick-grid a:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(20,30,60,.07);border-color:#b9c8e9}
.admin-quick-grid b{font-size:15px}.admin-quick-grid span{font-size:12px;color:var(--muted)}.admin-quick-grid em{font-style:normal;color:#3159b5;font-size:12px;font-weight:800;margin-top:4px}
.admin-toolbar{display:flex;gap:10px;margin-bottom:12px}
.admin-toolbar>*{flex:1}.admin-toolbar select{max-width:210px}
.admin-table{display:grid;gap:7px}
.admin-tool-row,.admin-user-row{display:grid;grid-template-columns:44px minmax(180px,1fr) 120px 55px;gap:14px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.admin-tool-row.off{opacity:.55}
.admin-tool-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:var(--soft)}
.admin-tool-icon .hx-icon{width:20px;height:20px}
.admin-tool-row b,.admin-user-row b{display:block;font-size:13px}.admin-tool-row small,.admin-user-row small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.admin-tool-status{font-size:10px;text-transform:uppercase;font-weight:900;color:var(--muted)}
.admin-toggle{cursor:pointer;display:flex;justify-content:flex-end}.admin-toggle input{position:absolute;opacity:0}.admin-toggle span{width:40px;height:23px;border-radius:999px;background:#b8bfca;position:relative}.admin-toggle span:after{content:"";position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#fff;transition:.2s}.admin-toggle input:checked+span{background:#1d8f54}.admin-toggle input:checked+span:after{left:20px}
.admin-subsection{margin-top:30px}.compact-head{margin-bottom:12px}.admin-custom-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--panel);margin-bottom:7px}.admin-custom-row small{display:block;color:var(--muted);margin-top:3px}.admin-custom-row p{margin:5px 0 0;color:var(--muted);font-size:12px}
.danger-btn{border:1px solid #f0caca;background:#fff5f5;color:#b42318;padding:8px 11px;border-radius:9px;font-weight:800;cursor:pointer}
.admin-user-search{margin-bottom:12px}.admin-user-search input{max-width:430px}
.admin-user-row{grid-template-columns:38px minmax(180px,1fr) 90px 105px}
.avatar-circle{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#eaf0ff;color:#3159b5;font-weight:900}
.role-pill{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.role-owner{color:#7c3aed}.role-admin{color:#1d4ed8}.role-user{color:var(--muted)}
.role-select{border:1px solid var(--line);background:var(--panel);border-radius:8px;padding:7px;font-weight:700}
.role-note{padding:9px 12px;border-radius:10px;background:var(--soft);color:var(--muted);font-size:11px}
.settings-form{display:grid;gap:14px;max-width:720px;padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}
.settings-form label{display:grid;gap:7px;font-size:12px;font-weight:800}.settings-form textarea{min-height:100px;resize:vertical}
.setting-switch{display:flex!important;grid-template-columns:1fr auto!important;flex-direction:row;justify-content:space-between;align-items:center;padding:14px;border:1px solid var(--line);border-radius:12px}.setting-switch span{display:grid;gap:3px}.setting-switch small{color:var(--muted);font-weight:500}
.save-ok{color:#16834b;font-size:12px;font-weight:800;align-self:center}
.admin-activity-list{display:grid;border:1px solid var(--line);border-radius:18px;background:var(--panel);overflow:hidden}
.admin-activity-list>div{display:grid;grid-template-columns:10px 1fr auto;gap:13px;align-items:center;padding:15px 18px;border-bottom:1px solid var(--line)}.admin-activity-list>div:last-child{border-bottom:0}.activity-dot{width:7px;height:7px;border-radius:50%;background:#3159b5}.admin-activity-list b{display:block;font-size:13px}.admin-activity-list small{display:block;color:var(--muted);margin-top:3px}.admin-activity-list time{color:var(--muted);font-size:11px;white-space:nowrap}
body.dark .admin-sidebar a:hover,body.dark .admin-sidebar a.active{background:#1c2a49;color:#dce7ff}body.dark .danger-btn{background:#321d1d;border-color:#633333;color:#ffb4b4}
@media(max-width:900px){.admin-layout{grid-template-columns:1fr}.admin-sidebar{position:static;display:flex;overflow:auto}.admin-sidebar a{white-space:nowrap}.admin-sidebar a span{display:none}.admin-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.admin-welcome,.admin-section-head,.workspace-hero-card{display:grid}.admin-stats,.admin-quick-grid{grid-template-columns:1fr}.admin-toolbar{display:grid}.admin-toolbar select{max-width:none}.admin-tool-row{grid-template-columns:38px 1fr 45px}.admin-tool-status{display:none}.admin-user-row{grid-template-columns:36px 1fr 85px}.admin-user-row .role-select{grid-column:2 / -1}.admin-activity-list>div{grid-template-columns:8px 1fr}.admin-activity-list time{grid-column:2}.admin-entry-panel{display:grid}}

.site-announcement{max-width:1250px;margin:0 auto 16px;padding:11px 16px;border:1px solid #cddaf5;border-radius:12px;background:#eef4ff;color:#274b91;font-size:13px;font-weight:700;text-align:center}
body.dark .site-announcement{background:#182643;border-color:#2a426d;color:#d7e4ff}


/* ===== Reference workspace sidebar — isolated dashboard styling ===== */
.workspace-portal-layout{grid-template-columns:240px minmax(0,1fr)!important;border-radius:0!important;border:1px solid #d9d9de!important;box-shadow:none!important}
.workspace-nav-pro{border-right:1px solid #d9d9de!important;padding:18px 14px 14px!important;background:#fff!important}
.workspace-nav-pro .workspace-nav-label{padding:12px 10px 5px!important;font-size:14px!important;line-height:20px!important;font-weight:700!important;color:#3f4148!important;letter-spacing:0!important}
.workspace-nav-pro .workspace-nav-label:first-child{padding-top:0!important}
.workspace-nav-item{gap:10px!important;padding:7px 10px!important;border-radius:5px!important;font-size:14px!important;line-height:20px!important;font-weight:400!important;color:#36383d!important;min-height:34px!important;box-sizing:border-box}
.workspace-nav-item span{width:20px!important;height:20px!important;flex:0 0 20px!important;color:#30343a!important;font-size:16px!important}
.workspace-nav-item .ws-svg{width:19px!important;height:19px!important;stroke-width:1.65!important}
.workspace-nav-item:hover{background:#f1f1f5!important;color:#24262b!important}
.workspace-nav-item.active{background:#e9e9f1!important;color:#30323a!important;font-weight:500!important}
.workspace-nav-item.active:before{display:none!important}
.workspace-nav-footer{padding:16px 10px 4px!important}

/* ===== Restored dashboard profile header ===== */
.workspace-profile-mini{
  align-items:center!important;
  gap:12px!important;
  padding:8px 0 20px!important;
  margin:0 0 8px!important;
  border-bottom:0!important;
}
.workspace-profile-mini .workspace-avatar{
  width:64px!important;
  height:64px!important;
  flex:0 0 64px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:#fff!important;
  color:#aeb0b4!important;
  border:2px solid #f4dddd!important;
  overflow:hidden!important;
}
.workspace-profile-mini .workspace-avatar-placeholder{
  position:relative!important;
  width:100%!important;
  height:100%!important;
  display:block!important;
}
.workspace-profile-mini .workspace-avatar-placeholder:before{
  content:""!important;
  position:absolute!important;
  width:15px!important;
  height:15px!important;
  border-radius:50%!important;
  background:#aeb0b4!important;
  left:50%!important;
  top:14px!important;
  transform:translateX(-50%)!important;
}
.workspace-profile-mini .workspace-avatar-placeholder:after{
  content:""!important;
  position:absolute!important;
  width:31px!important;
  height:17px!important;
  border-radius:18px 18px 12px 12px!important;
  background:#aeb0b4!important;
  left:50%!important;
  bottom:11px!important;
  transform:translateX(-50%)!important;
}
.workspace-profile-mini .workspace-profile-copy{
  min-width:0!important;
}
.workspace-profile-mini .workspace-profile-copy b{
  display:block!important;
  color:#ef2f2f!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:800!important;
}
.workspace-profile-mini .workspace-profile-copy small{
  display:block!important;
  color:#555b64!important;
  margin-top:4px!important;
  text-transform:none!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:400!important;
}
.workspace-nav-pro .workspace-nav-label{
  border-bottom:1px solid #d9d9df!important;
  padding:15px 0 6px!important;
}

/* ===== Housax account portal — functional SaaS workspace ===== */
.workspace-portal{max-width:1480px!important}
.portal-head{margin-bottom:22px!important}
.portal-head-actions{display:flex;gap:10px;align-items:center}
.workspace-portal-layout{display:grid;grid-template-columns:252px minmax(0,1fr);gap:0;min-height:680px;border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:0 16px 45px rgba(20,30,60,.06);overflow:hidden}
.workspace-nav-pro{border:0!important;border-radius:0!important;border-right:3px solid #e53232!important;box-shadow:none!important;padding:18px 14px!important;background:var(--panel)!important;position:relative!important;top:auto!important}
.workspace-profile-mini{display:flex;align-items:center;gap:11px;padding:8px 9px 20px;margin-bottom:8px;border-bottom:1px solid var(--line)}
.workspace-profile-mini b{display:block;font-size:14px}.workspace-profile-mini small{display:block;color:var(--muted);margin-top:3px;text-transform:uppercase;font-size:10px;font-weight:800}
.workspace-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#f1f4fb;color:#183b83;border:2px solid #dbe4f7;font-weight:900}
.workspace-nav-pro .workspace-nav-label{padding:15px 9px 6px!important;font-size:11px!important;color:#454b57!important;letter-spacing:0!important}
.workspace-nav-item{display:flex!important;align-items:center!important;gap:10px!important;padding:10px 11px!important;border-radius:7px!important;font-size:14px!important;font-weight:500!important;text-decoration:none!important;color:#30343b!important}
.workspace-nav-item span{width:22px;height:22px;display:grid;place-items:center;color:#30343b;background:transparent!important;font-size:16px}
.workspace-nav-item:hover{background:#f0f1f7!important;color:#111827!important}
.workspace-nav-item.active{background:#e9eaf2!important;color:#111827!important;font-weight:700!important}
.workspace-nav-item.active:before{content:"";width:3px;height:24px;background:#e53232;border-radius:2px;position:absolute;left:0}
.workspace-nav-footer{margin-top:auto;padding:18px 9px 4px;border-top:1px solid var(--line)}
.workspace-nav-footer a{font-size:12px;color:var(--muted);text-decoration:none}
.workspace-main-pro{padding:34px 34px 48px!important;background:#f7f7fb;min-width:0}
.workspace-page-title{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.workspace-page-title h2{font-size:31px;letter-spacing:-.035em;margin:5px 0 6px}.workspace-page-title p{margin:0;color:var(--muted)}
.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.account-card{background:var(--panel);border:1px solid #e5e6ed;border-radius:14px;padding:28px;box-shadow:0 8px 25px rgba(20,30,60,.045);margin-bottom:18px}
.account-card.narrow{max-width:760px}
.card-title{display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:22px}
.card-title h3{margin:0;font-size:19px}.card-title span,.card-title a{font-size:12px;color:var(--muted)}.card-title a{color:#e53232;font-weight:700;text-decoration:underline}
.profile-details,.detail-list{display:grid;gap:18px}.profile-details>div,.detail-list>div{display:grid;grid-template-columns:120px 1fr;gap:10px;font-size:14px}.profile-details b,.detail-list b{font-weight:800}
.account-status-box{display:flex;gap:12px;align-items:flex-start;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--soft);margin-bottom:18px}.account-status-box p{margin:4px 0 0;color:var(--muted);font-size:12px}.status-ok{color:#17844c;font-weight:800}
.full-btn{display:flex;justify-content:center;width:100%;box-sizing:border-box}
.account-form,.article-form{display:grid;gap:16px}.account-form label,.article-form label{display:grid;gap:7px;font-size:13px;font-weight:800}.account-form input,.article-form input,.article-form textarea,.article-form select{width:100%;box-sizing:border-box}
.form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.form-message{font-size:12px;font-weight:700}.form-message.success{color:#16834b}.form-message.error{color:#b42318}
.overview-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.overview-metrics>div{padding:16px;border-radius:12px;background:var(--soft)}.overview-metrics b{display:block;font-size:24px}.overview-metrics span{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.quick-actions{display:grid;gap:9px}.quick-action{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:11px;text-decoration:none;color:inherit}.quick-action:hover{border-color:#b8c8e8;background:#fafcff}.quick-action b{font-size:13px}.quick-action span{font-size:11px;color:var(--muted)}
.article-table-head,.article-row{display:grid;grid-template-columns:minmax(220px,1fr) 100px 120px 70px;gap:14px;align-items:center}.article-table-head{padding:0 4px 10px;color:var(--muted);font-size:10px;text-transform:uppercase;font-weight:900;letter-spacing:.08em}.article-row{padding:14px 4px;border-top:1px solid var(--line);font-size:12px}.article-row b{display:block;font-size:13px}.article-row small{display:block;color:var(--muted);margin-top:4px}.article-status{font-size:10px;font-weight:900;text-transform:uppercase}.article-published{color:#16834b}.article-draft{color:#9a6700}.small-btn{padding:7px 10px!important;font-size:11px!important}
.activity-card{padding:0!important;overflow:hidden}.activity-list-pro>div{display:grid;grid-template-columns:9px 1fr auto;gap:12px;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line)}.activity-list-pro>div:last-child{border-bottom:0}.activity-list-pro b{font-size:13px}.activity-list-pro small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.activity-list-pro time{font-size:11px;color:var(--muted);white-space:nowrap}
.empty-state{padding:30px;text-align:center;color:var(--muted);font-size:13px}
body.dark .workspace-main-pro{background:#111722}.dark .workspace-main-pro{background:#111722}
body.dark .workspace-nav-item{color:#dce2ed!important}body.dark .workspace-nav-item.active,body.dark .workspace-nav-item:hover{background:#20283a!important;color:#fff!important}body.dark .workspace-profile-mini{border-color:#30394b}
@media(max-width:900px){.workspace-portal-layout{grid-template-columns:1fr}.workspace-nav-pro{border-right:0!important;border-bottom:3px solid #e53232!important}.workspace-nav-pro .workspace-nav-label{padding-top:9px!important}.workspace-nav-item{display:inline-flex!important;margin:2px}.workspace-profile-mini{display:none}.workspace-nav-footer{display:none}.workspace-main-pro{padding:24px 18px!important}.account-grid{grid-template-columns:1fr}}
@media(max-width:620px){.workspace-page-title{display:grid}.article-table-head{display:none}.article-row{grid-template-columns:1fr 80px}.article-row>span:nth-child(3){display:none}.article-row button{justify-self:end}.profile-details>div,.detail-list>div{grid-template-columns:1fr}.overview-metrics{grid-template-columns:1fr}.account-card{padding:20px}}


/* ===== Housax account menu ===== */
.account-menu-wrap{position:relative;display:inline-flex;align-items:center}
.account-menu-trigger{display:inline-flex;align-items:center;gap:8px;border:1px solid #dfe3eb;background:#fff;border-radius:11px;padding:5px 9px 5px 6px;cursor:pointer;color:#1f2937;box-shadow:0 2px 8px rgba(20,30,60,.04)}
.account-menu-trigger:hover{border-color:#c6ccda;background:#fafbfe}
.account-menu-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eef2f8;color:#233f7a;font-size:12px;font-weight:900}
.account-menu-avatar.large{width:42px;height:42px;font-size:16px}
.account-menu-name{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:800}
.account-menu-chevron{font-size:14px;color:#667085}
.account-menu{position:absolute;right:0;top:calc(100% + 9px);width:265px;padding:8px;background:#fff;border:1px solid #e1e5ec;border-radius:14px;box-shadow:0 18px 45px rgba(20,30,60,.16);z-index:10000}
.account-menu[hidden]{display:none}
.account-menu-head{display:flex;align-items:center;gap:10px;padding:11px 10px 13px;border-bottom:1px solid #edf0f4;margin-bottom:5px}
.account-menu-head b{display:block;font-size:13px}.account-menu-head small{display:block;max-width:175px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#667085;font-size:10px;margin-top:3px}
.account-menu>a,.account-menu>button{width:100%;box-sizing:border-box;display:flex;align-items:center;gap:10px;padding:10px;border:0;border-radius:8px;background:transparent;color:#273142;text-decoration:none;font-size:12px;font-weight:700;text-align:left;cursor:pointer}
.account-menu>a:hover,.account-menu>button:hover{background:#f1f3f8}
.account-menu>a:first-of-type{margin-top:2px}
.account-menu-divider{height:1px;background:#edf0f4;margin:6px 4px}
.account-menu>button{color:#a52222}
body.dark .account-menu-trigger{background:#171d28;border-color:#30394b;color:#eef2f7}
body.dark .account-menu{background:#171d28;border-color:#30394b}
body.dark .account-menu-head{border-color:#30394b}
body.dark .account-menu>a,body.dark .account-menu>button{color:#e6ebf3}
body.dark .account-menu>a:hover,body.dark .account-menu>button:hover{background:#222b3a}
body.dark .account-menu-divider{background:#30394b}
@media(max-width:900px){.account-menu-name{display:none}.account-menu{right:-6px}}

/* Account dashboard reference layout — scoped to workspace only */
.workspace-account-shell{padding-top:0!important;background:#f4f4f9!important}
.workspace-account-shell .account-workspace-top{height:38px;display:flex;justify-content:space-between;align-items:center;margin:0 0 0;padding:0 8px}
.workspace-account-shell .workspace-logout{padding:9px 16px!important;background:#fff!important;border:1px solid #d8dce5!important;border-radius:10px!important}
.workspace-account-shell #workspacePortal{width:100%;max-width:1460px;margin:0 auto}
.workspace-account-shell .workspace-portal-layout{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:690px;border:0!important;border-radius:0!important;background:#f4f4f9!important;box-shadow:none!important;overflow:hidden}
.workspace-account-shell .workspace-nav-pro{padding:0 14px 20px 0!important;background:#fff!important;border:0!important;border-right:1px solid #d9dce5!important;border-radius:0!important;min-height:690px!important}
.workspace-account-shell .workspace-nav-pro .workspace-nav-label{padding:10px 10px 4px!important;color:#35383e!important;font-size:14px!important;font-weight:800!important;letter-spacing:0!important}
.workspace-account-shell .workspace-nav-item{display:flex!important;align-items:center!important;gap:10px!important;padding:6px 10px!important;min-height:29px;border-radius:5px!important;font-size:14px!important;font-weight:500!important;color:#2f333b!important;text-decoration:none!important}
.workspace-account-shell .workspace-nav-item span{width:20px;height:20px;display:grid;place-items:center;color:#272b31;font-size:16px}
.workspace-account-shell .workspace-nav-item:hover{background:#f0f0f5!important}
.workspace-account-shell .workspace-nav-item.active{background:#e9e9f1!important;color:#20242a!important;font-weight:700!important}
.workspace-account-shell .workspace-nav-item.active:before{display:none!important}
.workspace-account-shell .workspace-nav-footer{margin-top:16px;padding:15px 10px 4px;border-top:1px solid #d9dce5}
.workspace-account-shell .workspace-main-pro{padding:0 0 50px!important;background:#f4f4f9!important;min-width:0}
.workspace-account-shell .account-page-title{display:flex;align-items:flex-start;justify-content:space-between;padding:4px 30px 14px;margin:0}
.workspace-account-shell .account-page-title h2{margin:0;font-size:26px;letter-spacing:-.03em}
.workspace-account-shell .account-page-title p{margin:4px 0 0;color:#667085;font-size:13px}
.workspace-account-shell .account-page-title .eyebrow{font-size:10px;letter-spacing:.08em}
.workspace-account-shell .screenshot-profile-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;padding:0 30px}
.workspace-account-shell .screenshot-profile-grid .account-card{margin:0;background:#fff;border:0;border-radius:13px;padding:31px 32px;box-shadow:0 8px 25px rgba(20,30,60,.07)}
.workspace-account-shell .screenshot-detail-list{display:grid;gap:24px}
.workspace-account-shell .screenshot-detail-list>div{display:grid;grid-template-columns:105px 1fr;gap:10px;font-size:14px;color:#27303d}
.workspace-account-shell .screenshot-detail-list b{font-weight:800}
.workspace-account-shell .screenshot-links{display:grid!important;gap:14px!important}
.workspace-account-shell .screenshot-links a{color:#f21e2f;text-decoration:underline;font-weight:700;font-size:13px}
.workspace-account-shell .screenshot-social{font-size:14px;color:#344054;line-height:1.65}
.workspace-account-shell .screenshot-social p{margin:0 0 20px}
.workspace-account-shell .screenshot-social hr{border:0;border-top:1px solid #ececf1;margin:28px 0}
.workspace-account-shell .social-buttons{display:flex;gap:10px}
.workspace-account-shell .social-buttons button{width:34px;height:34px;border-radius:8px;border:1px solid #d9dce4;background:#fff;font-weight:900;cursor:pointer}
.workspace-account-shell .account-card-email{grid-column:1 / -1;margin-top:2px!important;padding:27px 32px!important}
.workspace-account-shell .account-card-email .card-title{margin-bottom:22px}
.workspace-account-shell .account-card-email p{margin:0;color:#344054;font-size:14px}
.workspace-account-shell .module-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.workspace-account-shell .module-link-grid a{display:grid;gap:5px;padding:17px;border:1px solid #e2e4eb;border-radius:10px;text-decoration:none;color:#1f2937;background:#fff}
.workspace-account-shell .stack-form{display:grid;gap:15px;max-width:720px}
.workspace-account-shell .stack-form label{display:grid;gap:7px;font-size:13px;font-weight:700}
.workspace-account-shell .stack-form input,.workspace-account-shell .stack-form select{border:1px solid #d7dbe5;border-radius:8px;padding:11px 12px;background:#fff}
@media(max-width:900px){
 .workspace-account-shell .workspace-portal-layout{grid-template-columns:1fr}
 .workspace-account-shell .workspace-nav-pro{min-height:auto!important;border-right:0!important;border-bottom:1px solid #d9dce5!important;padding:0 14px 12px!important}
 .workspace-account-shell .workspace-nav-item{display:inline-flex!important}
 .workspace-account-shell .workspace-nav-label{display:inline-block!important;margin-right:5px}
 .workspace-account-shell .workspace-nav-footer{display:none}
 .workspace-account-shell .screenshot-profile-grid{grid-template-columns:1fr;padding:0 14px}
 .workspace-account-shell .account-card-email{grid-column:auto}
 .workspace-account-shell .account-page-title{padding-left:14px}
}

/* Keep the existing Back to Housax link, only improve visibility */
.workspace-account-shell .workspace-nav-footer a{color:#667085!important;font-weight:600!important;opacity:1!important;text-decoration:none!important;display:inline-block!important;padding:4px 6px!important;border-radius:5px!important}
.workspace-account-shell .workspace-nav-footer a:hover{color:#1f2937!important;background:#f1f2f6!important}

/* Housax brand styling for the existing Back to Housax link */
.workspace-account-shell .workspace-nav-footer a{
  font-family:Inter,Segoe UI,Arial,sans-serif!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
  background:linear-gradient(90deg,#1557a6 0%,#164b91 42%,#e34b35 78%,#f39a22 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  color:transparent!important;
  opacity:1!important;
}
.workspace-account-shell .workspace-nav-footer a:hover{
  filter:brightness(.9)!important;
  background-color:transparent!important;
}

/* Keep Housax gradient text visible on hover */
.workspace-account-shell .workspace-nav-footer a:hover{
  background:linear-gradient(90deg,#1557a6 0%,#164b91 42%,#e34b35 78%,#f39a22 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  color:transparent!important;
  filter:brightness(.9)!important;
}

/* Logo-like lift animation for the existing Back to Housax link */
.workspace-account-shell .workspace-nav-footer a{
  transition:transform .18s ease!important;
}
.workspace-account-shell .workspace-nav-footer a:hover{
  transform:translateY(-3px)!important;
}

/* Logo-like hover motion — existing Back to Housax link only */
@keyframes housaxBackHover{
  0%{transform:translateY(0)}
  35%{transform:translateY(-4px)}
  65%{transform:translateY(-2px)}
  100%{transform:translateY(0)}
}
.workspace-account-shell .workspace-nav-footer a:hover{
  animation:housaxBackHover .45s ease-in-out!important;
  transform:none!important;
}


/* ===== Housax multilingual selector — isolated addition ===== */
.housax-language{position:relative;display:inline-flex;align-items:center;margin-left:6px;z-index:10020}
.housax-language-button{height:36px;display:inline-flex;align-items:center;gap:7px;padding:0 10px;border:1px solid var(--line,#dfe3eb);border-radius:9px;background:var(--panel,#fff);color:var(--text,#263142);font:600 12px/1 inherit;cursor:pointer;white-space:nowrap;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.housax-language-button:hover,.housax-language.open .housax-language-button{border-color:#c4ccda;background:#fafbfe;box-shadow:0 3px 10px rgba(20,30,60,.06)}
.housax-language-icon{width:18px;height:18px;display:grid;place-items:center}
.housax-language-icon svg{width:18px;height:18px}
.housax-language-icon{color:#2563eb!important}
.housax-language-label{max-width:72px;overflow:hidden;text-overflow:ellipsis}
.housax-language-chevron{font-size:13px;line-height:1;transform:translateY(-1px)}
.housax-language-menu{position:absolute;right:0;top:calc(100% + 8px);width:220px;max-height:360px;overflow:auto;padding:7px;background:#fff;border:1px solid #e0e4eb;border-radius:12px;box-shadow:0 18px 45px rgba(20,30,60,.16);display:none}
.housax-language.open .housax-language-menu{display:grid;grid-template-columns:1fr}
.housax-language-option{width:100%;padding:8px 10px;border:0;border-radius:7px;background:transparent;color:#273142;text-align:left;font:600 12px/1.35 inherit;cursor:pointer}
.housax-language-option:hover,.housax-language-option.active{background:#f0f3f8;color:#163d7d}
.housax-language-option.active:after{content:"✓";float:right;font-weight:800}
.housax-google-translate-host{position:absolute!important;left:-10000px!important;top:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.goog-te-banner-frame,.skiptranslate iframe{display:none!important}
body{top:0!important}
.goog-tooltip,.goog-tooltip:hover{display:none!important}
.goog-text-highlight{background:transparent!important;box-shadow:none!important}
@media(max-width:900px){
  .housax-language{margin-left:2px}
  .housax-language-label{display:none}
  .housax-language-button{padding:0 8px}
  .housax-language-menu{right:-6px;width:205px}
}
body.dark .housax-language-button{background:#171d28;border-color:#30394b;color:#eef2f7}
body.dark .housax-language-button:hover,body.dark .housax-language.open .housax-language-button{background:#20283a}
body.dark .housax-language-menu{background:#171d28;border-color:#30394b}
body.dark .housax-language-option{color:#e6ebf3}
body.dark .housax-language-option:hover,body.dark .housax-language-option.active{background:#222b3a;color:#dce7ff}


/* Move language selector below the right-side logo only */
.housax-language{position:absolute!important;top:calc(100% + 6px)!important;left:14px!important;right:auto!important;margin:0!important}
.topbar{position:relative!important}
.housax-language-menu{left:0!important;right:auto!important}
\n
/* ===== Phase 3 — Professional Control Center analytics ===== */
.admin-analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.admin-panel-card{background:#fff;border:1px solid #e3e6ed;border-radius:16px;padding:20px;box-shadow:0 8px 24px rgba(20,30,60,.045)}
.admin-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px}
.admin-card-head b{display:block;font-size:14px}.admin-card-head small{display:block;color:#788293;font-size:11px;margin-top:4px}.admin-card-head a{font-size:11px;font-weight:800;color:#315da8;white-space:nowrap}
.admin-period-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.admin-period-grid>div{padding:15px;border-radius:12px;background:#f6f7fa;border:1px solid #eceef3}
.admin-period-grid strong{display:block;font-size:25px;letter-spacing:-.03em}.admin-period-grid span{display:block;color:#778091;font-size:10px;margin-top:3px}
.admin-mini-table>div{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:11px 0;border-top:1px solid #edf0f4}
.admin-mini-table>div:first-child{border-top:0;padding-top:0}.admin-mini-table b{display:block;font-size:12px}.admin-mini-table small{display:block;color:#7a8392;font-size:10px;margin-top:3px}.admin-mini-table time{font-size:10px;color:#8a92a0;white-space:nowrap}
.admin-bars{display:grid;gap:9px}.admin-bars>div{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.admin-bars span{font-size:11px;color:#596273;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-bars strong{font-size:11px;padding:4px 8px;border-radius:999px;background:#eef2f7}
body.dark .admin-panel-card{background:#151a23;border-color:#2b3340}.dark .admin-panel-card{background:#151a23}
body.dark .admin-period-grid>div{background:#1b212b;border-color:#303846}
body.dark .admin-period-grid span,body.dark .admin-card-head small,body.dark .admin-mini-table small,body.dark .admin-mini-table time,body.dark .admin-bars span{color:#9da7b6}
body.dark .admin-bars strong{background:#252c37;color:#e8edf4}
@media(max-width:760px){.admin-analytics-grid{grid-template-columns:1fr}.admin-period-grid{grid-template-columns:1fr 1fr}.admin-mini-table>div{grid-template-columns:1fr auto}.admin-mini-table time{display:none}}


/* ===== Housax workspace dashboard — stable SaaS navigation ===== */
.workspace-account-shell #workspacePortal .workspace-portal-layout{
  align-items:stretch;
}
.workspace-account-shell .workspace-nav-pro{
  position:sticky!important;
  top:72px!important;
  align-self:start;
  height:calc(100vh - 72px);
  max-height:calc(100vh - 72px);
  overflow-y:auto;
  scrollbar-width:thin;
}
.workspace-account-shell .workspace-main-pro{
  min-height:calc(100vh - 72px);
}
.workspace-account-shell .workspace-nav-pro::-webkit-scrollbar{width:5px}
.workspace-account-shell .workspace-nav-pro::-webkit-scrollbar-thumb{background:#d9dce4;border-radius:999px}
.workspace-profile-mini{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px 16px;
  margin-bottom:8px;
  border-bottom:1px solid #e4e6eb;
}
.workspace-profile-mini .workspace-avatar{
  width:38px;height:38px;flex:0 0 38px;
}
.workspace-profile-mini b{font-size:13px;line-height:1.25}
.workspace-profile-mini small{display:block;color:#7a8290;font-size:10px;margin-top:2px}
.workspace-tools-card{padding:24px!important}
.workspace-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.workspace-tools-grid a{
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:15px 14px;
  border:1px solid #e1e4ea;
  border-radius:10px;
  background:#fff;
  color:#252a33;
  transition:background .15s,border-color .15s,transform .15s;
}
.workspace-tools-grid a:hover{background:#fafafd;border-color:#cfd4df;transform:translateY(-1px)}
.workspace-tools-grid b{display:block;font-size:13px}
.workspace-tools-grid small{display:block;color:#747d8b;font-size:11px;margin-top:3px}
.workspace-tools-grid em{font-style:normal;color:#d61f2f;font-size:11px;font-weight:800;white-space:nowrap}
.workspace-tool-icon{
  width:38px;height:38px;display:grid;place-items:center;
  border-radius:9px;background:#f2f3f7;color:#333944;font-weight:800;
}
.admin-center-embedded{min-height:600px}
.admin-center-embedded .admin-layout{min-height:600px}
@media(max-width:900px){
  .workspace-account-shell .workspace-nav-pro{
    position:static!important;
    height:auto;
    max-height:none;
    overflow:visible;
  }
  .workspace-tools-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  .workspace-tools-grid a{grid-template-columns:36px 1fr}
  .workspace-tools-grid em{display:none}
}


/* ===== Housax workspace dashboard V2 — screenshot-inspired professional shell ===== */
.workspace-account-shell{
  background:#f5f6fa!important;
  padding:0!important;
}
.workspace-account-shell .account-workspace-top{
  display:flex!important;
  justify-content:flex-end!important;
  min-height:0!important;
  padding:12px 28px!important;
  border-bottom:1px solid #e2e4ea!important;
  background:#fff!important;
}
.workspace-account-shell .workspace-logout{
  border:0!important;
  background:transparent!important;
  color:#4b5563!important;
}
.workspace-account-shell .workspace-portal-layout{
  display:grid!important;
  grid-template-columns:246px minmax(0,1fr)!important;
  gap:0!important;
  min-height:calc(100vh - 54px)!important;
}
.workspace-account-shell .workspace-nav-pro{
  border:0!important;
  border-right:3px solid #ef3131!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
  padding:18px 14px 16px 18px!important;
  top:0!important;
  height:calc(100vh - 54px)!important;
  max-height:calc(100vh - 54px)!important;
}
.workspace-profile-mini{
  min-height:82px!important;
  padding:8px 6px 18px!important;
  margin-bottom:8px!important;
  border:0!important;
}
.workspace-profile-mini .workspace-avatar{
  width:64px!important;height:64px!important;flex-basis:64px!important;
  border-radius:50%!important;
  border:2px solid #ffdcdc!important;
  background:#fafafa!important;
  color:#9ca3af!important;
  display:grid!important;place-items:center!important;
  font-size:23px!important;font-weight:700!important;
}
.workspace-profile-mini .workspace-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
  border-radius:50%!important;
}
.workspace-profile-mini b{font-size:14px!important;color:#ff3030!important}
.workspace-profile-mini small{font-size:12px!important;color:#4b5563!important;margin-top:4px!important}
.workspace-nav-pro .workspace-nav-label{
  padding:12px 6px 5px!important;
  color:#30343d!important;
  font-size:13px!important;
  letter-spacing:0!important;
  font-weight:800!important;
  border-bottom:1px solid #d9dce3!important;
}
.workspace-nav-pro .workspace-nav-item{
  min-height:34px!important;
  padding:7px 10px!important;
  margin:1px 0!important;
  border-radius:4px!important;
  gap:11px!important;
  color:#30343d!important;
  font-size:14px!important;
  font-weight:500!important;
}
.workspace-nav-pro .workspace-nav-item span{
  width:18px!important;height:18px!important;
  display:grid!important;place-items:center!important;
  background:transparent!important;
  color:#27303b!important;
  font-size:16px!important;
}
.workspace-nav-pro .workspace-nav-item:hover,
.workspace-nav-pro .workspace-nav-item.active{
  background:#ececf4!important;
  color:#20242b!important;
}
.workspace-nav-pro .workspace-nav-footer{
  margin-top:18px!important;
  padding:12px 4px!important;
  border-top:1px solid #dfe1e6!important;
}
.workspace-nav-pro .workspace-nav-footer a{
  color:#20242b!important;
  font-size:12px!important;
}
.workspace-account-shell .workspace-main-pro{
  background:#f5f6fa!important;
  padding:36px 5.5vw 70px!important;
  min-height:calc(100vh - 54px)!important;
}
.account-page-title,.workspace-section-title{
  max-width:1050px!important;
  margin:0 auto 28px!important;
  display:flex!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  gap:22px!important;
}
.account-page-title h2{
  margin:3px 0 4px!important;
  font-size:31px!important;
  line-height:1.1!important;
  letter-spacing:-.035em!important;
  color:#172033!important;
}
.account-page-title p{margin:0!important;color:#586174!important;font-size:14px!important;line-height:1.7!important}
.workspace-title-action{display:flex;align-items:center;gap:10px;white-space:nowrap}
.workspace-upgrade{
  border:0!important;
  background:#ffbd2e!important;
  color:#1f2937!important;
  border-radius:9px!important;
  padding:11px 18px!important;
  font-weight:800!important;
  font-size:14px!important;
  box-shadow:none!important;
  cursor:pointer!important;
}
.workspace-upgrade:hover{background:#ffb51c!important;transform:translateY(-1px)}
.workspace-main-pro .account-card{
  max-width:1050px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  background:#fff!important;
  border:0!important;
  border-radius:12px!important;
  box-shadow:0 10px 28px rgba(29,35,55,.07)!important;
  padding:28px 32px!important;
}
.workspace-main-pro .account-grid{
  max-width:1050px!important;
  margin:0 auto!important;
}
.workspace-main-pro .card-title{
  border-bottom:1px solid #e1e4ea!important;
  padding-bottom:13px!important;
  margin-bottom:20px!important;
}
.workspace-main-pro .card-title h3{font-size:20px!important;color:#1b263b!important}
.workspace-main-pro .card-title a{color:#ef3030!important;font-weight:700!important}
.screenshot-profile-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:28px!important;max-width:1050px!important;margin:0 auto!important}
.screenshot-profile-grid .account-card-email{grid-column:1/-1}
.screenshot-detail-list>div{display:flex;gap:7px;padding:5px 0;color:#3e4758;font-size:14px}
.screenshot-detail-list b{color:#273043}
.screenshot-links{display:grid!important;gap:18px!important;margin-top:26px!important}
.screenshot-links a{color:#ef3030!important;text-decoration:underline!important;font-size:13px!important;font-weight:700!important}
.screenshot-social p{font-size:14px;line-height:1.8;color:#47536a;margin:0 0 24px}
.screenshot-social hr{border:0;border-top:1px solid #e6e8ed;margin:26px 0}
.social-buttons{display:flex;gap:10px}
.social-buttons button{width:34px;height:34px;border:0;border-radius:8px;background:#405d9c;color:#fff;font-weight:900;cursor:pointer}
.social-buttons button:nth-child(2){background:#fff;color:#4285f4;border:1px solid #ddd}
.social-buttons button:nth-child(3){background:#555}
.workspace-list{display:grid}
.workspace-list>div{
  display:flex!important;align-items:center!important;gap:14px!important;
  padding:14px 4px!important;border-bottom:1px solid #eceef2!important;
}
.workspace-list>div:last-child{border-bottom:0!important}
.workspace-list>div>div{flex:1!important}
.workspace-list b{display:block;color:#273044;font-size:14px}
.workspace-list small{display:block;color:#7a8392;font-size:12px;margin-top:4px}
.team-hero{padding:34px!important}
.team-copy{display:grid;grid-template-columns:250px 1fr;gap:45px;align-items:center}
.team-art{display:grid;place-items:center;height:190px;border-radius:50%;font-size:90px;background:radial-gradient(circle,#fff0f0,#fff 68%);color:#ef3030}
.team-copy h3{font-size:28px;line-height:1.15;margin:0 0 18px;color:#182033}
.team-copy p,.team-copy li{color:#536075;line-height:1.65}
.team-copy ul{padding-left:20px}.team-copy li{margin:7px 0}
.tool-settings-card{padding:28px!important}
.tool-settings-intro{color:#4d596e;line-height:1.7;margin:0 0 24px}
.tool-settings-tabs{display:flex;gap:0;overflow:auto;border-bottom:1px solid #d8dce4;margin-bottom:20px}
.tool-settings-tabs button{border:0;background:transparent;padding:13px 16px;color:#3d4758;white-space:nowrap;border-top:3px solid transparent;cursor:pointer}
.tool-settings-tabs button.active{border-top-color:#ef3030;color:#172033;font-weight:800;background:#fff}
.workspace-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.workspace-tool-setting{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #e4e7ed;border-radius:10px;padding:13px;background:#fff}
.workspace-tool-setting-icon{width:40px;height:40px;display:grid;place-items:center;background:#f1f4fa;border-radius:9px;color:#3159b5}
.workspace-tool-setting b{display:block;font-size:13px;color:#273044}.workspace-tool-setting small{display:block;color:#737c8c;font-size:11px;line-height:1.45;margin-top:3px}
.tool-status-dot{display:inline-block;font-size:10px;margin-top:5px;color:#6b7280}.tool-status-dot.ready{color:#16934a}.tool-status-dot.ready:before{content:'● ';}.tool-status-dot.planned:before{content:'○ ';}
.workflow-builder-card{padding:25px!important}
.workflow-builder-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-bottom:1px solid #e5e7eb;padding-bottom:20px;margin-bottom:20px}
.workflow-builder-head h3{margin:0 0 5px}.workflow-builder-head p{margin:0;color:#657084;font-size:13px}
.workflow-tool-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.workflow-tool-picker label{border:1px solid #e0e3e9;border-radius:8px;padding:10px;display:flex;gap:8px;align-items:center;font-size:12px;cursor:pointer}
.workflow-tool-picker label:has(input:checked){border-color:#ffb2b2;background:#fff5f5}
.region-card{max-width:720px!important}
.signature-workspace-head{max-width:1050px;margin:0 auto 22px;display:flex;justify-content:space-between;align-items:center}
.signature-lockup{display:flex;align-items:center;gap:10px}
.signature-lockup>span{width:40px;height:40px;border-radius:8px;background:#1769d4;color:#fff;display:grid;place-items:center;font-size:24px}
.signature-lockup b{font-size:23px;color:#172033}.signature-lockup small{display:block;color:#7b8493;font-size:10px}
.signature-grid{max-width:1050px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:28px}
.signature-preview{height:120px;background:#f5f5f9;display:grid;place-items:center;margin-bottom:18px;font:italic 44px cursive;color:#555}
.signature-preview img{max-width:80%;max-height:105px}
.signature-tabs{display:flex;border-bottom:1px solid #dfe2e7;margin-bottom:20px}
.signature-tabs a{padding:14px 22px;color:#283347;text-decoration:none}.signature-tabs a.active{border-top:3px solid #ef3030;font-weight:800}
.signature-empty{min-height:270px;display:grid;place-items:center;color:#667085;text-align:center}
.signature-settings-list{padding:0 32px!important}
.signature-settings-list>label{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:15px;align-items:start;padding:23px 0;border-bottom:1px solid #e5e7eb}
.signature-settings-list>label:last-child{border-bottom:0}
.signature-settings-list b{color:#273044}.signature-settings-list p{margin:7px 0 0;color:#5f6a7c;line-height:1.6;font-size:13px}
.signature-editor{max-width:900px!important}
.signature-mode{display:flex;gap:0;border-bottom:1px solid #ddd;margin-bottom:18px}.signature-mode button{padding:10px 18px;border:0;background:transparent;border-top:3px solid transparent;cursor:pointer}.signature-mode button.active{border-top-color:#ef3030;font-weight:800}
#signatureCanvas{display:block;width:100%;height:280px;border:1px dashed #cfd4dc;border-radius:8px;background:#fafbfc;touch-action:none}
.signature-editor-actions{display:flex;gap:10px;align-items:center;margin-top:14px}
.signature-editor-actions .text-input{flex:1}
.billing-grid{max-width:1050px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:28px}
.plan-box{background:#f5f6fa;padding:22px;border-radius:10px;margin-bottom:20px}.plan-box b{font-size:20px}.plan-box p{color:#5c6678;line-height:1.6}.plan-box strong{font-size:16px}
.credit-bar{height:8px;background:#e7e9ef;border-radius:999px;overflow:hidden;margin:18px 0 8px}.credit-bar span{display:block;height:100%;background:#ffbd2e}
.invoice-head{display:grid;grid-template-columns:1.2fr 1fr 1.3fr 1fr 1.3fr .8fr;border:1px solid #e1e4ea;padding:12px;font-size:12px;font-weight:800;color:#3c4657}
@media(max-width:1000px){
 .workspace-account-shell .workspace-portal-layout{grid-template-columns:210px minmax(0,1fr)!important}
 .workspace-account-shell .workspace-main-pro{padding-left:28px!important;padding-right:28px!important}
 .workflow-tool-picker{grid-template-columns:1fr 1fr}.workspace-tool-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
 .workspace-account-shell .workspace-portal-layout{display:block!important}
 .workspace-account-shell .workspace-nav-pro{position:static!important;height:auto!important;max-height:none!important;border-right:0!important;border-bottom:3px solid #ef3131!important}
 .workspace-account-shell .workspace-main-pro{padding:24px 16px 50px!important}
 .account-page-title,.workspace-section-title{display:block!important}
 .workspace-title-action{margin-top:15px;justify-content:flex-start;flex-wrap:wrap}
 .screenshot-profile-grid,.signature-grid,.billing-grid{grid-template-columns:1fr!important}
 .team-copy{grid-template-columns:1fr!important;gap:20px}.team-art{height:120px;font-size:60px}
 .workflow-tool-picker{grid-template-columns:1fr}
 .invoice-head{grid-template-columns:1fr 1fr;gap:10px}
 .signature-editor-actions{flex-wrap:wrap}
 .signature-editor-actions .text-input{min-width:100%}
}
body.dark .workspace-account-shell,body.dark .workspace-account-shell .workspace-main-pro{background:#10131a!important}
body.dark .workspace-account-shell .workspace-nav-pro,body.dark .workspace-account-shell .account-workspace-top,.dark .workspace-account-shell .account-card{background:#151a23!important}
body.dark .workspace-account-shell .workspace-nav-pro{border-right-color:#ff5a63!important}
body.dark .workspace-nav-pro .workspace-nav-label,body.dark .workspace-nav-pro .workspace-nav-item,body.dark .workspace-profile-mini small{color:#dbe1eb!important}
body.dark .workspace-nav-pro .workspace-nav-item:hover,body.dark .workspace-nav-pro .workspace-nav-item.active{background:#242936!important}


/* Housax profile photo uploader */
.profile-photo-card{grid-column:1/-1}
.profile-photo-editor{display:flex;align-items:center;gap:24px;padding:4px}
.profile-photo-preview-wrap{flex:0 0 auto}
.profile-photo-preview{width:112px;height:112px;border-radius:50%;overflow:hidden;border:3px solid var(--border,#e5e7eb);background:var(--surface-2,#f5f6f8);display:flex;align-items:center;justify-content:center;font-size:40px;font-weight:800;color:var(--muted,#667085)}
.profile-photo-preview img{width:100%;height:100%;object-fit:cover;display:block}
.profile-photo-copy{min-width:0;flex:1}
.profile-photo-copy h3{margin:0 0 6px}
.profile-photo-copy p{margin:0 0 14px;color:var(--muted,#667085)}
.profile-photo-actions{display:flex;gap:10px;flex-wrap:wrap}
.profile-photo-save{margin-top:12px}
.danger-outline{border-color:#ef4444!important;color:#b42318!important}
.danger-outline:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:640px){.profile-photo-editor{align-items:flex-start;flex-direction:column}.profile-photo-preview{width:96px;height:96px}}


/* Housax reference dashboard navigation: colored line icons */
.workspace-nav-pro .workspace-nav-item{position:relative!important}
.workspace-nav-pro .ws-nav-icon{width:30px!important;height:30px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 30px!important;background:transparent!important}
.workspace-nav-pro .ws-svg{width:22px;height:22px;display:block}
.workspace-nav-pro .ws-nav-icon.blue{color:#3d8df5}
.workspace-nav-pro .ws-nav-icon.red{color:#ff4560}
.workspace-nav-pro .ws-nav-icon.green{color:#50c83f}
.workspace-nav-pro .ws-nav-icon.purple{color:#8b3ff2}
.workspace-nav-pro .ws-nav-icon.orange{color:#ff8a00}
.workspace-nav-pro .ws-nav-icon.teal{color:#16c9c0}
.workspace-nav-pro .ws-nav-icon.gray{color:#697586}
.workspace-nav-pro .workspace-nav-item.active{background:#eeedf7!important}
.workspace-nav-pro .workspace-nav-item.active:before{display:none!important}
.workspace-nav-pro .workspace-nav-item:hover .ws-nav-icon{filter:saturate(1.05)}
.workspace-nav-pro .workspace-profile-mini{padding:8px 9px 20px!important}
.workspace-nav-pro .workspace-profile-mini b{color:#ff3b4f!important;font-size:17px!important;font-weight:800!important;text-transform:none!important}
.workspace-nav-pro .workspace-profile-mini small{color:#30343b!important;font-size:16px!important;font-weight:500!important;text-transform:none!important}
.workspace-nav-pro .workspace-avatar{width:54px!important;height:54px!important;border-radius:50%!important;background:#f4f4f4!important;color:#8c8c8c!important;border:2px solid #ffd8d8!important;font-size:22px!important}
.workspace-nav-pro .workspace-nav-label{font-size:15px!important;font-weight:800!important;padding:17px 9px 6px!important;border-bottom:1px solid #d4d7de!important}
.workspace-nav-pro .workspace-nav-item{font-size:16px!important;padding:9px 11px!important;gap:9px!important;color:#30343b!important}
.workspace-nav-pro .workspace-nav-item.active{font-weight:600!important}
.workspace-nav-pro .workspace-nav-footer{border-top:1px solid #d4d7de!important}
.menu-icon{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px}
.menu-icon .ws-svg{width:19px;height:19px}
.menu-icon.blue{color:#668dd9}.menu-icon.red{color:#ff5a68}.menu-icon.green{color:#62b96a}.menu-icon.purple{color:#8867cf}.menu-icon.orange{color:#e99a3e}.menu-icon.gold{color:#c08a20}.menu-icon.gray{color:#7c8798}
.account-menu-upgrade{color:#5b4c8e!important}
.account-menu>a,.account-menu>button{gap:9px!important;padding:9px 10px!important}
.account-menu>a:hover,.account-menu>button:hover{background:#f1f1f7!important}
@media(max-width:700px){
  .workspace-nav-pro .workspace-nav-label{font-size:13px!important}
  .workspace-nav-pro .workspace-nav-item{font-size:14px!important}
}


/* Workspace sidebar spacing and isolated click targets */
.workspace-nav-pro .workspace-nav-item{
  min-height:42px!important;
  box-sizing:border-box!important;
  margin:2px 0!important;
  padding:9px 11px!important;
  line-height:1.25!important;
  white-space:normal!important;
}
.workspace-nav-pro .workspace-nav-item>span:last-child{
  flex:1 1 auto!important;
  min-width:0!important;
}
.workspace-nav-pro .workspace-nav-label{
  margin-top:7px!important;
}
.workspace-nav-pro .workspace-nav-label + .workspace-nav-item{
  margin-top:5px!important;
}
.workspace-nav-pro .workspace-nav-item + .workspace-nav-item{
  margin-top:2px!important;
}
.workspace-nav-pro .workspace-nav-footer{
  margin-top:14px!important;
}


/* Billing + Admin Control — separate, comfortable click targets */
.workspace-nav-pro .billing-nav-item,
.workspace-nav-pro .admin-nav-item{
  position:relative!important;
  min-height:38px!important;
  height:38px!important;
  margin:2px 0!important;
  padding:7px 11px!important;
  border-radius:6px!important;
  box-sizing:border-box!important;
  cursor:pointer!important;
}
.workspace-nav-pro .billing-nav-item + .billing-nav-item{
  margin-top:2px!important;
}
.workspace-nav-pro .billing-nav-item.active,
.workspace-nav-pro .admin-nav-item.active{
  background:#e9e9f3!important;
}
.workspace-nav-pro .billing-nav-item:hover,
.workspace-nav-pro .admin-nav-item:hover{
  background:#f0f0f6!important;
}
.workspace-nav-pro .admin-nav-item{
  margin-top:5px!important;
}
.workspace-nav-pro .workspace-nav-label + .admin-nav-item{
  margin-top:5px!important;
}
.workspace-nav-pro .workspace-nav-label{
  line-height:1.2!important;
}


/* Restore the colored reference-style sidebar icons without changing navigation behavior */
.workspace-nav-pro .ws-nav-icon{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
}
.workspace-nav-pro .ws-nav-icon .ws-svg{
  width:23px!important;
  height:23px!important;
  stroke-width:1.9!important;
}
.workspace-nav-pro .ws-nav-icon.blue{color:#438df4!important}
.workspace-nav-pro .ws-nav-icon.red{color:#ff435c!important}
.workspace-nav-pro .ws-nav-icon.green{color:#55c83f!important}
.workspace-nav-pro .ws-nav-icon.purple{color:#8d3ff0!important}
.workspace-nav-pro .ws-nav-icon.orange{color:#ff8a00!important}
.workspace-nav-pro .ws-nav-icon.teal{color:#16c9c0!important}
.workspace-nav-pro .ws-nav-icon.gray{color:#697586!important}
.workspace-nav-pro .workspace-nav-item{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
.workspace-nav-pro .workspace-nav-item.active{
  background:#eaeaf4!important;
}
.workspace-nav-pro .billing-nav-item,
.workspace-nav-pro .admin-nav-item{
  display:flex!important;
  align-items:center!important;
}


/* ===== FINAL REFERENCE DASHBOARD — SIDEBAR ONLY =====
   Scoped exclusively to the account/workspace dashboard. */
.workspace-account-shell .workspace-portal-layout{
  grid-template-columns:270px minmax(0,1fr)!important;
  min-height:720px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#f7f7fb!important;
}
.workspace-account-shell .workspace-nav-pro{
  width:270px!important;
  min-height:720px!important;
  padding:20px 16px 24px 12px!important;
  background:#fff!important;
  border:0!important;
  border-right:1px solid #e1e2e8!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-label{
  margin:0!important;
  padding:17px 10px 7px!important;
  border:0!important;
  color:#34363d!important;
  font-size:15px!important;
  line-height:20px!important;
  font-weight:800!important;
  letter-spacing:0!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-label:first-child{
  padding-top:0!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item{
  width:100%!important;
  min-height:38px!important;
  height:38px!important;
  margin:1px 0!important;
  padding:7px 10px!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  border-radius:6px!important;
  color:#34363d!important;
  background:transparent!important;
  font-size:15px!important;
  line-height:20px!important;
  font-weight:500!important;
  box-sizing:border-box!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item:hover{
  background:#f3f3f7!important;
  color:#292b31!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item.active{
  background:#ecebf5!important;
  color:#25272d!important;
  font-weight:600!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.blue,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.red,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.green,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.purple,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.orange,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.teal,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.gray{
  width:29px!important;
  min-width:29px!important;
  height:29px!important;
  flex:0 0 29px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:transparent!important;
  border:0!important;
  color:inherit;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon .ws-svg{
  width:22px!important;
  height:22px!important;
  stroke-width:1.85!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.blue{color:#438df4!important}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.red{color:#ff435c!important}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.green{color:#55c83f!important}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.purple{color:#8d3ff0!important}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.orange{color:#ff8a00!important}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.teal{color:#16c9c0!important}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.gray{color:#697586!important}
.workspace-account-shell .workspace-nav-pro .billing-nav-item,
.workspace-account-shell .workspace-nav-pro .admin-nav-item{
  min-height:38px!important;
  height:38px!important;
  margin:1px 0!important;
  padding:7px 10px!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-footer{
  margin-top:18px!important;
  padding:14px 10px 4px!important;
  border-top:1px solid #ececf0!important;
}
.workspace-account-shell .workspace-main-pro{
  min-width:0!important;
  background:#f7f7fb!important;
  padding:34px 36px 48px!important;
}
@media(max-width:900px){
  .workspace-account-shell .workspace-portal-layout{grid-template-columns:230px minmax(0,1fr)!important}
  .workspace-account-shell .workspace-nav-pro{width:230px!important}
}
@media(max-width:620px){
  .workspace-account-shell .workspace-portal-layout{grid-template-columns:1fr!important}
  .workspace-account-shell .workspace-nav-pro{width:100%!important;min-height:auto!important;border-right:0!important;border-bottom:1px solid #e1e2e8!important}
  .workspace-account-shell .workspace-main-pro{padding:24px 18px 36px!important}
}


/* ===== DASHBOARD REFERENCE MATCH — STRICTLY SCOPED TO WORKSPACE SIDEBAR ===== */
.workspace-account-shell .workspace-portal-layout{
  grid-template-columns:240px minmax(0,1fr)!important;
}
.workspace-account-shell .workspace-nav-pro{
  width:240px!important;
  min-width:240px!important;
  padding:30px 20px 10px 24px!important;
  background:#fff!important;
  border-right:0!important;
  min-height:710px!important;
  box-shadow:none!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-label{
  width:196px!important;
  margin:0!important;
  padding:0 0 5px!important;
  border-bottom:1px solid #d6d6df!important;
  color:#33333b!important;
  font-size:14px!important;
  line-height:18px!important;
  font-weight:800!important;
  letter-spacing:0!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-label:not(:first-child){
  margin-top:9px!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item,
.workspace-account-shell .workspace-nav-pro .billing-nav-item,
.workspace-account-shell .workspace-nav-pro .admin-nav-item{
  width:196px!important;
  height:29px!important;
  min-height:29px!important;
  margin:1px 0!important;
  padding:3px 8px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  border-radius:5px!important;
  box-sizing:border-box!important;
  background:transparent!important;
  color:#33333b!important;
  font-size:15px!important;
  line-height:20px!important;
  font-weight:400!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item:hover,
.workspace-account-shell .workspace-nav-pro .billing-nav-item:hover,
.workspace-account-shell .workspace-nav-pro .admin-nav-item:hover{
  background:#f3f3f6!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item.active,
.workspace-account-shell .workspace-nav-pro .billing-nav-item.active,
.workspace-account-shell .workspace-nav-pro .admin-nav-item.active{
  background:#ebebf4!important;
  color:#33333b!important;
  font-weight:400!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.blue,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.red,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.green,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.purple,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.orange,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.teal,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.gray{
  width:20px!important;
  min-width:20px!important;
  height:20px!important;
  flex:0 0 20px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#33333b!important;
  background:transparent!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon .ws-svg{
  width:18px!important;
  height:18px!important;
  stroke-width:1.65!important;
}
/* Reference screenshot: the two Settings icons use the muted blue-gray accent. */
.workspace-account-shell .workspace-nav-pro .workspace-nav-item[href*="tab=tools"] .ws-nav-icon,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item[href*="tab=regions"] .ws-nav-icon{
  color:#667b9d!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-footer{
  display:none!important;
}
.workspace-account-shell .workspace-main-pro{
  min-width:0!important;
}
@media(max-width:620px){
  .workspace-account-shell .workspace-nav-pro{
    width:100%!important;
    min-width:0!important;
    padding:24px 20px!important;
  }
  .workspace-account-shell .workspace-nav-pro .workspace-nav-label,
  .workspace-account-shell .workspace-nav-pro .workspace-nav-item,
  .workspace-account-shell .workspace-nav-pro .billing-nav-item,
  .workspace-account-shell .workspace-nav-pro .admin-nav-item{
    width:100%!important;
  }
}


/* ===== FINAL PIXEL-TUNED SIDEBAR — MATCH PROVIDED REFERENCE ===== */
.workspace-account-shell .workspace-portal-layout{
  grid-template-columns:240px minmax(0,1fr)!important;
  align-items:stretch!important;
}
.workspace-account-shell .workspace-nav-pro{
  width:240px!important;
  min-width:240px!important;
  max-width:240px!important;
  padding:0 20px 12px 24px!important;
  background:#fff!important;
  border:0!important;
  border-right:1px solid #d8d8de!important;
  overflow:hidden!important;
  box-shadow:none!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-label{
  width:196px!important;
  height:auto!important;
  margin:0!important;
  padding:0 0 5px!important;
  border-bottom:1px solid #d5d5dc!important;
  color:#34343b!important;
  font-size:14px!important;
  line-height:18px!important;
  font-weight:800!important;
  text-align:left!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-label:not(:first-child){
  margin-top:9px!important;
  padding-top:0!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item,
.workspace-account-shell .workspace-nav-pro .billing-nav-item,
.workspace-account-shell .workspace-nav-pro .admin-nav-item{
  width:196px!important;
  height:29px!important;
  min-height:29px!important;
  max-height:29px!important;
  margin:1px 0!important;
  padding:3px 8px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  border-radius:5px!important;
  box-sizing:border-box!important;
  background:transparent!important;
  color:#33333b!important;
  font-size:15px!important;
  line-height:20px!important;
  font-weight:400!important;
  text-align:left!important;
  white-space:nowrap!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item>span:first-child{
  width:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  flex:0 0 20px!important;
  margin:0!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item>span:last-child{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
  text-align:left!important;
  display:block!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item:hover,
.workspace-account-shell .workspace-nav-pro .billing-nav-item:hover,
.workspace-account-shell .workspace-nav-pro .admin-nav-item:hover{
  background:#f3f3f6!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item.active,
.workspace-account-shell .workspace-nav-pro .billing-nav-item.active,
.workspace-account-shell .workspace-nav-pro .admin-nav-item.active{
  background:#e9e9f2!important;
  color:#33333b!important;
  font-weight:400!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.blue,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.red,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.green,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.purple,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.orange,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.teal,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon.gray{
  width:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  height:20px!important;
  min-height:20px!important;
  max-height:20px!important;
  flex:0 0 20px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  color:#33333b!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon .ws-svg{
  width:18px!important;
  height:18px!important;
  margin:0!important;
  padding:0!important;
  stroke-width:1.65!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item[href*="tab=tools"] .ws-nav-icon,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item[href*="tab=regions"] .ws-nav-icon{
  color:#667b9d!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-footer{display:none!important}
@media(max-width:620px){
  .workspace-account-shell .workspace-nav-pro{
    width:100%!important;min-width:0!important;max-width:none!important;
    padding:24px 20px!important;overflow:visible!important;
  }
  .workspace-account-shell .workspace-nav-pro .workspace-nav-label,
  .workspace-account-shell .workspace-nav-pro .workspace-nav-item,
  .workspace-account-shell .workspace-nav-pro .billing-nav-item,
  .workspace-account-shell .workspace-nav-pro .admin-nav-item{width:100%!important;max-width:none!important}
}


/* ===== HARD POSITIONING FIX — REFERENCE SIDEBAR ONLY ===== */
.workspace-account-shell .workspace-nav-pro .workspace-nav-item,
.workspace-account-shell .workspace-nav-pro .billing-nav-item,
.workspace-account-shell .workspace-nav-pro .admin-nav-item{
  display:grid!important;
  grid-template-columns:20px max-content!important;
  justify-content:start!important;
  align-items:center!important;
  column-gap:8px!important;
  width:196px!important;
  min-width:196px!important;
  max-width:196px!important;
  height:29px!important;
  min-height:29px!important;
  max-height:29px!important;
  padding:3px 8px!important;
  margin:1px 0!important;
  box-sizing:border-box!important;
  text-align:left!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item>span:first-child{
  grid-column:1!important;
  justify-self:start!important;
  width:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  margin:0!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item>span:last-child{
  grid-column:2!important;
  justify-self:start!important;
  width:max-content!important;
  max-width:168px!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  flex:none!important;
  text-align:left!important;
}


/* ===== EXACT REFERENCE SIDEBAR GEOMETRY — DASHBOARD ONLY ===== */
.workspace-account-shell .workspace-nav-pro{
  width:240px!important;
  min-width:240px!important;
  max-width:240px!important;
  height:710px!important;
  min-height:710px!important;
  max-height:710px!important;
  box-sizing:border-box!important;
  padding:52px 20px 8px 24px!important;
  margin:0!important;
  background:#fff!important;
  border:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-label{
  width:196px!important;
  margin:0!important;
  padding:0 0 5px!important;
  border-bottom:1px solid #d5d5dc!important;
  color:#36363d!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-size:14px!important;
  line-height:18px!important;
  font-weight:800!important;
  text-align:left!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-label:not(:first-child){
  margin-top:9px!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item,
.workspace-account-shell .workspace-nav-pro .billing-nav-item,
.workspace-account-shell .workspace-nav-pro .admin-nav-item{
  display:grid!important;
  grid-template-columns:20px max-content!important;
  justify-content:start!important;
  align-items:center!important;
  column-gap:8px!important;
  width:196px!important;
  min-width:196px!important;
  max-width:196px!important;
  height:29px!important;
  min-height:29px!important;
  max-height:29px!important;
  margin:1px 0!important;
  padding:3px 8px!important;
  border:0!important;
  border-radius:5px!important;
  box-sizing:border-box!important;
  background:transparent!important;
  color:#35353c!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-size:15px!important;
  line-height:20px!important;
  font-weight:400!important;
  text-align:left!important;
  white-space:nowrap!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item.active{
  background:#ebebf4!important;
  color:#35353c!important;
  font-weight:400!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item:hover{
  background:#f3f3f6!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item>span:first-child{
  grid-column:1!important;
  width:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  height:20px!important;
  min-height:20px!important;
  max-height:20px!important;
  margin:0!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item>span:last-child{
  grid-column:2!important;
  width:max-content!important;
  min-width:0!important;
  max-width:168px!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  text-align:left!important;
  justify-self:start!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon{
  color:#35353c!important;
  background:transparent!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item .ws-nav-icon .ws-svg{
  width:18px!important;
  height:18px!important;
  stroke-width:1.65!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-item[href*="tab=tools"] .ws-nav-icon,
.workspace-account-shell .workspace-nav-pro .workspace-nav-item[href*="tab=regions"] .ws-nav-icon{
  color:#647b9f!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-footer{
  display:none!important;
}
@media(max-width:620px){
  .workspace-account-shell .workspace-nav-pro{
  display:flex!important;
  flex-direction:column!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-admin-section{
  margin-top:auto!important;
  padding-top:18px!important;
}
.workspace-account-shell .workspace-nav-pro .workspace-nav-admin-section .workspace-nav-label{
  margin-top:0!important;
}
.workspace-account-shell .workspace-nav-pro{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:auto!important;
    max-height:none!important;
    padding:24px 20px!important;
    overflow:visible!important;
  }
  .workspace-account-shell .workspace-nav-pro .workspace-nav-label,
  .workspace-account-shell .workspace-nav-pro .workspace-nav-item,
  .workspace-account-shell .workspace-nav-pro .billing-nav-item,
  .workspace-account-shell .workspace-nav-pro .admin-nav-item{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
}

/* Dashboard profile upload */
.workspace-profile-mini .workspace-avatar-upload{display:block;width:64px;height:64px;flex:0 0 64px;cursor:pointer;position:relative}
.workspace-profile-mini .workspace-avatar-upload .workspace-avatar{width:64px!important;height:64px!important}
.workspace-profile-mini .workspace-avatar-file{display:none!important}
.workspace-profile-mini .workspace-avatar-upload:hover .workspace-avatar{box-shadow:0 0 0 3px rgba(229,50,50,.08)!important}

/* ===== Dashboard sidebar: left side below the language/header area ===== */
.workspace-portal-layout{
  grid-template-columns:240px minmax(0,1fr)!important;
}
.workspace-nav-pro{
  grid-column:1!important;
  grid-row:1!important;
  border-left:0!important;
  border-right:3px solid #e53232!important;
  padding:18px 14px 14px!important;
  background:#fff!important;
  order:1!important;
}
.workspace-main-pro,.workspace-main{
  grid-column:2!important;
  grid-row:1!important;
  order:2!important;
}
.workspace-nav-pro .workspace-nav-label{
  padding:12px 10px 5px!important;
  font-size:14px!important;
  line-height:20px!important;
  font-weight:700!important;
  color:#3f4148!important;
}
.workspace-nav-pro .workspace-nav-label:first-child{padding-top:0!important}
.workspace-nav-item{
  gap:10px!important;
  padding:7px 10px!important;
  border-radius:5px!important;
  font-size:14px!important;
  line-height:20px!important;
  font-weight:400!important;
  color:#36383d!important;
  min-height:34px!important;
}
.workspace-nav-item.active{background:#e9e9f1!important;color:#30323a!important;font-weight:500!important}
.workspace-nav-admin-section{
  margin-top:0!important;
  padding-top:8px!important;
  border-top:1px solid #d9d9de!important;
}
.workspace-nav-admin-section .workspace-nav-label{
  padding-top:10px!important;
}
.workspace-nav-footer{padding:16px 10px 4px!important}

/* ===== FINAL dashboard placement: full-width, far-left sidebar ===== */
.workspace-account-shell{
  width:100vw!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
.workspace-account-shell #workspacePortal{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
.workspace-account-shell #workspacePortal .workspace-portal-layout{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  grid-template-columns:240px minmax(0,1fr)!important;
}
.workspace-account-shell .workspace-nav-pro{
  grid-column:1!important;
  grid-row:1!important;
  width:240px!important;
  min-width:240px!important;
  max-width:240px!important;
  border-right:3px solid #e53232!important;
  border-left:0!important;
}
.workspace-account-shell .workspace-main-pro{
  grid-column:2!important;
  grid-row:1!important;
}
.workspace-account-shell .workspace-nav-admin-section{
  margin-top:8px!important;
  padding-top:8px!important;
  border-top:1px solid #d9d9de!important;
}

/* Billing + Admin block stays together at the bottom of the dashboard sidebar */
.workspace-nav-bottom-group{
  margin-top:8px!important;
  padding-top:8px!important;
}
.workspace-nav-bottom-group .workspace-nav-label:first-child{
  margin-top:0!important;
}
.workspace-nav-bottom-group .workspace-nav-admin-section{
  margin-top:8px!important;
  padding-top:8px!important;
  border-top:1px solid #d9d9de!important;
}

/* Show the complete Billing + Admin section below Signatures */
.workspace-account-shell .workspace-nav-pro{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  height:calc(100vh - 72px)!important;
  max-height:calc(100vh - 72px)!important;
  min-height:680px!important;
}
.workspace-account-shell .workspace-nav-bottom-group{
  display:block!important;
  visibility:visible!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  margin-top:9px!important;
}
.workspace-account-shell .workspace-nav-bottom-group .workspace-nav-label,
.workspace-account-shell .workspace-nav-bottom-group .workspace-nav-item,
.workspace-account-shell .workspace-nav-bottom-group .billing-nav-item,
.workspace-account-shell .workspace-nav-bottom-group .admin-nav-item{
  display:flex!important;
  visibility:visible!important;
}
.workspace-account-shell .workspace-nav-bottom-group .workspace-nav-label{
  display:block!important;
}
.workspace-account-shell .workspace-nav-bottom-group .workspace-nav-admin-section{
  display:block!important;
  visibility:visible!important;
}

/* ===== Housax footer — logo dark-blue menu ===== */
.housax-footer{padding:34px 5vw 22px;border-top:1px solid #0b2a52;background:#0b2a52;color:#fff;font-size:12px}
.housax-footer-main{display:flex;justify-content:space-between;align-items:flex-start;gap:28px;max-width:1240px;margin:0 auto}
.housax-footer .footer-brand{flex:0 0 auto}
.housax-footer .footer-brand strong{color:#fff}
.housax-footer .footer-brand small{color:rgba(255,255,255,.72)}
.housax-footer .footer-links{display:flex;gap:18px;flex-wrap:wrap;justify-content:flex-end}
.housax-footer .footer-links a{padding:7px 0;color:#fff}
.housax-footer .footer-links a:hover{text-decoration:underline;color:#fff}
.housax-footer-bottom{max-width:1240px;margin:25px auto 0;padding-top:18px;border-top:1px solid rgba(255,255,255,.18);display:flex;align-items:center;gap:18px}
.footer-language-slot{position:relative;min-width:150px}
.footer-language-slot .housax-language{position:relative!important;top:auto!important;left:auto!important;right:auto!important;margin:0!important}
.footer-language-slot .housax-language-menu{top:auto!important;bottom:calc(100% + 7px)!important;left:0!important;right:auto!important}
.footer-language-slot .housax-language-button{color:#fff!important;border-color:rgba(255,255,255,.35)!important;background:rgba(255,255,255,.08)!important}
.housax-social{display:flex;align-items:center;gap:8px;margin-left:auto}
.housax-social-link{width:34px;height:34px;border:1px solid rgba(255,255,255,.35);border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.08);color:#fff;transition:background .15s,border-color .15s,color .15s}
.housax-social-link:hover{background:#fff;border-color:#fff;color:#0b2a52}
.housax-social-link svg{width:17px;height:17px;fill:currentColor}
.housax-copyright{white-space:nowrap;color:rgba(255,255,255,.72)}
body.dark .housax-footer{background:#081f3d;border-color:#081f3d;color:#fff}
body.dark .housax-footer-bottom{border-color:rgba(255,255,255,.18)}
body.dark .housax-social-link{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.35);color:#fff}
body.dark .housax-social-link:hover{background:#fff;color:#081f3d;border-color:#fff}
@media(max-width:760px){
  .housax-footer-main{flex-direction:column}
  .housax-footer .footer-links{justify-content:flex-start}
  .housax-footer-bottom{flex-wrap:wrap}
  .housax-social{margin-left:0}
  .housax-copyright{margin-left:auto}
}
@media(max-width:520px){
  .housax-footer{padding-left:4vw;padding-right:4vw}
  .housax-footer .footer-links{gap:12px}
  .housax-footer-bottom{align-items:flex-start}
  .housax-copyright{width:100%;margin-left:0}
}


/* Expanded Housax footer */
.housax-footer-expanded{padding:46px 5vw 24px}
.housax-footer-grid{max-width:1240px;margin:0 auto;display:grid;grid-template-columns:1.35fr .8fr .8fr .8fr 1.25fr;gap:42px;align-items:start}
.footer-brand-column{min-width:0}
.housax-footer-expanded .footer-column{display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.housax-footer-expanded .footer-column h3{margin:0 0 8px;color:#fff;font-size:13px;font-weight:800;letter-spacing:.03em}
.housax-footer-expanded .footer-column a{color:rgba(255,255,255,.78);padding:2px 0}
.housax-footer-expanded .footer-column a:hover{color:#fff;text-decoration:underline}
.footer-downloads{gap:10px!important}
.footer-store-button{width:162px;min-height:40px;padding:6px 11px;border:1px solid rgba(255,255,255,.55);border-radius:7px;background:transparent;color:#fff;display:flex;align-items:center;justify-content:flex-start;gap:9px;font:inherit;text-align:left;cursor:default}
.footer-store-button:hover{background:rgba(255,255,255,.08)}
.footer-store-button .store-mark{width:23px;text-align:center;font-size:19px;line-height:1}
.footer-store-button .store-windows{font-size:24px}
.footer-store-button span:last-child{display:flex;flex-direction:column;font-size:14px;line-height:1.05;white-space:nowrap}
.footer-store-button small{font-size:7px;line-height:1.2;opacity:.85;letter-spacing:.02em}
@media(max-width:900px){
  .housax-footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
  .footer-brand-column{grid-column:1/-1}
}
@media(max-width:600px){
  .housax-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 20px}
  .footer-brand-column{grid-column:1/-1}
  .footer-downloads{grid-column:1/-1}
}


/* Reference-style Housax footer layout: language left, content centered, stores/social right */
.housax-footer-reference{padding:48px 5vw 24px;background:#0b2a52;color:#fff}
.housax-footer-reference-grid{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:.42fr repeat(5,minmax(90px,1fr)) 1.18fr;gap:28px;align-items:start}
.housax-footer-reference .footer-column{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.housax-footer-reference .footer-column h3{margin:0 0 10px;color:#fff;font-size:13px;font-weight:800;letter-spacing:.02em}
.housax-footer-reference .footer-column a{color:rgba(255,255,255,.82);padding:1px 0;font-size:13px}
.housax-footer-reference .footer-column a:hover{color:#fff;text-decoration:underline}
.footer-reference-spacer{min-width:0}
.housax-footer-reference .footer-downloads{gap:10px!important}
.housax-footer-reference-bottom{max-width:1280px;margin:46px auto 0;padding-top:24px;border-top:1px solid rgba(255,255,255,.28);display:flex;align-items:center;justify-content:space-between;gap:20px}
.housax-footer-reference-bottom .footer-language-slot{min-width:150px}
.footer-reference-right{margin-left:auto;display:flex;align-items:center;gap:28px}
.footer-reference-right .housax-social{margin-left:0}
.housax-footer-reference .housax-copyright{white-space:nowrap}
@media(max-width:1050px){
  .housax-footer-reference-grid{grid-template-columns:repeat(3,minmax(120px,1fr));gap:30px}
  .footer-reference-spacer{display:none}
  .housax-footer-reference .footer-downloads{grid-column:auto}
}
@media(max-width:700px){
  .housax-footer-reference-grid{grid-template-columns:repeat(2,minmax(120px,1fr));gap:28px 20px}
  .housax-footer-reference .footer-downloads{grid-column:1/-1}
  .housax-footer-reference-bottom{margin-top:32px;flex-wrap:wrap}
  .footer-reference-right{width:100%;justify-content:space-between}
}
@media(max-width:520px){
  .housax-footer-reference{padding-left:4vw;padding-right:4vw}
  .housax-footer-reference-grid{grid-template-columns:1fr 1fr}
  .housax-footer-reference-bottom{align-items:flex-start}
  .footer-reference-right{flex-wrap:wrap;gap:14px}
}


/* Final reference-matched footer positioning */
.housax-footer-reference{padding:48px 5vw 24px}
.housax-footer-reference-grid{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:repeat(5,minmax(110px,1fr)) 190px;gap:46px;align-items:start}
.housax-footer-reference .footer-downloads{align-items:flex-end;justify-self:end;width:162px;gap:10px!important}
.housax-footer-reference .footer-downloads .footer-store-button{width:162px}
.housax-footer-reference-bottom{max-width:1280px;margin:46px auto 0;padding-top:24px;border-top:1px solid rgba(255,255,255,.28);display:flex;align-items:center;justify-content:space-between;gap:20px}
.housax-footer-reference-bottom .footer-language-slot{min-width:150px}
.footer-reference-right{margin-left:auto;display:flex;align-items:center;gap:28px}
.footer-reference-right .housax-social{margin-left:0}
.housax-footer-reference .housax-copyright{white-space:nowrap}
@media(max-width:1050px){
  .housax-footer-reference-grid{grid-template-columns:repeat(3,minmax(120px,1fr));gap:30px}
  .housax-footer-reference .footer-downloads{grid-column:3;justify-self:end;width:162px}
}
@media(max-width:700px){
  .housax-footer-reference-grid{grid-template-columns:repeat(2,minmax(120px,1fr));gap:28px 20px}
  .housax-footer-reference .footer-downloads{grid-column:1/-1;justify-self:start}
  .housax-footer-reference-bottom{margin-top:32px;flex-wrap:wrap}
  .footer-reference-right{width:100%;justify-content:space-between}
}
@media(max-width:520px){
  .housax-footer-reference{padding-left:4vw;padding-right:4vw}
  .housax-footer-reference-grid{grid-template-columns:1fr 1fr}
  .housax-footer-reference .footer-downloads{grid-column:1/-1}
  .housax-footer-reference-bottom{align-items:flex-start}
  .footer-reference-right{flex-wrap:wrap;gap:14px}
}


/* ===== Exact reference footer geometry ===== */
.housax-footer-reference{
  background:#0b2a52!important;
  padding:38px 24px 22px!important;
  color:#fff;
}
.housax-footer-reference .housax-footer-reference-grid{
  width:min(1268px,100%);
  max-width:1268px;
  margin:0 auto;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,176px)) 162px!important;
  column-gap:45px!important;
  row-gap:0!important;
  align-items:start!important;
}
.housax-footer-reference .footer-column{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:10px!important;
}
.housax-footer-reference .footer-column h3{
  margin:0 0 12px!important;
  color:#fff!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:800!important;
}
.housax-footer-reference .footer-column a{
  color:rgba(255,255,255,.88)!important;
  font-size:13px!important;
  line-height:1.25!important;
  padding:0!important;
  text-decoration:none!important;
}
.housax-footer-reference .footer-column a:hover{
  color:#fff!important;
  text-decoration:underline!important;
}
.housax-footer-reference .footer-downloads{
  width:162px!important;
  justify-self:end!important;
  align-items:stretch!important;
  gap:10px!important;
}
.housax-footer-reference .footer-store-button{
  width:162px!important;
  height:40px!important;
  min-height:40px!important;
  box-sizing:border-box!important;
  padding:5px 10px!important;
  border:1px solid rgba(255,255,255,.72)!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
}
.housax-footer-reference .footer-store-button .store-mark{
  width:23px!important;
  flex:0 0 23px!important;
  text-align:center!important;
  color:#fff!important;
}
.housax-footer-reference .footer-store-button span:last-child{
  font-size:14px!important;
  line-height:1.05!important;
}
.housax-footer-reference .footer-store-button small{
  font-size:7px!important;
}
.housax-footer-reference .housax-footer-reference-bottom{
  width:min(1268px,100%);
  max-width:1268px;
  min-height:55px;
  margin:46px auto 0!important;
  padding:24px 0 0!important;
  border-top:1px solid rgba(255,255,255,.28)!important;
  box-sizing:border-box;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
}
.housax-footer-reference .footer-language-slot{
  position:relative!important;
  min-width:116px!important;
  width:116px!important;
  margin:0!important;
}
.housax-footer-reference .footer-language-slot .housax-language-button{
  width:116px!important;
  min-height:35px!important;
  box-sizing:border-box!important;
}
.housax-footer-reference .footer-reference-right{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:28px!important;
}
.housax-footer-reference .footer-reference-right .housax-social{
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
}
.housax-footer-reference .footer-reference-right .housax-social-link{
  width:28px!important;
  height:28px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:rgba(255,255,255,.78)!important;
  box-shadow:none!important;
  display:grid!important;
  place-items:center!important;
}
.housax-footer-reference .footer-reference-right .housax-social-link:hover{
  background:transparent!important;
  border:0!important;
  color:#fff!important;
}
.housax-footer-reference .footer-reference-right .housax-social-link svg{
  width:20px!important;
  height:20px!important;
}
.housax-footer-reference .housax-copyright{
  margin:0!important;
  white-space:nowrap!important;
  color:rgba(255,255,255,.82)!important;
  font-size:12px!important;
}
@media(max-width:1250px){
  .housax-footer-reference .housax-footer-reference-grid{
    grid-template-columns:repeat(5,minmax(0,1fr)) 162px!important;
    column-gap:24px!important;
  }
}
@media(max-width:900px){
  .housax-footer-reference .housax-footer-reference-grid{
    grid-template-columns:repeat(3,minmax(110px,1fr)) 162px!important;
    column-gap:24px!important;
    row-gap:28px!important;
  }
  .housax-footer-reference .footer-downloads{
    grid-column:4!important;
    grid-row:1 / span 2!important;
  }
}
@media(max-width:700px){
  .housax-footer-reference .housax-footer-reference-grid{
    grid-template-columns:repeat(2,minmax(120px,1fr))!important;
  }
  .housax-footer-reference .footer-downloads{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    justify-self:start!important;
  }
  .housax-footer-reference .housax-footer-reference-bottom{
    flex-wrap:wrap!important;
  }
  .housax-footer-reference .footer-reference-right{
    width:100%!important;
    justify-content:space-between!important;
  }
}
@media(max-width:520px){
  .housax-footer-reference{padding-left:16px!important;padding-right:16px!important}
  .housax-footer-reference .housax-footer-reference-grid{grid-template-columns:1fr 1fr!important}
  .housax-footer-reference .footer-downloads{grid-column:1 / -1!important}
  .housax-footer-reference .housax-footer-reference-bottom{align-items:flex-start!important}
  .housax-footer-reference .footer-reference-right{flex-wrap:wrap!important;gap:14px!important}
}


/* Final footer: stores stay at far right; language/social/copyright form one bottom row */
.housax-footer-reference{
  min-height:430px!important;
  box-sizing:border-box!important;
}
.housax-footer-reference .housax-footer-reference-grid{
  grid-template-columns:repeat(5,minmax(0,1fr)) 162px!important;
  align-items:start!important;
}
.housax-footer-reference .footer-downloads{
  grid-column:6!important;
  grid-row:1!important;
  align-self:start!important;
  justify-self:end!important;
}
.housax-footer-reference .housax-footer-reference-bottom{
  width:min(1480px,100%)!important;
  max-width:none!important;
  margin:88px auto 0!important;
  padding:24px 0 0!important;
  border-top:1px solid rgba(255,255,255,.28)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
}
.housax-footer-reference .footer-language-slot{
  flex:0 0 auto!important;
  order:1!important;
}
.housax-footer-reference .footer-reference-right{
  margin-left:auto!important;
  order:2!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:28px!important;
}
.housax-footer-reference .footer-reference-right .housax-social{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:18px!important;
  margin:0!important;
}
.housax-footer-reference .housax-copyright{
  white-space:nowrap!important;
}
@media(max-width:900px){
  .housax-footer-reference{min-height:0!important}
  .housax-footer-reference .housax-footer-reference-grid{
    grid-template-columns:repeat(3,minmax(110px,1fr)) 162px!important;
  }
  .housax-footer-reference .footer-downloads{
    grid-column:4!important;
  }
  .housax-footer-reference .housax-footer-reference-bottom{
    margin-top:55px!important;
  }
}
@media(max-width:700px){
  .housax-footer-reference .housax-footer-reference-grid{
    grid-template-columns:repeat(2,minmax(120px,1fr))!important;
  }
  .housax-footer-reference .footer-downloads{
    grid-column:1 / -1!important;
  }
  .housax-footer-reference .housax-footer-reference-bottom{
    margin-top:35px!important;
    flex-wrap:wrap!important;
  }
  .housax-footer-reference .footer-reference-right{
    width:auto!important;
  }
}


/* Desktop final: controls pinned in one bottom row below the entire store stack */
@media(min-width:901px){
  .housax-footer-reference{
    position:relative!important;
    min-height:370px!important;
    padding-bottom:105px!important;
    box-sizing:border-box!important;
  }
  .housax-footer-reference .housax-footer-reference-grid{
    grid-template-columns:repeat(5,minmax(0,1fr)) 162px!important;
    width:min(1480px,100%)!important;
    max-width:none!important;
    margin:0 auto!important;
  }
  .housax-footer-reference .footer-downloads{
    grid-column:6!important;
    grid-row:1!important;
    justify-self:end!important;
    align-self:start!important;
  }
  .housax-footer-reference .housax-footer-reference-bottom{
    position:absolute!important;
    left:24px!important;
    right:24px!important;
    bottom:22px!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:18px 0 0!important;
    border-top:1px solid rgba(255,255,255,.28)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
  }
  .housax-footer-reference .footer-language-slot{
    flex:0 0 116px!important;
    width:116px!important;
    margin:0!important;
  }
  .housax-footer-reference .footer-reference-right{
    margin-left:auto!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:28px!important;
  }
  .housax-footer-reference .footer-reference-right .housax-social{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:18px!important;
    margin:0!important;
  }
}


/* Store icons + legal links in the bottom row */
.housax-footer-reference .footer-store-button{cursor:pointer!important}
.housax-footer-reference .footer-store-button:hover{background:rgba(255,255,255,.08)!important}
.housax-footer-reference .store-icon{width:23px!important;height:23px!important;flex:0 0 23px!important;display:grid!important;place-items:center!important}
.housax-footer-reference .store-icon svg{width:22px!important;height:22px!important;fill:currentColor!important}
.housax-footer-reference .footer-bottom-links{display:flex!important;align-items:center!important;gap:22px!important;margin-left:auto!important;margin-right:28px!important;white-space:nowrap!important}
.housax-footer-reference .footer-bottom-links a{color:rgba(255,255,255,.82)!important;font-size:12px!important;text-decoration:none!important}
.housax-footer-reference .footer-bottom-links a:hover{color:#fff!important;text-decoration:underline!important}
@media(max-width:900px){
 .housax-footer-reference .footer-bottom-links{width:100%!important;order:3!important;margin:12px 0 0!important;justify-content:flex-end!important;flex-wrap:wrap!important}
}
@media(max-width:700px){
 .housax-footer-reference .footer-bottom-links{justify-content:flex-start!important}
}


/* Final bottom-row alignment: language left, important pages centered, social/copyright right */
@media(min-width:901px){
  .housax-footer-reference .housax-footer-reference-bottom{
    display:grid!important;
    grid-template-columns:1fr auto 1fr!important;
    align-items:center!important;
    justify-content:initial!important;
    gap:24px!important;
  }
  .housax-footer-reference .footer-language-slot{
    grid-column:1!important;
    justify-self:start!important;
  }
  .housax-footer-reference .footer-bottom-links{
    grid-column:2!important;
    justify-self:center!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:28px!important;
    white-space:nowrap!important;
  }
  .housax-footer-reference .footer-reference-right{
    grid-column:3!important;
    justify-self:end!important;
    margin-left:0!important;
  }
}



/* Refresh stability: keep the footer in layout, but never paint it during the refresh handoff. */
.housax-refresh-footer-gated{
  visibility:hidden!important;
}


/* Auth state: prevent Log in / Sign up from flashing before session resolution. */
.auth-actions.auth-pending{visibility:hidden!important}


/* Google Play: monochrome white icon */
.housax-footer-reference .store-google svg path{fill:currentColor!important}
.housax-footer-reference .store-google{color:#fff!important}


/* Footer is shown only on the Housax homepage. */
.housax-home-footer{display:none!important}
.housax-home-footer.housax-show-footer{display:block!important}
