/* Public and owner sign-in surfaces share the cabinet's brand and preferences. */
a.brand { text-decoration: none; }
:root:not([data-surface="owner"]) .shell {
  display: flex;
  flex-direction: column;
  width: min(1200px, 100%);
  margin-inline: auto;
}
:root:not([data-surface="owner"]) .sidebar {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  width: 100%;
  height: auto;
  min-height: 104px;
  gap: 24px;
  padding: 24px 36px;
  border: 0;
}
:root:not([data-surface="owner"]) .sidebar-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  width: auto;
}
:root:not([data-surface="owner"]) .brand-lockup { display: flex; margin: 0; }
:root:not([data-surface="owner"]) .brand-standalone,
:root:not([data-surface="owner"]) .nav,
:root:not([data-surface="owner"]) .topbar,
:root:not([data-surface="owner"]) #sidebar-toggle,
:root:not([data-surface="owner"]) #instance-name,
:root:not([data-surface="owner"]) .language-label { display: none; }
:root:not([data-surface="owner"]) .sidebar-bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: auto;
  margin: 0;
  padding: 0;
}
:root:not([data-surface="owner"]) .sidebar-bottom button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  height: auto;
  padding: 10px 12px;
  font-size: 12px;
}
:root:not([data-surface="owner"]) .sidebar-bottom .button-label { display: inline; }
:root:not([data-surface="owner"]) .sidebar-bottom .select-control,
:root:not([data-surface="owner"]) .sidebar-bottom #language-select-trigger { width: var(--control-size) !important; }
:root:not([data-surface="owner"]) .sidebar-bottom #language-select-trigger {
  min-height: var(--control-size);
  padding: 0;
  border-color: transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}
:root:not([data-surface="owner"]) #language-select-trigger:hover,
:root:not([data-surface="owner"]) #language-select-trigger[aria-expanded="true"] { background: var(--surface2); color: var(--accent); }
:root:not([data-surface="owner"]) #language-select-trigger .select-chevron { display: none; }
:root:not([data-surface="owner"]) #language-select-trigger .select-value {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
:root:not([data-surface="owner"]) #owner-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
:root:not([data-surface="owner"]) #owner-button .icon { display: none; }
:root[data-surface="login"] #owner-button { display: none; }
:root:not([data-surface="owner"]) .main {
  width: 100%;
  max-width: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 36px;
}
:root:not([data-surface="owner"]) #page-error { width: min(560px, 100%); margin: 0 auto 24px; }
.guest-home { max-width: 620px; margin-inline: auto; }
.guest-home h1 { max-width: 21ch; margin-bottom: 22px; font-size: clamp(34px, 5vw, 58px); font-weight: 650; letter-spacing: -.042em; line-height: 1.08; text-wrap: balance; }
.guest-home p { max-width: 40ch; margin: 0; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.65; }
.guest-home p + p { margin-top: var(--space-element); color: var(--muted); }
:root[data-surface="login"] .login-panel { width: min(430px, 100%); margin: 0 auto; padding: clamp(18px, 4vw, 30px); border: 1px solid var(--line); border-radius: var(--radius-dialog); background: var(--surface); }
:root[data-surface="login"] .login-panel h1 { margin-bottom: 18px; font-size: 30px; }
.guest-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.source-footer { display: none; }
:root:not([data-surface="owner"]) .source-footer {
  display: flex;
  justify-content: center;
  padding: 0 24px max(8px, env(safe-area-inset-bottom));
}
.source-footer a {
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.source-footer .project-attribution { text-decoration: underline; text-underline-offset: 3px; }
.source-footer a:hover { color: var(--ink); text-decoration: underline; }
.source-footer svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 680px) {
  :root:not([data-surface="owner"]) .sidebar { flex-wrap: wrap; justify-content: flex-start; gap: 18px; padding: 24px; }
  :root:not([data-surface="owner"]) .sidebar-top { flex-basis: 100%; }
  :root:not([data-surface="owner"]) .sidebar-top .brand .wordmark { font-size: 21px; }
  :root:not([data-surface="owner"]) .sidebar-top .brand .mark { width: 30px; min-width: 30px; }
  :root:not([data-surface="owner"]) .sidebar-bottom { flex-wrap: wrap; gap: 8px; }
  :root:not([data-surface="owner"]) #theme-button { width: 44px; padding: 10px; }
  :root:not([data-surface="owner"]) #theme-label { display: none; }
  :root:not([data-surface="owner"]) .main { padding: 32px 24px; }
}
