/* teacher-tools.css
 * 特教教師專業工具箱專用樣式
 * 包含：冷靜通道 (Calm Corner)、親師聯絡小單、60秒極速備課卡、白板大字模式
 */

/* 1. 通用模態框遮罩與容器 */
.teacher-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.teacher-modal-content {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1.5px solid #cbd5e1;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.teacher-modal-header {
  padding: 16px 24px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.teacher-modal-footer {
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* 2. 冷靜通道專用樣式 (Calm Corner) */
body.calm-corner-open { overflow: hidden; }
.calm-corner-open :is(#social-floating-tools, .mft-overlay, .mft-editor, .mft-toast, .mft-countdown, .focus-toggle, .focus-font-controls) { display: none !important; }
#calmCornerModal { padding: 16px; overscroll-behavior: contain; }
.calm-corner-modal {
  width: 100%;
  max-width: 980px;
  height: min(660px, calc(100dvh - 32px));
  max-height: none;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: #f0fdf4;
  font-family: "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
.calm-corner-modal .teacher-modal-header { padding: 14px 20px; gap: 16px; }
.calm-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.calm-heading-icon { font-size: 1.8rem; }
.calm-heading h2 { margin: 0; font-size: 1.25rem; line-height: 1.4; color: white; }
.calm-heading-subtitle { margin: 3px 0 0; font-size: .8rem; line-height: 1.5; color: #ccfbf1; }
.calm-corner-modal .modal-close-btn { flex: 0 0 44px; height: 44px; padding: 0; line-height: 1; }
.calm-tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 16px;
  background: #e6fcf5;
  border-bottom: 1.5px solid #a7f3d0;
}
.calm-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1.5px solid #99f6e4;
  background: #ffffff;
  color: #0f766e;
  font-family: inherit;
  font-weight: 800;
  font-size: .94rem;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: background .2s ease;
}
.calm-tab-btn > span:first-child { flex-shrink: 0; }
.calm-button-label { min-width: 0; overflow-wrap: anywhere; }
.calm-corner-modal button:focus-visible { outline: 3px solid #0284c7; outline-offset: 2px; }

.calm-tab-btn.active {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.calm-tab-btn.rain-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.calm-modal-body { padding: 16px 24px; min-height: 0; }
.calm-tab-pane { height: 100%; min-height: 0; }
#calmTabPane-breathe { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.calm-corner-modal .teacher-modal-footer { padding: 10px 20px; flex-wrap: nowrap; gap: 16px; }
.calm-footer-note { font-size: .8rem; line-height: 1.5; color: #475569; }
.calm-corner-modal .teacher-modal-footer .btn,
.calm-corner-modal .sensory-timer-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px !important;
  border: 1px solid #8aa99b;
  border-radius: 10px;
  background: #ffffff;
  color: #285d4b;
  font: 700 .94rem/1.4 "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
}
.calm-corner-modal .sensory-timer-actions .btn-primary { background: #f5b23e; color: #482e0c; border-color: #b67c24; }

/* 4-7-8 呼吸光環 */
.breathing-arena {
  display: grid;
  grid-template-columns: clamp(130px, 24dvh, 180px) minmax(0, 480px);
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 12px 0;
}

.breathing-bubble-container {
  width: clamp(130px, 24dvh, 180px);
  height: clamp(130px, 24dvh, 180px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 0;
}

.breathing-bubble {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 50%;
  background: #d9f5e7;
  border: 4px solid #3d9b74;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
  transition: background .3s ease, border-color .3s ease;
  transform: scale(.6);
  position: absolute;
  inset: 0;
}

.breathing-bubble.inhale {
  background: #d9f5e7;
  border-color: #3d9b74;
  box-shadow: 0 0 26px #3d9b7430;
}

.breathing-bubble.hold {
  background: #fff0bd;
  border-color: #b98b32;
  box-shadow: 0 0 26px #b98b3230;
}

.breathing-bubble.exhale {
  background: #dfedff;
  border-color: #5085b9;
  box-shadow: 0 0 26px #5085b930;
}

.breathing-turtle { position: relative; font-size: clamp(64px, 14dvh, 100px); line-height: 1; }
.breathing-instruction-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 6px; }
.breathing-instruction-row .breathing-main-text { margin-bottom: 0; }
.breathing-countdown { position: relative; display: flex; align-items: baseline; gap: 3px; color: #193f3a; pointer-events: none; font-variant-numeric: tabular-nums; }
.breathing-countdown strong { font-size: clamp(48px, 10dvh, 76px); line-height: 1; font-weight: 900; }
.breathing-countdown span { font-size: 16px; font-weight: 800; }
.breathing-phase-icon { width: 44px; height: 44px; flex-shrink: 0; }

.breathing-text-area {
  text-align: center;
  width: 100%;
  min-width: 0;
}

.breathing-main-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 900;
  color: #0f766e;
  margin-bottom: 6px;
}

.breathing-sub-text {
  min-height: 3.2em;
  line-height: 1.6;
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 14px;
}

.breathing-cycle-pill {
  display: inline-block;
  background: #ccfbf1;
  border: 1.5px solid #99f6e4;
  color: #0f766e;
  padding: 4px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}

.calm-tip-bar {
  line-height: 1.5;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 8px;
  color: #065f46;
  font-size: 0.95rem;
  text-align: center;
}

/* 視覺沙漏 */
.sensory-timer-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.sensory-timer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.timer-duration-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0;
}

.timer-pill {
  min-height: 44px;
  font: 700 .9rem/1.4 "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.timer-pill.active {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
}

.timer-display-huge {
  font-size: 4.8rem;
  font-weight: 900;
  color: #0f766e;
  font-family: ui-monospace, SFMono-Regular, monospace;
  margin: 10px 0;
  letter-spacing: 2px;
}

.sensory-progress-track {
  width: 100%;
  max-width: 480px;
  height: 18px;
  background: #e2e8f0;
  border-radius: 999px;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid #cbd5e1;
}

.sensory-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  transition: width 0.3s linear;
}

/* 5-4-3-2-1 著陸法列表 */
#calmTabPane-grounding { display: flex; flex-direction: column; gap: 10px; }
.grounding-heading { display: flex; justify-content: space-between; gap: 12px; color: #0f766e; font-weight: 800; font-size: .9rem; line-height: 1.4; }
#groundingStatusText { flex-shrink: 0; }
.grounding-list { flex: 1; min-height: 0; display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 8px; }

.grounding-item-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  font-family: inherit;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.98rem;
  color: #1e293b;
}

.grounding-item-box:hover {
  background: #f8fafc;
  border-color: #0f766e;
  transform: translateX(3px);
}

.grounding-check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.grounding-check.checked {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.grounding-check.checked::after {
  content: "✓";
  font-weight: 900;
  font-size: 1rem;
}

@media (max-width: 720px) {
  #calmCornerModal { padding: 8px; }
  .calm-corner-modal { height: calc(100dvh - 16px); }
  .calm-corner-modal .teacher-modal-header { padding: 10px 12px; gap: 8px; }
  .calm-heading h2 { font-size: 1rem; }
  .calm-heading-icon { display: none; }
  .calm-heading-subtitle { font-size: .72rem; }
  .calm-tabs-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; gap: 6px; }
  .calm-tab-btn { min-height: 44px; padding: 6px; font-size: .85rem; border-radius: 10px; }
  .calm-modal-body { padding: 12px; }
  .breathing-arena { grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; gap: 10px; padding: 4px 0; }
  .breathing-main-text { font-size: 1.5rem; }
  .breathing-instruction-row { gap: 12px; }
  .breathing-sub-text { font-size: .9rem; margin-bottom: 8px; }
  .calm-tip-bar { padding: 8px; font-size: .82rem; }
  .calm-corner-modal .teacher-modal-footer { padding: 8px 12px; gap: 10px; }
  .calm-footer-note { font-size: .72rem; }
  .calm-corner-modal .teacher-modal-footer .btn { font-size: .8rem; padding: 6px 10px !important; }
  .timer-duration-pills { width: 100%; gap: 6px; }
  .timer-pill { flex: 1; padding: 6px; font-size: .8rem; }
  .grounding-heading { flex-wrap: wrap; gap: 4px; font-size: .8rem; }
  .grounding-item-box { font-size: .85rem; padding: 6px 8px; gap: 8px; }
  .grounding-list { gap: 5px; }
  .grounding-check { width: 20px; height: 20px; }
}
@media (max-width: 720px) and (max-height: 700px) {
  .calm-heading-subtitle, .calm-footer-note { display: none; }
  .calm-corner-modal .teacher-modal-footer { justify-content: flex-end; }
  .breathing-bubble-container { width: 110px; height: 110px; }
  .breathing-turtle { font-size: 64px; }
  .breathing-arena { gap: 6px; }
  .breathing-main-text { font-size: 1.25rem; }
  .sensory-timer-card { gap: 10px; }
  .timer-display-huge { font-size: 3.5rem; line-height: 1.1; margin: 0; }
}
@media (max-width: 720px) and (max-height: 600px) {
  .breathing-countdown strong { font-size: 40px; }
  .breathing-phase-icon { width: 32px; height: 32px; }
  .calm-heading h2 { font-size: .9rem; }
  .calm-tab-btn { font-size: .78rem; }
  .breathing-bubble-container { width: 80px; height: 80px; }
  .breathing-turtle { font-size: 48px; }
  .breathing-main-text { font-size: 1.1rem; line-height: 1.3; }
  .breathing-sub-text { font-size: .8rem; line-height: 1.4; margin-bottom: 4px; }
  .breathing-cycle-pill { padding: 2px 10px; font-size: .75rem; }
  .grounding-heading > span:first-child { display: none; }
  .grounding-item-box { padding: 4px 6px; font-size: .78rem; line-height: 1.35; }
}
@media (max-height: 600px) and (min-width: 721px) {
  #calmCornerModal { padding: 8px; }
  .calm-corner-modal { height: calc(100dvh - 16px); }
  .calm-corner-modal .teacher-modal-header { padding: 8px 16px; }
  .calm-heading-subtitle { display: none; }
  .calm-tabs-nav { padding: 6px 12px; }
  .calm-modal-body { padding: 10px 16px; }
  .calm-corner-modal .teacher-modal-footer { padding: 6px 16px; }
  .sensory-timer-card { gap: 8px; }
  .timer-display-huge { font-size: 3.4rem; margin: 0; }
  .grounding-item-box { padding: 4px 10px; font-size: .85rem; }
  .grounding-list { gap: 5px; }
}

/* 3. 親師聯絡單模態框樣式 */
.comm-modal {
  max-width: 1040px;
}

.comm-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.comm-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  color: #1e293b;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.comm-textarea {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #1e293b;
  background: #f8fafc;
  resize: vertical;
  box-sizing: border-box;
}

.slips-preview-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f1f5f9;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px;
}

.print-slip-card {
  background: #ffffff;
  border: 1.5px solid #f59e0b;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.slip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #fde68a;
  padding-bottom: 4px;
  margin-bottom: 4px;
  font-weight: 900;
  color: #92400e;
  font-size: 0.78rem;
}

.slip-week {
  background: #fef3c7;
  color: #b45309;
  padding: 1px 6px;
  border-radius: 4px;
}

.slip-title {
  font-weight: 900;
  color: #0f172a;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.slip-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}

.slip-home-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 4px 6px;
  margin-top: 2px;
  color: #166534;
}

.slip-parent-sign {
  font-size: 0.76rem;
  margin-top: 3px;
  color: #15803d;
  font-weight: 800;
}

.slip-footer {
  border-top: 1px dashed #e2e8f0;
  padding-top: 4px;
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 700;
}

/* 4. 60秒極速備課卡 (Quick Briefing) */
.qb-modal {
  max-width: 820px;
}

.qb-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.qb-highlight-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

.qb-steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.qb-step-item {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.qb-step-num {
  background: #f59e0b;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.qb-step-text {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1e293b;
}

.qb-section {
  margin-bottom: 18px;
}

.qb-sec-title {
  font-weight: 900;
  color: #0f172a;
  font-size: 1rem;
  margin-bottom: 8px;
}

.qb-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
}

.qb-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
}

.qb-check-item input {
  accent-color: #f59e0b;
  width: 16px;
  height: 16px;
}

.qb-scaffold-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.qb-sc-box {
  border-radius: 10px;
  padding: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.qb-sc-box.asd { background: #eff6ff; border: 1.5px solid #bfdbfe; color: #1e40af; }
.qb-sc-box.ebd { background: #faf5ff; border: 1.5px solid #e9d5ff; color: #6b21a8; }
.qb-sc-box.ld  { background: #f0fdf4; border: 1.5px solid #bbf7d0; color: #15803d; }

.qb-sc-title { font-weight: 900; margin-bottom: 4px; font-size: 0.88rem; }

/* 5. 白板全螢幕高對比大字模式 */
.whiteboard-overlay {
  background: #ffffff;
  padding: 0;
}

.whiteboard-modal-fullscreen {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  padding: 24px 36px;
  box-sizing: border-box;
}

.whiteboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #1e3a8a;
  padding-bottom: 12px;
}

.whiteboard-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.wb-hero-skill {
  font-size: 2.8rem;
  font-weight: 900;
  color: #1e3a8a;
  background: #fef3c7;
  border: 4px solid #f59e0b;
  padding: 10px 48px;
  border-radius: 999px;
  margin-bottom: 32px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
  text-align: center;
}

.wb-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1100px;
}

.wb-step-card {
  background: #f8fafc;
  border: 4px solid #3b82f6;
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wb-step-number {
  background: #3b82f6;
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.wb-step-text-huge {
  font-size: 1.7rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.4;
}

.whiteboard-bottom-reminder {
  border-top: 2px dashed #cbd5e1;
  padding-top: 14px;
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f766e;
  text-align: center;
}

/* 6. 浮動快捷冷靜按鈕 (Floating Action Button) */
.floating-calm-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: 2px solid #a7f3d0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.floating-calm-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* 7. 列印專用樣式（精確控制：僅在點擊小條列印或白板列印時生效，不影響全頁列印） */
@media print {
  body.printing-slips-only * {
    visibility: hidden;
  }
  body.printing-slips-only .slips-preview-container,
  body.printing-slips-only .slips-preview-container * {
    visibility: visible;
  }
  body.printing-slips-only .slips-preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10mm !important;
    padding: 10mm !important;
    background: none !important;
    border: none !important;
  }
  body.printing-slips-only .print-slip-card {
    border: 1.5px solid #000000 !important;
    padding: 10mm 8mm !important;
    font-size: 10pt !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    background: #ffffff !important;
    color: #000000 !important;
  }

  body.printing-whiteboard-only * {
    visibility: hidden;
  }
  body.printing-whiteboard-only #whiteboardCardModal,
  body.printing-whiteboard-only #whiteboardCardModal * {
    visibility: visible;
  }
  body.printing-whiteboard-only #whiteboardCardModal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: auto;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  body.printing-whiteboard-only .whiteboard-card {
    border: 2px solid #0f766e !important;
    box-shadow: none !important;
    max-height: none !important;
  }
  body.printing-whiteboard-only .whiteboard-top-controls {
    display: none !important;
  }
}
/* Classroom review: flexible practice, readable drafts and keyboard dialogs. */
body.teacher-dialog-open{overflow:hidden}.teacher-dialog-open #social-floating-tools,.teacher-dialog-open .learning-support-bar{visibility:hidden}
.comm-draft-controls{display:flex;gap:10px;flex-wrap:wrap;padding:10px 16px;align-items:end;background:#f3f5ee}.comm-draft-controls label{font-size:.85rem;display:flex;flex-direction:column;gap:4px}.comm-draft-controls select,.comm-draft-controls input,.comm-draft-controls button{font:inherit;min-height:40px;padding:6px 9px;border:1px solid #87977f;border-radius:6px;background:white;color:#233c2a}.comm-draft-controls button{cursor:pointer}#commCopyStatus{margin:0;padding:7px 16px;font-size:.85rem;color:#445c41}.comm-modal-body{min-height:0}.comm-modal .teacher-modal-footer{flex-wrap:wrap}.calm-breath-controls{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;padding:4px}.calm-breath-controls button{font:inherit;font-weight:700;font-size:.85rem;line-height:1.2;padding:6px 9px;min-height:34px;border:1px solid #56a39a;border-radius:8px;background:white;color:#0f6d64}.calm-breath-controls button[aria-pressed=true]{background:#d9f4e8;outline:2px solid #1a8876}
@media(max-width:700px){.comm-modal-body{grid-template-columns:1fr;padding:12px}.comm-draft-controls{gap:6px;padding:8px}.comm-draft-controls button{font-size:.8rem}.calm-breath-controls button{font-size:.72rem;padding:5px 7px;min-height:30px}.calm-tip-bar{font-size:.75rem}.comm-col-right{display:none}}
@media(max-height:650px){.calm-breath-controls{padding:0}.calm-breath-controls button{min-height:28px;font-size:.75rem;padding:4px 7px}.calm-corner-modal .breathing-bubble-container{height:min(25dvh,150px)}}
@media(prefers-reduced-motion:reduce){.breathing-bubble{transform:scale(.8)!important}*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Reserve space for optional breathing controls rather than clipping the safety hint. */
#calmTabPane-breathe{display:flex;flex-direction:column;min-height:0}#calmTabPane-breathe .breathing-arena{height:auto;flex:1;min-height:0}#calmTabPane-breathe .calm-tip-bar{flex:0 0 auto;margin-top:4px}
@media(max-width:720px) and (max-height:650px){.calm-corner-modal .breathing-bubble-container{width:80px;height:80px}.breathing-arena{padding:2px 0;gap:3px}.breathing-sub-text{min-height:2.8em}.breathing-cycle-pill{font-size:.75rem;padding:2px 10px}.calm-tip-bar{padding:5px;font-size:.7rem}}
