/* Header/tenant layout only. Existing theme variables, page controls and login remain unchanged. */
html[data-design=enterprise] #workspace.with-workspace-header>aside .brand{padding:7px 10px 12px;gap:0}
html[data-design=enterprise] #workspace.with-workspace-header .enterprise-brand-logo{width:162px;height:53px;padding:7px}
html[data-design=enterprise] #workspace.with-workspace-header>aside .brand>span.workspace-newgen-name{display:block;width:100%;color:#fff;font-size:clamp(12px,1rem,17px);line-height:1.4;white-space:normal;overflow-wrap:anywhere;letter-spacing:.2px;font-weight:700}
html[data-design=enterprise] #workspace .workspace-company-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;min-width:0;padding:14px 10px;margin:4px 2px 16px;border:1px solid #ffffff25;border-radius:6px;color:#e0e8f5;flex-shrink:0}
html[data-design=enterprise] #workspace .workspace-company-card>div{min-width:0;width:100%}
html[data-design=enterprise] #workspace .workspace-company-card strong{display:block;font-size:13px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
html[data-design=enterprise] #workspace .workspace-company-card small{display:block;color:var(--sidebar-ink);font-size:10px;margin-top:3px}
html[data-design=enterprise] #workspace.with-workspace-header>aside .sidebar-foot{display:none!important}
html[data-design=enterprise] #workspace .workspace-company-mark img{width:96px;height:55px;object-fit:contain;background:white;border-radius:5px;padding:4px}
html[data-design=enterprise] #workspace .workspace-logo-dialog{box-sizing:border-box;inset:0;margin:auto;height:auto;max-height:calc(100dvh - 24px);overflow:auto;animation:none;max-width:calc(100vw - 24px);width:440px;background:var(--surface);color:var(--ink);border:1px solid var(--line);padding:23px;border-radius:8px}
html[data-design=enterprise] #workspace .workspace-logo-dialog form{display:grid;gap:16px}
html[data-design=enterprise] #workspace .workspace-logo-dialog label{display:grid;gap:7px}
html[data-design=enterprise] #workspace .workspace-logo-dialog p{font-size:12px;color:var(--muted);margin:0;line-height:1.6}
html[data-design=enterprise] #workspace .workspace-logo-dialog p.error{color:#ac2f46}
html[data-design=enterprise] #workspace .workspace-logo-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}
html[data-design=enterprise] #workspace .workspace-logo-heading h2{font-size:18px;margin:0}
html[data-design=enterprise] #workspace .workspace-company-mark{display:grid;place-items:center;max-width:100%;width:96px;height:55px;border-radius:5px;background:#ffffff12;color:#d1e0f8;font-size:24px;font-weight:650}
html[data-design=enterprise] #workspace .workspace-topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--surface);color:var(--ink);border-bottom:1px solid var(--line);min-height:65px;margin:-24px -28px 22px;padding:12px 28px;position:relative;z-index:15}
html[data-design=enterprise] #workspace .workspace-page-search{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:5px;position:relative;width:320px;min-width:0;max-width:100%;padding:0 10px;color:var(--muted);background:var(--tint)}
html[data-design=enterprise] #workspace .workspace-page-search>span{font-size:21px;line-height:1}
html[data-design=enterprise] #workspace .workspace-page-search input{background:transparent;color:var(--ink);border:0;padding:9px 0;min-height:34px;box-shadow:none;outline-offset:3px;min-width:0;width:100%;font-size:12px}
html[data-design=enterprise] #workspace .workspace-page-search kbd{border:1px solid var(--line);font-size:10px;color:var(--muted);padding:1px 6px;border-radius:3px;background:var(--surface);font-family:inherit}
html[data-design=enterprise] #workspace .workspace-search-results{position:absolute;top:calc(100% + 6px);left:0;width:100%;max-height:330px;overflow:auto;z-index:25;background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:6px;box-shadow:0 8px 24px #10274318}
html[data-design=enterprise] #workspace .workspace-search-results button{display:block;width:100%;text-align:left;background:transparent;color:var(--ink);border:0;padding:10px;font-size:12px;font-weight:400}
html[data-design=enterprise] #workspace .workspace-search-results button:hover,html[data-design=enterprise] #workspace .workspace-search-results button[aria-selected=true]{background:var(--selected);color:var(--heading)}
html[data-design=enterprise] #workspace .workspace-search-results p{font-size:12px;padding:8px;color:var(--muted)}
html[data-design=enterprise] #workspace .workspace-top-actions{display:flex;align-items:center;gap:16px;min-width:0}
html[data-design=enterprise] #workspace .workspace-mode{color:var(--muted);font-size:10px;border:1px solid var(--line);border-radius:4px;padding:4px 8px;white-space:nowrap}
html[data-design=enterprise] #workspace .workspace-icon-button{background:transparent;color:var(--muted);border:0;padding:5px;min-width:32px;font-size:19px;min-height:32px}
html[data-design=enterprise] #workspace .workspace-account{position:relative;border:0;margin:0;padding:0}
html[data-design=enterprise] #workspace .workspace-account>summary{display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none;color:var(--ink);font-size:12px;min-height:36px}
html[data-design=enterprise] #workspace .workspace-account>summary::-webkit-details-marker{display:none}
html[data-design=enterprise] #workspace .workspace-avatar{display:grid;place-items:center;border-radius:50%;width:33px;height:33px;background:var(--selected);color:var(--heading);font-size:11px;font-weight:600}
html[data-design=enterprise] #workspace .workspace-avatar img{width:33px;height:33px;border-radius:50%;object-fit:cover}
html[data-design=enterprise] #workspace .workspace-account-name{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-design=enterprise] #workspace .workspace-account-menu{position:absolute;right:0;top:calc(100% + 10px);min-width:200px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 24px #10274318;z-index:30}
html[data-design=enterprise] #workspace .workspace-account-menu strong{display:block;font-size:10px;color:var(--muted);font-weight:500;padding:8px 10px;border-bottom:1px solid var(--line);margin-bottom:5px}
html[data-design=enterprise] #workspace .workspace-account-menu button{display:block;width:100%;text-align:left;background:transparent;border:0;color:var(--ink);font-size:12px;font-weight:400;padding:9px 10px}
html[data-design=enterprise] #workspace .workspace-account-menu button:hover{background:var(--tint)}
html[data-design=enterprise] #workspace .workspace-topbar [hidden]{display:none!important}
@media(max-width:1100px){html[data-design=enterprise] #workspace .workspace-topbar{margin:-20px -20px 20px;padding:12px 20px}html[data-design=enterprise] #workspace .workspace-mode{display:none}}
@media(max-width:760px){
 html[data-design=enterprise] #workspace.with-workspace-header>aside .brand{padding:0 90px 7px 0;min-height:45px;justify-content:flex-start}
 html[data-design=enterprise] #workspace.with-workspace-header .enterprise-brand-logo{width:140px;height:43px;padding:5px}
 html[data-design=enterprise] #workspace .workspace-company-card{margin:6px 0 8px;padding:8px 10px}
 html[data-design=enterprise] #workspace .workspace-topbar{margin:-16px -12px 16px;padding:11px 12px;gap:10px;min-height:60px}
 html[data-design=enterprise] #workspace .workspace-page-search{width:auto;min-width:0;flex:1 1 0;padding-inline:7px}
 html[data-design=enterprise] #workspace .workspace-page-search input{font-size:16px!important;min-height:36px}
 html[data-design=enterprise] #workspace .workspace-page-search kbd,html[data-design=enterprise] #workspace .workspace-account-name{display:none}
 html[data-design=enterprise] #workspace .workspace-top-actions{gap:7px}
 html[data-design=enterprise] #workspace .workspace-icon-button{font-size:19px;padding:3px;min-width:30px}
 html[data-design=enterprise] #workspace .workspace-search-results{min-width:240px;max-width:calc(100vw - 24px)}
}

html[data-design=enterprise] #workspace .workspace-brand-footer{display:flex;justify-content:center;flex-shrink:0;padding:16px 8px 12px;border-top:1px solid #ffffff25;margin-top:16px}
html[data-design=enterprise] #workspace .workspace-brand-footer .enterprise-brand-logo{display:block;width:146px;height:49px;object-fit:contain;padding:6px}
html[data-design=enterprise] #workspace .workspace-company-logo-settings{margin-top:22px;padding:20px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
html[data-design=enterprise] #workspace .workspace-company-logo-settings h3{margin-top:0}
html[data-design=enterprise] #workspace .workspace-company-logo-settings p{font-size:12px;color:var(--muted)}
