/* Marketing hub. Built on the workspace's own glass cards, pill buttons and blue accent. */
.hub{--hub-blue:#6ca9ed;--hub-blue-soft:#c1dbef;--hub-green:#84a85b;--hub-yellow:#fdd572;--hub-line:#dce2e7;--hub-quiet:#5b6672;display:flex;flex-direction:column;gap:18px;min-width:0}
.hub .heading{margin-bottom:0}
.hub .heading p{max-width:none}
.hub-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.hub .insight-tabs{display:inline-flex;margin:0}
.hub-count{display:inline-block;min-width:18px;padding:1px 6px;border-radius:999px;background:#fff;font-size:10px;text-align:center}
.hub-period{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hub-live{display:inline-flex;align-items:center;gap:7px;font-size:11px}
.hub .hub-live{color:var(--hub-quiet)!important}
.hub-live i{width:7px;height:7px;border-radius:50%;background:var(--hub-green);box-shadow:0 0 0 3px #84a85b33}
.hub-live.busy i{background:var(--hub-yellow);box-shadow:0 0 0 3px #fdd57255;animation:hub-pulse 1s ease-in-out infinite}
@keyframes hub-pulse{50%{opacity:.35}}
.hub-note{padding:11px 16px;border-radius:14px;background:#ffffff8c;border:1px solid #fff;font-size:12px;line-height:1.5}
.hub-note.warn{background:#fdf3d0;border-color:#f6e3a1;display:flex;align-items:center;justify-content:space-between;gap:12px}

.hub .signal-grid.hub-kpis{margin:0;grid-template-columns:repeat(4,minmax(0,1fr))}
.hub-kpi{gap:10px!important}
.hub-kpi>strong{font-size:34px;line-height:1.05}
.hub-kpi>small{font-size:11px!important;line-height:1.5}
.hub-kpi-main{background:linear-gradient(135deg,#f9fcffe6,#d7e8f6b3)!important;border-color:#f3faff!important}
.hub-delta{font-style:normal;font-weight:700;font-size:11px;white-space:nowrap}
.hub .hub-delta.up{color:#3f7a22!important}
.hub .hub-delta.down{color:#b0483c!important}
.hub .hub-delta.flat,.hub .hub-vs{color:var(--hub-quiet)!important}
.hub-skeleton{position:relative;overflow:hidden}
.hub-skeleton>*{opacity:.35}
.hub-skeleton:after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,#ffffffb0 50%,transparent 70%);animation:hub-shine 1.3s linear infinite}
@keyframes hub-shine{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
.hub-tall{min-height:220px;display:grid;place-items:center}

.hub-card{padding:22px 24px!important;min-width:0}
.hub-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.hub-card-head h2{font-size:17px;letter-spacing:-.3px}
.hub-card-head p{font-size:12px;margin-top:4px}
.hub .hub-card-head p,.hub .hub-foot,.hub .hub-step small,.hub .hub-table small,.hub .hub-pack small,.hub .hub-status p,.hub .hub-status small,.hub .hub-dests small{color:var(--hub-quiet)!important}
.hub-two{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px}
.hub-foot{font-size:11px;line-height:1.6;margin-top:14px}
.hub-foot-row{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;border-top:1px solid var(--hub-line);padding-top:14px}
.hub-foot-row>span:first-child{flex:1 1 320px}
.hub-foot label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.hub-foot code{background:#fff;border-radius:5px;padding:1px 5px;font-size:10.5px}
.hub-empty{font-size:12px;padding:18px 0}
.hub-empty-box{text-align:center;padding:30px 16px;border:1px dashed #c4ccd4;border-radius:16px;background:#ffffff55}
.hub-empty-box p{font-size:12px;max-width:440px;margin:8px auto 16px;line-height:1.55}

/* journey */
.hub-journey{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.hub-step{background:#ffffff9e;border:1px solid #fff;border-radius:16px;padding:14px 15px;display:flex;flex-direction:column;gap:8px;min-width:0}
.hub-step-top{min-height:20px;display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11px;font-weight:600}
.hub-step-top b{background:var(--hub-blue-soft);border-radius:999px;padding:2px 8px;font-size:10.5px}
.hub-step>strong{font:600 28px Manrope,sans-serif;letter-spacing:-1px}
.hub-step-bar{height:6px;border-radius:999px;background:#e3e8ed;overflow:hidden}
.hub-step-bar i{display:block;height:100%;border-radius:999px;background:var(--hub-blue)}
.hub-step small{font-size:10.5px;line-height:1.4}
.hub-ghosts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.hub-ghosts.end{margin:12px 0 0}
.hub-ghost{border:1px dashed #b9c2cb;border-radius:999px;padding:5px 12px;font-size:11px;background:#ffffff40}
.hub-ghost b{margin-left:6px}
.hub-linkish{border:0;background:none;padding:0;font-size:11px;text-decoration:underline;cursor:pointer}

/* tables */
.hub-table-wrap{overflow-x:auto}
.hub-table{width:100%;border-collapse:collapse;font-size:12.5px}
.hub-table th{text-align:left;font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;padding:8px 10px;border-bottom:1px solid var(--hub-line);white-space:nowrap}
.hub-table td{padding:12px 10px;border-bottom:1px solid #e6eaee;vertical-align:middle}
.hub-table tbody tr:last-child td{border-bottom:0}
.hub-table tbody tr:hover td{background:#ffffff70}
.hub-table td small{display:block;font-size:11px;margin-top:3px}
.hub-table th:not(:first-child),.hub-table td:not(:first-child){text-align:right}
.hub-sources th:nth-child(2),.hub-sources td:nth-child(2),.hub-links th:nth-child(2),.hub-links td:nth-child(2),.hub-links th:nth-child(3),.hub-links td:nth-child(3){text-align:left}
.hub-table a{text-decoration:underline;text-underline-offset:3px}
.hub-sort{border:0;background:none;padding:0;font:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer}
.hub-sort.on{font-weight:800}
.hub-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px;vertical-align:baseline}
.hub-tag{display:inline-block;border-radius:999px;padding:3px 9px;font-size:10px;font-weight:700;background:#e8ecf0;white-space:nowrap}
.hub-tag.good{background:#dcebcb}
.hub-tag.warn{background:#fdebb0}
.hub-actions{white-space:nowrap}
.hub-actions .btn{min-height:30px;padding:6px 12px;margin-left:6px}
.hub-links tr.archived td{opacity:.55}
.hub-split{display:flex;height:10px;border-radius:999px;overflow:hidden;background:#e3e8ed;margin-bottom:12px}
.hub-split i{display:block;height:100%;min-width:3px}
.hub-chips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}
.hub-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #cfd6dd;background:#ffffff80;border-radius:999px;padding:5px 11px;font-size:11px;cursor:pointer}
.hub-chip i{width:8px;height:8px;border-radius:50%}
.hub-chip.on{background:var(--hub-blue-soft);border-color:#8eb2d2;font-weight:700}
.hub-mini{display:flex;gap:18px;font-size:12px}
.hub-mini strong{font:600 18px Manrope,sans-serif;margin-left:6px}

/* chart */
.hub-chart{display:flex;align-items:flex-end;gap:4px;height:190px;padding-top:18px}
.hub-bar-col{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px}
.hub-bar-col span{font-size:9.5px;line-height:1}
.hub-bar-col i{display:block;width:100%;max-width:26px;border-radius:5px 5px 2px 2px;background:var(--hub-blue)}
.hub-bar-col:hover i{background:#4a8fdc}
.hub-bar-col small{font-size:9px;height:12px;white-space:nowrap}
.hub-bignum{display:flex;align-items:baseline;gap:10px;padding:26px 0}
.hub-bignum strong{font:600 54px Manrope,sans-serif;letter-spacing:-2px}

/* links */
.hub-packs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hub-pack{position:relative;text-align:left;border:1px solid #fff;background:#ffffffa6;border-radius:16px;padding:16px 16px 14px 20px;display:flex;flex-direction:column;gap:6px;cursor:pointer;overflow:hidden;transition:transform .16s,box-shadow .18s}
.hub-pack:hover{box-shadow:0 8px 22px #345b7920;transform:translateY(-1px)}
.hub-pack i{position:absolute;left:0;top:0;bottom:0;width:5px}
.hub-pack strong{font-size:13.5px}
.hub-pack small{font-size:11px;line-height:1.45}
.hub-pack span{font-size:11px;font-weight:700;margin-top:4px}
.hub #hub-search{border:1px solid #cfd6dd;border-radius:999px;background:#ffffffc9;padding:9px 15px;font:12px 'DM Sans',sans-serif;min-width:200px}

/* setup */
.hub-status>div,.hub-dests>div{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #e6eaee}
.hub-status>div:last-child,.hub-dests>div:last-child{border-bottom:0}
.hub-status strong,.hub-dests strong{font-size:13px}
.hub-status p{font-size:11.5px;margin-top:3px;line-height:1.5}
.hub-status small{display:block;font-size:11px;margin-top:4px;line-height:1.5}
.hub-dests small{display:block;font-size:11px;margin-top:2px}
.hub-dests{margin-bottom:6px}

/* dialogs */
.hub-modal h2{margin-bottom:4px}
.hub-modal label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;margin-top:12px}
.hub-modal input,.hub-modal select,.hub-modal textarea{border:1px solid #cfd6dd;border-radius:12px;background:#fff;padding:10px 12px;font:13px 'DM Sans',sans-serif;width:100%;box-sizing:border-box}
.hub-modal textarea{resize:vertical;line-height:1.5}
.hub-modal .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.hub-modal .form-grid .full{grid-column:1/-1}
.hub-more{margin-top:14px;font-size:12px}
.hub-more summary{cursor:pointer;font-weight:600}
.hub-modal [role=alert]:not(:empty){margin-top:12px;font-size:12px;background:#f8dcd6;border-radius:10px;padding:8px 12px}

@media(max-width:1100px){.hub .signal-grid.hub-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-two{grid-template-columns:1fr}.hub-journey{grid-template-columns:repeat(3,minmax(0,1fr))}.hub-packs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.hub-journey,.hub-packs{grid-template-columns:1fr 1fr}.hub .signal-grid.hub-kpis{grid-template-columns:1fr 1fr}.hub-kpi>strong{font-size:26px}.hub-card{padding:16px!important}.hub-modal .form-grid{grid-template-columns:1fr}.hub-bar{align-items:flex-start;flex-direction:column}.hub-pack{padding-left:16px}}
@media(prefers-reduced-motion:reduce){.hub-skeleton:after,.hub-live.busy i{animation:none}}

/* v2: readable on wide screens, scoreboard, email tab */
.hub{max-width:1380px;width:100%;margin-inline:auto;font-size:14.5px}
.hub .heading p{font-size:14px}
.hub .insight-tabs .btn{font-size:12.5px;padding:9px 16px}
.hub .signal-grid.hub-score{grid-template-columns:repeat(6,minmax(0,1fr))}
.hub-kpi>span{font-size:12.5px!important}
.hub-kpi>small{font-size:12px!important}
.hub-score .hub-kpi{padding:18px}
.hub-score .hub-kpi>strong{font-size:30px}
.hub-card-head h2{font-size:18.5px}
.hub-card-head p{font-size:13px}
.hub-table{font-size:13.5px}
.hub-table th{font-size:11px}
.hub-table td small{font-size:12px}
.hub-foot,.hub-note{font-size:12.5px}
.hub-step-top{font-size:12.5px}
.hub-step small{font-size:11.5px}
.hub-ghost,.hub-linkish,.hub-chip,.hub-chip-real{font-size:12px}
.hub-chip-real{border:1px solid #fff;border-radius:999px;padding:5px 12px;background:#ffffffb8}
.hub-chip-real b{margin-left:6px}
.hub .hub-quiet{color:var(--hub-quiet)!important;font-size:11.5px}
.hub-slim .hub-card-head{margin-bottom:0;align-items:center}
.hub-inner{gap:28px}
.hub-inner h3{font-size:13px;margin-bottom:6px}
.hub-seq-head td{background:#ffffff8a;border-top:1px solid var(--hub-line)}
.hub-seq-email td:first-child{padding-left:26px}
.hub-seq-n{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--hub-blue-soft);font-size:10.5px;font-weight:700;margin-right:9px}
.hub-pack strong{font-size:14.5px}.hub-pack small{font-size:12px}
.hub-status strong,.hub-dests strong{font-size:14px}.hub-status p,.hub-status small,.hub-dests small{font-size:12.5px}
@media(max-width:1250px){.hub .signal-grid.hub-score{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.hub .signal-grid.hub-score{grid-template-columns:1fr 1fr}.hub-score .hub-kpi>strong{font-size:24px}}

/* v3: links with folders, filters and editing */
.hub-links-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start}
.hub-folders{display:flex;flex-direction:column;gap:4px;position:sticky;top:12px}
.hub-folders h2{font-size:15px;margin-bottom:8px}
.hub-folder{display:flex;justify-content:space-between;align-items:center;gap:8px;border:0;background:none;border-radius:10px;padding:9px 11px;font:13.5px 'DM Sans',sans-serif;text-align:left;cursor:pointer}
.hub-folder span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hub-folder b{font-size:11.5px;background:#fff;border-radius:999px;padding:1px 8px}
.hub-folder:hover{background:#ffffff90}
.hub-folder.on{background:var(--hub-blue-soft);font-weight:700}
.hub-folders .btn{margin-top:8px}
.hub-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-bottom:12px}
.hub .hub-filters #hub-search{flex:1 1 220px;min-width:180px;font-size:13px}
.hub-filter{display:flex;flex-direction:column;gap:3px;font-size:11px;font-weight:600}
.hub-filter select{border:1px solid #cfd6dd;border-radius:999px;background:#ffffffc9;padding:8px 12px;font:13px 'DM Sans',sans-serif;max-width:210px}
.hub-check{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:7px;font-size:12.5px;padding-bottom:8px;white-space:nowrap}
.hub-several{margin:0 0 4px;padding:0}
.hub-modal .hub-check input{width:auto}
.hub-bulk{display:flex;gap:8px;flex-wrap:wrap;align-items:center;background:var(--hub-blue-soft);border-radius:14px;padding:9px 12px;margin-bottom:12px;font-size:13px}
.hub-bulk input{border:1px solid #8eb2d2;border-radius:999px;padding:8px 12px;font:13px 'DM Sans',sans-serif;background:#fff;min-width:170px}
.hub-table .hub-cb{width:28px;text-align:left!important;padding-right:0}
.hub-links th:nth-child(2),.hub-links td:nth-child(2),.hub-links th:nth-child(3),.hub-links td:nth-child(3),.hub-links th:nth-child(4),.hub-links td:nth-child(4){text-align:left}
.hub-links td .hub-linkish{font-size:13px}
@media(max-width:900px){.hub-links-layout{grid-template-columns:1fr}.hub-folders{position:static;flex-direction:row;flex-wrap:wrap}.hub-folders h2,.hub-folders .hub-foot{width:100%}}

/* v4: one clean chart style */
.hub-plot{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:200px auto;column-gap:10px;row-gap:6px;margin-top:6px}
.hub-plot-y{display:flex;flex-direction:column;justify-content:space-between;text-align:right;font-size:11px;line-height:1;margin:-5px 0}
.hub .hub-plot-y span,.hub .hub-plot-x span{color:var(--hub-quiet)!important}
.hub-plot-area{position:relative;min-width:0}
.hub-plot-grid{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between}
.hub-plot-grid i{display:block;height:1px;background:#dfe5ea}
.hub-plot-grid i:last-child{background:#b9c2cb}
.hub-plot-bars{position:absolute;inset:0;display:flex;align-items:flex-end;gap:3px}
.hub-plot-col{position:relative;flex:1;min-width:0;height:100%;display:flex;align-items:flex-end;justify-content:center}
.hub-plot-col i{display:block;width:100%;max-width:18px;min-height:2px;border-radius:5px 5px 0 0;background:linear-gradient(180deg,#6ca9ed,#9cc5f2)}
.hub-plot-col.peak i{background:linear-gradient(180deg,#3f86d8,#6ca9ed)}
.hub-plot-col:hover{background:#6ca9ed14}
.hub-plot-col:hover i{background:#3f86d8}
.hub-plot-col:hover:after{content:attr(data-tip);position:absolute;bottom:calc(100% + 4px);left:50%;transform:translateX(-50%);background:#1d2731;color:#fff;font-size:11.5px;padding:5px 9px;border-radius:8px;white-space:nowrap;z-index:5;pointer-events:none}
.hub-plot-col:first-child:hover:after,.hub-plot-col:nth-child(2):hover:after{left:0;transform:none}
.hub-plot-col:last-child:hover:after,.hub-plot-col:nth-last-child(2):hover:after{left:auto;right:0;transform:none}
.hub-plot-avg{position:absolute;left:0;right:0;border-top:1.5px dashed #84a85b;pointer-events:none}
.hub-plot-avg span{position:absolute;right:0;bottom:3px;font-size:10.5px;font-weight:700;background:#ffffffd9;border-radius:6px;padding:1px 6px}
.hub-plot-x{grid-column:2;display:flex;gap:3px}
.hub-plot-x span{flex:1;min-width:0;font-size:10.5px;white-space:nowrap;overflow:visible;text-align:left}
.hub-mini em{font-style:normal;font-size:11.5px}
.hub .hub-mini em{color:var(--hub-quiet)!important}
.hub-mini{flex-wrap:wrap;align-items:baseline}
.hub-plot-avg span{right:auto;left:4px}
.hub-plot.few .hub-plot-x span{text-align:center}
.hub-plot.few .hub-plot-col i{max-width:46px}
.hub-plot-avg{z-index:3}
.hub-plot-avg span{left:6px;bottom:4px;background:#fff;box-shadow:0 1px 4px #0000001a}
