/* Schale des Betreiber-UI: aus dem früheren Inline-Style von index.html. Doppelte Generationen von
 * .app, .nav button, .button und .menu-item sind zusammengeführt (je eine Regel an der Stelle der
 * letzten, gleiche berechnete Styles). Farben, Schrift, Radien und Material kommen aus
 * @gurkendevteam/design; hier stehen nur Layout und Booking-eigene Teile. */
* {
  box-sizing: border-box;
}
body {
  min-width: 320px;
  margin: 0;
}
@layer base {
  button {
    font: inherit;
    color: inherit;
    cursor: pointer;
  }
  .senjara-filter-segments button {
    border: 0;
    padding: 0;
    background: transparent;
  }
}
button:disabled {
  cursor: not-allowed;
}
.sidebar {
  display: flex;
  flex-direction: column;
  padding: 25px 13px 18px;
  border-right: 1px solid var(--border);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 9px 25px;
  color: var(--forest);
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.045em;
}
.wordmark img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}
.tenant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 49px;
  width: 100%;
  border: 1px solid var(--border);
  background: transparent;
  padding: 0 13px;
  text-align: left;
  font-weight: 700;
}
.tenant svg {
  width: 15px;
  height: 15px;
}
.nav {
  display: grid;
  gap: 3px;
  margin-top: 20px;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 13px 7px 0;
  border-top: 1px solid var(--border);
}
.avatar {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.profile strong,.profile span {
  display: block;
}
.profile strong {
  font-size: 13px;
}
.profile span {
  color: var(--muted-foreground);
  font-size: 12px;
}
.workspace {
  min-width: 0;
  padding: 30px 32px 36px;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 46px;
  margin-bottom: 25px;
}
.topbar h1 {
  margin: 0;
  font-size: 35px;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
}
.toolbar {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.button:hover:not(:disabled) {
  border-color: var(--forest);
}
.arrow {
  width: 38px;
  padding: 0;
  font-size: 21px;
}
.date-label {
  padding: 0 8px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.create {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper);
  font-weight: 700;
  transition: background-color 160ms ease-out,transform 160ms var(--ease-out);
}
.create:hover:not(:disabled) {
  background: var(--forest-deep);
}
.create:active:not(:disabled) {
  transform: scale(.97);
}
.notice {
  min-height: 42px;
  margin: 0 0 17px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  background: var(--sand);
  font-size: 13px;
}
.notice[hidden] {
  display: none;
}
.notice a {
  font-weight: 700;
}
.legend {
  grid-column: 2/-1;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 11px 0 8px;
  color: var(--muted-foreground);
  font-size: 12px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.dot.selected {
  background: var(--forest);
}
.dot.buffer {
  border: 1px solid var(--border);
  background: var(--sand);
}
.empty-calendar {
  grid-column: 2/-1;
  display: grid;
  place-items: center;
  padding: 36px;
  color: var(--muted-foreground);
  text-align: center;
}
.empty-calendar strong {
  display: block;
  margin-bottom: 7px;
  color: var(--forest);
  font-size: 17px;
}
.empty-calendar p {
  max-width: 36ch;
  margin: 0;
  line-height: 1.5;
}
.inspector {
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  border-left: 1px solid var(--border);
  background: var(--card);
}
.inspector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.inspector h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.04em;
}
.status {
  padding: 5px 9px;
  background: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.status.cancelled {
  background: var(--danger-surface);
  color: var(--danger);
}
.detail {
  padding: 19px;
  border: 1px solid color-mix(in srgb, var(--forest) 12%, transparent);
  background: var(--paper);
}
.customer {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.customer .avatar {
  width: 39px;
  height: 39px;
  background: var(--sand);
}
.customer strong,.customer span {
  display: block;
}
.customer strong {
  font-size: 17px;
}
.customer span {
  color: var(--muted-foreground);
  font-size: 12px;
}
.field {
  padding-top: 15px;
}
.field label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-foreground);
  font-size: 12px;
}
.field strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.field small {
  color: var(--muted-foreground);
  font-size: 12px;
}
.booking-fields {
  display: grid;
  gap: 6px;
}
.resources {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.resource {
  padding: 5px 8px;
  background: var(--accent);
  font-size: 12px;
}
.note {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 12px;
}
.history {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.history-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}
.history-toggle span:last-child {
  color: var(--muted-foreground);
  transition: transform 160ms var(--ease-out);
}
.history-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(90deg);
}
.history-panel {
  padding-top: 10px;
}
.history-status {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.45;
}
.history-list {
  display: grid;
  gap: 9px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}
.history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  font-size: 12px;
}
.history-item strong {
  font-size: 13px;
}
.history-item time,.history-item span {
  color: var(--muted-foreground);
}
.history-more {
  margin-top: 12px;
  font-size: 12px;
}
.access {
  margin: auto 0;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.access strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: -.02em;
}
.access p {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.access a {
  color: var(--forest);
  font-weight: 700;
}
.tenant-picker {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
}
.tenant-picker select {
  min-height: 42px;
  border: 1px solid var(--border);
  background: var(--paper);
  padding: 0 10px;
  color: var(--forest);
  font: inherit;
}
.tenant-picker .button {
  justify-self: start;
}
.actions {
  display: grid;
  gap: 11px;
  margin-top: auto;
}
.reschedule {
  min-height: 45px;
  border: 1px solid var(--forest);
  background: transparent;
  font-weight: 700;
}
.cancel {
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  text-decoration: underline;
  font-size: 13px;
}
.actions button:disabled {
  border-color: var(--border);
  color: var(--muted-foreground);
}
.timezone-note {
  margin: 0 0 22px;
  padding: 10px 12px;
  border-left: 3px solid var(--moss);
  background: var(--accent);
  font-size: 13px;
}
.booking-form {
  display: grid;
  gap: 17px;
  padding: 25px;
}
.booking-form header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.booking-form h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.04em;
}
.booking-form header p,.booking-form .hint {
  margin: 5px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.45;
}
.booking-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}
.booking-form input,.booking-form select {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--paper);
  padding: 0 11px;
  color: var(--forest);
  font: inherit;
}
.booking-form select:disabled {
  background: var(--muted);
  color: var(--muted-foreground);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 4px;
}
.dialog-actions .button {
  font-weight: 700;
}
.dialog-actions .create {
  min-width: 126px;
}

.form-status {
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.4;
}
.button:hover:not(:disabled) {
  background: var(--accent);
}
.create:hover:not(:disabled) {
  background: var(--forest-deep);
}
@media (max-width:1120px) {
  .workspace {
    padding-left: 21px;
    padding-right: 21px;
  }
  .toolbar {
    gap: 4px;
  }
  .date-label {
    font-size: 13px;
  }
}
@media (max-width:860px) {
  .sidebar {
    display: none;
  }
  .workspace {
    padding: 22px 20px 28px;
  }
  .inspector {
    min-height: 420px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }
  
  
  
}
@media (max-width:520px) {
  .workspace {
    padding: 20px 15px 24px;
  }
  .topbar h1 {
    font-size: 31px;
  }
  .button {
    padding: 0 10px;
  }
  .date-label {
    order: 3;
    flex-basis: 100%;
    padding: 4px 0 0;
  }
  .create {
    margin-left: auto;
  }
  .legend {
    justify-content: flex-start;
  }
  .inspector {
    padding: 25px 20px;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
/* Operator shell: aligned with the Senjara CRM workspace tokens. */
body {
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.45;
}
@layer base {
  button,input,select {
    font: inherit;
  }
}
button {
  border-radius: var(--radius-small);
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.skip-link {
  position: fixed;
  z-index: 30;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  border-radius: var(--radius-small);
  background: var(--primary);
  padding: 9px 12px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  transform: translateY(0);
}
.sidebar {
  display: flex;
  width: 240px;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 12px 12px;
  color: var(--sidebar-foreground);
}
.wordmark {
  padding: 0 10px 20px;
  color: var(--foreground);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.wordmark img {
  width: 27px;
  height: 27px;
}
.nav {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  margin-top: 4px;
  gap: 3px;
}
.sidebar-footer {
  position: relative;
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.footer-label {
  display: block;
  margin: 0 0 6px;
  padding: 0 8px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
}
.tenant {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  padding: 0 10px;
  color: var(--sidebar-foreground);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 140ms ease;
}
.tenant:hover {
  background: var(--secondary);
}
.account-wrap {
  position: relative;
}
.avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 12px;
  font-weight: 700;
}
.senjara-account-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 20;
}
.menu-item:hover {
  background: var(--danger-surface);
}
.workspace {
  min-width: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0 32px 32px;
}
.topbar {
  min-height: 80px;
  margin: 0 -32px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  padding: 18px 32px;
}
.topbar h1 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.toolbar {
  gap: 8px;
}
.button {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0 12px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 140ms ease,border-color 140ms ease;
}
.button:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--accent);
}
.arrow {
  font-size: 20px;
}
.date-label {
  color: var(--muted-foreground);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.create {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
}
.create:hover:not(:disabled) {
  background: var(--forest-deep);
}
.notice {
  border-color: var(--border);
  border-radius: var(--radius);
  background: var(--danger-surface);
  color: var(--danger);
}
.legend,.form-status {
  color: var(--muted-foreground);
}
.empty-calendar strong {
  color: var(--foreground);
}
.inspector {
  width: 328px;
  min-width: 328px;
  overflow-y: auto;
  padding: 24px;
}
.inspector h2,.booking-form h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.025em;
}
.detail {
  border-color: var(--border);
  border-radius: var(--radius-medium);
  background: var(--card);
}
.status,.resource {
  border-radius: var(--radius-small);
  background: var(--accent);
  color: var(--accent-foreground);
}
.status.cancelled {
  background: var(--danger-surface);
  color: var(--danger);
}
.access {
  border-color: var(--border);
}
.access a {
  color: var(--primary);
}
.tenant-picker select,.booking-form input,.booking-form select {
  border-color: var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
}
.reschedule {
  border-color: var(--primary);
  border-radius: var(--radius);
  color: var(--primary);
}
.cancel {
  color: var(--danger);
}
.timezone-note {
  border-color: var(--primary);
  border-radius: var(--radius-medium);
  background: var(--accent);
}
.mobile-topbar,.mobile-bar {
  display: none;
}
@media (max-width:860px) {
  .mobile-bar {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    position: fixed;
    z-index: 9;
    top: 0;
    right: 0;
    left: 0;
    height: 56px;
    margin: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 56px;
    color: var(--foreground);
    font-size: 14px;
    font-weight: 650;
    text-align: center;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    overflow: visible;
    padding: 76px 16px 24px;
  }
  .topbar {
    min-height: 0;
    margin: 0 0 20px;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .topbar h1 {
    font-size: 20px;
  }
  .toolbar {
    justify-content: flex-start;
  }
  .inspector {
    width: auto;
    min-width: 0;
    overflow: visible;
    border-top: 1px solid var(--border);
    border-left: 0;
    padding: 24px 16px;
  }
  
  
  
  
  
  
  
  
  
  
  
  
  
  .button,.tenant-picker select,.booking-form input,.booking-form select {
    min-height: 44px;
  }
  .date-label {
    order: 3;
    flex-basis: 100%;
    padding: 4px 0 0;
  }
  .create {
    margin-left: auto;
  }
}
@media (max-width:520px) {
  .toolbar {
    gap: 6px;
  }
  .date-label {
    font-size: 13px;
  }
  .arrow {
    width: 44px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .dialog-actions .button {
    min-height: 44px;
  }
}
.nav {
  display: flex;
  align-content: initial;
  flex-direction: column;
}
.nav button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  gap: 12px;
}
.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.access p,.field label,.field small,.note,.customer span,.history-status,.history-item time,.history-item span {
  color: var(--muted-foreground);
}
.access strong,.field strong,.customer strong {
  color: var(--foreground);
}
.tenant-wrap {
  position: relative;
}
.tenant-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  min-width: 200px;
  max-height: min(360px,max(114px,calc(100dvh - 192px)));
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px;
}
.tenant-menu .menu-item {
  color: var(--foreground);
}
.timezone-note {
  background: var(--accent);
  color: var(--accent-foreground);
}
.notice[data-tone="info"] {
  border-color: var(--border);
  background: var(--accent);
  color: var(--accent-foreground);
}
.app:not([data-view="calendar"]) #notice {
  display: none !important;
}
.app[data-access-state="blocked"] #calendar-content,.app[data-access-state="blocked"] #calendar-toolbar {
  display: none;
}
.app[data-access-state="blocked"] .inspector {
  background: var(--card);
}
/* Homebase surface: the booking workflows retain their existing controls and API flow. */
.app {
  position: relative;
  display: flex;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  gap: 12px;
  padding: 12px;
}
.sidebar {
  width: 248px;
  height: calc(100dvh - 24px);
  overflow: visible;
  border: 0;
}
.workspace {
  flex: 1 1 auto;
  min-width: 0;
}
.inspector {
  width: 342px;
  min-width: 342px;
  border: 0;
}
.home-link img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}
.avatar {
  background: var(--moss);
  color: var(--forest);
}
.workspace-status {
  color: var(--muted-foreground);
  font-size: 13px;
}
.workspace-list {
  display: grid;
  gap: 2px;
}
.workspace-status:empty {
  display: none;
}
.workspace-status {
  margin: 4px 10px 6px;
  line-height: 1.35;
}
.menu-item {
  display: flex;
  min-height: 38px;
  width: 100%;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0 9px;
  text-align: left;
  border-radius: var(--radius);
  color: var(--forest);
  transition: background-color 160ms var(--ease-out),transform 160ms var(--ease-out);
}
.menu-item:hover {
  background: color-mix(in srgb,var(--sand) 55%,transparent);
}
.account-wrap[hidden] {
  display: none !important;
}
@media (max-width:1120px) {
  .sidebar {
    width: 220px;
  }
  .inspector {
    width: 290px;
    min-width: 290px;
  }
  .workspace {
    min-width: 0;
  }
  .toolbar,.topbar h1 {
    min-width: 0;
  }
  .toolbar {
    flex-wrap: wrap;
  }
}
@media (max-width:860px) {
  .app {
    overflow: visible;
    display: block;
    height: auto;
    min-height: 100dvh;
    padding: 0;
  }
  .inspector {
    width: auto;
    min-width: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .topbar h1,.toolbar {
    flex: 0 1 auto;
    min-width: 0;
  }
  .toolbar {
    width: 100%;
    align-content: flex-start;
  }
  
}
/* Ressourcen verwalten: Reihenfolge, Stilllegen und Anlegen im vorhandenen Kartenraster. */

/* Bausteine #97: Ort in der Kopfzeile, Rückweg, Tab-Leiste (vorbereitet), Blatt, Hinweis, Liste und Detail. */
@media (max-width:860px) {
  /* Rückweg (senjara-mobile-back) vor dem Titel; der Titel nimmt den Rest und weicht, wenn es eng wird. */
  .mobile-bar .senjara-mobile-title {
    display: block;
    flex: 1;
  }
  .mobile-bar:has(> .senjara-mobile-back:not([hidden])) {
    padding-inline-start: 8px;
  }
  
  .app:has(.booking-tabbar:not([hidden])) .workspace {
    padding-bottom: calc(var(--tabbar-height) + 24px);
  }
}
/* Die Tab-Leiste gilt bis zum Umbruch der Schale (860 px); ausgeblendet hebt sie den Hinweis nicht an. */
.booking-tabbar[hidden] {
  display: none;
}
@media (min-width:861px) {
  .booking-tabbar {
    display: none;
  }
}
@media (max-width:860px) {
  :where(body[data-design="liquid-glass"]:has(.senjara-tabbar:not([hidden]))) {
    --toast-offset: calc(var(--tabbar-height) + 12px);
  }
}
/* Seitenleiste als Overlay (Package 0.4.0, web/DESIGN.md): aufgeklappt so breit wie bisher. */
:where(body[data-design="liquid-glass"]) {
  --sidebar-expanded-width: 248px;
}
:where(body[data-design="liquid-glass"]:has(.senjara-tabbar[hidden])) {
  --toast-offset: calc(16px + env(safe-area-inset-bottom, 0px));
}
.view-outlet[hidden],.booking-toast[hidden] {
  display: none;
}
.booking-sheet-form {
  padding: 0;
}
.booking-sheet-head {
  gap: 12px;
}
.booking-sheet-head h2 {
  padding-top: 8px;
}
.booking-sheet-close {
  width: 44px;
  height: 44px;
  flex: none;
  margin: -4px -8px 0 0;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
}
.booking-sheet-close svg {
  width: 20px;
  height: 20px;
}
.booking-sheet-head {
  touch-action: none;
}
.booking-sheet-status {
  margin: 0;
  color: var(--danger);
  font-size: var(--type-caption);
}
.booking-sheet-status[hidden] {
  display: none;
}
.booking-split {
  display: grid;
  grid-template-columns: minmax(240px,320px) minmax(0,1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width:860px) {
  .booking-split {
    grid-template-columns: minmax(0,1fr);
  }
  .booking-split[data-detail="closed"] > .booking-split-detail,.booking-split[data-detail="open"] > .booking-split-list {
    display: none;
  }
}
/* Felder auf Touch mindestens 16 px (iOS zoomt sonst beim Fokus). Die Package-Regel in base.css verliert gegen
   Booking-Regeln mit eigener Feldgröße; diese hebt nur auf Touch an und lässt den Desktop unverändert. */
@media (pointer: coarse) {
  :where(body[data-design="liquid-glass"]) :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"]), select, textarea) {
    font-size: max(16px, 1em) !important;
  }
}

/* Schale und Struktur (#98): Ort mit Unterseiten als Segmente, „Mehr“.  Erste Schritte stehen in onboarding.css. */
.topbar-title {
  display: flex;
  min-width: 0;
  flex: 1 1 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.area-tabs[hidden] {
  display: none;
}
.area-tabs {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
@media (max-width:860px) {
  /* Mobil nennt die Kopfzeile den Ort; die Überschrift bleibt für Screenreader und als Fokusziel. */
  .topbar h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  /* Ohne sichtbare Überschrift steht „+ Neuer Termin“ in der Zeile des Datums statt über ihr. */
  .toolbar .date-label {
    flex: 1 1 calc(100% - 144px);
    min-width: 0;
    padding: 0;
  }
  .toolbar #new-booking {
    position: static;
    order: -1;
  }
}

/* „Mehr“: festes Blatt der Schale (mobil von unten), Liste wie in iOS, darunter Arbeitsbereich und Konto. */
.more-sheet .more-content {
  display: grid;
  gap: 8px;
}
.more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.more-head h2 {
  margin: 0;
  font-size: var(--type-section);
  font-weight: var(--weight-strong);
}
.more-list {
  display: grid;
}
.more-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 0 4px;
  color: var(--foreground);
  font-size: var(--type-body);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.more-row:last-child {
  border-bottom: 0;
}
/* „Erste Schritte einblenden“ (#140) ist ein Knopf in derselben Liste. */
button.more-row {
  width: 100%;
  border-width: 0 0 1px;
  border-style: solid;
  border-color: var(--border);
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.more-row[hidden] {
  display: none;
}
.more-row > svg:first-child {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--muted-foreground);
}
.more-row[aria-current="page"] > svg:first-child {
  color: var(--forest);
}
.more-label {
  flex: 1 1 auto;
}
.more-row .more-chevron,.more-row .home-external {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted-foreground);
}
.more-account {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.more-account .account-wrap {
  position: relative;
}
.more-account .senjara-account-menu {
  position: static;
  width: 100%;
  margin: 8px 0 0;
  box-shadow: none;
}
.more-account .tenant-menu {
  position: static;
  margin: 8px 0 0;
  box-shadow: none;
}

/* Tastenkürzel (#123): Blatt aus dem Konto-Menü, je Gruppe eine Liste „Bezeichnung … Tasten“. */
.shortcut-group {
  margin: 0 0 8px;
  color: var(--muted-foreground);
  font-size: var(--type-label);
  font-weight: var(--weight-strong);
}
.shortcut-list + .shortcut-group {
  margin-top: 24px;
}
.shortcut-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
}
.shortcut-list :is(dt, dd) {
  margin: 0;
  border-top: 1px solid var(--border);
  padding: 8px 0;
  font-size: var(--type-body);
  line-height: var(--type-body-leading);
}
.shortcut-list dd {
  color: var(--muted-foreground);
  font-size: var(--type-label);
  text-align: right;
}
.shortcut-list kbd {
  display: inline-block;
  min-width: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--card);
  padding: 0 8px;
  color: var(--foreground);
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
