/* yourZone · Neue Ansicht · Release 20261111-shell-3 · nur Darstellung, greift nur bei aktiver Freigabe oder Coach-Vorschau. */

/* 1) Neue Leiste ersetzt die alte Menüleiste in Kunden- UND Coach-Ansicht. Die Knöpfe bleiben im Dokument
      und behalten Rechte und Routing – die neue Leiste löst sie nur aus. Die verdreifachte ID hebt die Regel
      über die bestehenden Layout-Stylesheets, die die Leiste am Handy als feste Fußleiste erzwingen. */
html[data-yz-shell="on"] #yz-portal#yz-portal#yz-portal .yz-nav,
html[data-yz-shell="on"] body #yz-portal#yz-portal#yz-portal nav.yz-nav{display:none!important;visibility:hidden!important;pointer-events:none!important}
html[data-yz-shell="on"] #yz-portal#yz-portal .yz-layout{grid-template-columns:minmax(0,1fr)!important}
html[data-yz-shell="on"] .yz-library-toggle{display:none!important}
html[data-yz-shell="on"] #yz-portal [data-home-card="challenges"],
html[data-yz-shell="on"] #yz-portal [data-challenge-entry],
html[data-yz-shell="on"] #yz-portal [data-challenge-tool]{display:none!important}
html[data-yz-shell="on"] #yz-portal#yz-portal .yz-main{padding-bottom:calc(124px + env(safe-area-inset-bottom,0px))!important}
/* Der frühere Schnellzugriff liegt jetzt im Start-Knopf der Leiste (nur Kundenansicht). */
html[data-yz-shell-mode="client"] body>#yz-quick-access{display:none!important}

/* 2) Kopfbereich: kein Challenge-Button mehr, in keiner Ansicht. Kunden ohne Coach-Zugang sehen dort gar keinen Schalter. */
html[data-yz-shell="on"] #yz-portal [data-challenge-header]{display:none!important}
html[data-yz-shell="on"] #yz-portal .yz-switch[data-challenge-customer]{display:none!important}
html[data-yz-shell="on"] #yz-portal .yz-switch[data-challenge-switch]:not([data-challenge-customer]){grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(max-width:600px){html[data-yz-shell="on"] #yz-portal .yz-switch[data-challenge-switch]:not([data-challenge-customer]){grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* 3) Ein Schließen-Symbol für alle Vollbild-Tools: Titel links, rundes X rechts. */
html[data-yz-shell="on"] .yz-body-dialog>header{flex-direction:row-reverse!important;justify-content:space-between!important;gap:12px}
html[data-yz-shell="on"] #yz-challenge-dialog .yz-challenge-bar{flex-direction:row-reverse!important;justify-content:space-between!important}
html[data-yz-shell="on"] #yz-challenge-dialog .yz-challenge-bar strong{display:block!important;font-size:14px!important}
html[data-yz-shell="on"] .yz-body-dialog>header>button:first-child,
html[data-yz-shell="on"] #yz-challenge-dialog [data-challenge-close]{position:relative;flex:0 0 44px!important;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:50%!important;font-size:0!important;line-height:0!important;gap:0!important;overflow:hidden}
html[data-yz-shell="on"] #yz-challenge-dialog [data-challenge-close] svg{display:none!important}
html[data-yz-shell="on"] .yz-body-dialog>header>button:first-child::before,
html[data-yz-shell="on"] #yz-challenge-dialog [data-challenge-close]::before{content:"";position:absolute;inset:0;margin:auto;width:20px;height:20px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat}

html[data-yz-shell-panel] #yz-ki-coach{visibility:hidden}
