/* Host tab. Uses only the tokens in app.css: three font sizes, square corners, 48px taps. */

.host { display: flex; flex-direction: column; gap: var(--gap); }
.host .card > .title { margin-bottom: 0; }

.host-name { min-width: 0; overflow-wrap: anywhere; }

/* Draw faces: fixed 48px squares, unsigned dimmed. */
.host .faces.host-faces { grid-template-columns: repeat(auto-fill, 48px); }
.host .avatar.dim { opacity: .35; }

/* Hole picker arrows and stepper buttons */
.host-step { flex: none; width: 64px; padding: 12px 0; }
.host-strokes { min-width: 3ch; }

/* Sips rows */
.host-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px;
  background: var(--ink);
  color: var(--butter);
  border: 2px solid var(--line);
  text-align: left;
}
.host-row:active { border-color: var(--accent); }
.host-val { flex: none; min-width: 2ch; text-align: right; }

/* Penalty and adjustment rows */
.host-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.host-item .btn { flex: none; }
.host-item.col { flex-direction: column; align-items: stretch; }

.host-pick { justify-content: flex-start; text-align: left; overflow-wrap: anywhere; }

/* Adjustment team picker */
.host-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.host-teams .tile { overflow-wrap: anywhere; }

/* Missions */
.host-player { padding-top: 8px; border-top: 1px solid var(--line); }
.host-mission { --gap: 8px; }
.host-verdicts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.host-verdict { padding-left: 4px; padding-right: 4px; }
.host-verdict:disabled { opacity: .35; }

/* Danger */
.host-danger { color: var(--pink); border-color: var(--pink); }

/* Players & teams */
.host-faces-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 12px 8px; }
/* Same look as the Board's "Who's in": bare faces and names, no tiles. */
.host-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--butter);
  cursor: pointer;
}
.host-face[aria-pressed="true"] .avatar { outline: 4px solid var(--accent) !important; outline-offset: -4px; }
.host-face[aria-pressed="true"] .host-face-name { color: var(--accent); }
.host-face.dim { opacity: .35; }
.host-face-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host-add { display: grid; gap: 8px; }
.host-add .input { width: 100%; }
.host-set { min-width: 0; }
.host-set-faces { display: flex; flex-wrap: wrap; gap: 4px; }

/* The one round thing in the app, by request: a tiny unlabelled status dot. */
.host-rigdot { align-self: flex-start; display: grid; place-items: center; width: 56px; height: 56px; margin: -12px 0 -12px -20px; padding: 0; background: none; border: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.host-rigdot span { width: 12px; height: 12px; background: var(--mint); border-radius: 50% !important; }
.host-rigdot.off span { background: #FF5A4D; }
.host-face.off .avatar { opacity: .4; filter: grayscale(1); }
.host-face.off .host-face-name { color: var(--butter-dim); }
.host-drawbtn { margin-top: 8px; }

/* Sub-tabs: sticky segmented control just under the app header (56px + 1px border + safe area). */
.host-tabs {
  position: sticky;
  top: calc(var(--sat) + 57px);
  z-index: 9;
  display: flex;
  gap: 4px;
  padding-bottom: var(--gap);
  margin-bottom: calc(-1 * var(--gap));
  background: var(--ink);
}
.host-tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: var(--tap);
  padding: 0 2px;
  font-stretch: 85%;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent;
  color: var(--butter);
  border: 2px solid var(--line);
}
.host-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.host-panel { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }

/* Course list */
.host-hole {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 8px;
  background: var(--ink);
  color: var(--butter);
  border: 2px solid var(--line);
  text-align: left;
}
.host-hole:active { border-color: var(--accent); }
.host-hole-n { flex: none; min-width: 2ch; text-align: center; }
.host-hole-mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.host-hole-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* Course sheet fields */
.host-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.host-how { display: block; min-height: 96px; resize: none; line-height: 1.35; }
