.mobile-menu-button { display: none; }
/* Separate the code field and submit action where they cannot share a row. */
@media screen and (max-width: 480px) {
  .join-bar > div,
  [data-design] .join-bar > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    gap: 8px;
    padding: 0;
    background: none;
  }
  .join-bar input,
  [data-design] .join-bar input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 22px;
    background: var(--black);
  }
  .join-bar button {
    min-height: 44px;
    white-space: normal;
  }
}
@media screen {
  html:is(:not([data-design]), [data-design="klassik"], [data-design="register"])
    .module-card .module-start {
    width: min(100%, 11rem);
    min-width: 0;
    min-height: 44px;
    padding-inline: 8px;
    text-align: center;
    white-space: nowrap;
  }
  :is(.flow-actions, .live-work .actions) > .button:where(:not(.meeting-icon-button)),
  .live-agenda > .button {
    width: min(100%, 14rem);
    min-height: 44px;
    text-align: center;
  }
  .form-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-footer .button {
    min-height: 44px;
    overflow-wrap: anywhere;
  }
}
@media screen and (651px <= width <= 850px) {
  html:is(:not([data-design]), [data-design="klassik"]) .module-card.large {
    grid-template-columns: 66px minmax(0, 1fr);
    column-gap: 12px;
    padding: 14px;
  }
  html:is(:not([data-design]), [data-design="klassik"]) .module-card.large .module-art {
    width: 64px;
    height: 64px;
  }
}
@media screen and (900px < width <= 1040px) {
  html:is(:not([data-design]), [data-design="klassik"]) .module-card {
    grid-column: span 2;
  }
}
@media screen and (651px <= width <= 760px) {
  html[data-design="register"] .format-panel:not([hidden]) {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 530px) {
  :is(.flow-actions:where(:not(.people-footer)), .live-work .actions):has(> .button:where(:not(.meeting-icon-button)) + .button) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
  }
  :is(.flow-actions:where(:not(.people-footer)), .live-work .actions):has(> .button:where(:not(.meeting-icon-button)) + .button)
    > .button:where(:not(.meeting-icon-button)) {
    width: 100%;
    padding-inline: 8px;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .flow-actions.live-footer > .button {
    gap: 4px;
    font-size: .875rem;
  }
}
@media screen and (max-width: 365px) {
  :is(.flow-actions:where(:not(.people-footer)), .live-work .actions):has(> .button:where(:not(.meeting-icon-button)) + .button) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media screen and (max-width: 1040px) {
  .classic-header, #topbar.classic-header, .room-head.classic-header {
    width: min(94%, 960px);
    height: 56px;
    min-height: 56px;
    margin: 12px auto 0;
    padding: 0 8px 0 15px;
    gap: 8px;
    flex-wrap: nowrap;
    border-radius: 18px;
    z-index: 5;
  }
  .classic-header .classic-brand img { height: 29px; }
  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--accent-tint);
    color: var(--ink);
    font: 600 15px Outfit, sans-serif;
  }
  .mobile-menu-button i { width: 15px; height: 10px; border-block: 2px solid; }
  .mobile-menu-button[aria-expanded=true] i {
    border: none;
    height: 16px;
    background: linear-gradient(45deg, transparent 45%, currentColor 46% 54%, transparent 55%),
      linear-gradient(-45deg, transparent 45%, currentColor 46% 54%, transparent 55%);
  }
  .classic-header #main-navigation { display: none; }
  .classic-header .mobile-menu-button[aria-expanded=true] + #main-navigation {
    display: grid;
    gap: 0;
    align-items: stretch;
    justify-content: stretch;
    position: absolute;
    inset: calc(100% + 6px) 0 auto;
    max-height: calc(100dvh - 90px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 26px #27211a24;
  }
  #main-navigation > button[data-module],
  #main-navigation > .management-insights-link,
  #main-navigation > .workspace-nav-link,
  #main-navigation .classic-menu summary,
  #main-navigation > .design-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    max-width: none;
    padding: 7px 8px;
    font-size: 16px;
    text-align: left;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  #main-navigation .classic-menu summary::after {
    content: "";
    margin-left: auto;
    width: 7px;
    height: 7px;
    border: solid #615b54;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  #main-navigation .classic-menu[open] summary::after { transform: rotate(225deg); }
  #main-navigation .classic-menu > div {
    position: static;
    min-width: 0;
    width: auto;
    padding: 4px 8px;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    background: var(--panel);
  }
  #main-navigation .classic-menu > div :is(button, a) { min-height: 44px; }
}
.flow-frame .has-live-question, .room-main .flow-frame .has-live-question { padding: 0; }
[data-smooth-details][data-resizing] { overflow: hidden; }
@media screen and (max-width: 650px), screen and (pointer: coarse) {
  .outlook-prepare .modal-form :is(input:not([type="checkbox"]):not([type="range"]), select, textarea),
  .room-main .room-form :is(input:not([type="checkbox"]):not([type="range"]), select, textarea),
  .classic-shell .flow-frame :is(input:not([type="checkbox"]):not([type="range"]), select, textarea),
  .classic-shell #dialog-content :is(input:not([type="checkbox"]):not([type="range"]), select, textarea) {
    font-size: max(16px, 1rem);
  }
}
:is(.flow-frame[data-stage="people"], .flow-title:has(+ .flow-frame[data-stage="people"])) {
  --people-inset: clamp(18px, 3vw, 30px);
}
.flow-title:has(+ .flow-frame[data-stage="people"]) {
  max-width: 940px;
  margin-inline: auto;
  padding-inline: calc(var(--people-inset) + 1px);
  text-align: left;
}
.flow-frame[data-stage="people"] > .invite-code {
  display: grid;
  justify-items: start;
  margin: 0;
  padding: 18px var(--people-inset);
  border: 0;
  border-radius: 0;
}
.flow-frame[data-stage="people"] > .invite-code > :is(div, [data-copy-code]) {
  justify-self: start;
  margin-inline: 0;
}
.flow-frame[data-stage="people"] > .invite-code > [data-copy-code] {
  margin-inline-start: -8px;
  padding-inline-start: 18px;
}
.flow-frame[data-stage="people"] :is(.panel-title, .task-row, .setting),
.room-main .flow-frame[data-stage="people"] details.room-section,
.flow-frame[data-stage="people"] > .flow-actions {
  padding-inline: var(--people-inset);
}
.flow-frame[data-stage="people"] > .flow-actions { justify-content: flex-start; }
.people-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.people-footer > [data-action="link"] {
  justify-self: center;
  overflow-wrap: anywhere;
}
.people-footer > .button.people-next {
  justify-self: end;
  width: auto;
  padding-inline: 26px;
  white-space: nowrap;
}
.people-next .icon { flex: none; }
.review-footer {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
}
.review-footer > .button.meeting-home {
  background: #fff;
  color: #000;
}
.review-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 14rem));
  grid-auto-rows: 1fr;
  justify-content: end;
  gap: 10px;
}
.review-controls .room-form { margin: 0; }
.review-controls .button {
  width: 100%;
  min-height: 44px;
  text-align: center;
}
.review-controls:has(.review-undo) {
  grid-template-columns: auto minmax(0, 14rem);
  align-items: center;
}
.review-controls .button.review-undo {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
}
.room-main .flow-content .review-invite-form {
  gap: 0;
  margin: 0;
}
.review-invite-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-invite-actions > .review-send {
  flex: none;
  inline-size: 40px;
  block-size: 40px;
  padding: 0;
  border-radius: 50%;
}
.review-invite-form output:not(:empty) { margin-block-start: 6px; }
@media screen and (max-width: 530px) {
  .people-footer { gap: 6px; }
  .people-footer > .button { font-size: 13px; }
  .people-footer > [data-action="link"],
  .people-footer > .button.people-next { padding-inline: 6px; }
  .people-footer > .button.people-next { gap: 4px; }
}
.flow-frame[data-stage="people"] .panel-title { flex-wrap: wrap; }
.flow-frame[data-stage="people"] details.room-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
}
.flow-frame[data-stage="people"] details.room-section > summary::-webkit-details-marker {
  display: none;
}
.flow-frame[data-stage="people"] details.room-section > summary::after {
  content: "";
  flex: 0 0 24px;
  block-size: 24px;
  border-radius: 50%;
  background: var(--panel-muted) url("./assets/chevron-down.svg") center / 16px no-repeat;
}
.flow-frame[data-stage="people"] details.room-section[open]:not([data-closing]) > summary::after {
  transform: rotate(180deg);
}
.invitation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 4vw, 42px);
  margin-top: 16px;
}
.invitation-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.invitation-person input {
  flex: none;
  inline-size: 16px;
  block-size: 16px;
  margin: 0;
}
.invitation-panel :is(.invitation-status, [data-selection-count]) {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.invitation-panel .invitation-status { margin: 0; }
.invitation-panel .invitation-status:not(:empty) { margin-top: 6px; }
.invitation-compose .room-form { margin: 0; }
.invitation-role-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
.invitation-role-row > .invitation-add {
  inline-size: 40px;
  block-size: 40px;
  padding: 0;
  border-radius: 50%;
}
.invitation-add:disabled { opacity: .55; }
.invitation-role-picker {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.invitation-role-picker legend {
  padding: 0;
  margin-block-end: 6px;
  font-size: 14px;
  font-weight: 500;
}
.invitation-role-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.invitation-role-options label {
  position: relative;
  place-items: center;
  min-block-size: 40px;
  padding: 4px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.invitation-role-options input {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.invitation-role-options label:has(:checked) {
  border-color: var(--accent-solid);
  background: var(--accent-solid);
  color: var(--accent-on);
}
.invitation-role-options label:has(:focus-visible) {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.invitation-directory {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.invitation-directory h2 {
  margin: 0;
  font-size: 16px;
}
.invitation-directory input[type="search"] {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.invitation-scroll {
  max-height: 275px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}
.invitation-people {
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
}
.invitation-people li:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 53px;
  padding: 6px 4px;
  border-top: 1px solid var(--line);
}
.invitation-person {
  min-height: 40px;
  font-size: 14px;
}
label.invitation-person { cursor: pointer; }
.invitation-identity {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
}
.invitation-identity small { color: var(--muted); }
.invitation-person-actions {
  display: grid;
  inline-size: 6rem;
  gap: 4px;
}
.invitation-role {
  padding: 3px 8px;
  border-radius: 999px;
  text-align: center;
  background: var(--panel-muted);
  color: #544c44;
  font-size: 12px;
  font-weight: 600;
}
.invitation-role[data-role=""] {
  background: transparent;
  color: var(--muted);
}
.invitation-role[data-role="Contributor"] {
  background: var(--accent-tint);
  color: var(--accent-ink);
}
.invitation-role[data-role="Owner"] {
  background: #292521;
  color: #fff;
}
.invitation-person-actions .button.small {
  inline-size: 100%;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12px;
}
@media (max-width: 680px) {
  .invitation-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  [data-smooth-details] > summary::after { transition: transform .18s ease-out; }
}
/* Keep the question and its clock together, including on narrow displays. */
.flow-frame .question-banner.live-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, .26fr);
  align-items: start;
  gap: 18px clamp(20px, 3.5vw, 48px);
  margin: 0;
  padding: clamp(16px, 2vw, 24px) clamp(18px, 3.7vw, 46px) 20px;
  color: var(--accent-on);
  text-align: left;
}
.chapter-proposer, .chapter-clock > span, .meeting-context span {
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.4;
}
.chapter-copy { min-width: 0; }
.chapter-proposer { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.flow-frame .live-question h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.875rem, 3.7vw, 3.2rem);
  font-weight: 640;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.live-question tact-question { display: block; }
.live-question tact-question h2 {
  hyphens: auto;
}
@media screen {
  tact-question[data-folded] h2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
}
.question-toggle {
  margin-top: 6px;
  padding: 6px 0;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
@media print { .question-toggle { display: none; } }
.flow-frame .question-banner:not(.live-question) > div { min-width: 0; overflow-wrap: anywhere; }
.live-question h2:focus { outline: none; }
.chapter-clock {
  display: grid;
  align-content: center;
  gap: 2px;
  padding-inline-start: clamp(16px, 2vw, 26px);
  border-inline-start: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  font-variant-numeric: tabular-nums;
}
.chapter-clock strong {
  font-size: clamp(2.1rem, 3.3vw, 3rem);
  font-weight: 580;
  line-height: 1.1;
}
.chapter-clock progress {
  appearance: none;
  width: 100%;
  height: 5px;
  margin: 7px 0 0;
  border: 0;
  border-radius: 4px;
  background: color-mix(in srgb, currentColor 22%, transparent);
  color: inherit;
}
.chapter-clock progress::-webkit-progress-bar { background: transparent; }
.flow-frame .chapter-clock progress::-webkit-progress-value { background: currentColor; }
.chapter-clock progress::-moz-progress-bar { background: currentColor; }
.chapter-clock .clock-over { font-weight: 650; }
.meeting-context {
  grid-column: 1 / -1;
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, currentColor 32%, transparent);
}
.meeting-context > div { display: grid; min-width: 0; gap: 2px; }
.meeting-context strong { font-size: 1rem; font-weight: 570; overflow-wrap: anywhere; }
.live-work { padding: 20px clamp(18px, 4vw, 48px) 26px; }
@media (max-width: 650px) {
  .flow-frame .question-banner.live-question {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .chapter-clock {
    grid-template-columns: auto auto 1fr;
    align-items: baseline;
    gap: 2px 8px;
    border: 0;
    padding: 0;
  }
  .chapter-clock strong { font-size: 1.55rem; }
  .chapter-clock :is(progress, .clock-over, .clock-paused) { grid-column: 1 / -1; }
  .meeting-context { gap: 8px 20px; padding-top: 10px; }
}
.editing-chapter {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent-indicator);
  background: var(--accent-tint);
}

/* Give the moderator room to write and to open the next chapter. */
.live-agenda > .button { margin-top: 12px; }
.flow-title:has(+ .flow-frame[data-stage="live"]) { overflow-wrap: anywhere; }
@media screen and (min-width: 900px) {
  body:has(.flow-frame[data-stage="live"]) :is(#topbar.classic-header, .room-head.classic-header) {
    height: 52px;
    min-height: 52px;
    margin: 8px auto 0;
    padding-inline: clamp(15px, 2vw, 32px);
    border-radius: 16px;
  }
  :is(#main,.room-main):has(.flow-frame[data-stage="live"]) {
    padding-bottom: 12px;
  }
  .flow-frame[data-stage="live"],
  .live-heading {
    width: 100%;
  }
  html:not([data-design="spalten"]) .flow-frame[data-stage="live"] > .process-strip {
    min-height: 42px;
    padding-block: 3px;
  }
  .live-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
    align-items: stretch;
  }
  .live-layout > .has-live-question { display: contents; }
  .live-layout .live-question {
    grid-column: 1 / -1;
    padding-inline: clamp(22px, 2vw, 40px);
    grid-template-columns: minmax(0, 1fr) clamp(155px, 15vw, 275px);
  }
  .live-layout .live-work, .live-layout .live-agenda {
    min-width: 0;
    padding: 20px clamp(20px, 2vw, 40px);
    overflow-wrap: anywhere;
  }
  .live-layout .live-work { border-bottom: 1px solid var(--line); }
  .room-main .live-work > .room-form[data-op="notes"] { max-width: none; width: 100%; }
  .live-layout .live-work textarea:is(#live-notes,[name="notes"]) {
    min-height: clamp(135px, 19vh, 300px);
  }
  .live-layout .live-agenda {
    border-inline-start: 1px solid var(--line);
    background: var(--panel);
  }
  .live-layout .live-agenda h2 { margin: 0 0 10px; font-size: 1.15rem; }
  .live-agenda .next-chapter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding-block: 12px;
    border-bottom: 1px solid var(--line);
  }
  .live-agenda .next-chapter .button { justify-self: start; }
  .live-agenda .chapter-fold { padding: 0; }
  .live-agenda .chapter-fold > summary { padding: 12px 0; }
  .live-agenda .chapter-fold > summary small { flex: none; }
  .room-main .live-agenda .chapter-fold > .room-section { padding: 12px 0; }
  .live-footer { justify-content: flex-end; padding: 12px clamp(20px, 2vw, 40px); }
  .live-footer > button:first-child { margin-inline-end: auto; }
  .classic-shell .workspace:has(.live-layout) {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .classic-shell #main:has(.live-layout) {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  html:not([data-design="spalten"]) .classic-shell .flow-frame:has(.live-layout) {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .classic-shell .live-layout { flex: 1; grid-template-rows: auto 1fr; }
  .classic-shell .live-layout .live-work { display: flex; flex-direction: column; }
  .classic-shell .live-layout #live-notes { flex: 1; }
}
.flow-title:has(+ .flow-frame > .room-live) {
  margin-block: clamp(24px, 4vw, 42px) 18px;
  padding-inline: 4px;
  text-align: left;
}
.flow-frame:has(> .room-live) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.flow-frame:has(> .room-live) > .process-strip {
  border-end-start-radius: 18px;
  border-end-end-radius: 18px;
}
.room-live {
  --live-card-padding: clamp(16px, 2.8vw, 26px);
  display: grid;
  gap: 14px;
  padding-top: 14px;
}
.room-live .live-layout {
  display: grid;
  gap: 14px;
}
.room-live .live-layout > .has-live-question { display: contents; }
.flow-frame .room-live .live-question {
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  padding: var(--live-card-padding);
  background: var(--pale);
  color: var(--ink);
}
.room-live .live-question h2 { font-size: clamp(1.45rem, 3.2vw, 2.25rem); }
.room-live .chapter-clock [role="timer"] {
  justify-self: start;
  margin-inline-start: -6px;
  padding-inline: 6px;
  border-radius: 8px;
}
.room-live .chapter-clock:has(.clock-over:not([hidden])) [role="timer"] {
  color: #a91622;
  background: #ffe0e2;
}
.room-live .chapter-clock .clock-paused {
  justify-self: start;
  margin-top: 4px;
  padding: 3px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  background: var(--surface);
  font-weight: 650;
}
.room-live .meeting-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.room-live .meeting-controls .room-form { margin: 0; }
.room-live .meeting-controls .button { min-height: 40px; }
.room-live .meeting-controls form[data-op="cancel"] .button {
  border: 1px solid #d9ada9;
  background: var(--surface);
  color: #88241e;
}
.room-live .meeting-controls form[data-op="cancel"] .button:hover { background: #ffeae7; }
@media (prefers-reduced-motion: no-preference) {
  .room-live .chapter-clock:not([data-paused]):has(.clock-over:not([hidden])) [role="timer"] {
    animation: chapter-overtime-blink 1.6s steps(1, end) infinite;
  }
  @keyframes chapter-overtime-blink {
    0%, 100% { color: #fff; background-color: #e40822; }
    50% { color: #a91622; background-color: #ffe0e2; }
  }
}
.room-live :is(.live-work, .live-agenda, .room-live-entry, .room-live-closing) {
  min-width: 0;
  margin: 0;
  padding: var(--live-card-padding);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.room-live :is(.live-agenda-heading, .room-live-closing) > h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  letter-spacing: -.015em;
  font-weight: 620;
}
.room-live .live-agenda-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.room-live .live-agenda-heading > :is(h2, .room-form) { margin: 0; }
.live-next-list { margin: 0; padding: 0; list-style: none; }
.live-next-list > li { border-bottom: 1px solid var(--line); }
.live-next-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 9px 4px;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  text-align: start;
}
.live-next-chapter:hover, .live-next-chapter[aria-current="true"] { background: var(--pale); }
.live-next-chapter > small {
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--muted);
}
.live-chapter-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.room-live .live-chapter-preview h2 { margin: 0; }
#room-cancelled-notes > section { padding-block: 10px; border-top: 1px solid var(--line); }
.room-abort-draft { padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.room-main .flow-frame .room-live .chapter-fold > .room-section {
  padding: 0 4px 12px;
}
.room-live .chapter-fold { padding: 0; }
.room-live :is(.chapter-fold, .room-live-closing > details) > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 4px;
  list-style: none;
  cursor: pointer;
}
.room-live :is(.chapter-fold, .room-live-closing > details) > summary::-webkit-details-marker {
  display: none;
}
.room-live :is(.chapter-fold, .room-live-closing > details) > summary::after {
  content: "";
  flex: 0 0 16px;
  height: 16px;
  margin-inline-start: auto;
  background: url("./assets/chevron-down.svg") center / contain no-repeat;
}
.room-live :is(.chapter-fold, .room-live-closing > details)[open]:not([data-closing]) > summary::after {
  transform: rotate(180deg);
}
.room-live .chapter-fold > summary > span { flex: 1; }
.room-live .chapter-fold > summary > small {
  flex: none;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--muted);
}
.room-live .chapter-fold[open] > summary { color: var(--accent-ink); }
.room-live .live-chapter .room-form { margin: 8px 0 14px; }
.room-live .live-work {
  display: flex;
  flex-direction: column;
}
.room-live .live-work > .room-form:first-child { margin-top: 0; }
.room-live .live-chapter .room-form[data-op="notes"] {
  max-width: none;
  row-gap: 8px;
}
.room-live .live-chapter [data-note-status] { margin: 0; }
.room-live .chapter-toolbar,
.room-live .chapter-icon-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.room-live .chapter-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.room-live .live-work > .chapter-toolbar { margin-top: auto; }
.room-live .chapter-icon-actions { margin-inline-start: auto; }
.room-live .chapter-icon-actions .room-form { margin: 0; }
.chapter-note-status, .chapter-note-status small {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--muted);
  font-size: 13px;
}
.chapter-note-status small::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #438257;
}
.chapter-note-status[data-note-state="saving"] small::before { background: #bd651e; }
.chapter-note-status:is([data-note-state="failed"], [data-note-state="conflict"], [data-note-state="review"]) small::before {
  background: #ab342d;
}
.chapter-note-status [data-note-action]:empty { display: none; }
.chapter-note-status [data-note-action] .button {
  padding: 4px 8px;
  min-height: 28px;
  font-size: 13px;
}
.room-live .chapter-icon-actions .chapter-icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: #000;
}
.chapter-dialog {
  --chapter-dialog-inset: clamp(16px, 3vw, 30px);
  width: min(680px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 22px 74px #32221940;
}
.chapter-dialog[data-chapter-action="feedback"] { width: min(960px, calc(100% - 28px)); }
.chapter-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.chapter-dialog::backdrop { background: rgb(28 21 15 / 44%); backdrop-filter: none; }
.chapter-dialog-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(9px, 2vw, 15px);
  padding: var(--chapter-dialog-inset);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.chapter-dialog-icon,
.chapter-dialog-heading button {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
}
.chapter-dialog-icon { background: var(--pale); color: var(--accent-ink); }
.chapter-dialog-heading button { border: 1px solid var(--line); background: var(--surface); }
.chapter-dialog-heading h2 {
  margin: 0 0 4px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.chapter-dialog-heading p { color: var(--muted); overflow-wrap: anywhere; }
.chapter-dialog-content {
  min-height: 0;
  padding: var(--chapter-dialog-inset);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.room-main .chapter-dialog .room-form { max-width: none; margin: 0; gap: 14px; }
.chapter-dialog .room-form label { min-width: 0; }
.chapter-dialog [data-op="feedback-toggle"], .chapter-dialog-footer:empty { display: none; }
.chapter-dialog-content select, .chapter-dialog-content textarea { width: 100%; }
.chapter-dialog [data-op="task"] > label { align-content: start; font-weight: 600; }
.chapter-dialog [data-op="task"] :is(input:not([type="checkbox"]), select) {
  min-height: 44px;
  font-size: 16px;
}
.task-assignments {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.task-assignments legend { padding-inline: 5px; font-size: 14px; font-weight: 630; }
.task-person-search { position: relative; }
.task-person-search svg {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.room-main .chapter-dialog .room-form .task-person-search input[type="search"] { padding-inline-start: 40px; }
.task-assignee-list {
  max-height: 154px;
  margin: 8px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
  overscroll-behavior: contain;
}
.task-assignee-list li + li { border-top: 1px solid var(--line); }
.room-main .chapter-dialog .room-form .task-assignee {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.task-assignee:hover, .task-assignee:has(input:checked) { background: var(--pale); }
.task-assignee input { margin: 0; accent-color: var(--accent-solid); }
.task-assignee-name { display: grid; overflow-wrap: anywhere; }
.task-assignee-badge { padding: 3px 8px; border-radius: 20px; background: var(--surface); color: var(--muted); }
.task-assignee-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.my-rooms .assigned-tasks { margin-top: 16px; padding: 22px; }
.assigned-tasks h2 { font-size: 1.2rem; margin-bottom: 8px; }
.chapter-dialog .quick-rating {
  margin: 0;
  padding: 13px;
  border-color: var(--line);
  background: #fbfdff;
}
.chapter-dialog .quick-rating legend { max-width: 100%; overflow-wrap: anywhere; }
.chapter-dialog .quick-rating .quick-range { grid-template-columns: minmax(0, 1fr) 3.2rem; margin-bottom: 10px; }
.chapter-dialog .quick-rating textarea { min-height: 64px; resize: vertical; }
.chapter-dialog .quick-rating .quick-na { margin: 10px 0 0; }
.chapter-dialog-section + .chapter-dialog-section,
.chapter-dialog form + .chapter-dialog-section { margin-top: 16px; }
.chapter-dialog-section { border-top: 1px solid var(--line); }
.chapter-dialog-section > summary { padding: 12px 0; cursor: pointer; font-weight: 620; }
.chapter-dialog-notice,
.chapter-dialog-error:not(:empty) {
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: var(--pale);
}
.chapter-dialog-error:not(:empty) { color: #9f2721; background: #fff0ee; }
.chapter-dialog-footer {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 14px var(--chapter-dialog-inset) var(--chapter-dialog-inset);
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.chapter-dialog-footer .button { min-height: 46px; padding-inline: 8px; text-align: center; }
.chapter-dialog:has(.chapter-dialog-section:not([open]) [data-op="feedback"]) [form="chapter-dialog-feedback"] {
  display: none;
}
@media (min-width: 560px) {
  .chapter-dialog [data-op="task"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-dialog [data-op="task"] > :is(label:first-child, label:has([name="activity"]), .task-assignments) { grid-column: 1 / -1; }
  .chapter-dialog-footer { justify-content: end; grid-auto-columns: minmax(170px, 0.24fr); }
}
@media (min-width: 720px) {
  .chapter-dialog [data-op="feedback"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .chapter-dialog[open]:not([data-refresh]) { animation: chapter-dialog-enters 160ms ease-out; }
  @keyframes chapter-dialog-enters {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
  }
}
.room-main .flow-frame .room-live-closing > details.room-section {
  padding: 0;
  border-top: 1px solid var(--line);
}
.room-live-closing > details[open] > div { padding: 0 4px 12px; }
.room-live-closing .survey-setup {
  display: grid;
  align-items: end;
  gap: 12px;
}
.room-live-closing .survey-setup > label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.room-live-closing .survey-setup > .room-form { margin: 0; }
.room-live .flow-actions {
  margin-top: 8px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}
.room-live .flow-actions > a:only-child {
  background: var(--surface);
  border-color: var(--line);
}
@media screen and (min-width: 700px) {
  .room-live-closing .survey-setup:has(> .room-form) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
  }
  .room-live-closing .survey-setup > .room-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}
.live-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 6px clamp(4px, 1vw, 16px);
}
.live-heading .flow-title {
  flex: 1 1 8rem;
  min-width: 0;
  max-width: none;
  margin: 0;
  text-align: left;
  font-size: clamp(1.35rem, 2vw, 2rem);
  overflow-wrap: anywhere;
}
.room-main > .live-heading:has(+ .flow-frame .room-live .live-layout) > .flow-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.live-heading .live-nav-toggle {
  min-height: 40px;
  font-size: .9rem;
  margin-inline-start: auto;
}
@media screen {
  body:has(.live-nav-toggle[aria-expanded="false"]) :is(#topbar, #account.classic-header),
  .live-heading:has([aria-expanded="false"]) + .flow-frame > :is(#meeting-steps, #mobile-steps) {
    display: none;
  }
}
@media screen and (min-width: 851px) {
  [data-design="spalten"] .live-heading:has([aria-expanded="false"]) + .flow-frame {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    background: white;
  }
}
@media print {
  .live-nav-toggle { display: none; }
}
.live-nav-edge { display: none; }
@media screen and (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .room-main > .live-heading:has(+ .flow-frame .room-live .live-layout) { padding-block: 0; }
  .live-heading .live-nav-toggle { display: none; }
  .live-heading .live-nav-edge {
    display: block;
    position: fixed;
    inset: 0 0 auto;
    height: 8px;
    z-index: 20;
  }
  .live-heading:has([aria-expanded="false"]) .live-nav-edge::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 50%;
    width: 36px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: #928a80;
  }
  body:has(.live-nav-toggle) :is(#topbar.classic-header, #account.classic-header) {
    position: sticky;
    top: 0;
  }
}
@media screen and (min-width: 900px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body:has(.live-nav-toggle) :is(#topbar.classic-header, #account.classic-header, #meeting-steps, #mobile-steps) {
    transition: opacity .16s ease, translate .16s ease, display .16s allow-discrete;
  }
  body:has(.live-nav-toggle[aria-expanded="false"]) :is(#topbar.classic-header, #account.classic-header, #meeting-steps, #mobile-steps) {
    opacity: 0;
    translate: 0 -12px;
    pointer-events: none;
  }
  @starting-style {
    body:has(.live-nav-toggle[aria-expanded="true"]) :is(#topbar.classic-header, #account.classic-header, #meeting-steps, #mobile-steps) {
      opacity: 0;
      translate: 0 -12px;
    }
  }
}

.flow-frame .flow-actions.meeting-footer > .agenda-invite-next {
  width: auto;
  background: var(--accent-solid, #08518a);
  color: white;
  border-color: transparent;
  padding-inline: 34px;
}
@media (max-width: 530px) {
  .flow-frame .flow-actions.meeting-footer > .agenda-invite-next {
    padding-inline: 20px;
    font-size: 12px;
  }
}
