#buddyTour[hidden], #buddyTour [hidden] { display:none !important; }
#buddyTour .buddy-tour-card {
  position:fixed; right:clamp(10px,2.4vw,36px); bottom:clamp(10px,2vw,28px);
  z-index:2147482000; width:min(440px,calc(100vw - 20px)); max-height:72dvh;
  overflow:auto; box-sizing:border-box; padding:20px; border:1px solid #49858c;
  border-radius:20px; color:#e7f9fa; background:#10343d; box-shadow:0 12px 40px #0007;
}
#buddyTour .buddy-tour-card::before {
  content:""; position:absolute; right:24px; top:0; width:45px; height:4px;
  background:#79e5d7; border-radius:0 0 6px 6px;
}
#buddyTour .buddy-tour-left { right:auto; left:clamp(10px,2.4vw,36px); }
#buddyTour .buddy-tour-top { display:flex; align-items:center; gap:13px; }
#buddyTour .buddy-tour-top img { width:82px; height:72px; object-fit:cover; border-radius:14px; flex:none; }
#buddyTour .buddy-tour-progress { display:block; font-size:.8rem; font-weight:700; color:#a3e6df; }
#buddyTour h2 { margin:2px 0 0; color:inherit; font-size:clamp(1.13rem,2vw,1.48rem); line-height:1.2; }
#buddyTour .buddy-tour-text { margin:14px 0; color:inherit; font-size:.97rem; line-height:1.5; }
#buddyTour .buddy-tour-mode { display:grid; gap:5px; margin:0 0 12px; }
#buddyTour .buddy-tour-mode select { width:100%; padding:8px; border:1px solid #49858c; border-radius:8px; background:#f5fbfb; color:#10343d; }
#buddyTour .buddy-tour-actions { display:flex; flex-wrap:wrap; gap:8px; }
#buddyTour button, .buddy-tour-settings button {
  padding:8px 13px; border:1px solid #49858c; border-radius:9px; font:600 .88rem/1.3 system-ui,sans-serif;
  background:#e9f5f4; color:#12383e; cursor:pointer;
}
#buddyTour .buddy-tour-next, .buddy-tour-settings button { background:#85e7d8; border-color:#85e7d8; }
#buddyTour .buddy-tour-end { margin-top:10px; padding:5px 0; border:0; background:transparent; color:inherit; text-decoration:underline; }
#buddyTour :is(button,select):focus-visible,.buddy-tour-settings button:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
#buddyTour .buddy-tour-marker {
  position:fixed; z-index:2147481999; pointer-events:none; box-sizing:border-box;
  border:3px solid #4de1cd; border-radius:12px; box-shadow:0 0 0 3px #0a303b,0 0 0 6px #4de1cd52;
}
html[data-theme="light"] #buddyTour .buddy-tour-card { background:#f5fcfc; color:#12343d; box-shadow:0 12px 36px #21434d42; }
html[data-theme="light"] #buddyTour .buddy-tour-progress { color:#17695f; }
.buddy-tour-settings { padding:16px; }
.buddy-tour-settings h3 { margin:0 0 9px; }
@media(max-width:600px) {
  #buddyTour .buddy-tour-card { padding:14px; max-height:55dvh; }
  #buddyTour .buddy-tour-top img { width:64px; height:56px; }
}

@media(max-width:760px) {
  #buddyTour .buddy-tour-card {
    inset:auto 8px calc(var(--demo-bottom-space) + 6px) !important;
    width:auto;
    padding:9px 10px;
    max-height: min(230px, 38dvh);
    border-radius:14px;
    overscroll-behavior:contain;
  }
  #buddyTour .buddy-tour-top {gap:8px}
  #buddyTour .buddy-tour-top img {width:36px;height:36px;border-radius:8px}
  #buddyTour .buddy-tour-progress {font-size:.72rem}
  #buddyTour h2 {font-size:1rem}
  #buddyTour .buddy-tour-text {font-size:.875rem;line-height:1.35;margin:7px 0}
  #buddyTour .buddy-tour-actions {display:inline-flex;vertical-align:middle}
  #buddyTour .buddy-tour-actions button {min-height:44px;padding:5px 9px}
  #buddyTour .buddy-tour-end {min-height:44px;margin:0 0 0 7px;font-size:.75rem;vertical-align:middle}
  #buddyTour .buddy-tour-marker {border-width:2px;box-shadow:0 0 0 2px #0a303b,0 0 0 4px #4de1cd52}

}

#buddyTour .buddy-tour-shield {
  position:fixed;
  inset:0;
  z-index:2147481998;
  touch-action:none;
}

@media(max-width:760px) {
  /* During the guided preview the fixed navigation has no controls to offer. */
  html.buddy-mobile-tour {
    --demo-bottom-space: env(safe-area-inset-bottom, 0px) !important;
    scroll-padding-top:calc(var(--demo-toolbar) + 10px) !important;
    scroll-behavior:auto !important;
  }
  .buddy-mobile-tour .flb7-globalbar,
  .buddy-mobile-tour .flb7-mobile-bottom,
  .buddy-mobile-tour #page-einstellungen .settings-nav,
  .buddy-mobile-tour body:has(#appointmentsPage) .sidebar {
    display:none !important;
  }
  .buddy-mobile-tour #fullStudentRecordModal.show {
    position:fixed !important;
    inset:calc(var(--demo-toolbar) + 4px) 0 calc(var(--buddy-reserved, 150px) + 8px) !important;
    overflow:auto !important;
  }
}

@media(max-width:760px) {
  html.buddy-working-hours body.flb7-workspace .flb7-globalbar {
    display:none !important;
  }
  .buddy-working-hours [data-settings-section="working"] .working-day[data-weekday="0"] {
    display:grid !important;
    grid-template-columns:minmax(0,1fr);
    gap:6px;
  }
  .buddy-working-hours .working-day[data-weekday="0"] > div {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:center;
    gap:6px;
  }
  .buddy-working-hours .working-day[data-weekday="0"] input[type="time"] {
    width:100%;
    min-width:0;
  }
}

html.buddy-mobile-tour body > .demo-toolbar {
  z-index:2147482001 !important;
}

@media(max-width:760px) {
  html.buddy-mobile-tour {
    --demo-toolbar:0px;
    --demo-bottom-space:env(safe-area-inset-bottom,0px);
    scroll-padding-bottom:var(--buddy-reserved,180px);
  }
  .buddy-mobile-tour :is(.main-content,.main) {
    padding-bottom:calc(var(--buddy-reserved,180px) + 12px) !important;
  }
}
