.site-header .brand .lia-brand-line{display:flex;align-items:center;height:1.1em;line-height:1.1}
.site-header .brand .lia-brand-wordmark{display:block;width:auto;height:.82em;max-width:none}
.lia-brand-inline .lia-brand-wordmark{display:inline-block;width:auto;height:.86em;max-width:none;vertical-align:-.03em}

/* Preserve the vertical brand in the desktop collapsed sidebar. */
@media(min-width:761px){.sidebar-collapsed .sidebar .sidebar-brand-toggle .brand-name{writing-mode:horizontal-tb;transform:rotate(-90deg);width:108px;flex:0 0 108px;max-width:none}.sidebar-collapsed .sidebar .brand-name .lia-brand-wordmark{width:108px;height:auto;max-width:none;max-height:none}}

/* POS identity stays separate from the existing sidebar toggle. */
#pos-root .sidebar .brand>.sidebar-brand-static{display:block}
#pos-root .sidebar .brand>.sidebar-brand-static:has(.brand-custom-logo){display:flex}
#pos-root .sidebar .sidebar-appearance>.sidebar-brand-toggle{flex:none;justify-content:center;width:44px;height:44px}
@media(min-width:761px){
 html:not(.pos-touch-layout) #pos-root .sidebar-collapsed .sidebar .brand>.sidebar-brand-static:not(:has(.brand-custom-logo)){
  writing-mode:horizontal-tb;transform:rotate(-90deg);width:108px;flex:0 0 108px;max-width:none;max-height:none
 }
}

:is(.brand,.shared-brand,.pos-header-wordmark,.pos-terminal-brand,.sidebar-brand-static) .karmma-wordmark-accent {
  color:#dec48b;
  -webkit-text-fill-color:currentColor;
}
#pos-root .lia-brand-text>.karmma-wordmark-accent {
  display:inline;
  font:inherit;
  letter-spacing:inherit;
}
@media (orientation:landscape) {
  html.pos-touch-layout #pos-root .sidebar .sidebar-brand-static>.lia-brand-text:has(>.karmma-wordmark-accent) {
    font-size:13px;
    letter-spacing:-.035em;
  }
}
html[data-pos-theme="light"] :is(.brand,.shared-brand,.pos-header-wordmark,.pos-terminal-brand,.sidebar-brand-static) .karmma-wordmark-accent {
  color:#82611d;
}
html[data-pos-theme="light"] #pos-root .lia-brand-wordmark {
  content:url("/assets/brand/lia-co-wordmark-light-v1.svg?v=20261126-kc-gold");
}

.site-header a.karmma-company-brand {
  flex-shrink: 1;
  min-width: 0;
  text-decoration: none;
}
.site-header a.karmma-company-brand:focus-visible {
  outline: 2px solid var(--gold, #dec48b);
  outline-offset: 4px;
  border-radius: 3px;
}
.site-header .karmma-company-brand > .karmma-company-wordmark {
  color: inherit;
}
.site-header .karmma-company-wordmark > span:not(.karmma-wordmark-accent) {
  color: var(--gold);
}
.site-header .brand .karmma-company-caption {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}
.site-header .brand .karmma-company-name {
  color: inherit;
  font: inherit;
}
html[data-karmma-bizkeep] .management-header-context {
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

/* Keep language selection with the entry header or the POS workspace actions. */
html[data-karmma-language] .karmma-language-picker {
    width: auto;
    min-width: 0;
    min-height: 30px;
    max-width: 8.5rem;
    margin-inline: 0.25rem 0;
    padding: 0.3rem 0.45rem;
    border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
    border-radius: 7px;
    color: inherit;
    background: transparent;
    font: inherit;
    font-size: 10px;
    flex-shrink: 0;
}
html[data-karmma-language] .karmma-language-picker option {
    color: CanvasText;
    background: Canvas;
}
html[data-karmma-language] :is(.bizkeep-entry-card,.pos-entry-card,.pos-terminal-entry) > .karmma-language-picker {
    display: block;
    margin-inline: auto;
    margin-block: 0 1rem;
}
html[data-karmma-language] :is(.bizkeep-entry,.pos-entry,.shared-entry-shell) :is(h1, label, button, summary, .bizkeep-entry-description, .pos-entry-description, .bizkeep-entry-footer, .pos-entry-footer) {
    text-transform: uppercase;
}
html[data-karmma-language] :is(.bizkeep-entry,.pos-entry,.shared-entry-shell) :is(input,textarea) {
    text-transform: none;
}

html[data-karmma-language] .karmma-hidden-language-setting { display: none; }

/* Match the portrait wordmark typography in both rotated phone rails. */
@media (orientation: landscape) {
  html[data-karmma-bizkeep].management-rail-active.management-phone:not([data-lia-device-view="duo"]) .management-brand-rail .karmma-company-wordmark,
  html[data-karmma-language].pos-touch-layout:is(.lia-native-phone,.pos-iphone-layout):not([data-lia-device-view="duo"]) #pos-root .sidebar .sidebar-brand-static > .lia-brand-text:has(> .karmma-wordmark-accent) {
    display: block;
    position: relative;
    left: 50%;
    width: max-content;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    transform: translateX(-50%);
    font: 800 16.875px/1.1 Manrope, sans-serif;
    letter-spacing: -.875px;
    text-align: center;
    white-space: nowrap;
  }

  html[data-karmma-language].pos-touch-layout:is(.lia-native-phone,.pos-iphone-layout):not([data-lia-device-view="duo"]) #pos-root .sidebar .sidebar-brand-static:has(> .lia-brand-text > .karmma-wordmark-accent) {
    overflow: visible;
    text-overflow: clip;
  }

  /* Centre the wordmark in the space above the iPhone's Dynamic Island. */
  html[data-karmma-bizkeep].management-rail-active.management-phone:not([data-lia-device-view="duo"]) .management-brand-rail,
  html[data-karmma-language].pos-touch-layout:is(.lia-native-phone,.pos-iphone-layout):not([data-lia-device-view="duo"]) #pos-root .sidebar .brand {
    top: calc(26px + var(--lia-native-safe-top, env(safe-area-inset-top, 0px)));
  }
}

@media (orientation: landscape) and (max-height: 360px) {
  html[data-karmma-bizkeep].management-rail-active.management-phone:not([data-lia-device-view="duo"]) .management-brand-rail .karmma-company-wordmark,
  html[data-karmma-language].pos-touch-layout:is(.lia-native-phone,.pos-iphone-layout):not([data-lia-device-view="duo"]) #pos-root .sidebar .sidebar-brand-static > .lia-brand-text:has(> .karmma-wordmark-accent) {
    font-size: 15px;
  }
}
