/* Huddle now (#/huddle-now, huddle-now.js): one column, phone first.
   Every button is at least 44px tall; no side rail while it is open. */

body.hn-focus .sidebar,
body.hn-focus #phone-nav { display: none !important; }
body.hn-focus .shell { grid-template-columns: 1fr !important; }
body.hn-focus .app-root { padding: 0 0 32px; max-width: none; }

.hn {
  max-width: 720px;
  margin: 0 auto;
  /* Room below the footer: the floating "? Ask / report" button sits over
     the bottom right and covered its last button. */
  padding: 0 16px 120px;
  color: var(--fg, #1C2A32);
  font-size: 16px;
  overflow-x: hidden;
}
.hn *, .hn *::before, .hn *::after { box-sizing: border-box; }

.hn-head {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 -16px 8px;
  padding: 10px 16px 8px;
  background: var(--card, #FFFCF8);
  border-bottom: 1px solid var(--line, #D5E3E0);
}
.hn-head-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hn-head h1 { flex: 1; margin: 0; font-size: 20px; font-weight: 700; }
.hn-back {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px 0 0;
  color: var(--teal, #0C5F66); text-decoration: none; font-weight: 600; white-space: nowrap;
}
.hn-sub { margin-top: 2px; font-size: 14px; color: var(--muted, #4E616C); flex-wrap: wrap; }
.hn-fac { font-weight: 600; color: var(--fg-soft, #334155); }
.hn-pick {
  min-height: 44px; max-width: 100%; padding: 0 10px; font-size: 16px;
  border: 1px solid var(--input-line, #C5D6D3); border-radius: 10px; background: #fff;
}
.hn-save { font-size: 14px; color: var(--muted, #4E616C); white-space: nowrap; min-width: 0; }
.hn-save.is-ok { color: var(--green, #0F5C56); font-weight: 600; }
.hn-save.is-off { color: #8A5A00; font-weight: 600; white-space: normal; text-align: right; }

.hn-progress { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 14px; color: var(--muted, #4E616C); }
.hn-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--line-soft, #EEF5F4); overflow: hidden; }
.hn-bar i { display: block; height: 100%; background: var(--teal, #0C5F66); transition: width .2s ease; }

.hn-sec { margin: 18px 0 0; }
.hn-sec h2 {
  margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted, #4E616C);
}
.hn-sec h2 b { color: var(--fg-soft, #334155); }

.hn-card {
  margin: 0 0 10px; padding: 12px 14px;
  background: var(--card-2, #fff);
  border: 1px solid var(--card-line, #E1EEEC);
  border-left: 4px solid var(--line, #D5E3E0);
  border-radius: 12px;
}
.hn-card.is-now { border-left-color: var(--danger, #B42318); }
.hn-card.is-done { border-left-color: var(--green, #0F5C56); background: #F5FBF9; }
.hn-card.is-closed { opacity: .8; }
.hn-card-head { display: flex; align-items: flex-start; gap: 8px; }
.hn-card h3 { flex: 1; margin: 0 0 4px; font-size: 17px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.hn-chip { padding: 2px 8px; border-radius: 999px; font-size: 13px; background: var(--teal-soft, #E5F4F2); color: var(--teal-deep, #08474D); white-space: nowrap; }
.hn-lines { margin: 0; padding: 0 0 0 18px; font-size: 15px; line-height: 1.4; color: var(--fg-soft, #334155); }
.hn-lines li { overflow-wrap: anywhere; }
.hn-empty { margin: 0; font-size: 15px; color: var(--muted, #4E616C); }
.hn-sec-empty { padding: 4px 2px 0; }

.hn-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hn-btn {
  min-height: 44px; min-width: 44px; padding: 0 16px;
  border: 1px solid var(--input-line, #C5D6D3); border-radius: 10px;
  background: #fff; color: var(--fg, #1C2A32);
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  touch-action: manipulation;
}
/* A link styled as a button (Open the Daily Standup). */
a.hn-btn { display: flex; align-items: center; justify-content: center; box-sizing: border-box; text-decoration: none; }
.hn-btn:disabled { opacity: .5; cursor: default; }
.hn-btn:focus-visible { outline: 3px solid var(--teal-line, #B7D9D5); outline-offset: 1px; }
.hn-talked { flex: 1 1 140px; }
.hn-talked.is-on { background: var(--green, #0F5C56); border-color: var(--green, #0F5C56); color: #fff; }
.hn-ghost { background: transparent; }
.hn-primary { background: var(--teal, #0C5F66); border-color: var(--teal, #0C5F66); color: var(--teal-on, #F3FBFA); }

.hn-reasons { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.hn-reason { text-align: left; font-weight: 500; font-size: 15px; padding: 8px 12px; height: auto; line-height: 1.3; }

.hn-note { margin-top: 10px; }
.hn-note-label { display: block; margin-bottom: 4px; font-size: 13px; color: var(--muted, #4E616C); }
.hn-note-row { display: flex; gap: 8px; align-items: stretch; }
.hn-note-box {
  flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--input-line, #C5D6D3); border-radius: 10px;
  font: inherit; font-size: 16px; resize: vertical;
}
.hn-mic {
  width: 52px; min-height: 44px; border-radius: 10px; font-size: 20px;
  border: 1px solid var(--input-line, #C5D6D3); background: #fff; cursor: pointer;
}
.hn-mic.is-on { background: var(--coral-soft, #FDE8E1); border-color: var(--coral, #C4492A); }
.hn-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted, #4E616C); }
.hn-card-err { margin: 8px 0 0; font-size: 14px; color: var(--danger, #B42318); }

.hn-msg {
  margin: 12px 0; padding: 12px 14px; border-radius: 12px;
  background: var(--muted-surface, #E5F3F1); font-size: 15px;
}
.hn-msg p { margin: 0 0 8px; }
.hn-msg p:last-child { margin: 0; }
.hn-msg.err { background: var(--coral-soft, #FDE8E1); }

.hn-foot { margin: 24px 0 8px; padding: 14px; border-radius: 12px; background: var(--card, #FFFCF8); border: 1px solid var(--line, #D5E3E0); }
.hn-foot .hn-btn { width: 100%; margin-top: 8px; }
.hn-closed { margin: 0; font-weight: 600; color: var(--green, #0F5C56); }

.hn-ghost-card i {
  display: block; height: 12px; margin: 8px 0; border-radius: 6px;
  background: linear-gradient(90deg, #EEF5F4 0%, #E1EEEC 50%, #EEF5F4 100%);
  background-size: 200% 100%; animation: hn-shine 1.2s linear infinite;
}
.hn-ghost-card i:first-child { width: 50%; height: 16px; }
.hn-ghost-card i:last-child { width: 70%; }
@keyframes hn-shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .hn-ghost-card i { animation: none; } }

@media (min-width: 720px) {
  .hn-actions .hn-btn { flex: 0 0 auto; }
  .hn-talked { min-width: 160px; }
}

/* The Daily Standup's way in (clinical-meetings.js). */
.mtgx-live {
  display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 10px 0 4px;
  border-radius: 10px; background: var(--teal, #0C5F66); color: var(--teal-on, #F3FBFA);
  font-weight: 700; text-decoration: none;
}
