.outcome { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }

.note-input {
  flex: 1 1 12rem;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.meeting,
.skip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: center;
}

.meeting.ticket {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.15rem 0.75rem;
  align-items: baseline;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background:
    linear-gradient(90deg, var(--ball) 0 0.35rem, transparent 0.35rem),
    var(--ok-bg);
}

.ticket-day,
.ticket-time,
.ticket-hall { margin: 0; }

.ticket-day { font-size: 1.05rem; font-weight: 800; }

.ticket-time { font-weight: 700; }

.ticket-hall { color: var(--muted); font-weight: 600; }

.meeting.ticket .who { grid-column: 1 / -1; }

.ticket-booked {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--green-deep);
  font-weight: 700;
}

.ticket-note-form {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.35rem;
}

.ticket-note-form input { flex: 1; min-width: 0; }

.status-pill {
  justify-self: start;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 0.78rem;
  font-weight: 700;
}

.traits { display: flex; flex-wrap: wrap; gap: 0.25rem; }

.trait {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.trait.quiet {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}

a.trait { text-decoration: none; }

.mine-list { display: flex; flex-direction: column; gap: 0.45rem; }

.mine-list a {
  display: block;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

#mine-matches h2,
#matches-result h2 {
  margin: 0.2rem 0 0.6rem;
  font-size: 1.05rem;
}

.outcome button,
.relation button,
.meeting button,
.skip-row button,
.match-row > button,
.request-card .actions a,
.request-card .actions button,
.inbox li.person-row button,
#history-more {
  padding: 0.32rem 0.55rem;
  font-size: 0.8rem;
  border-radius: 999px;
  justify-self: start;
}

.outcome button[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

#invites-list { display: grid; gap: 0.55rem; }

.invite-card .match-row {
  border-top: 0;
  padding-top: 0;
}

#history-more { justify-self: start; }

#view-requests .requests-panel {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#my-requests {
  display: grid;
  gap: 0.55rem;
}

.request-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.request-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.request-head .actions { flex: none; flex-wrap: nowrap; }

.request-head strong { font-size: 1rem; white-space: nowrap; }

.request-meta { margin: 0.12rem 0 0; color: var(--muted); font-size: 0.86rem; }

.request-card p { margin: 0; color: var(--muted); }

.request-card .button,
#my-requests > .button { justify-self: start; }

.match-row,
.hint-row {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.match-row p,
.hint-row p { margin: 0; }

.phone { font-weight: 700; color: var(--green-deep); }

.cabinet-hero { display: flex; gap: 0.9rem; align-items: center; }

.avatar {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--green-deep);
  color: var(--ball);
  font-weight: 800;
  font-size: 1.35rem;
  flex: none;
}

.avatar-sm { width: 1.7rem; height: 1.7rem; font-size: 0.75rem; }

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-picker { position: relative; cursor: pointer; }

.avatar-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.avatar-picker:focus-within .avatar { outline: 3px solid rgba(240, 193, 75, 0.85); outline-offset: 2px; }

.cabinet-name { margin: 0; font-size: 1.45rem; font-weight: 700; }
.cabinet-hero .muted { margin: 0.15rem 0 0; }

dl {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 0.55rem 0.75rem;
  margin: 0;
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
}

dt { color: var(--muted); padding-top: 0.55rem; }
dd { margin: 0; font-weight: 700; padding-top: 0.55rem; }

.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

#check-btn { margin-top: 0.85rem; justify-self: start; }

.results { display: grid; gap: 0.15rem; }

.card {
  padding: 0.9rem 1rem;
  margin-top: 0.75rem;
}

.card.ok { background: var(--ok-bg); }
.card.warn { background: var(--warn-bg); }

.card h3 { margin-bottom: 0.45rem; }
.card p { margin: 0.2rem 0 0; }

ul { margin: 0.45rem 0 0; padding: 0; list-style: none; }

.opponent,
.person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.65rem;
  align-items: center;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(16, 36, 28, 0.08);
}

.person { padding: 0; border: 0; }

.opponent strong,
.person strong { font-size: 1rem; }

.opponent .who,
.person .who { display: grid; gap: 0.1rem; }

.opponent .who > span:not(.traits),
.person .who > span:not(.traits) { color: var(--muted); font-size: 0.92rem; }

.empty { color: var(--muted); margin: 0.55rem 0 0; }

#time-form #hall-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

#time-form .hall-option {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

#time-form .hall-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#time-form .hall-option:has(input:checked) {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

#time-form .hall-option:has(input:disabled) {
  opacity: 0.45;
  cursor: default;
}

#time-form .hall-extra,
#time-form .hall-map {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.86rem;
}

#time-form .hall-option:has(input:checked) .hall-extra,
#time-form .hall-option:has(input:checked) .hall-map {
  color: rgba(255, 255, 255, 0.82);
}

#time-form .hall-hours {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

#time-form .hall-option:has(input:checked) .hall-hours { color: rgba(255, 255, 255, 0.82); }

.install-hint {
  width: min(1080px, calc(100% - 1rem));
  margin: 0.75rem auto 0;
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0.8rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.install-hint p { margin: 0; font-size: 0.92rem; }

.install-hint a { font-weight: 700; text-decoration: underline; }

.install-hint .actions { gap: 0.4rem; }

.install-hint button { min-height: 2.4rem; }

