/* Logo Studio workspace: shared entry palette, restrained surfaces, readable controls.
   Scoped to the workspace; office routes, live values and permission hooks remain original. */
html:not([data-dark="true"]) body.page-hub{background:#f3f7f4!important}
html body.page-hub #hubWorkspace{--hc-bg:#f3f7f4;--hc-surface:#fff;--hc-soft:#eef5f0;--hc-ink:#183629;--hc-muted:#50685b;--hc-line:#dce6de;--hc-brand:#287a4e;max-width:1280px!important;width:100%!important;margin:0 auto!important;padding:24px 32px 40px!important;display:flex;flex-direction:column;gap:24px;font-family:HubEntryThai,'Noto Sans Thai',Tahoma,sans-serif!important;color:var(--hc-ink);box-sizing:border-box}
html[data-dark="true"] #hubWorkspace{--hc-bg:#15251e!important;--hc-surface:#1e3027!important;--hc-soft:#293f32!important;--hc-ink:#eef7f0!important;--hc-muted:#b5c7ba!important;--hc-line:#425a4b!important;--hc-brand:#90d8a9!important}
html[data-hub-theme="ocean"] #hubWorkspace{--hc-brand:#286faa}
html[data-hub-theme="celebration"] #hubWorkspace{--hc-brand:#79529b}
html[data-hub-theme="forest"] #hubWorkspace{--hc-brand:#287a4e}
#hubWorkspace *,#hubWorkspace *:before,#hubWorkspace *:after{box-sizing:border-box}
#hubWorkspace button,#hubWorkspace input,#hubWorkspace select,#hubWorkspace textarea{font-family:inherit!important}
#hubWorkspace button:not([hidden]),#hubWorkspace select,#hubWorkspace input:not([type=checkbox]):not([type=radio]){min-height:44px}
#hubWorkspace a:focus-visible,#hubWorkspace button:focus-visible,#hubWorkspace input:focus-visible,#hubWorkspace select:focus-visible{outline:3px solid var(--hc-brand)!important;outline-offset:3px!important}
html body.page-hub #hubWorkspace>.topbar{order:0!important;display:flex!important;align-items:center;flex-wrap:wrap;gap:16px 28px;min-height:76px;margin:0!important;padding:0 0 20px!important;border:0!important;border-bottom:1px solid var(--hc-line)!important;border-radius:0!important;background:none!important;box-shadow:none!important;position:static!important}
#hubWorkspace>.topbar .brand{gap:10px}
#hubWorkspace>.topbar .brand-mark{width:42px;height:42px;background:none!important;box-shadow:none!important;border:0!important}
#hubWorkspace>.topbar .brand-mark img{width:40px;height:40px;object-fit:contain}
#hubWorkspace>.topbar .brand strong{color:var(--hc-ink)!important;font-size:20px!important;font-weight:700!important}
#hubWorkspace>.topbar .brand small{color:var(--hc-muted)!important;font-size:10px;letter-spacing:2px}
#hubWorkspace>.topbar .hub-clock{margin-left:auto;background:none!important;box-shadow:none!important;border:0!important;padding:0!important;color:var(--hc-muted)!important;min-width:0}
#hubWorkspace>.topbar .hub-clock-label{display:none}
#hubWorkspace>.topbar .hub-clock time{font-size:20px!important;color:var(--hc-ink)!important;line-height:1.3}
#hubWorkspace>.topbar .hub-clock-date{font-size:12px!important}
#hubWorkspace .top-actions{gap:8px;flex-wrap:wrap}
#hubWorkspace .top-actions .secure{display:none}
#hubWorkspace .top-actions button{border:1px solid var(--hc-line)!important;background:var(--hc-surface)!important;color:var(--hc-muted)!important;box-shadow:none!important;border-radius:10px!important;font-size:13px!important;font-weight:500!important;padding:8px 12px!important;min-height:44px}
html body.page-hub #hubWorkspace>.hub-workspace-news{order:2!important;margin:0!important;padding:20px!important;background:var(--hc-surface)!important;border:1px solid var(--hc-line)!important;border-radius:16px!important;box-shadow:none!important}
#hubWorkspace .news-board-head{display:flex!important;align-items:center;justify-content:space-between;gap:12px}
#hubWorkspace .news-board-head .eyebrow{display:none}
#hubWorkspace .news-board-head h2{font-size:20px!important;font-weight:650!important;line-height:1.5!important;color:var(--hc-ink)!important}
#hubWorkspace .news-board-head>div>p:last-child{font-size:13px!important;font-weight:400!important;color:var(--hc-muted)!important;line-height:1.8;margin:4px 0 0!important}
#hubWorkspace .news-manage{font-size:13px!important;font-weight:500!important;background:var(--hc-soft)!important;border:1px solid var(--hc-line)!important;color:var(--hc-brand)!important;border-radius:10px!important;box-shadow:none!important}
#hubWorkspace .news-list{margin-top:14px!important;gap:12px!important}
#hubWorkspace .news-card{border:1px solid var(--hc-line)!important;border-left:3px solid var(--news-accent,var(--hc-brand))!important;border-radius:12px!important;background:var(--hc-surface)!important;color:var(--hc-ink)!important;box-shadow:none!important;padding:16px!important;min-height:0!important}
#hubWorkspace .news-card:before,#hubWorkspace .news-card:after{display:none!important}
#hubWorkspace .news-card h3{font-size:16px!important;font-weight:600!important;line-height:1.6!important;margin:6px 0!important;color:var(--hc-ink)!important}
#hubWorkspace .news-card p{font-size:14px!important;font-weight:400!important;line-height:1.8!important;color:var(--hc-muted)!important}
#hubWorkspace .news-card .news-kind,#hubWorkspace .news-card time{font-size:12px!important;font-weight:500!important;letter-spacing:0!important}
html body.page-hub #hubWorkspace>#hub-department-floor-v228{order:1!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0!important}
#hubWorkspace .hub-department-floor-head-v228{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px!important;margin:0 0 18px!important}
#hubWorkspace .hub-department-floor-head-v228 .eyebrow{display:none}
#hubWorkspace .hub-department-floor-head-v228 h2{font-size:24px!important;font-weight:650!important;line-height:1.5!important;color:var(--hc-ink)!important}
#hubWorkspace .hub-department-floor-head-v228 p:last-child{font-size:14px!important;font-weight:400!important;line-height:1.8;color:var(--hc-muted)!important;margin:4px 0 0!important}
#hubWorkspace #hub-department-view-toggle-v228,#hubWorkspace .hub-office-motion-toggle-v235{font-size:14px!important;font-weight:600!important;min-height:44px!important;padding:10px 14px!important;background:var(--hc-surface)!important;color:var(--hc-brand)!important;border:1px solid var(--hc-line)!important;border-radius:12px!important;box-shadow:none!important}
#hubWorkspace .is-map-hidden .hub-office-controls-v235{display:none!important}
#hubWorkspace .is-map-hidden .hub-department-stage-v228{display:block!important;position:relative!important;height:auto!important;min-height:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;aspect-ratio:auto!important;overflow:visible!important}
#hubWorkspace .is-map-hidden .hub-department-stage-v228:before,#hubWorkspace .is-map-hidden .hub-department-stage-v228:after,#hubWorkspace .is-map-hidden .hub-department-core-v228,#hubWorkspace .is-map-hidden .hub-office-simulation-v235{display:none!important}
#hubWorkspace .is-map-hidden .primary-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;position:static!important;inset:auto!important;gap:16px!important;width:100%!important;padding:0!important;margin:0!important}
#hubWorkspace .is-map-hidden .primary-card{position:relative!important;inset:auto!important;transform:none!important;grid-area:auto!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;width:100%!important;min-width:0!important;min-height:198px!important;height:auto!important;padding:22px!important;border:1px solid var(--hc-line)!important;border-radius:16px!important;background:var(--hc-surface)!important;box-shadow:0 2px 4px #173d2d03!important;color:var(--hc-ink)!important;text-align:left!important;overflow:visible!important;isolation:isolate}
#hubWorkspace .is-map-hidden .primary-card:before,#hubWorkspace .is-map-hidden .primary-card:after{display:none!important}
#hubWorkspace .is-map-hidden .primary-card:hover{border-color:var(--hc-brand)!important;background:var(--hc-surface)!important;box-shadow:0 6px 18px #173d2d09!important}
#hubWorkspace .is-map-hidden .primary-card>.primary-icon{position:static!important;display:grid!important;place-items:center;width:40px!important;height:40px!important;margin:0 0 12px!important;border:0!important;border-radius:12px!important;background:var(--hc-soft)!important;color:var(--hc-brand)!important;box-shadow:none!important;font-size:14px!important;font-weight:650!important;flex-shrink:0}
#hubWorkspace .is-map-hidden .primary-card>small{display:none!important}
#hubWorkspace .is-map-hidden .primary-card h3{font-size:20px!important;line-height:1.6!important;font-weight:650!important;color:var(--hc-ink)!important;margin:0 0 4px!important;white-space:normal!important;overflow:visible!important}
#hubWorkspace .is-map-hidden .primary-card p{display:block!important;font-size:14px!important;font-weight:400!important;line-height:1.8!important;color:var(--hc-muted)!important;margin:0 0 14px!important;white-space:normal!important;overflow:visible!important}
#hubWorkspace .is-map-hidden .primary-card>b{display:block!important;font-size:13px!important;line-height:1.7;font-weight:600!important;color:var(--hc-brand)!important;margin-top:auto!important;padding:10px 0 0!important;position:static!important;background:none!important;border:0!important;border-top:1px solid var(--hc-line)!important;border-radius:0!important;width:100%}
#hubWorkspace .is-map-hidden .primary-access-label{font-size:11px!important;display:block;font-weight:400!important;color:var(--hc-muted)!important;background:none!important;padding:0!important}
#hubWorkspace .is-map-hidden .revenue-partner-links{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;width:100%;margin-top:auto!important}
#hubWorkspace .is-map-hidden .revenue-partner-links>a{min-height:44px;display:flex!important;align-items:center;justify-content:center;padding:10px!important;border:1px solid var(--hc-line)!important;border-radius:10px!important;background:var(--hc-soft)!important;color:var(--hc-brand)!important;box-shadow:none!important}
#hubWorkspace .is-map-hidden .revenue-partner-links strong{font-size:14px!important;font-weight:600!important}
#hubWorkspace .is-map-hidden .revenue-partner-links span{display:none!important}
#hubWorkspace .is-map-hidden .hub-office-shortcuts-v262{position:static!important;display:flex!important;flex-wrap:wrap;gap:8px!important;margin:0 0 16px!important;width:auto!important}
#hubWorkspace .is-map-hidden .hub-office-shortcut-v262{position:static!important;transform:none!important;min-height:44px!important;min-width:0!important;width:auto!important;flex:0 1 auto;gap:8px!important;padding:8px 12px!important;border:1px solid var(--hc-line)!important;border-radius:10px!important;background:var(--hc-surface)!important;box-shadow:none!important;color:var(--hc-muted)!important;text-shadow:none!important}
#hubWorkspace .is-map-hidden .hub-office-shortcut-icon-v262{display:none!important}
#hubWorkspace .is-map-hidden .hub-office-shortcut-copy-v262 strong{font-size:13px!important;font-weight:500!important;line-height:1.6;color:var(--hc-muted)!important}
#hubWorkspace .is-map-hidden .hub-office-shortcut-copy-v262 small{display:none!important}
#hubWorkspace .secondary-heading{margin:24px 0 12px!important;gap:12px}
#hubWorkspace .secondary-heading .eyebrow{display:none}
#hubWorkspace .secondary-heading h2{font-size:19px!important;font-weight:600!important;color:var(--hc-ink)!important;line-height:1.6}
#hubWorkspace .secondary-heading>span{font-size:13px!important;color:var(--hc-muted)!important}
#hubWorkspace .secondary-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0!important}
#hubWorkspace .secondary-grid>a{display:flex;align-items:center;gap:10px;min-height:68px!important;background:var(--hc-surface)!important;color:var(--hc-ink)!important;border:1px solid var(--hc-line)!important;border-radius:12px!important;padding:14px!important;box-shadow:none!important}
#hubWorkspace .secondary-grid>a>span{width:32px;height:32px;border-radius:9px;background:var(--hc-soft)!important;color:var(--hc-brand)!important;display:grid;place-items:center;font-size:12px!important;font-weight:600!important;flex-shrink:0}
#hubWorkspace .secondary-grid strong{font-size:14px!important;font-weight:550!important;line-height:1.7}
#hubWorkspace .secondary-grid i{margin-left:auto;font-size:14px;font-style:normal}
html body.page-hub #hubWorkspace>.hub-business-tools-top-v266{order:3!important;margin:0!important;padding:22px!important;background:var(--hc-surface)!important;border:1px solid var(--hc-line)!important;border-radius:16px!important;box-shadow:none!important}
#hubWorkspace .hub-business-tools-top-v266>span{display:block;font-size:19px!important;font-weight:600!important;color:var(--hc-ink)!important;margin-bottom:14px;letter-spacing:0!important}
html body.page-hub #hubWorkspace .hub-business-tools-grid-v270{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;width:100%;margin:0!important}
html body.page-hub #hubWorkspace .hub-business-tool-v264{min-height:72px!important;min-width:0!important;padding:12px!important;gap:10px!important;border:1px solid var(--hc-line)!important;border-radius:12px!important;box-shadow:none!important;background:var(--hc-surface)!important;color:var(--hc-ink)!important;transform:none!important;text-shadow:none!important}
#hubWorkspace .hub-business-tool-v264:hover{background:var(--hc-soft)!important;border-color:var(--hc-brand)!important}
#hubWorkspace .hub-business-tool-logo-v264{width:34px!important;height:34px!important;flex:0 0 34px!important;border-radius:9px!important;box-shadow:none!important}
#hubWorkspace .hub-business-tool-copy-v264 strong{font-size:14px!important;font-weight:600!important;line-height:1.6!important;color:var(--hc-ink)!important}
#hubWorkspace .hub-business-tool-copy-v264 small{font-size:12px!important;font-weight:400!important;line-height:1.6!important;color:var(--hc-muted)!important}
html body.page-hub #hubWorkspace>#hub-owner-printer-v277,html body.page-hub #hubWorkspace>#hub-owner-dashboard-v258{order:4!important;margin:0!important;padding:24px!important;background:var(--hc-surface)!important;border:1px solid var(--hc-line)!important;border-radius:16px!important;box-shadow:none!important}
#hubWorkspace .hub-owner-head-v258 h2,#hubWorkspace #hub-owner-printer-title-v277{font-size:22px!important;font-weight:650!important;line-height:1.6;color:var(--hc-ink)!important}
#hubWorkspace .hub-owner-grid-v258{gap:14px!important}
#hubWorkspace .hub-owner-grid-v258>article{border:1px solid var(--hc-line)!important;border-radius:12px!important;background:var(--hc-surface)!important;box-shadow:none!important;padding:18px!important;color:var(--hc-ink)!important}
#hubWorkspace .hub-owner-grid-v258>article>strong{font-size:26px!important;font-weight:650!important;color:var(--hc-ink)!important;line-height:1.6}
#hubWorkspace .hub-owner-grid-v258 p{font-size:13px!important;line-height:1.8!important;font-weight:400!important;color:var(--hc-muted)!important}
#hubWorkspace .hub-owner-grid-v258 a small{display:none}
html body.page-hub #hubWorkspace>#hub-command-dashboard-v228{order:5!important;margin:0!important;padding:24px!important;background:var(--hc-surface)!important;border:1px solid var(--hc-line)!important;border-radius:16px!important;box-shadow:none!important}
#hubWorkspace .hub-command-head-v228 h2{font-size:22px!important;font-weight:650!important;color:var(--hc-ink)!important;line-height:1.6}
#hubWorkspace .hub-command-head-v228 .eyebrow,#hubWorkspace .hub-company-head-v245 .eyebrow{display:none}
#hubWorkspace .hub-command-head-v228 p,#hubWorkspace .hub-company-head-v245 p{font-size:14px!important;line-height:1.8!important;color:var(--hc-muted)!important;font-weight:400!important}
#hubWorkspace .hub-command-main-v228{gap:18px!important;margin-top:22px!important}
#hubWorkspace .hub-command-priority-v228,#hubWorkspace .hub-command-pipeline-v228{background:var(--hc-surface)!important;border:1px solid var(--hc-line)!important;border-radius:12px!important;box-shadow:none!important;padding:18px!important}
#hubWorkspace .hub-command-main-v228 h3{font-size:18px!important;font-weight:600!important;line-height:1.6;color:var(--hc-ink)!important}
#hubWorkspace .hub-command-priority-row-v228{border-radius:10px!important;box-shadow:none!important;padding:12px!important}
#hubWorkspace .hub-command-priority-row-v228 strong{font-size:14px!important;line-height:1.7;font-weight:550!important}
#hubWorkspace .hub-command-priority-row-v228 small{font-size:12px!important;font-weight:400!important;line-height:1.7}
#hubWorkspace .hub-command-pipeline-list-v228{gap:8px!important}
#hubWorkspace .hub-command-pipeline-list-v228>button{border-radius:10px!important;box-shadow:none!important;padding:12px!important;min-height:72px!important}
#hubWorkspace .hub-command-pipeline-list-v228 strong{font-size:14px!important;font-weight:550!important;line-height:1.7!important}
#hubWorkspace .hub-command-pipeline-list-v228 b{font-size:24px!important;font-weight:650!important}
#hubWorkspace .hub-company-dashboard-v245{background:none!important;border:0!important;border-top:1px solid var(--hc-line)!important;border-radius:0!important;padding:24px 0 0!important;margin-top:26px!important;box-shadow:none!important}
#hubWorkspace .hub-company-head-v245 h3{font-size:21px!important;font-weight:650!important;line-height:1.6;color:var(--hc-ink)!important}
#hubWorkspace .hub-company-metrics-v245{gap:10px!important;margin-top:18px!important}
#hubWorkspace .hub-company-metric-v245{border-radius:12px!important;box-shadow:none!important;min-height:112px!important;padding:16px 12px!important}
#hubWorkspace .hub-company-metric-v245 small{font-size:14px!important;font-weight:550!important;line-height:1.7}
#hubWorkspace .hub-company-metric-v245 b{font-size:27px!important;font-weight:650!important;line-height:1.5}
#hubWorkspace .hub-company-metric-v245 span{font-size:12px!important;font-weight:400!important;line-height:1.7}
#hubWorkspace .hub-company-filters-v245{padding:18px!important;gap:14px!important;background:var(--hc-soft)!important;border:1px solid var(--hc-line)!important;border-radius:12px!important}
#hubWorkspace .hub-company-filters-v245 label{font-size:13px!important;font-weight:550!important;gap:6px;color:var(--hc-ink)!important}
#hubWorkspace .hub-company-filters-v245 input,#hubWorkspace .hub-company-filters-v245 select{min-width:0;width:100%;font-size:14px!important;font-weight:400!important;padding:10px 12px!important;background:var(--hc-surface)!important;color:var(--hc-ink)!important;border:1px solid var(--hc-line)!important;border-radius:10px!important}
#hubWorkspace .hub-company-day-v255{border:1px solid var(--hc-line)!important;border-radius:12px!important;margin-top:12px!important;box-shadow:none!important;overflow:hidden}
#hubWorkspace .hub-company-day-toggle-v255{background:var(--hc-soft)!important;color:var(--hc-ink)!important;font-weight:550!important;padding:14px!important;min-height:52px}
#hubWorkspace .hub-company-row-v245{box-shadow:none!important;border-radius:10px!important;padding:16px!important;font-size:14px!important;line-height:1.8!important}
#hubWorkspace .hub-company-row-v245 strong{font-size:16px!important;font-weight:600!important}
#hubWorkspace>footer{order:10!important;margin:0!important;padding:12px 0!important;border-top:1px solid var(--hc-line)!important;font-size:12px!important;color:var(--hc-muted)!important}
/* Permission and empty-state visibility always wins over presentation grids. */
html body.page-hub #hubWorkspace[hidden],html body.page-hub #hubWorkspace [hidden]{display:none!important}
@media(max-width:1000px){html body.page-hub #hubWorkspace{padding:20px!important;gap:20px}html body.page-hub #hubWorkspace .hub-business-tools-grid-v270{grid-template-columns:repeat(3,minmax(0,1fr))!important}#hubWorkspace .secondary-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}#hubWorkspace .is-map-hidden .primary-card{padding:18px!important}.hub-company-filters-v245{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:680px){html body.page-hub #hubWorkspace{padding:16px!important;gap:22px}#hubWorkspace>.topbar .hub-clock{display:none}#hubWorkspace>.topbar .brand strong{font-size:18px!important}#hubWorkspace .top-actions{width:100%;gap:8px}#hubWorkspace .top-actions button{flex:1 1 auto;font-size:12px!important;padding:8px!important}html body.page-hub #hubWorkspace>.hub-workspace-news{padding:16px!important}#hubWorkspace .news-board-head{align-items:flex-start}#hubWorkspace .news-board-head>div>p:last-child{font-size:12px!important}#hubWorkspace .news-card h3{font-size:16px!important}#hubWorkspace .news-card p{font-size:14px!important}#hubWorkspace .hub-department-floor-head-v228{gap:12px!important}#hubWorkspace .hub-department-floor-head-v228 h2{font-size:22px!important}#hubWorkspace .hub-department-floor-head-v228 p:last-child{font-size:13px!important}#hubWorkspace .is-map-hidden .primary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}#hubWorkspace .is-map-hidden .primary-card{min-height:220px!important;padding:14px!important;border-radius:14px!important}#hubWorkspace .is-map-hidden .primary-card h3{font-size:17px!important}#hubWorkspace .is-map-hidden .primary-card p{font-size:13px!important;line-height:1.8!important}#hubWorkspace .is-map-hidden .primary-card>b{font-size:12px!important}#hubWorkspace .is-map-hidden .revenue-partner-links{grid-template-columns:1fr}#hubWorkspace .secondary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}#hubWorkspace .secondary-grid>a{padding:12px!important;min-height:68px!important}#hubWorkspace .secondary-grid strong{font-size:13px!important}#hubWorkspace .secondary-heading>span{display:none}html body.page-hub #hubWorkspace>.hub-business-tools-top-v266{padding:16px!important}html body.page-hub #hubWorkspace .hub-business-tools-grid-v270{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}html body.page-hub #hubWorkspace .hub-business-tool-v264{padding:10px!important;gap:8px!important;min-height:76px!important}#hubWorkspace .hub-business-tool-logo-v264{width:28px!important;height:28px!important;flex-basis:28px!important}#hubWorkspace .hub-business-tool-copy-v264 strong{font-size:13px!important}#hubWorkspace .hub-business-tool-copy-v264 small{font-size:12px!important}html body.page-hub #hubWorkspace>#hub-command-dashboard-v228,html body.page-hub #hubWorkspace>#hub-owner-dashboard-v258,html body.page-hub #hubWorkspace>#hub-owner-printer-v277{padding:16px!important}#hubWorkspace .hub-command-main-v228{grid-template-columns:1fr!important;gap:14px!important}#hubWorkspace .hub-company-metrics-v245{grid-template-columns:repeat(2,minmax(0,1fr))!important}#hubWorkspace .hub-company-filters-v245{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:14px!important;gap:12px!important}#hubWorkspace .hub-company-filters-v245 label:first-child{grid-column:1/-1}#hubWorkspace .hub-company-row-v245{padding:14px!important}#hubWorkspace .hub-owner-grid-v258{grid-template-columns:repeat(2,minmax(0,1fr))!important}#hubWorkspace .hub-owner-grid-v258>article{padding:12px!important}#hubWorkspace .hub-owner-grid-v258>article>strong{font-size:23px!important}}
@media(prefers-reduced-motion:reduce){#hubWorkspace a,#hubWorkspace button{transition:none!important}}

/* Keep the existing lightweight mobile menu even when desktop office was saved. */
@media(max-width:1023px){
#hubWorkspace .hub-department-floor-v228 .hub-office-controls-v235{display:none!important}
#hubWorkspace .hub-department-floor-v228 .hub-department-stage-v228{display:block!important;position:relative!important;height:auto!important;min-height:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;aspect-ratio:auto!important;overflow:visible!important}
#hubWorkspace .hub-department-floor-v228 .hub-department-stage-v228:before,#hubWorkspace .hub-department-floor-v228 .hub-department-stage-v228:after,#hubWorkspace .hub-department-floor-v228 .hub-department-core-v228,#hubWorkspace .hub-department-floor-v228 .hub-office-simulation-v235{display:none!important}
#hubWorkspace .hub-department-floor-v228 .primary-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;position:static!important;inset:auto!important;gap:16px!important;width:100%!important;padding:0!important;margin:0!important}
#hubWorkspace .hub-department-floor-v228 .primary-card{position:relative!important;inset:auto!important;transform:none!important;grid-area:auto!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;width:100%!important;min-width:0!important;min-height:198px!important;height:auto!important;padding:22px!important;border:1px solid var(--hc-line)!important;border-radius:16px!important;background:var(--hc-surface)!important;box-shadow:0 2px 4px #173d2d03!important;color:var(--hc-ink)!important;text-align:left!important;overflow:visible!important;isolation:isolate}
#hubWorkspace .hub-department-floor-v228 .primary-card:before,#hubWorkspace .hub-department-floor-v228 .primary-card:after{display:none!important}
#hubWorkspace .hub-department-floor-v228 .primary-card:hover{border-color:var(--hc-brand)!important;background:var(--hc-surface)!important;box-shadow:0 6px 18px #173d2d09!important}
#hubWorkspace .hub-department-floor-v228 .primary-card>.primary-icon{position:static!important;display:grid!important;place-items:center;width:40px!important;height:40px!important;margin:0 0 12px!important;border:0!important;border-radius:12px!important;background:var(--hc-soft)!important;color:var(--hc-brand)!important;box-shadow:none!important;font-size:14px!important;font-weight:650!important;flex-shrink:0}
#hubWorkspace .hub-department-floor-v228 .primary-card>small{display:none!important}
#hubWorkspace .hub-department-floor-v228 .primary-card h3{font-size:20px!important;line-height:1.6!important;font-weight:650!important;color:var(--hc-ink)!important;margin:0 0 4px!important;white-space:normal!important;overflow:visible!important}
#hubWorkspace .hub-department-floor-v228 .primary-card p{display:block!important;font-size:14px!important;font-weight:400!important;line-height:1.8!important;color:var(--hc-muted)!important;margin:0 0 14px!important;white-space:normal!important;overflow:visible!important}
#hubWorkspace .hub-department-floor-v228 .primary-card>b{display:block!important;font-size:13px!important;line-height:1.7;font-weight:600!important;color:var(--hc-brand)!important;margin-top:auto!important;padding:10px 0 0!important;position:static!important;background:none!important;border:0!important;border-top:1px solid var(--hc-line)!important;border-radius:0!important;width:100%}
#hubWorkspace .hub-department-floor-v228 .primary-access-label{font-size:11px!important;display:block;font-weight:400!important;color:var(--hc-muted)!important;background:none!important;padding:0!important}
#hubWorkspace .hub-department-floor-v228 .revenue-partner-links{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;width:100%;margin-top:auto!important}
#hubWorkspace .hub-department-floor-v228 .revenue-partner-links>a{min-height:44px;display:flex!important;align-items:center;justify-content:center;padding:10px!important;border:1px solid var(--hc-line)!important;border-radius:10px!important;background:var(--hc-soft)!important;color:var(--hc-brand)!important;box-shadow:none!important}
#hubWorkspace .hub-department-floor-v228 .revenue-partner-links strong{font-size:14px!important;font-weight:600!important}
#hubWorkspace .hub-department-floor-v228 .revenue-partner-links span{display:none!important}
#hubWorkspace .hub-department-floor-v228 .hub-office-shortcuts-v262{position:static!important;display:flex!important;flex-wrap:wrap;gap:8px!important;margin:0 0 16px!important;width:auto!important}
#hubWorkspace .hub-department-floor-v228 .hub-office-shortcut-v262{position:static!important;transform:none!important;min-height:44px!important;min-width:0!important;width:auto!important;flex:0 1 auto;gap:8px!important;padding:8px 12px!important;border:1px solid var(--hc-line)!important;border-radius:10px!important;background:var(--hc-surface)!important;box-shadow:none!important;color:var(--hc-muted)!important;text-shadow:none!important}
#hubWorkspace .hub-department-floor-v228 .hub-office-shortcut-icon-v262{display:none!important}
#hubWorkspace .hub-department-floor-v228 .hub-office-shortcut-copy-v262 strong{font-size:13px!important;font-weight:500!important;line-height:1.6;color:var(--hc-muted)!important}
#hubWorkspace .hub-department-floor-v228 .hub-office-shortcut-copy-v262 small{display:none!important}
}

#hubWorkspace .top-actions{display:flex!important;position:static!important}
#hubWorkspace .top-actions #hub-shortcuts-open-v257{position:static!important;inset:auto!important;transform:none!important}
#hubWorkspace .news-board-head>div{min-width:0;flex:1}
#hubWorkspace .news-manage{width:auto!important;flex:0 0 auto;white-space:normal}
@media(max-width:680px){
 #hubWorkspace .top-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
 #hubWorkspace .top-actions button{width:100%!important}
 #hubWorkspace .news-board-head{flex-direction:column!important;align-items:stretch!important}
 #hubWorkspace .news-manage{align-self:flex-start;min-height:44px;padding:8px 12px!important}
 #hubWorkspace .news-board-head h2{font-size:20px!important}
 #hubWorkspace .hub-department-floor-v228 .primary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 #hubWorkspace .hub-department-floor-v228 .primary-card{min-height:220px!important;padding:14px!important;border-radius:14px!important}
 #hubWorkspace .hub-department-floor-v228 .primary-card h3{font-size:17px!important}
 #hubWorkspace .hub-department-floor-v228 .primary-card p{font-size:13px!important;line-height:1.8!important}
 #hubWorkspace .hub-department-floor-v228 .primary-card>b{font-size:12px!important}
 #hubWorkspace .hub-department-floor-v228 .revenue-partner-links{grid-template-columns:1fr}
}
/* Dialogs share the workspace typography without changing form or permission hooks. */
html body.page-hub :is(#news-dialog,#hub-theme-dialog,#hub-shortcuts-dialog-v257){font-family:HubEntryThai,'Noto Sans Thai',Tahoma,sans-serif!important;width:min(680px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px)!important;padding:28px!important;border:1px solid #dce6de!important;border-radius:18px!important;background:#fff!important;color:#183629!important;box-shadow:0 20px 70px #173d2d30!important;overflow:auto;box-sizing:border-box}
html body.page-hub dialog::backdrop{background:#10291f70;backdrop-filter:blur(3px)}
html body.page-hub :is(#news-dialog,#hub-theme-dialog,#hub-shortcuts-dialog-v257) :is(input,select,textarea,button){font-family:inherit!important;font-size:14px!important;box-sizing:border-box}
html body.page-hub :is(#news-dialog,#hub-theme-dialog,#hub-shortcuts-dialog-v257) :is(h2,h3){color:inherit!important;line-height:1.6!important;font-weight:650!important}
html body.page-hub :is(#news-dialog,#hub-theme-dialog,#hub-shortcuts-dialog-v257) h2{font-size:24px!important;margin:8px 32px 16px 0!important}
html body.page-hub :is(#news-dialog,#hub-theme-dialog,#hub-shortcuts-dialog-v257) :is(p,small,label){line-height:1.8!important}
html body.page-hub #news-dialog :is(input:not([type=checkbox]):not([type=hidden]),select,textarea){background:#fbfdfb!important;color:#183629!important;border:1px solid #b9cdbf!important;border-radius:10px!important;padding:12px!important;min-height:46px;min-width:0;width:100%!important;font-weight:400!important}
html body.page-hub #news-dialog .news-form{gap:16px!important}
html body.page-hub #news-dialog :is(.hub-credential-guide article,.hub-code-settings,.hub-password-help){background:#f3f7f4!important;border:1px solid #dce6de!important;border-radius:12px!important;padding:16px!important;box-shadow:none!important;color:#183629!important}
html body.page-hub #news-dialog :is(.news-primary,.ghost),html body.page-hub #hub-theme-dialog .hub-theme-done{min-height:44px;background:#287a4e!important;color:white!important;border:1px solid #287a4e!important;border-radius:10px!important;box-shadow:none!important;padding:10px 16px!important;font-weight:550!important}
html body.page-hub :is(#news-dialog,#hub-theme-dialog) :is(.dialog-close,.hub-theme-close){width:44px!important;height:44px!important;min-height:44px!important;background:#eef5f0!important;color:#183629!important;border:1px solid #dce6de!important;box-shadow:none!important;border-radius:10px!important}
html body.page-hub #hub-theme-dialog :is(.hub-theme-panel,.hub-theme-fieldset){padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body.page-hub #hub-theme-dialog .hub-theme-option-card{background:#f8fbf8!important;color:#183629!important;border:1px solid #dce6de!important;border-radius:12px!important;box-shadow:none!important;min-height:78px}
html body.page-hub #hub-theme-dialog input:checked+.hub-theme-option-card{border:2px solid #287a4e!important;background:#eef5f0!important}
html body.page-hub #hub-theme-dialog .hub-theme-option-copy :is(strong,small){color:inherit!important}
html body.page-hub #hub-theme-dialog .hub-theme-mode{background:#f3f7f4!important;color:#183629!important;border:1px solid #dce6de!important;border-radius:12px!important;padding:16px!important}
html body.page-hub dialog :is(button,input,select,textarea,a):focus-visible{outline:3px solid #287a4e!important;outline-offset:3px!important}
html[data-dark="true"] body.page-hub :is(#news-dialog,#hub-theme-dialog,#hub-shortcuts-dialog-v257){background:#1e3027!important;color:#eef7f0!important;border-color:#425a4b!important}
html[data-dark="true"] body.page-hub #news-dialog :is(input:not([type=checkbox]),textarea,select,.hub-credential-guide article,.hub-code-settings,.hub-password-help),html[data-dark="true"] body.page-hub #hub-theme-dialog :is(.hub-theme-option-card,.hub-theme-mode){background:#293f32!important;color:#eef7f0!important;border-color:#526e5d!important}
@media(max-width:680px){html body.page-hub :is(#news-dialog,#hub-theme-dialog,#hub-shortcuts-dialog-v257){padding:20px!important}html body.page-hub #news-dialog :is(.hub-credential-guide,.news-form-grid,.hub-code-form,.hub-password-form){grid-template-columns:1fr!important}html body.page-hub #hub-theme-dialog .hub-theme-grid{grid-template-columns:1fr!important}html body.page-hub #hub-theme-dialog .hub-theme-mode{flex-wrap:wrap;gap:12px}}
/* Native hidden remains authoritative, including owner/role guarded panels. */
html body.page-hub #hubWorkspace[hidden],html body.page-hub #hubWorkspace [hidden],html body.page-hub dialog [hidden]{display:none!important}

#hubWorkspace :is(.hub-owner-head-v258,.hub-owner-printer-head-v277) p{font-size:14px!important;font-weight:400!important;line-height:1.8!important;color:var(--hc-muted)!important}
#hubWorkspace .hub-owner-head-v258 .eyebrow{display:none!important}
#hubWorkspace .hub-owner-controls-v258 label{font-size:13px!important;font-weight:550!important;color:var(--hc-ink)!important}
#hubWorkspace .hub-owner-controls-v258 input{font-size:14px!important;border:1px solid var(--hc-line)!important;background:var(--hc-surface)!important;color:var(--hc-ink)!important;border-radius:10px!important;padding:10px!important}
#hubWorkspace :is(.hub-owner-controls-v258,.hub-owner-printer-actions-v277,.hub-owner-lock-v258) :is(button,a){font-size:14px!important;font-weight:550!important;background:var(--hc-soft)!important;color:var(--hc-brand)!important;border:1px solid var(--hc-line)!important;border-radius:10px!important;box-shadow:none!important;min-height:44px;padding:10px 14px!important}
#hubWorkspace .hub-owner-grid-v258>article>header{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;font-weight:550!important;font-size:14px!important;color:var(--hc-ink)!important}
#hubWorkspace .hub-owner-grid-v258>article>header small{font-size:12px!important;font-weight:400!important;color:var(--hc-muted)!important}
#hubWorkspace .hub-owner-grid-v258 a{padding:10px!important;background:var(--hc-soft)!important;color:var(--hc-brand)!important;font-size:13px!important;font-weight:500!important;border:0!important;box-shadow:none!important;border-radius:10px!important;min-height:44px}
#hubWorkspace :is(.hub-owner-printer-periods-v277,.hub-owner-printer-totals-v277)>div{background:var(--hc-soft)!important;color:var(--hc-ink)!important;border:1px solid var(--hc-line)!important;border-radius:12px!important;box-shadow:none!important;padding:14px!important}
#hubWorkspace :is(.hub-owner-printer-periods-v277,.hub-owner-printer-totals-v277) dt{font-size:13px!important;font-weight:550!important;line-height:1.7}
#hubWorkspace :is(.hub-owner-printer-periods-v277,.hub-owner-printer-totals-v277) dd{font-size:26px!important;font-weight:650!important;color:var(--hc-ink)!important}
#hubWorkspace .hub-owner-boundary-v258,#hubWorkspace .hub-company-boundary-v245{background:none!important;color:var(--hc-muted)!important;border:0!important;border-top:1px solid var(--hc-line)!important;border-radius:0!important;padding:16px 0 0!important;font-size:12px!important;font-weight:400!important;line-height:1.8}
#hubWorkspace .primary-card :is(h3,p){overflow-wrap:normal!important;word-break:normal!important}
#hubWorkspace .is-map-hidden .primary-card>b{text-align:left!important;white-space:normal!important}
#hubWorkspace .is-map-hidden .primary-card>b:after{display:none!important}
#hubWorkspace .is-map-hidden .primary-heading .eyebrow{display:none!important}
@media(max-width:1023px){#hubWorkspace .primary-heading .eyebrow{display:none!important}#hubWorkspace .primary-card>b{text-align:left!important;white-space:normal!important}#hubWorkspace .primary-card>b:after{display:none!important}}
@media(max-width:680px){#hubWorkspace .hub-department-floor-v228 .primary-card h3{font-size:16px!important}#hubWorkspace .hub-owner-grid-v258>article>header{min-height:48px}#hubWorkspace .hub-owner-grid-v258 a{padding:8px!important}}

/* Retain saved theme and pastel controls while keeping restrained neutral surfaces. */
html[data-dark="true"] body.page-hub{background:#15251e!important}
html[data-hub-theme="ocean"]:not([data-dark="true"]) #hubWorkspace{--hc-soft:#eef4f8;--hc-line:#dce6ed}
html[data-hub-theme="celebration"]:not([data-dark="true"]) #hubWorkspace{--hc-soft:#f5f0f8;--hc-line:#e7dfeb}
html[data-hub-pastel="true"] body.page-hub{background:var(--hub-theme-bg)!important}
html[data-hub-pastel="true"] #hubWorkspace{--hc-bg:var(--hub-theme-bg)!important;--hc-surface:var(--hub-theme-surface)!important;--hc-soft:var(--hub-theme-surface-soft)!important;--hc-ink:var(--hub-theme-text)!important;--hc-muted:var(--hub-theme-muted)!important;--hc-line:var(--hub-theme-line)!important;--hc-brand:var(--hub-theme-accent)!important}
#hubWorkspace .hub-company-metric-v245 small{color:var(--hc-ink)!important}
#hubWorkspace .hub-company-metric-v245 span{color:var(--hc-muted)!important}
html body.page-hub #hub-theme-dialog .hub-theme-head .eyebrow{display:none!important}
html body.page-hub #hub-theme-dialog .hub-theme-head h2{font-size:22px!important;margin:0 12px 12px 0!important}
html body.page-hub #hub-theme-dialog .hub-theme-head{align-items:flex-start!important;gap:8px!important}
html body.page-hub #hub-theme-dialog .hub-theme-head>div{min-width:0;flex:1}

#hubWorkspace .is-map-hidden .primary-card h3{align-self:stretch!important;width:100%!important}
@media(max-width:1023px){#hubWorkspace .primary-card h3{align-self:stretch!important;width:100%!important}}
#hubWorkspace .is-map-hidden .primary-access-label{border:0!important;box-shadow:none!important}
html body.page-hub #news-dialog .eyebrow{display:none!important}
html body.page-hub #news-dialog h2{font-size:22px!important;text-wrap:balance}
html body.page-hub #news-dialog h3{font-size:18px!important;text-wrap:balance}
html body.page-hub #news-dialog :is(p,label,.hub-credential-guide span){font-size:14px!important;font-weight:400!important;line-height:1.8!important}
html body.page-hub #news-dialog :is(.hub-code-settings,.hub-password-settings)>div>p{color:inherit!important}
html body.page-hub #hubWorkspace .hub-brand-office-v289{flex-wrap:wrap;justify-content:flex-start!important;gap:10px}
html body.page-hub #hubWorkspace .hub-control-room-link-v291{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid var(--hc-line);border-radius:10px;background:var(--hc-surface);color:var(--hc-brand);font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}
html body.page-hub #hubWorkspace .hub-control-room-link-v291:hover{background:var(--hc-soft)}
html body.page-hub #hubWorkspace .hub-control-room-link-v291:focus-visible{outline:2px solid var(--hc-brand);outline-offset:3px}
/* Compact owner summaries: preserve every value and action without tall tiles. */
html body.page-hub #hubWorkspace>#hub-owner-printer-v277,
html body.page-hub #hubWorkspace>#hub-owner-dashboard-v258{padding:16px!important;border-radius:12px!important}
html body.page-hub #hubWorkspace :is(.hub-owner-head-v258 h2,#hub-owner-printer-title-v277){font-size:18px!important;line-height:1.4!important}
html body.page-hub #hubWorkspace :is(.hub-owner-head-v258,.hub-owner-printer-head-v277){gap:10px;margin-bottom:12px}
html body.page-hub #hubWorkspace .hub-owner-grid-v258{gap:10px!important}
html body.page-hub #hubWorkspace .hub-owner-grid-v258>article{min-height:0!important;padding:12px!important;gap:6px;border-radius:9px!important}
html body.page-hub #hubWorkspace .hub-owner-grid-v258>article>header{min-height:0!important}
html body.page-hub #hubWorkspace .hub-owner-grid-v258>article>strong{font-size:23px!important;line-height:1.25!important}
html body.page-hub #hubWorkspace .hub-owner-grid-v258 p{font-size:12px!important;line-height:1.5!important}
html body.page-hub #hubWorkspace .hub-owner-grid-v258 a{min-height:44px;padding:6px 8px!important;border-radius:7px!important}
html body.page-hub #hubWorkspace .hub-owner-printer-periods-v277{gap:8px}
html body.page-hub #hubWorkspace .hub-owner-printer-periods-v277>div{padding:9px 10px!important;gap:4px;border-radius:8px!important}
html body.page-hub #hubWorkspace .hub-owner-printer-periods-v277 dd{font-size:22px!important}
html body.page-hub #hubWorkspace .hub-owner-printer-totals-v277{margin-top:9px;padding-top:8px;gap:6px 20px}
html body.page-hub #hubWorkspace .hub-owner-printer-totals-v277>div{padding:0!important;border:0!important;border-radius:0!important;background:none!important;gap:4px 8px}
html body.page-hub #hubWorkspace .hub-owner-printer-totals-v277 dd{font-size:17px!important}
html body.page-hub #hubWorkspace :is(.hub-owner-controls-v258,.hub-owner-printer-actions-v277) :is(button,a){padding:6px 10px!important;font-size:13px!important}
@media(max-width:680px){
 html body.page-hub #hubWorkspace>#hub-owner-printer-v277,html body.page-hub #hubWorkspace>#hub-owner-dashboard-v258{padding:12px!important}
 html body.page-hub #hubWorkspace .hub-owner-grid-v258{gap:8px!important}
 html body.page-hub #hubWorkspace .hub-owner-grid-v258>article{padding:10px!important}
 html body.page-hub #hubWorkspace .hub-owner-grid-v258>article>strong{font-size:21px!important}
}
/* Owner summaries first, directly below the workspace header. */
html body.page-hub #hubWorkspace>#hub-owner-printer-v277{order:1!important}
html body.page-hub #hubWorkspace>#hub-owner-dashboard-v258{order:2!important}
html body.page-hub #hubWorkspace>#hub-department-floor-v228{order:3!important}
html body.page-hub #hubWorkspace>.hub-workspace-news{order:4!important}
html body.page-hub #hubWorkspace>.hub-business-tools-top-v266{order:5!important}
html body.page-hub #hubWorkspace>#hub-command-dashboard-v228{order:6!important}
html body.page-hub #hubWorkspace .hub-brand-office-v289{display:flex;align-items:center;gap:18px;max-width:100%}
html body.page-hub #hubWorkspace .hub-brand-office-v289 #hub-department-view-toggle-v228{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;flex:none;white-space:nowrap}
@media(max-width:480px){html body.page-hub #hubWorkspace .hub-brand-office-v289{gap:10px;width:100%;justify-content:space-between}html body.page-hub #hubWorkspace .hub-brand-office-v289 #hub-department-view-toggle-v228{font-size:12px!important;padding:8px!important}}
