#breakDialog {
  width: min(25rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  color: #2a4135;
  background: #fffaf1;
  border: 1px solid #cbbda3;
  border-radius: 1.6rem;
  box-shadow: 0 18px 65px #12291f45;
  overflow: auto;
  overscroll-behavior: contain;
}
#breakDialog::backdrop { background: #1b3029b8; }
.break-card { padding: clamp(1.2rem, 4.5vh, 2.2rem) clamp(1rem, 6vw, 2rem) 1rem; text-align: center; }
.break-portrait { position: relative; width: clamp(7rem, 23vh, 11.5rem); margin: 0 auto 1.4rem; }
.break-portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  background: #f9e6bd; border: .38rem solid #fffdf8; border-radius: 50%;
  box-shadow: 0 0 0 2px #dfbc78, 0 6px 13px #846e4426;
}
.break-speaker { position: absolute; bottom: -.52rem; left: 50%; transform: translateX(-50%); border-radius: 99px; border: 2px solid #fffaf1; background: #315944; color: #fffaf1; font-weight: 750; padding: .18rem .85rem; white-space: nowrap; }
#breakCaption { margin: 0; color: #70624c; font-size: .94rem; }
#breakLine { margin: .3rem 0 1.3rem; font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.28; letter-spacing: -.055em; text-wrap: balance; }
#breakDialog:not(.is-resting) #breakLine {
  position: relative; isolation: isolate; width: fit-content; max-width: 100%;
  margin: .7rem auto 1.15rem; padding: .35rem .75rem .45rem;
  background: #ffebc5; border-radius: .85rem;
}
#breakDialog:not(.is-resting) #breakLine::before {
  content: ''; position: absolute; z-index: -1; width: .6rem; height: .6rem;
  top: -.21rem; left: 24%; background: #ffebc5; transform: rotate(45deg);
}
.break-actions { display: grid; gap: .5rem; }
#breakDialog button { min-height: 44px; font: inherit; cursor: pointer; touch-action: manipulation; }
.break-actions button { width: 100%; padding: .6rem; border: 1px solid #bac3ad; border-radius: .72rem; color: #395141; background: #f5f5e8; font-weight: 700 !important; }
#breakRest, #breakResume { border-color: #315944; background: #315944; color: #fffdf4; }
#breakReplay { margin: .45rem auto 0; border: none; background: transparent; color: #535e52; font-size: .92rem; padding: .3rem .65rem; }
#breakReplay span { display: inline-block; color: #8c6733; margin-right: .2rem; }
#breakVoiceStatus { margin: .15rem 0 .3rem; font-size: .86rem; }
#breakDialog [hidden] { display: none; }
#breakDialog button:focus-visible { outline: 3px solid #bd792c; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  #breakDialog[open] .break-card { animation: greeting-in .28s ease-out both; }
  #breakDialog.is-speaking .break-portrait img { animation: greeting-pulse .42s ease-in-out infinite alternate; }
  @keyframes greeting-in { from { opacity: .3; transform: translateY(10px); } }
  @keyframes greeting-pulse { to { transform: rotate(-1deg) scale(1.015); } }
}
@media (max-height: 480px) and (min-width: 500px) {
  #breakDialog { width: min(34rem, calc(100% - 2rem)); }
  .break-card { display: grid; grid-template-columns: 8rem 1fr; gap: .2rem 1.2rem; align-items: center; padding: 1rem 1.3rem; }
  .break-portrait { grid-column: 1; grid-row: 1 / 5; width: 7.6rem; margin: 0; }
  .break-card > :not(.break-portrait) { grid-column: 2; }
  #breakLine { margin: .1rem 0 .55rem; }
  #breakReplay { margin-top: 0; }
}
