/* Info: © by Karl Dattinger - DattiSoft 2026, Projekt: MF Dokument ID: MF-DOC-2026-000750 erstellt 03.11.2026 zuletzt bearbeitet 03.11.2026 17:15 */
/* Keep the book label and its full title in separate, naturally sized rows. */
body.mf6 .mf6-sidebar .mf-nav-current {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .3rem;
  flex: 0 0 auto;
}
body.mf6 .mf6-sidebar .mf-nav-current > p {
  position: static;
  flex: 0 0 auto;
  margin: 0;
  line-height: 1.4;
}
body.mf6 .mf6-sidebar .mf-nav-current > a {
  display: flex;
  position: static;
  width: auto;
  min-width: 0;
  height: auto;
  max-height: none;
  flex: 0 0 auto;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* Module navigation is a wrapping row below its introductory text. */
body.mf6 .mf6-module-header.module-hero-v524b {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 1rem !important;
}
body.mf6 .mf6-module-header.module-hero-v524b .module-hero-copy-v524b {
  min-width: 0;
  max-width: none;
}
body.mf6 .mf6-module-header.module-hero-v524b .module-hero-actions-v524b {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
body.mf6 .mf6-module-header.module-hero-v524b .module-hero-actions-v524b > :is(a, button, form) {
  flex: 0 1 auto;
  width: auto !important;
  min-width: 44px !important;
  max-width: 100%;
}
/* Actual click targets, including associated checkbox labels, stay 44px. */
body.mf6 :is(.btn, .mf6-tool-button, .mf-modal-close-x-v525e) {
  min-width: 44px !important;
  min-height: 44px !important;
}
body.mf6 :is(.mf-app-modal-v524m1, .mf6-dialog, .mf-writing-assistant) .btn {
  min-height: 44px !important;
}
body.mf6 :is(.mf-writing-check, label[for$="-clear"], label[for$="-clear_id"]) {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: .65rem;
  cursor: pointer;
}
body.mf6 :is(label[for$="-clear"], label[for$="-clear_id"]) {
  display: inline-flex;
  padding: .3rem .5rem;
}
body.mf6 .mf-writing-check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  margin: 0;
}
/* A character dialog gets the same recognizable portrait as its card. */
body.mf6 .module-detail-title-v524f:has(.mf-character-modal-portrait) {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
body.mf6 .module-detail-title-v524f .mf-character-modal-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
  width: 64px;
  height: 80px;
  overflow: hidden;
  border-radius: .6rem;
  background: var(--mf6-surface-soft, rgba(127,145,165,.15));
  color: var(--mf6-gold, #d6a62f);
}
body.mf6 .mf-character-modal-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.mf6 .mf-character-modal-portrait .ui-icon {
  width: 32px;
  height: 32px;
}
/* The heading, chosen-book badge and selectors each have their own space. */
body.mf6 #publishing-book-choice.mf6-publishing-selector {
  display: block;
}
body.mf6 #publishing-book-choice > .mf6-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
  margin-bottom: 1rem;
}
body.mf6 #publishing-book-choice .mf6-section-head > div {
  width: 100%;
  min-width: 0;
}
body.mf6 #publishing-book-choice .mf6-chip {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  height: auto;
}
body.mf6 #publishing-book-choice > form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: .85rem;
}
body.mf6 #publishing-book-choice > form > label {
  display: grid;
  min-width: 0;
  gap: .4rem;
}
body.mf6 #publishing-book-choice select {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
body.mf6 #publishing-book-choice > form > button {
  justify-self: start;
}
/* Shared desktop/tablet headers grow to fit translated actions and full paths. */
body.mf6:not(.mf-mobile-host) .mf6-content-area {
  grid-template-rows: auto minmax(0, 1fr) var(--mf6-footer-height);
}
body.mf6.mf-compact-shell:not(.mf-mobile-host) .mf6-content-area {
  grid-template-rows: auto minmax(0, 1fr);
}
body.mf6:not(.mf-mobile-host) .mf6-topbar {
  display: flex !important;
  flex-wrap: wrap;
  height: auto !important;
  min-height: 68px !important;
  padding-block: .5rem;
  align-items: center;
}
body.mf6:not(.mf-mobile-host) .mf6-breadcrumbs {
  flex: 1 1 14rem;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
body.mf6:not(.mf-mobile-host) .mf6-breadcrumbs > :is(a, strong) {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.mf6:not(.mf-mobile-host) .mf6-breadcrumbs > a {
  min-height: 44px;
}
body.mf6:not(.mf-mobile-host) .mf6-topbar-actions {
  flex: 0 1 auto;
  flex-wrap: wrap;
  height: auto !important;
  min-width: 0;
  max-width: 100%;
  align-self: stretch;
  align-items: center;
}
body.mf6:not(.mf-mobile-host) .mf6-topbar-actions > :is(a.btn, button.btn, .mf6-editor-context-toggle) {
  min-width: 44px !important;
  min-height: 44px !important;
}
@media (max-width: 900px) {
  body.mf6 #publishing-book-choice > form { grid-template-columns: minmax(0, 1fr); }
}
/* The native language selector is an interactive header target too. */
body.mf6 .mf6-topbar-actions select {
  min-width: 44px !important;
  min-height: 44px !important;
}
/* Info: © by Karl Dattinger - DattiSoft 2026, Projekt: MF Dokument ID: MF-DOC-2026-000750 erstellt 03.11.2026 zuletzt bearbeitet 03.11.2026 17:15 */
