/* Freigegebene Button-Regeln für die Dashboard-Vorschau. */
.dashboard-v2 .btn,
.dashboard-v2 .text-button,
.dashboard-v2 .dashboard-resize,
.dashboard-v2 .course-reminder-cta {
  font: var(--v0-weight-heavy) var(--v0-font-size-standard) / var(--v0-line-height-standard) var(--v0-font-family);
  letter-spacing: 0;
  border-radius: var(--v0-radius-control);
  box-shadow: none;
}

.dashboard-v2 .btn:hover {
  transform: none;
}

.dashboard-v2 .course-reminder-close {
  font-family: var(--v0-font-family);
  border-radius: var(--v0-radius-control);
}

/* Die Bestandsregel in ux.css bündelt diese Buttons mit Teilnehmer-Badges.
   Nur normale Kursaktionen auf den gemeinsamen Control-Radius binden. */
.course-admin .admin-course-controls .booking-card-actions .btn {
  border-radius: var(--v0-radius-control);
}

/* Gemeinsame Gestaltung normaler Buttons; Textaktionen sind davon ausgenommen. */
:root .btn {
  font-weight:var(--v0-weight-heavy);
  letter-spacing:var(--v0-letter-spacing);
  border-radius:var(--v0-radius-control);
}

/* Bibliothek: textgroße blaue Aktionen, Unterstreichung umfasst Zahl und Abstand. */
.relation-link,.proposal-link {
  display:inline-flex;align-items:center;gap:var(--v0-space-small);
  padding:0;min-height:0;width:auto;
  font-family:var(--v0-font-family);font-size:var(--v0-font-size-small);
  line-height:var(--v0-line-height-small);font-weight:var(--v0-weight-regular);
  color:var(--v0-color-primary);background:transparent;border:0;
}
.relation-link:hover .relation-label,.proposal-link:hover {text-decoration:none;}

.proposal-link {margin-inline-start:var(--v0-space-small);}

/* Gemeinsame Größen: Aktion 44, Eingabezeile 36, Kopfzeile 40; Rahmen zählt mit. */
:root :is(.btn,.v13-soft-btn,.v13-primary-btn,.v13-blue-btn,.v13-danger-btn,.v13-start-sequence,.course-reminder-cta,.icon-button,.room-review-icon-button) {
  box-sizing:border-box;
  min-height:var(--v0-control-min-size);
  height:auto;
  padding-block:calc((var(--v0-control-min-size) - var(--v0-line-height-standard) - 2 * var(--v0-border-width)) / 2);
  padding-inline:var(--v0-space-medium);
  border-radius:var(--v0-radius-control);
  font-family:var(--v0-font-family);
  line-height:var(--v0-line-height-standard);
}
:root :is(.icon-button,.room-review-icon-button) {
  width:var(--v0-control-min-size);height:var(--v0-control-min-size);
  min-width:var(--v0-control-min-size);padding:0;flex-shrink:0;
}
:root .btn-sm {
  box-sizing:border-box;min-height:var(--v0-control-height);height:auto;
  padding-block:calc((var(--v0-control-height) - var(--v0-line-height-standard) - 2 * var(--v0-border-width)) / 2);
}
:root :is(.icon-button,.room-review-icon-button).btn-sm {width:var(--v0-control-height);min-width:var(--v0-control-height);height:var(--v0-control-height);padding:0;}
:root .btn-header {
  box-sizing:border-box;min-height:var(--v0-header-control-height);height:auto;
  padding-block:calc((var(--v0-header-control-height) - var(--v0-line-height-standard) - 2 * var(--v0-border-width)) / 2);
}
:root .icon-button.btn-header {width:var(--v0-header-control-height);min-width:var(--v0-header-control-height);height:var(--v0-header-control-height);padding:0;}
:root .booking-filter-group button,:root .room-segments button {
  box-sizing:border-box;min-height:var(--v0-control-height);height:auto;
  padding-block:calc((var(--v0-control-height) - var(--v0-line-height-standard) - 2 * var(--v0-border-width)) / 2);
  border:var(--v0-border-input);border-radius:var(--v0-radius-control);
}
:root .booking-filter-group button[aria-pressed=true],:root .room-segments button[aria-pressed=true] {border-color:transparent;}

/* Bestehende Eingabezeilen ohne eigene neue Komponentenklasse. */
:root :is(.answer .btn,.ux-answer-field > .icon-button,.warmup-input-row .btn,.date-row .delete-date,#ux-title-form .btn,.import-bulk > .btn,.ux-import-bulk > .btn) {
 min-height:var(--v0-control-height);height:auto;box-sizing:border-box;
 padding-block:calc((var(--v0-control-height) - var(--v0-line-height-standard) - 2 * var(--v0-border-width)) / 2);
}
:root :is(.ux-answer-field > .icon-button,.date-row .delete-date) {width:var(--v0-control-height);min-width:var(--v0-control-height);height:var(--v0-control-height);padding:0;}

:root .avatar.btn-header {width:var(--v0-header-control-height);height:var(--v0-header-control-height);padding:0;}
:root .v13-team-count button {box-sizing:border-box;width:var(--v0-control-min-size);height:var(--v0-control-min-size);min-height:var(--v0-control-min-size);}
:root .gdmm-answer-actions button {min-height:var(--v0-control-min-size);height:auto;}

:root :is(.v13-start-sequence,.course-reminder-cta) {font-size:var(--v0-font-size-standard);line-height:var(--v0-line-height-standard);}

/* Außenmaß des Umschalters ist 40px, einschließlich Rahmen und Innenabstand. */
:root .account-view-switch {box-sizing:border-box;height:var(--v0-header-control-height);padding:calc((var(--v0-header-control-height) - var(--v0-role-switch-control-height)) / 2 - var(--v0-border-width));align-items:center;}
:root .account-view-switch .btn-header {box-sizing:border-box;height:var(--v0-role-switch-control-height);min-height:var(--v0-role-switch-control-height);padding-block:0;}

/* Filteraktionen übernehmen Höhe, Schrift und Kontur der Auswahlfelder. */
:root .filter-actions :is(#filter-toggle,.bulk .btn) {
  box-sizing:border-box;min-height:var(--v0-control-height);height:auto;
  padding-block:calc((var(--v0-control-height) - var(--v0-line-height-standard) - 2 * var(--v0-border-width)) / 2);
  font-family:var(--v0-font-family);font-size:var(--v0-font-size-standard);line-height:var(--v0-line-height-standard);font-weight:var(--v0-weight-regular);
}
:root .filter-actions :is(#filter-toggle,.bulk .btn) svg {width:var(--v0-icon-size);height:var(--v0-icon-size);stroke-width:var(--v0-icon-stroke-width);}
:root #filter-toggle[aria-expanded=true] svg {transform:rotate(180deg);}
/* Beide Beschriftungen teilen denselben reservierten Platz; kein Breitenwechsel. */
:root #filter-toggle {display:inline-grid;grid-template-columns:max-content auto;align-items:center;column-gap:var(--v0-space-small);}
:root #filter-toggle::before {content:"Filter ausblenden";visibility:hidden;grid-area:1/1;}
:root #filter-toggle > span {grid-area:1/1;}
:root #filter-toggle > svg {grid-column:2;grid-row:1;}
/* Gleiche Textaktion wie in der Kursreferenz. */
:root .filter-actions :is(#reset,#clear) {font-family:var(--v0-font-family);font-size:var(--v0-font-size-small);line-height:var(--v0-line-height-small);font-weight:var(--v0-weight-heavy);color:var(--v0-color-primary);text-decoration:none;background:transparent;border:0;padding:0;min-height:0;height:auto;width:auto;}
:root .filter-actions :is(#reset,#clear):hover {text-decoration:none;}
/* Alle sieben Wochentage übernehmen die Breite des Inhalts „Alle“. */
:root .booking-filter-group button:is([data-booking-choice=day],[data-admin-day]) {display:grid;place-items:center;}
:root .booking-filter-group button:is([data-booking-choice=day],[data-admin-day])::before {content:"Alle";visibility:hidden;grid-area:1/1;}
:root .booking-filter-group button:is([data-booking-choice=day],[data-admin-day]) > span {grid-area:1/1;}
:root .date-row .delete-date {border:var(--v0-border-input);border-radius:var(--v0-radius-control);background:var(--v0-color-surface);color:var(--v0-color-text);}
:root .date-row .delete-date svg {width:var(--v0-icon-size);height:var(--v0-icon-size);stroke-width:var(--v0-icon-stroke-width);}

/* Raum-Lobby: ausdrücklich bestätigte Eingabezeilenrolle. */
:root .gdmm-trainer-focus :is(.lf-join-strip button,.v13-team-actions button,.v13-team-count button) {box-sizing:border-box;min-height:var(--v0-control-height);height:var(--v0-control-height);padding-block:0;font-family:var(--v0-font-family);font-size:var(--v0-font-size-standard);line-height:var(--v0-line-height-standard);}

/* Challenge title-row actions share the existing 36px input-row role. */
.ux-author-head .ux-author-title>.icon-button,.ux-author-head .ux-author-header-actions>.btn,.ux-author-head .ux-author-header-actions>.icon-button{min-height:var(--v0-control-height);height:var(--v0-control-height);padding-block:var(--v0-space-field-label);font-size:var(--v0-font-size-standard);line-height:var(--v0-line-height-standard);border-radius:var(--v0-radius-control)}
.ux-author-header-actions>[data-draft-action=preview],.ux-author-header-actions>[data-draft-action=preview-close]{display:inline-grid;grid-template-columns:max-content}
.ux-author-header-actions>:is([data-draft-action=preview],[data-draft-action=preview-close])::after{content:'Vorschau schließen';visibility:hidden;grid-area:1/1}
.ux-author-header-actions>:is([data-draft-action=preview],[data-draft-action=preview-close])>span{grid-area:1/1}

.ux-author-head .ux-author-header-actions>.icon-button{width:var(--v0-control-height);min-width:var(--v0-control-height);padding:0}

/* Approved available-width interpolation: 317px -> 37/3; 357px -> 40.25/5. */
:root .booking-filter-group:has([data-booking-choice="day"]) { flex:0 0 min(100%,calc(8 * var(--v0-weekday-width-max) + 7 * var(--v0-weekday-gap-max))); width:min(100%,calc(8 * var(--v0-weekday-width-max) + 7 * var(--v0-weekday-gap-max))); max-width:100%; container-type:inline-size; }
:root .booking-filter-group:has([data-booking-choice="day"]) > div { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:var(--v0-filter-gap); }
:root .booking-filter-group [data-booking-choice="day"] { min-width:0; width:100%; max-width:var(--v0-weekday-width-max); padding-inline:0; }
@container (width < 317px) {
 :root .booking-filter-group:has([data-booking-choice="day"]) > div { display:flex; flex-wrap:wrap; gap:var(--v0-weekday-gap-min); }
 :root .booking-filter-group [data-booking-choice="day"] { width:var(--v0-weekday-width-min); }
}

/* Kursreiter übernehmen den freigegebenen gemeinsamen Rollenumschalter. */
:root .library-page-head [data-course-tabs] {max-width:100%;width:max-content;gap:0;}
:root .library-page-head [data-course-tabs] > .btn-header {flex:none;min-width:0;padding-inline:var(--v0-space-small);white-space:nowrap;}
:root .booking-filter-group button[aria-pressed=true] {background:var(--v0-color-primary);color:var(--v0-color-surface);border-color:var(--v0-color-primary);}
:root .booking-filter-group button[aria-pressed=true]:hover {background:var(--v0-color-primary-hover);}
:root [data-self-study=purchase-toggle] {display:inline-grid;place-items:center;}
:root [data-self-study=purchase-toggle]::before {content:"Details und Buchen";visibility:hidden;grid-area:1/1;}
:root [data-self-study=purchase-toggle] > span {grid-area:1/1;}
/* Die Tageszeitgruppe richtet alle drei Spalten am breitesten Text aus. */
:root .booking-filter-group:has([data-booking-choice=time],[data-admin-time]) > div {display:inline-grid;grid-template-columns:repeat(3,1fr);width:max-content;max-width:100%;}
:root .booking-filter-group :is([data-booking-choice=time],[data-admin-time]) {width:100%;}

:root [data-self-study=purchase-toggle] > [data-purchase-reserve] {visibility:hidden;}

/* Shared weekday-style filters: forum and assigned exercises. */
:root :is(.booking-filter-group button,[data-action="filter-forum"],[data-exercise-filter]) {font-family:var(--v0-font-family);font-size:var(--v0-font-size-standard);line-height:var(--v0-line-height-standard);font-weight:var(--v0-weight-regular);}
:root :is([data-action="filter-forum"],[data-exercise-filter]) {box-sizing:border-box;min-width:var(--v0-weekday-width-min);min-height:var(--v0-control-height);height:var(--v0-control-height);padding-block:0;padding-inline:var(--v0-filter-gap);border:var(--v0-border-input);border-radius:var(--v0-radius-control);color:var(--v0-color-text);background:var(--v0-color-surface);white-space:nowrap;flex:none;}
:root :is([data-action="filter-forum"],[data-exercise-filter])[aria-pressed="true"] {background:var(--v0-color-primary);color:var(--v0-color-surface);border-color:var(--v0-color-primary);}
:root :is([data-action="filter-forum"],[data-exercise-filter])[aria-pressed="true"]:hover {background:var(--v0-color-primary-hover);}

/* The two course links share the room release; disabled controls stay gray. */
:root [data-course-entry] {font-weight:var(--v0-weight-heavy);}
:root a[data-course-entry=teams] {background:var(--v0-color-ms-teams);color:var(--v0-color-surface);}
:root a[data-course-entry=room] {background:var(--v0-color-accent);color:var(--v0-color-text);}
:root button[data-course-entry]:disabled {background:var(--v0-color-border);color:var(--v0-color-muted);opacity:1;}

/* Every live-room single-line input row shares the 36px control role. */
:root :is(.focus-team-form-row,.focus-send-row) > button,:root .v13-chat-send {
 box-sizing:border-box;min-height:var(--v0-control-height);height:var(--v0-control-height);
 padding-block:0;border-radius:var(--v0-radius-control);align-self:center;
}
:root :is(.focus-team-form-row,.focus-send-row) > input,:root .v13-chat-entry input {
 box-sizing:border-box;min-height:var(--v0-control-height);height:var(--v0-control-height);padding:var(--v0-padding-input);border:var(--v0-border-input);
}
:root :is(.ms-teams-tile,.focus-action-tile,.focus-status-grid button) {border-radius:var(--v0-radius-control);}
:root .focus-status-grid button {min-height:var(--v0-status-control-height);}

/* Room sequence icons share the normal library icon-control geometry. */
:root .gdmm-trainer-focus .v13-challenge-actions .icon-button,:root .gdmm-trainer-focus .v13-sequence-actions .icon-button {flex:0 0 var(--v0-control-min-size);width:var(--v0-control-min-size);min-width:var(--v0-control-min-size);height:var(--v0-control-min-size);padding:0;}
