/* hosts-live: the host program (screens/hosts-live.js). Class prefix "hp-". Live site only. */

/* ---------- applications ---------- */
.hp-app.is-open { box-shadow: 0 0 0 2px var(--gold), var(--shadow-sm); }
.hp-hist { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); }
.hp-app.is-test { border-style: dashed; }

/* ---------- applications: answers read as "Label: value" (the value sits next to its label, left-aligned) ---------- */
.hp-appbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.hp-testlink { background: none; border: 0; padding: 4px 2px; font-size: 12.5px; color: var(--ink-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hp-testlink:hover { color: var(--ink-2); }
.hp-contact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.hp-facts { margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 6px 28px; font-size: 13.5px; line-height: 1.5; }
.hp-fact { min-width: 0; overflow-wrap: anywhere; }
.hp-fact dt, .hp-fact dd { display: inline; margin: 0; text-align: left; }
.hp-fact dt { color: var(--ink-3); }
.hp-fact dd { color: var(--ink); font-weight: 500; white-space: pre-wrap; }
.hp-fact dd a, .hp-answers dd a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.hp-exp { margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.hp-exp__k { color: var(--ink-3); }

/* ---------- "Open application" window ---------- */
.hp-rv__meta { margin-top: 2px; }
.hp-rv__badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.hp-sec { margin-top: 24px; }
.hp-sec__h { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.hp-sec__h small { letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.hp-answers { margin: 0; display: grid; grid-template-columns: minmax(130px, 34%) minmax(0, 1fr); border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.hp-answers > div { display: contents; }
.hp-answers dt, .hp-answers dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.hp-answers dt { color: var(--ink-3); padding-right: 16px; }
.hp-answers dd { color: var(--ink); font-weight: 500; white-space: pre-wrap; }
.hp-answers dd.is-empty { color: var(--ink-3); font-weight: 400; font-style: italic; }
.hp-quote { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.hp-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hp-tl li { position: relative; padding: 0 0 14px 18px; border-left: 2px solid var(--line); margin-left: 4px; }
.hp-tl li:last-child { padding-bottom: 0; border-left-color: transparent; }
.hp-tl li::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 3px var(--surface); }
.hp-tl li:last-child::before { background: var(--line-3); }
.hp-tl__note { margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.hp-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.hp-notes li { padding: 10px 12px; border-radius: 10px; background: var(--gold-50); box-shadow: inset 3px 0 0 var(--gold); }
.hp-notes__t { margin-top: 2px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.hp-foot { position: sticky; bottom: -28px; z-index: 2; margin: 24px -28px -28px; padding: 12px 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--surface); border-top: 1px solid var(--line); }
.hp-foot__close { margin-left: auto; }

/* ---------- status window: what the "send" tick does ---------- */
.hp-send { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.hp-send__addr { color: var(--purple); overflow-wrap: anywhere; }
.hp-send__sub { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.hp-copy { vertical-align: middle; color: var(--ink-3); }
@media (max-width: 640px) {
  .hp-answers { grid-template-columns: 1fr; }
  .hp-answers dt { padding: 10px 0 0; border-bottom: 0; }
  .hp-answers dd { padding: 2px 0 10px; }
}
@media (max-width: 560px) {
  .hp-foot { bottom: calc(-24px - env(safe-area-inset-bottom)); margin: 24px -20px calc(-24px - env(safe-area-inset-bottom)); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
}

/* ---------- messages ---------- */
.hp-thread { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px 2px; }
.hp-msg { max-width: 88%; justify-self: start; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; }
.hp-msg.is-own { justify-self: end; background: var(--purple-50); box-shadow: inset 0 0 0 1px var(--purple-100); border-radius: 14px 14px 4px 14px; }
.hp-msg__who { margin-bottom: 4px; }
.hp-msg__text { font-size: 14px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- trip builder ---------- */
.hp-asset { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 8px; align-items: center; }
@media (max-width: 640px) { .hp-asset { grid-template-columns: minmax(0, 1fr) auto; } .hp-asset input[type="url"] { grid-column: 1 / 2; grid-row: 2; } }

/* ---------- share links ---------- */
.hp-linkbox { padding: 12px 14px; display: grid; gap: 8px; }
.hp-linkbox code { display: block; font-size: 12.5px; line-height: 1.5; padding: 8px 10px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow-wrap: anywhere; word-break: break-all; color: var(--purple-700, var(--ink)); }
.hp-linkbox .row { flex-wrap: wrap; }
.hp-kit-label { margin-top: 18px; }
.hp-open { color: var(--green); line-height: 1.2; }

/* ---------- dashboard ---------- */
.hp-trip__img { height: 150px; background: var(--midnight) center / cover no-repeat; }
.hp-stats > div { min-width: 0; }
.hp-stats .h2 { line-height: 1.1; }
.hp-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.hp-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--gold)); }
.hp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.hp-photo { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.hp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-photo > span { position: absolute; right: 6px; bottom: 6px; display: inline-flex; padding: 5px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow-xs); }
.hp-photo:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.hp-links { margin: 6px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.hp-links a { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) {
  .hp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hp-stats .h2 { font-size: 22px; }
  .hp-msg { max-width: 94%; }
}
