/* Approved native login/workspace extension; no new palette or primary menu. */
.company-choices { list-style:none; padding:0; margin:24px 0; display:grid; gap:12px; }
.company-choice { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 18px; border:1px solid var(--line); border-radius:14px; color:var(--ink); text-decoration:none; background:var(--panel-solid); }
.company-choice span:first-child { display:grid; gap:4px; min-width:0; }
.company-choice b { font-size:15px; overflow-wrap:anywhere; }
.company-choice small,.company-empty { color:var(--ink-muted); font-size:12px; }
.company-choice:hover { border-color:var(--line-strong); background:var(--panel-muted); }
.company-choice:focus-visible,.commercial-company-brand:focus-visible { outline:2px solid var(--ink-soft); outline-offset:3px; }
.commercial-company-brand { display:flex!important; align-items:center; gap:10px; max-width:100%; }
.commercial-company-brand .commercial-company-mark { display:grid; place-items:center; width:32px; height:32px; flex:none; border-radius:10px; background:var(--panel-muted); font-size:16px; letter-spacing:0; }
.commercial-company-brand .commercial-company-caption { display:grid; min-width:0; gap:3px; font-size:12px; letter-spacing:0; text-transform:none; }
.commercial-company-caption b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.commercial-company-caption small { color:var(--ink-muted); font-size:10px; font-weight:400; }
.is-authenticated .brand.commercial-company-brand span { display:grid; padding-left:0; border:0; letter-spacing:0; }
.is-authenticated .brand.commercial-company-brand .commercial-company-mark { width:32px; color:var(--ink); }
.is-authenticated .brand.commercial-company-brand[href="/workspaces"] {
  min-height:44px;
  gap:0;
}
.is-authenticated .brand.commercial-company-brand[href="/workspaces"] > span { display:none; }
.is-authenticated .brand.commercial-company-brand[href="/workspaces"]::before {
  content:"";
  display:block;
  width:152px;
  max-width:100%;
  aspect-ratio:920 / 244;
  background:url("/static/aurora-home/assets/logo.svg") center / contain no-repeat;
  filter:brightness(.43);
}
.page-login .login-form .email-confirmation { display:flex; align-items:center; gap:10px; min-height:44px; }
.page-login .login-form .email-confirmation input[type="checkbox"] { width:20px; height:20px; min-height:20px; flex:none; appearance:auto; }

/* Owner-approved Warm Paper material. Paint only; native geometry is locked.
   The injected company brand scopes this to commercial workspaces. */
body.is-authenticated:has(.commercial-company-brand) {
  --commercial-paper:#f3f2ee;
  --commercial-sheet:#fff;
  --commercial-edge:#e7e5df;
  --commercial-lift:0 14px 38px #342c1d0d;
  --commercial-control-lift:0 3px 10px #342c1d08;
  --line:var(--commercial-edge);
  background:var(--commercial-paper)!important;
}
body.is-authenticated:has(.commercial-company-brand) #main-content,
body.is-authenticated:has(.commercial-company-brand) .topbar {
  background:var(--commercial-paper)!important;
}
body.is-authenticated:has(.commercial-company-brand) .topbar { border-right-color:transparent!important; }
body.is-authenticated:has(.commercial-company-brand) :is(.calendar-workspace,.calendar-main,.calendar-commandbar,.calendar-instruction,.calendar-v2-provider-filter) {
  background:transparent!important;
}
body.is-authenticated:has(.commercial-company-brand) :is(.panel,.calendar-board-wrap) {
  background-color:var(--commercial-sheet)!important;
  border-color:var(--commercial-edge)!important;
  box-shadow:var(--commercial-lift)!important;
}
body.is-authenticated:has(.commercial-company-brand) :is(.provider-lane,.calendar-time-rail,.provider-lane>header,.calendar-time-rail-header) {
  background-color:var(--commercial-sheet)!important;
  border-color:var(--commercial-edge)!important;
}
body.is-authenticated:has(.commercial-company-brand) :is(.provider-schedule,.calendar-time-labels) { background-color:var(--commercial-sheet)!important; }
body.is-authenticated:has(.commercial-company-brand) :is(.button.secondary,.auth-chip .button,.calendar-filter-popover>summary,.calendar-v2-provider-filter select,.calendar-view-switch,.nav-section a.is-active) {
  background:var(--commercial-sheet)!important;
  border-color:var(--commercial-edge)!important;
  box-shadow:var(--commercial-control-lift)!important;
}
body.is-authenticated:has(.commercial-company-brand) .commercial-company-mark { background:#ffedcf!important; }
body.is-authenticated:has(.commercial-company-brand) :is(.auth-chip,.sidebar-tools,.calendar-day-summary) { border-color:var(--commercial-edge)!important; }
@media(hover:hover) {
  body.is-authenticated:has(.commercial-company-brand) .button.secondary:hover { background:#fffdf8!important;border-color:#d6cbbb!important; }
}
@media(max-width:760px) {
  body.is-authenticated:has(.commercial-company-brand) .mobile-topbar { background:var(--commercial-paper)!important;backdrop-filter:none; }
  body.is-authenticated:has(.commercial-company-brand) .mobile-bottom-nav::before { background:var(--commercial-sheet); }
}
