/* GARDINIA Production Hub V3.16.0 — approved light dashboard.
   Scoped to the new home page and topbar; production/QS/print logic is unchanged. */
:root{
 --hub-red:#c81038; --hub-ink:#303942; --hub-line:#e1e5ec;
 --hub-soft:#f4f6f9; --hub-sub:#56616e;
}
body.hub-home{background:#f5f6f8}
.hub-symbol-library{display:block;position:absolute!important;width:0;height:0;overflow:hidden}
.hub-icon{display:block;width:100%;height:100%;color:inherit;overflow:visible;flex:none}
.hub-topbar{
 position:sticky;top:0;z-index:31;width:100%;max-width:none;
 min-height:108px;padding:14px clamp(16px,2.5vw,47px);
 background:rgba(250,251,253,.985);border-bottom:1px solid #e7e9ee;
 box-shadow:0 2px 16px rgba(28,44,67,.025);
 display:flex;align-items:center;justify-content:space-between;gap:18px;
}
.hub-topbar .header-brand{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:22px;min-width:0}
.hub-logo-home,.hub-brand-home,.hub-info-button,.hub-back-home{
 background:transparent;border:0;cursor:pointer;color:var(--hub-ink);font:inherit;
}
.hub-logo-home{display:flex;align-items:center;justify-content:center;padding:0;flex:none}
.hub-topbar .company-logo{width:clamp(178px,20.7vw,319px);height:auto;max-height:74px;object-fit:contain}
.hub-brand-divider{height:62px;width:1.5px;flex:0 0 1.5px;background:#8f9299}
.hub-brand-home{display:flex;align-items:center;gap:14px;padding:0;text-align:left;min-width:0}
.hub-brand-mark{display:block;width:66px;height:66px;object-fit:contain;flex:none}
.hub-title-container{display:flex;flex-direction:column;min-width:0}
.hub-brand-name{font-size:clamp(25px,3.5vw,48px);letter-spacing:-1.7px;font-weight:800;white-space:nowrap;line-height:1.15;color:#2f3640}
.hub-brand-underline{display:block;margin-top:6px;height:4px;max-width:100%;width:95%;background:var(--hub-red);border-radius:15px;transform:skewX(-22deg)}
.hub-header-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex:none}
.hub-topbar .status{padding:7px 11px;font-size:11px;letter-spacing:.3px}
.hub-version{display:inline-flex;align-items:center;justify-content:center;min-height:35px;background:#eceef2;border-radius:9px;padding:6px 13px;color:#34404d;font-size:15px;font-weight:750;white-space:nowrap}
.hub-info-button{display:grid;place-items:center;width:42px;height:42px;border-radius:999px;padding:6px}
.hub-info-button .hub-icon{width:32px;height:32px}
.hub-back-home{display:none;border:1px solid #d5dce5;border-radius:8px;background:#fff;padding:10px 14px;font-size:13px;font-weight:750;white-space:nowrap}
body:not(.hub-home) .hub-back-home{display:inline-flex}
.hub-logo-home:hover,.hub-brand-home:hover{opacity:.88}
.hub-info-button:hover,.hub-back-home:hover{background:#eceff4}
.hub-topbar button:focus-visible,.hub-home-view button:focus-visible,.hub-home-view a:focus-visible{outline:3px solid #ca2448;outline-offset:3px}

/* Main dashboard — matches selected design 3, with original GARDINIA PNG */
body.hub-home .shell{display:block;width:100%;max-width:1660px;margin:0 auto;padding:29px clamp(18px,1.85vw,32px) 46px}
body.hub-home .sidebar{display:none}
body.hub-home .workspace{width:100%;min-width:0;max-width:none;overflow:visible}
body.hub-home .fixed-attribution{display:none!important}
.hub-home-view{width:100%;color:var(--hub-ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.hub-home-content{display:flex;flex-direction:column;gap:31px}
.hub-primary-row{display:grid;grid-template-columns:1.82fr 1fr;gap:20px;align-items:stretch}
.hub-section{display:flex;flex-direction:column;gap:16px;min-width:0}
.hub-section-heading{display:flex;align-items:center;gap:15px;color:#252e39;font-size:clamp(23px,2vw,30px);font-weight:830;line-height:1.15;margin:0;white-space:nowrap;letter-spacing:-.55px}
.hub-section-heading:after{content:"";display:block;height:1px;flex:1;background:#b6bec8;min-width:10px;margin-left:4px}
.hub-section-heading .hub-icon{height:49px;width:49px;color:#343c46;padding:1px}
.hub-tile-grid{display:grid;gap:17px;align-items:stretch}
.hub-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.hub-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.hub-tile{
 position:relative;isolation:isolate;box-sizing:border-box;width:100%;min-width:0;
 display:flex;align-items:center;gap:17px;text-decoration:none;text-align:left;
 padding:18px 16px;color:#303943;background:#fff;
 border:1px solid #dfe4eb;border-radius:14px;
 box-shadow:0 9px 19px rgba(25,45,72,.075),0 1px 2px rgba(25,45,72,.06);
 cursor:pointer;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease;
 overflow:hidden;
}
.hub-tile:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(23,42,66,.13);border-color:#b9c3ce}
.hub-tile:active{transform:translateY(0)}
.hub-tile-icon{width:94px;height:86px;flex:none;display:grid;place-items:center;padding:6px 6px;color:#34404c;border-right:2.5px solid var(--hub-red);padding-right:18px;box-sizing:content-box}
.hub-tile-icon .hub-icon{width:73px;height:73px}
.hub-tile-body{min-width:0;display:flex;flex-direction:column;gap:6px;flex:1}
.hub-tile-body strong{font-size:clamp(17px,1.45vw,23px);font-weight:850;line-height:1.19;letter-spacing:-.3px;overflow-wrap:anywhere;color:#252d37}
.hub-tile-body small{font-size:clamp(12px,1.04vw,16px);font-weight:430;line-height:1.4;color:var(--hub-sub);overflow-wrap:anywhere}
.hub-chevron{height:26px;width:22px;color:#343d48;flex:none;display:grid;place-items:center;margin-left:auto}
.hub-chevron .hub-icon{width:20px;height:24px}
.hub-tile-hero{height:181px;padding:0 25px 0 0;gap:19px}
.hub-tile-hero .hub-tile-body strong{font-size:clamp(27px,2.65vw,43px);line-height:1.11;font-weight:875;white-space:nowrap;letter-spacing:-.65px}
.hub-tile-hero .hub-tile-body small{font-size:clamp(14px,1.65vw,24px);line-height:1.2}
.hub-tile-hero .hub-chevron{width:27px;height:31px}
.hub-tile-hero .hub-chevron .hub-icon{height:30px;width:27px}
.hub-tile-hero.hub-flow .hub-tile-icon{
 height:100%;width:190px;box-sizing:border-box;border-right:0;
 background:var(--hub-red);color:#fff;padding:29px;flex:none;
}
.hub-tile-hero.hub-flow .hub-tile-icon .hub-icon{width:111px;height:111px}
.hub-tile-hero.hub-flow .hub-tile-body{border-left:3px solid var(--hub-red);padding-left:20px;margin-left:0;}
.hub-tile-hero.hub-qs{padding-left:22px;gap:15px}
.hub-tile-hero.hub-qs .hub-tile-icon{height:112px;width:115px;box-sizing:border-box;padding:12px 18px 12px 6px;border-right:3px solid var(--hub-red)}
.hub-tile-hero.hub-qs .hub-tile-icon .hub-icon{width:94px;height:94px}
.hub-tile-hero.hub-qs .hub-tile-body strong{font-size:clamp(27px,2.55vw,40px)}
.hub-grid-3 .hub-tile{min-height:147px}
.hub-grid-4 .hub-tile{min-height:175px;padding:15px 11px;gap:11px}
.hub-grid-4 .hub-tile-icon{height:95px;width:71px;padding:5px 10px 5px 2px}
.hub-grid-4 .hub-tile-icon .hub-icon{width:69px;height:69px}
.hub-grid-4 .hub-tile-body{gap:8px}
.hub-grid-4 .hub-tile-body strong{font-size:clamp(15px,1.4vw,21px)}
.hub-grid-4 .hub-tile-body small{font-size:clamp(12px,.99vw,15px)}
.hub-grid-4 .hub-chevron{width:16px;min-width:16px;margin:0}
.hub-grid-4 .hub-chevron .hub-icon{width:16px;height:22px}
.hub-import-link{align-self:flex-end;display:inline-flex;align-items:center;gap:7px;border:1px solid #d5dce5;border-radius:9px;background:#fff;color:#364350;padding:8px 13px;margin-top:1px;font-size:13px;font-weight:760;cursor:pointer}
.hub-import-link .hub-icon{height:18px;width:18px}
.hub-import-link .hub-icon:last-child{height:15px;width:15px}
.hub-import-link:hover{background:#f2f4f7}
.hub-info-dialog{border:1px solid #d6dce5;border-radius:14px;box-shadow:0 18px 56px #1b304444;padding:26px;max-width:460px;font-size:15px;color:#303943}
.hub-info-dialog::backdrop{background:#182331aa}
.hub-info-dialog h2{margin:0;font-size:23px}
.hub-info-dialog p{line-height:1.5}
.hub-dialog-close{background:var(--hub-red);color:white;border:0;border-radius:9px;padding:10px 19px;font-weight:800;cursor:pointer}

/* Original sidebar is kept on every inner module, with visible home shortcut. */
body:not(.hub-home) .shell{padding-top:22px}
body:not(.hub-home) .hub-topbar .hub-brand-name{font-size:clamp(21px,2.5vw,36px)}
body:not(.hub-home) .hub-topbar .hub-brand-mark{height:53px;width:53px}
body:not(.hub-home) .hub-topbar .company-logo{width:clamp(165px,15vw,240px)}
body:not(.hub-home) .hub-topbar{min-height:94px;padding-top:11px;padding-bottom:11px}

@media(max-width:1250px){
 .hub-topbar .hub-brand-name{font-size:31px}
 .hub-topbar .company-logo{width:220px}
 .hub-brand-divider{height:49px}
 .hub-brand-mark{width:51px;height:51px}
 .hub-home-content{gap:25px}
 .hub-tile-hero{height:157px}
 .hub-tile-hero.hub-flow .hub-tile-icon{width:154px}
 .hub-tile-hero.hub-flow .hub-tile-icon .hub-icon{height:90px;width:90px}
 .hub-tile-hero .hub-tile-body strong{font-size:28px}
 .hub-tile-hero .hub-tile-body small{font-size:15px}
 .hub-tile{gap:10px;padding:13px}
 .hub-grid-3 .hub-tile-icon{width:65px;height:69px;padding-right:10px}
 .hub-grid-3 .hub-tile-icon .hub-icon{height:60px;width:60px}
 .hub-grid-4 .hub-tile-icon{width:50px;height:69px;padding-right:8px}
 .hub-grid-4 .hub-tile-icon .hub-icon{height:49px;width:49px}
 .hub-grid-4 .hub-tile-body strong{font-size:16px}
 .hub-grid-4 .hub-tile-body small{font-size:12px}
 .hub-grid-4 .hub-tile{min-height:137px;gap:8px}
}
@media(max-width:900px){
 .hub-topbar{min-height:80px;padding:10px 14px;gap:8px}
 .hub-topbar .header-brand{gap:9px}
 .hub-topbar .company-logo{width:152px}
 .hub-brand-divider{height:43px}
 .hub-brand-mark{width:39px;height:39px}
 .hub-brand-name{font-size:23px!important;letter-spacing:-.8px}
 .hub-brand-underline{height:3px;margin-top:3px}
 .hub-topbar .status{font-size:10px;padding:6px}
 .hub-version{font-size:11px;padding:4px 7px;min-height:27px}
 .hub-header-actions{gap:5px}
 .hub-info-button{height:35px;width:35px;padding:5px}
 .hub-info-button .hub-icon{width:27px;height:27px}
 .hub-back-home{font-size:11px;padding:8px}
 body.hub-home .shell{padding:18px 15px 45px}
 .hub-primary-row{gap:13px}
 .hub-grid-3{gap:10px}
 .hub-grid-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .hub-tile-hero{min-height:140px;gap:8px;padding-right:12px}
 .hub-tile-hero.hub-flow .hub-tile-icon{width:110px;padding:15px}
 .hub-tile-hero.hub-flow .hub-tile-icon .hub-icon{width:75px;height:75px}
 .hub-tile-hero.hub-flow .hub-tile-body{padding-left:10px}
 .hub-tile-hero.hub-qs{padding-left:11px}
 .hub-tile-hero.hub-qs .hub-tile-icon{width:71px;height:85px;padding:5px 11px 5px 0}
 .hub-tile-hero.hub-qs .hub-tile-icon .hub-icon{width:60px;height:60px}
 .hub-tile-hero .hub-tile-body strong,.hub-tile-hero.hub-qs .hub-tile-body strong{font-size:24px}
 .hub-tile-hero .hub-tile-body small{font-size:12px}
 .hub-tile-hero .hub-chevron{width:15px}
 .hub-tile-hero .hub-chevron .hub-icon{width:15px;height:24px}
 .hub-section-heading{font-size:23px}
 .hub-grid-3 .hub-tile{min-height:125px;gap:7px;padding:9px}
 .hub-grid-3 .hub-tile-icon{width:45px;height:57px;padding:0 8px 0 0}
 .hub-grid-3 .hub-tile-icon .hub-icon{height:42px;width:42px}
 .hub-grid-3 .hub-tile-body strong{font-size:14px}
 .hub-grid-3 .hub-tile-body small{font-size:11px}
 .hub-grid-3 .hub-chevron{width:13px}
 .hub-grid-3 .hub-chevron .hub-icon{width:12px;height:19px}
 .hub-grid-4 .hub-tile{min-height:130px}
 .hub-grid-4 .hub-tile-body strong{font-size:18px}
 .hub-grid-4 .hub-tile-body small{font-size:12px}
}
@media(max-width:610px){
 .hub-topbar{flex-wrap:wrap;gap:9px;min-height:78px;padding:10px 12px}
 .hub-topbar .header-brand{flex:1;gap:7px;min-width:0}
 .hub-topbar .company-logo{width:clamp(116px,30vw,155px)}
 .hub-brand-divider{height:34px;width:1px;flex-basis:1px}
 .hub-brand-mark{display:none}
 .hub-brand-name{font-size:clamp(18px,4.6vw,24px)!important;letter-spacing:-.6px}
 .hub-version{font-size:10px;min-height:25px;padding:3px 5px}
 .hub-topbar .status{display:none}
 .hub-info-button{width:30px;height:30px;padding:2px}
 .hub-info-button .hub-icon{width:27px;height:27px}
 .hub-header-actions{margin-left:auto}
 .hub-back-home{order:10}
 body:not(.hub-home) .hub-topbar{min-height:76px}
 body:not(.hub-home) .hub-topbar .company-logo{width:126px}
 body:not(.hub-home) .hub-topbar .hub-brand-name{font-size:17px!important}
 body.hub-home .shell{padding:15px 10px 48px}
 .hub-home-content{gap:22px}
 .hub-primary-row{grid-template-columns:1fr;gap:10px}
 .hub-tile-hero{height:115px;min-height:115px}
 .hub-tile-hero.hub-flow .hub-tile-icon{width:105px;height:100%}
 .hub-tile-hero.hub-qs .hub-tile-icon{width:87px;height:85px}
 .hub-tile-hero .hub-tile-body strong,.hub-tile-hero.hub-qs .hub-tile-body strong{font-size:24px}
 .hub-tile-hero .hub-tile-body small{font-size:13px}
 .hub-section{gap:10px}
 .hub-section-heading{font-size:19px;gap:8px}
 .hub-section-heading .hub-icon{height:31px;width:31px}
 .hub-grid-3{grid-template-columns:1fr;gap:9px}
 .hub-grid-3 .hub-tile{min-height:88px;padding:9px 13px;gap:14px}
 .hub-grid-3 .hub-tile-icon{width:65px;height:62px;padding-right:13px}
 .hub-grid-3 .hub-tile-icon .hub-icon{width:55px;height:55px}
 .hub-grid-3 .hub-tile-body strong{font-size:17px}
 .hub-grid-3 .hub-tile-body small{font-size:12px}
 .hub-grid-4{grid-template-columns:1fr;gap:9px}
 .hub-grid-4 .hub-tile{min-height:90px;padding:11px 13px;gap:13px}
 .hub-grid-4 .hub-tile-icon{height:62px;width:65px;padding:5px 12px 5px 0}
 .hub-grid-4 .hub-tile-icon .hub-icon{height:55px;width:55px}
 .hub-grid-4 .hub-tile-body strong{font-size:17px}
 .hub-grid-4 .hub-tile-body small{font-size:12px}
 .hub-import-link{width:100%;justify-content:center;font-size:12px;min-height:44px}
 .hub-tile-body{flex:1;min-width:0}
 .hub-tile-hero .hub-chevron{width:16px}
}
@media print{
 .hub-topbar,.hub-home-view{display:none!important}
}

/* V3.02: a unified Production Hub navigation in every module.
   The original sidebar is removed. Internal screens keep their original behavior. */
body:not(.hub-home){background:#f5f6f8}
body:not(.hub-home) .shell,
body.hub-home .shell{
 display:block!important;
 width:100%;max-width:1600px;
 margin:0 auto;
 padding:22px clamp(12px,2.4vw,34px) 94px;
}
body:not(.hub-home) .workspace{max-width:none;width:100%;min-width:0;overflow:visible}
body:not(.hub-home) .sidebar,body.hub-home .sidebar{display:none!important}
body:not(.hub-home) .fixed-attribution{position:static;margin:26px 0 0 0;max-width:none;align-items:flex-start;font-size:11px}
body:not(.hub-home) .hub-context-nav{display:block}
body.hub-home .hub-context-nav{display:none}
.hub-context-nav{
 position:relative;z-index:24;margin:0 0 19px;
 font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
 color:#303943;
}
.hub-context-main{
 display:flex;align-items:center;gap:18px;min-height:104px;
 border:1px solid #dde2e8;border-left:5px solid var(--hub-red);
 border-radius:13px;background:#fff;
 box-shadow:0 5px 19px rgba(35,50,68,.05);padding:15px 20px;
}
.hub-context-symbol{width:63px;height:63px;flex:none;border-right:2px solid var(--hub-red);padding-right:14px;color:#333d49}
.hub-context-symbol .hub-icon{width:46px;height:56px}
.hub-context-name{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.hub-context-caption{font-size:10px;letter-spacing:1.2px;color:#9b2741;font-weight:800}
.hub-context-name h2{margin:0;font-size:clamp(20px,2vw,30px);font-weight:850;line-height:1.16;letter-spacing:-.45px;color:#222e3c}
.hub-context-name>span:last-child{font-size:13px;color:#69727e}
.hub-context-actions{margin-left:auto;display:flex;gap:9px;flex:none;align-items:center}
.hub-context-actions button{font:inherit;display:flex;align-items:center;gap:7px;border-radius:9px;font-weight:770;cursor:pointer;padding:12px 15px;font-size:13px;min-height:43px;white-space:nowrap}
.hub-module-toggle{background:#c81038;color:#fff;border:1px solid #c81038}
.hub-module-toggle:hover{background:#a8092f}
.hub-context-home{background:#fff;color:#394655;border:1px solid #cbd3dd}
.hub-context-home:hover{background:#f2f4f6}
.hub-context-actions .hub-icon{height:19px;width:19px}
.hub-context-home .hub-icon{transform:rotate(180deg)}
.hub-module-drawer{
 position:absolute;top:calc(100% + 8px);left:0;right:0;max-height:min(75vh,740px);overflow-y:auto;
 border:1px solid #dbe1e8;border-radius:15px;background:#fff;
 box-shadow:0 20px 65px rgba(22,38,57,.19);
 padding:19px 21px;z-index:70;
}
.hub-module-drawer[hidden]{display:none!important}
.hub-module-drawer-title{font-size:15px;font-weight:880;letter-spacing:.7px;color:#25303d;display:flex;gap:13px;align-items:baseline;flex-wrap:wrap}
.hub-module-drawer-title>span{font-weight:500;font-size:12px;color:#6f7b89;letter-spacing:0}
.hub-drawer-group-title{font-size:11px;color:#a00c30;font-weight:850;letter-spacing:.9px;margin:17px 0 9px}
.hub-drawer-hero{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:13px}
.hub-drawer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hub-drawer-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.hub-drawer-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.hub-drawer-grid-5 > .hub-drawer-tile{height:100%;min-width:0}
.hub-drawer-tile{
 display:flex;align-items:center;gap:10px;min-width:0;padding:13px;
 background:#fff;border:1px solid #dce2e9;border-radius:10px;text-align:left;text-decoration:none;
 color:#303c49;cursor:pointer;font:inherit;
}
.hub-drawer-tile:hover{border-color:#c81038;background:#fff8f9}
.hub-drawer-tile.hub-drawer-selected{border:2px solid #c81038;background:#fff5f7;padding:12px}
.hub-drawer-tile .hub-icon{height:35px;width:35px;flex:none}
.hub-drawer-tile span{display:flex;flex-direction:column;gap:4px;min-width:0}
.hub-drawer-tile b{font-size:12px;line-height:1.2;overflow-wrap:anywhere}
.hub-drawer-tile small{font-size:11px;color:#697584;line-height:1.25}
.hub-drawer-flow{border-left:5px solid #c81038}
.hub-drawer-import{background:transparent;border:0;border-top:1px solid #e5e8ed;width:100%;display:flex;gap:8px;align-items:center;justify-content:flex-start;padding:14px 0 0;margin-top:16px;color:#344256;font-size:13px;font-weight:750;cursor:pointer}
.hub-drawer-import .hub-icon{height:22px;width:22px}
.hub-drawer-import span{margin-left:auto;font-size:21px}
.hub-context-nav button:focus-visible,.hub-context-nav a:focus-visible{outline:3px solid #be1438;outline-offset:2px}
@media(max-width:1100px){
 .hub-drawer-grid-4,.hub-drawer-grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hub-context-main{gap:13px;padding:12px}
 .hub-context-actions button{padding:10px;font-size:12px}
}
@media(max-width:710px){
 body:not(.hub-home) .shell{padding:10px 8px 64px}
 .hub-context-main{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;min-height:0;padding:12px}
 .hub-context-symbol{width:47px;height:48px;padding-right:8px}
 .hub-context-symbol .hub-icon{width:34px;height:42px}
 .hub-context-caption{font-size:9px;letter-spacing:.3px}
 .hub-context-name h2{font-size:clamp(17px,4.5vw,23px)}
 .hub-context-name>span:last-child{font-size:11px}
 .hub-context-actions{grid-column:1/-1;width:100%;gap:8px}
 .hub-context-actions button{flex:1;justify-content:center;min-height:41px;padding:9px 7px}
 .hub-module-drawer{padding:12px;max-height:70dvh}
 .hub-drawer-hero,.hub-drawer-grid,.hub-drawer-grid-4,.hub-drawer-grid-5{grid-template-columns:1fr}
 .hub-drawer-tile{padding:10px}
 .hub-drawer-tile .hub-icon{width:29px;height:29px}
 .hub-drawer-tile b{font-size:12px}
 .hub-drawer-tile small{font-size:10px}
 body:not(.hub-home) .hub-topbar .hub-back-home{display:none}
}
@media print{.hub-context-nav{display:none!important}}
/* One Home action, on the module bar (also avoids duplicate back links). */
.hub-topbar .hub-back-home{display:none!important}

/* V3.03: czerwone akcenty dla ikony przepływu na jasnym tle. */
.hub-drawer-flow .hub-icon, .hub-context-symbol.hub-context-flow .hub-icon{color:var(--hub-red)}

/* Independent Hub PWA install in About dialog; QS remains separate. */
.hub-pwa-install-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.hub-pwa-install-button{background:#303943}
.hub-pwa-install-hint{font-size:12px;color:#56616e;margin:12px 0 0}

/* V3.16.0 — equal-sized main menu cards; no changes to module screens. */
.hub-home-view .hub-primary-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.hub-home-view .hub-grid-5{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch}
.hub-home-view .hub-grid-5 .hub-tile{
  height:100%;min-width:0;min-height:155px;
  padding:12px 10px;gap:9px;
}
.hub-home-view .hub-grid-5 .hub-tile-icon{
  box-sizing:border-box;width:56px;height:76px;flex:0 0 56px;
  padding:5px 9px 5px 0;
}
.hub-home-view .hub-grid-5 .hub-tile-icon .hub-icon{width:45px;height:55px}
.hub-home-view .hub-grid-5 .hub-tile-body{min-width:0;gap:6px}
.hub-home-view .hub-grid-5 .hub-tile-body strong{
  font-size:clamp(13px,1.06vw,17px);line-height:1.22;
  overflow-wrap:break-word;hyphens:auto;
}
.hub-home-view .hub-grid-5 .hub-tile-body small{font-size:clamp(11px,.88vw,13px);line-height:1.35}
.hub-home-view .hub-grid-5 .hub-chevron{width:12px;min-width:12px}
.hub-home-view .hub-grid-5 .hub-chevron .hub-icon{width:12px;height:20px}
@media (max-width:1100px){
 .hub-home-view .hub-grid-5{grid-template-columns:repeat(3,minmax(0,1fr))}
 .hub-home-view .hub-grid-5 .hub-tile{min-height:135px}
}
@media (max-width:900px){
 .hub-home-view .hub-grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:610px){
 .hub-home-view .hub-primary-row{grid-template-columns:1fr}
 .hub-home-view .hub-grid-5{grid-template-columns:1fr}
 .hub-home-view .hub-grid-5 .hub-tile{min-height:90px;padding:10px 13px;gap:13px}
 .hub-home-view .hub-grid-5 .hub-tile-icon{width:65px;height:62px;flex-basis:65px;padding:5px 12px 5px 0}
 .hub-home-view .hub-grid-5 .hub-tile-icon .hub-icon{width:55px;height:55px}
 .hub-home-view .hub-grid-5 .hub-tile-body strong{font-size:17px}
 .hub-home-view .hub-grid-5 .hub-tile-body small{font-size:12px}
}


/* V3.18.0: hide version/author attribution removed from UI */
.fixed-attribution{display:none!important;}

/* V3.18.0: hide unused installation status, preserve dynamic messages */
.hub-pwa-install-hint:empty{display:none!important}

.hub-test-tools{display:flex;justify-content:flex-end}
.test-reset-dialog{width:min(32rem,calc(100% - 2rem));max-width:100%;box-sizing:border-box}
.test-reset-dialog [hidden]{display:none!important}
.test-reset-dialog label{display:block;margin-bottom:.35rem}
.test-reset-dialog input{width:100%;box-sizing:border-box}
.test-reset-actions{display:flex;justify-content:flex-end;gap:.6rem;flex-wrap:wrap;margin-top:1.2rem}
#testResetStatus{font-weight:600}
