/* Holler Support (B-248). The page wears the Lounge's clothes (public/lounge/lounge.css: .lg, .lg-top, .lg-b, .lg-in,
   .lg-log, .lg-ln, .lg-host, .lg-sheet); only what Support adds is here. Phone first: 390 x 780 upright, every
   control 48 px or more. A TV gets one screen: a code to scan, because Support is typed on a phone. */
.sp-ln { margin: 10px 0; padding: 8px 10px; border-radius: var(--ha-radius-md); font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.sp-ln b { display: block; margin-bottom: 2px; font-size: 14px; color: var(--ha-text-dim); }
.sp-ln--you { margin-left: 28px; background: var(--ha-panel-2); }
.sp-ln--you b { color: var(--ha-yellow); }
.sp-ln--ai { margin-right: 28px; background: color-mix(in srgb, var(--ha-yellow) 12%, transparent); }
.sp-ln--person { margin-right: 28px; background: color-mix(in srgb, var(--ha-cyan) 16%, transparent); box-shadow: inset 3px 0 0 var(--ha-cyan); }
.sp-ln--note { margin: 8px 12px; padding: 4px 8px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ha-text-dim); background: none; }
.sp-ln a { color: var(--ha-yellow); font-weight: 800; }
.sp-rate { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--ha-text-dim); }
.sp-rate span { flex: 1; min-width: 0; }
.sp-rate button { min-width: 48px; min-height: 48px; border-radius: var(--ha-radius-md); border: 2px solid var(--ha-line); background: var(--ha-bg-deep); color: var(--ha-text); font-size: 22px; cursor: pointer; }
.sp-rate button[aria-pressed="true"] { background: var(--ha-yellow); border-color: var(--ha-ink); }
.sp-rated { margin-top: 2px; font-size: 13px; color: var(--ha-text-dim); }
.sp-busy { flex: 0 0 auto; min-height: 22px; padding: 2px 4px 0; font-size: 14px; font-style: italic; color: var(--ha-text-dim); }
.sp-foot { display: flex; gap: 8px; }
.sp-foot .lg-b { flex: 1; font-size: 15px; }
.sp-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-kinds .lg-b { min-height: 56px; font-size: 15px; line-height: 1.15; }
.sp-kinds .lg-b[aria-pressed="true"] { background: var(--ha-yellow); color: var(--ha-on-yellow); border-color: var(--ha-ink); }
textarea.sp-area { height: 110px; white-space: normal; overflow-y: auto; }
.sp-err { min-height: 20px; margin: 0; font-size: 15px; font-weight: 800; color: var(--ha-bad); }

/* a TV: Support is typed on a phone, so the TV shows where to go */
.sp--tv { max-width: none; height: 100vh; min-height: 0; padding: 4vh 5vw; align-items: center; justify-content: center; gap: 2.4vh; text-align: center; }
.sp--tv h1 { margin: 0; font: 400 min(8vh, 5.4vw)/1 var(--ha-font-display); text-transform: uppercase; }
.sp--tv p { margin: 0; max-width: 80vw; font-size: min(3.6vh, 2.4vw); font-weight: 700; line-height: 1.3; }
.sp--tv .sp-qr { width: min(40vh, 30vw); height: min(40vh, 30vw); padding: 1.4vh; background: #fff; border-radius: var(--ha-radius-lg); border: 4px solid var(--ha-yellow); }
.sp--tv .sp-qr svg { display: block; width: 100%; height: 100%; }
.sp--tv .sp-addr { font-size: min(4.4vh, 3vw); font-weight: 900; color: var(--ha-yellow); }
.sp--tv .lg-b { min-height: max(48px, 7vh); padding: 0 2vw; font-size: min(3vh, 2vw); }
.sp--tv .lg-b:focus { outline: none; box-shadow: var(--ha-focus); }
/* /support on a TV (support-room branch): the box from public/shared/supporttv.js, the answers as wide buttons */
.sp--tv h1 { font-size: min(6vh, 4vw); }
.sp--tv { gap: 2vh; padding: 3vh 4vw; }
.sp--tv #hs-support-answers .lg-b, .sp--tv #hs-support-back { width: 100%; text-align: left; font-size: calc(15 * var(--p)); min-height: max(48px, calc(40 * var(--p))); }
.sp--tv #hs-support-box p { max-width: none; }
.sp--tv #hs-support-box { width: min(92vw, calc(760 * var(--p))); }
