/* Bug — live sharing / guest feedback styles. Uses the tokens defined in index.html. */
.guest-mode .progress { display: none; }
.guest-mode .stepper { justify-content: flex-start; }

.link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--teal-dark);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
@media (prefers-color-scheme: dark) { .link-btn { color: var(--teal); } }
.link-btn:hover { color: var(--coral); }

.live-checked-row { margin: 12px 0 0; }
.live-err { color: var(--bad); font-weight: 600; font-size: .88rem; margin: 10px 0 0; }
.live-votes { margin: 8px 0 0; color: var(--muted); }
.live-vote-yes { color: var(--good); font-weight: 600; }
.live-vote-no { color: var(--bad); font-weight: 600; }

.live-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 1000;
  max-width: calc(100vw - 32px);
}
.live-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* identity */
.live-identity { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.live-identity-form { margin: 18px 0 0; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 10px; max-width: 520px; }
.live-label { display: block; font-weight: 700; font-size: .9rem; margin: 0 0 4px; }
.live-input {
  width: 100%; box-sizing: border-box; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.live-input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.live-roles { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.live-role { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.live-identity-form .btn { justify-self: start; }

/* guest day cards */
.live-stop-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.live-day-foot { padding: 12px 18px; border-top: 1px solid var(--line); }
.live-day-foot:empty { display: none; }

/* composer */
.live-composer { margin: 0 18px 16px; padding: 14px; border: 1.5px solid var(--teal); border-radius: 12px; background: var(--teal-soft); }
@media (prefers-color-scheme: dark) { .live-composer { background: var(--surface-2); } }
.live-composer-title { font-weight: 700; margin: 0 0 10px; }
.live-alts { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.live-alt { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.live-alt > span { flex: 1; min-width: 0; }
.live-composer-actions { display: flex; gap: 8px; margin-top: 10px; }

/* suggestion threads */
.live-thread { padding: 0 18px 14px 132px; display: grid; gap: 10px; }
@media (max-width: 640px) { .live-thread { padding-left: 18px; } .live-composer { margin: 0 12px 14px; } }
.live-sugg { border: 1px solid var(--line); border-left: 4px solid var(--mustard); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
.live-sugg.accepted { border-left-color: var(--teal); }
.live-sugg.rejected { border-left-color: var(--line); opacity: .8; }
.live-sugg-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.live-sugg-head .badge { margin-left: 0; }
.live-swapline { margin: 8px 0 0; font-size: .9rem; }
.live-body { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.live-vote-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.avatar.sm { width: 30px; height: 30px; font-size: .75rem; }

/* owner: manage from another device */
.live-manage { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.live-manage summary { cursor: pointer; font-weight: 700; font-size: .92rem; }
.live-manage p { margin: 10px 0 0; color: var(--muted); }

/* Guest view: Expand all / Collapse all above the days */
.live-days-ctrl { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 10px; }
