/* Abhilekh on BKI Enterprise (platform mode only): the firm's colour in place of Bharat Khanitras' navy and copper, so a
   firm's screens carry only its own colour and neutral greys. --bke-colour is set by platform.js from the sync. */
:root.bke-brand{--bar:var(--bke-colour);--navy:var(--bke-colour);--navy-2:var(--bke-colour);--heading:var(--bke-colour);
  --copper:var(--bke-colour);--copper-2:color-mix(in srgb,var(--bke-colour) 80%,#fff)}
@media (prefers-color-scheme: dark){
  :root.bke-brand:not([data-theme="light"]){--bar:color-mix(in srgb,var(--bke-colour) 40%,#11161e);
    --navy-2:color-mix(in srgb,var(--bke-colour) 50%,#fff);--heading:color-mix(in srgb,var(--bke-colour) 50%,#fff)}
}
:root.bke-brand[data-theme="dark"]{--bar:color-mix(in srgb,var(--bke-colour) 40%,#11161e);
  --navy-2:color-mix(in srgb,var(--bke-colour) 50%,#fff);--heading:color-mix(in srgb,var(--bke-colour) 50%,#fff)}
.bke-brand .login-body{background:linear-gradient(160deg,var(--bar) 0%,#1d2430 100%)}

/* the firm's logo sits on a white plate: it is drawn for white paper, not for the coloured bar */
img.bke-logo,img.bke-logo.logo-dark,img.bke-logo.logo-light{mix-blend-mode:normal;background:#fff;border-radius:8px;padding:3px 8px;object-fit:contain}
.brand-logo.bke-logo{height:36px;margin:0}
.hero-logo.bke-logo{height:64px;padding:6px 10px}
.login-logo img.bke-logo{height:clamp(64px,14vh,104px);padding:8px 14px}
.bke-firm-name{font-size:22px;font-weight:700;color:var(--heading);text-align:center;padding:12px 6px 4px}

a.tb-btn.bke-apps{text-decoration:none;display:inline-block}
.bke-center{text-align:center}
.bke-alt{display:flex;justify-content:center;margin-top:14px}
#v-firm a.btn.big{margin-top:6px}
@media (max-width:900px){ .hero-logo.bke-logo{height:48px;max-width:38vw} }
/* a phone: the firm's logo in the bar is enough */
@media (max-width:640px){
  .hero-logo.bke-logo{display:none}
  .bke .topbar .brand-text{display:none}
  .brand-logo.bke-logo{height:30px;padding:2px 6px}
  a.tb-btn.bke-apps{padding:6px 9px}
}

/* Inside the e-Workplace (contract 4.11): shown in the firm's phone app's frame, whose bar already gives Back, the app's
   name and "Open in the browser". One set of controls: the phone app's. Abhilekh hides its logo, Day/Night, the
   person's name and role, the "All apps" link, the help link and, on My files, the menu (its entries move to
   Settings in the side navigation). Its own work stays: ← My files, Share, Versions, the folders and views, search.
   platform-inside.js sets the class; opened directly, none of this applies. */
.bke-inside .topbar .brand,.bke-inside .topbar .center-title,.bke-inside .topbar .who,.bke-inside #btnTheme,
.bke-inside #siteBadge,.bke-inside a.bke-apps,.bke-inside .hero-logo,.bke-inside .topbar a.tb-btn[href="/help"],
.bke-inside .files-body .topbar .menu,.bke-inside #menuList > button.bke-out{display:none!important}
.bke-inside .topbar{padding-top:6px;padding-bottom:6px;min-height:44px}
/* My files has nothing left in its bar: the bar goes, and the folders-and-views button sits in the page's heading */
.bke-inside .files-body > .topbar{display:none}
.bke-inside .files-hero > .side-toggle{flex:none;align-self:flex-start;margin-top:2px;background:var(--soft);color:var(--ink);
  border:1px solid var(--line);border-radius:9px;padding:6px 12px;font-size:17px;line-height:1.2}
.bke-inside .files-body .side{top:0;max-height:100vh}
.side-item.bke-settings{margin-top:6px}
.modal:has(> .bke-set){max-height:calc(100vh - 32px);overflow:auto;padding:18px 16px 14px}
.bke-set h2{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:2px}
.bke-set .bke-set-close{background:none;border:0;color:var(--muted);font-size:15px;padding:4px 8px;border-radius:8px}
.bke-set .bke-set-head{font-size:11.5px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);font-weight:700;margin:12px 2px 4px}
.bke-set .bke-set-item{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;border-radius:9px;padding:10px 10px;
  color:var(--ink);text-align:left;font-weight:500;font-size:14.5px}
.bke-set .bke-set-item:hover{background:var(--soft)}
.bke-set .bke-set-item .ic{width:18px;height:18px;opacity:.85}
.bke-set .bke-set-note{margin:12px 2px 0;font-size:12.5px}
