[hidden] { display: none !important; }
.connection-page { width: min(44rem, calc(100% - 2rem)); margin: 3rem auto 4rem; }
.connection-intro h1 { font-size: clamp(2.4rem, 8vw, 4.25rem); line-height: 1.06; margin: 0; }
.connection-intro p, .panel p, .panel small { color: #ccc; }
.panel { background: #151219; border: 1px solid #383141; border-radius: 1rem; padding: 1.25rem; margin-block: 1rem; }
.panel h2 { margin: 0; font-size: 1.35rem; }
.panel form, #invite-result { display: grid; gap: .65rem; margin-top: 1rem; }
.panel input:not([type=checkbox]), .panel select { color: #fff; background: #0d0b10; border: 1px solid #74647e; border-radius: .5rem; padding: .7rem; width: 100%; font: inherit; }
.panel .pill { justify-self: start; }
.checkbox { display: flex; align-items: baseline; gap: .65rem; }
.pill:disabled { opacity: .55; cursor: progress; }
.row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .7rem; }
.card { border-top: 1px solid #383141; margin-top: 1rem; padding-top: .9rem; }
.card h3 { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.demo-link a { text-decoration: underline; }
#status { min-height: 1.5em; }
#status[data-error=true] { color: #ffb6d1; }
dialog { width: min(29rem, calc(100% - 2rem)); color: inherit; }
dialog::backdrop { background: #000a; }
summary { cursor: pointer; }
:focus-visible { outline: 2px solid #f499db; outline-offset: 3px; }

.panel textarea { width: 100%; padding: .7rem; color: inherit; background: #0d0b10; border: 1px solid #74647e; border-radius: .5rem; font: inherit; }
.panel fieldset { margin: 0; min-width: 0; border: 1px solid #554860; border-radius: .6rem; padding: .7rem; }
.panel legend { padding-inline: .35rem; }
.panel details { margin-block: 1rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); gap: .35rem; }
.check-grid label { display: flex; align-items: center; gap: .45rem; min-height: 2.5rem; }
#coach-output, #other-plan-note { white-space: pre-wrap; overflow-wrap: anywhere; }
#plan-proposal { margin-block: .7rem; }

.member-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .25rem;
  padding: .3rem;
  margin-block: 1rem;
  background: #120f16;
  border: 1px solid #504558;
  border-radius: .85rem;
}
.member-nav button {
  min-height: 2.75rem;
  padding: .35rem .18rem;
  background: transparent;
  color: #ddd2e2;
  border: 1px solid transparent;
  border-radius: .6rem;
  font: 600 clamp(.78rem, 3.3vw, .96rem)/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.member-nav button[aria-current="page"] { color: #fff; background: #38243d; border-color: #d284ba; }
.member-home { background: linear-gradient(150deg, #211727, #141018 70%); }
.member-home h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
[data-profile-step] h3 { margin: 0 0 .6rem; font-size: 1.18rem; }
[data-profile-step] > label { display: block; margin-block: .8rem .25rem; }
[data-profile-step] fieldset, .profile-review { margin-block: .75rem; }
.profile-progress { margin: 0; color: #e0b1d5; font-size: .9rem; }
.profile-review { border: 1px solid #655370; border-radius: .65rem; padding: .75rem; }
.profile-review h4 { margin: 0; }
#home-next, #home-profile { min-height: 2.75rem; }
#discovery-results { margin-block-start: .9rem; }
#plan-connections .actions { align-items: center; }

#exact-plan dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .4rem .8rem; }
#exact-plan dt { font-weight: 700; }
#exact-plan dd { margin: 0; overflow-wrap: anywhere; }
#propose-plan { margin-block: 1rem; }

.plan-suggestion {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-block: 1rem;
  padding: .85rem;
  background: #281b31;
  border: 1px solid #785681;
  border-radius: .75rem;
}
.plan-suggestion img { border-radius: 50%; object-fit: cover; }
.plan-suggestion h3 { margin: 0 0 .25rem; font-size: 1rem; }
.plan-suggestion p { margin: 0; color: #f6e9f7; }
#plan-windows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: .75rem; }
#plan-windows table { width: 100%; table-layout: fixed; border-spacing: .15rem; font-size: .75rem; }
#plan-windows caption { text-align: left; font-weight: 700; padding-block: .75rem .25rem; }
#plan-windows th { padding: .35rem .1rem; }
#plan-windows .plan-day { text-align: left; font-weight: 500; }
#plan-windows td { background: #1f1924; border-radius: .35rem; }
#plan-windows td.shared-window { background: #3d2343; }
#plan-windows label {
  display: flex;
  min-height: 2.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  cursor: pointer;
}
#plan-windows input { accent-color: #e9a6d9; width: 1rem; height: 1rem; margin: 0; }
#plan-windows label:has(input:disabled) { opacity: .45; cursor: default; }
#plan-windows label span { font-size: .67rem; color: #f6bfed; }
