.profile-shell {
  --profile-surface: #fffefa;
  --profile-border: #e2dfd6;
  --profile-highlight: #fff0e8;
  gap: 14px;
  min-width: 0;
}

.info-help-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 7px;
  position: relative;
  min-width: 0;
}

.info-help { display: inline-block; margin: 0; }
.info-help > summary {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  list-style: none;
}
.info-help > summary::-webkit-details-marker { display: none; }
.info-help > summary:hover,
.info-help[open] > summary { background: color-mix(in srgb, currentColor 11%, transparent); }
.info-help-copy {
  position: absolute;
  z-index: 4;
  inset-inline-start: 0;
  top: calc(100% + 3px);
  width: min(22rem, 100%);
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 5px 18px #14253226;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}
.info-help-copy p,
#dialog-content .info-help-copy p { margin: 0; color: inherit; font: inherit; }
#dialog-content .info-help-copy p + p,
.info-help-copy p + p { margin-top: 7px; }

.instructor-type-fields {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.instructor-type-fields [data-instructor-tunnel] { margin-top: 5px; }
.instructor-type-fields small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.instructor-card-editor { margin-top: 8px; }
.instructor-card-heading,
.instructor-card-history li > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.instructor-card-editor form button { justify-self: start; }
.instructor-card-history summary { padding-block: 7px; cursor: pointer; font-weight: 700; }
.instructor-card-history ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.instructor-card-history li { display: grid; gap: 4px; padding-block: 8px; border-top: 1px solid var(--line); }
.instructor-card-history li button { justify-self: start; }
.instructor-card-history time { color: var(--muted); }

.profile-shell .profile-summary {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: clamp(13px, 3vw, 20px);
  color: #f4f7f8;
  background: #17242e;
  border: 1px solid #304655;
  border-radius: 12px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-identity > div:last-child { min-width: 0; }

.profile-shell .profile-summary h3 {
  font-size: clamp(29px, 5vw, 38px);
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  line-height: 1.03;
}

.profile-avatar {
  display: grid;
  flex: 0 0 56px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid #506672;
  border-radius: 12px;
  background: #213946;
  color: #ffb49a;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-roles { display: flex; flex-wrap: wrap; gap: 5px; }
.profile-visibility { display: block; margin-top: 4px; color: #c6d7e1; font-size: 11px; }

.profile-portrait > summary {
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--profile-border);
  border-radius: 8px;
  background: var(--profile-surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.profile-portrait > summary:hover { color: var(--orange-dark); }
.profile-portrait[open] > form { margin-top: 8px; }

.profile-manager-details .profile-portrait {
  border-top: 1px solid var(--profile-border);
  padding-top: 5px;
}

.profile-manager-details .profile-portrait > summary {
  min-height: 44px;
  padding: 11px 0;
  border: 0;
  background: none;
}

.profile-roles .tag {
  border: 1px solid #4d6575;
  border-radius: 4px;
  background: #243c49;
  color: #f4f7f8;
  padding: 3px 6px;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
}

.profile-stats { display: flex; gap: 14px; margin: 0; }
.profile-stats > div { display: grid; min-width: 0; gap: 2px; }
.profile-stats dt { font-size: 11px; color: #c6d7e1; }
.profile-stats dd { grid-row: 1; margin: 0; font-family: var(--display); font-size: 26px; line-height: 1; }

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--profile-border);
  border-radius: 9px;
  background: #efeee8;
}

.profile-tabs button {
  flex: 1 1 auto;
  max-inline-size: 100%;
  min-height: 42px;
  min-width: 0;
  padding: 7px 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: normal;
}

.profile-tabs button:hover { color: var(--ink); background: #e4e3db; }
.profile-tabs button[aria-selected="true"] { color: var(--orange-dark); background: #fffefa; border-color: #e2c7b8; }
.profile-tabs button:disabled { cursor: wait; }

.profile-card,
.profile-media,
.profile-coaching,
.profile-upload,
.profile-rate-list { display: grid; gap: 13px; min-width: 0; }

.profile-card {
  padding: clamp(12px, 3vw, 20px);
  border: 1px solid var(--profile-border);
  border-radius: 11px;
  background: var(--profile-surface);
}

.profile-card h4 { margin: 0; color: var(--ink); font-family: var(--display); font-size: 24px; line-height: 1.05; }
.profile-card h5 { margin: 0; color: var(--ink); font-size: 14px; }
.profile-card small { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
.profile-card .profile-fields { gap: 12px; }
.profile-card .profile-fields > label,
.profile-upload label { align-content: start; min-width: 0; }

.profile-card input:not([type="checkbox"]),
.profile-card select,
.profile-card textarea { width: 100%; min-width: 0; font-size: 16px; }

.profile-card textarea { min-height: 91px; }

.skill-list,
.skill-list-group,
.skill-list-editors,
.skill-list-editors fieldset { display: grid; gap: 9px; min-width: 0; }
.skill-list-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.skill-list :is(.skill-list-intro, .skill-list-status, .skill-list-empty),
#dialog-content .skill-list :is(.skill-list-intro, .skill-list-status, .skill-list-empty) {
  margin: 0;
  color: var(--muted);
}
.skill-list .skill-list-status:empty,
#dialog-content .skill-list .skill-list-status:empty { margin-block-start: -9px; }
.skill-list .skill-list-status.auth-error,
#dialog-content .skill-list .skill-list-status.auth-error { color: #8e2011; }
.skill-list-add {
  display: grid;
  flex: 0 0 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--orange);
  color: var(--ink);
  font: 700 25px/1 var(--body);
}
.skill-list-add:hover,
.skill-list-add[aria-expanded="true"] { background: #ffa27d; }
.skill-list-editors {
  padding: 12px;
  border: 1px solid var(--profile-border, var(--line));
  border-radius: 8px;
  background: var(--paper);
}
.skill-list-modes { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-list-modes button {
  min-height: 40px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.skill-list-modes button:hover { color: var(--ink); }
.skill-list-modes button[aria-pressed="true"] {
  border-color: #e2c7b8;
  background: var(--white);
  color: var(--orange-dark);
}
.skill-list-editors fieldset { margin: 0; border: 0; padding: 0; }
.skill-list-editors :is(input, select) { width: 100%; min-width: 0; font-size: 16px; }
.skill-list-editors [type="submit"] { justify-self: start; }
.skill-list [data-skill-entries] { display: grid; gap: 14px; }
.skill-list-group h4,
.profile-card .skill-list-group h4 { margin: 0; color: var(--ink); font: 800 14px/1.4 var(--body); }
.skill-list-group ul {
  margin: 0;
  padding: 0;
  border: 1px solid var(--profile-border, var(--line));
  border-radius: 8px;
  list-style: none;
}
.skill-list-group li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 10px;
  min-height: 48px;
  padding: 3px 10px;
}
.skill-list-group li + li { border-top: 1px solid var(--profile-border, var(--line)); }
.skill-list-name { min-width: 0; padding: 3px 0; overflow-wrap: anywhere; }
.skill-list-name small { display: block; color: var(--muted); font-size: 11px; }
.skill-list .profile-remove { min-height: 40px; color: #912c19; font-size: 12px; font-weight: 800; }
.skill-list button:disabled { cursor: wait; opacity: .65; }

.profile-card .profile-toggle {
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #ded9cd;
  border-radius: 8px;
  background: #f5f4ee;
  cursor: pointer;
}

.profile-toggle:has(input:checked) { background: var(--profile-highlight); border-color: #e6baaa; }
.profile-toggle small { margin-top: 4px; }
.profile-toggle input { margin-top: 2px !important; }

.profile-discipline-picker,
.profile-coaching {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.profile-discipline-picker legend { padding: 0; margin-bottom: 7px; font-size: 13px; }
.profile-discipline-picker > div { display: flex; flex-wrap: wrap; gap: 7px; }

.profile-card .profile-discipline {
  align-items: center;
  min-height: 40px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--profile-border);
  border-radius: 7px;
  background: #fbfaf6;
  cursor: pointer;
}

.profile-card .profile-discipline:has(input:checked) { border-color: #e6baaa; background: var(--profile-highlight); }
.profile-discipline span { overflow-wrap: anywhere; }
.profile-discipline input { margin-top: 0 !important; }

.profile-tunnel-workspace { display: grid; gap: 14px; min-width: 0; margin-top: 12px; }
.profile-tunnel-dashboard { min-width: 0; border: 0; padding-top: 0; }
.profile-tunnel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}
.profile-tunnel-heading > div { min-width: 0; }
.profile-tunnel-dashboard .profile-tunnel-heading {
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--profile-border);
  border-radius: 12px;
  background: var(--profile-surface);
}
.profile-tunnel-heading h3 { margin: 0; font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.02; }
.profile-tunnel-heading span { display: block; margin-top: 5px; color: var(--muted); font-size: 1rem; overflow-wrap: anywhere; }
.profile-tunnel-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 8px;
  margin: 12px 0 18px;
}
.profile-tunnel-shortcut {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 64px;
  padding: 9px 12px;
  border: 1px solid var(--profile-border);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  text-align: start;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.profile-tunnel-shortcut:hover { border-color: #d3a896; background: var(--profile-highlight); }
.profile-tunnel-shortcut strong { font-size: 1rem; }
.profile-tunnel-shortcut span { color: var(--muted); font-size: .875rem; }
.profile-tunnel-dashboard :is(h4, summary), .profile-tunnel-roster h4 { scroll-margin-block-start: 16px; }
.profile-tunnel-shortcut:focus-visible, .profile-tunnel-disclosure > summary:focus-visible {
  outline: 3px solid var(--orange-dark);
  outline-offset: 2px;
}
.profile-special-timezone .text-button { min-height: 40px; color: var(--orange-dark); font-size: 13px; text-underline-offset: 3px; }
.profile-tunnel-card-editor { display: grid; min-width: 0; gap: 16px; }
.profile-tunnel-disclosure {
  min-width: 0;
  border: 1px solid var(--profile-border);
  border-radius: 10px;
  background: var(--white);
}
.profile-tunnel-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  min-height: 54px;
  padding: 12px clamp(12px, 2.7vw, 18px);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 800;
}
.profile-tunnel-disclosure-title { display: grid; min-width: 0; gap: 3px; }
.profile-tunnel-disclosure-title strong { font-size: 1.0625rem; line-height: 1.25; }
.profile-tunnel-disclosure-title small { font-size: .875rem; font-weight: 500; }
.profile-tunnel-disclosure > summary::-webkit-details-marker { display: none; }
.profile-tunnel-disclosure > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-inline-start: auto;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.profile-tunnel-disclosure[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.profile-tunnel-disclosure > summary:hover, .profile-tunnel-disclosure[open] > summary { color: var(--orange-dark); }
.profile-tunnel-disclosure[open] > summary { background: var(--profile-highlight); border-start-start-radius: inherit; border-start-end-radius: inherit; }
.profile-tunnel-disclosure > :is(form, .profile-help) { padding: clamp(12px, 2.7vw, 18px); border-top: 1px solid var(--profile-border); }
.profile-tunnel-disclosure > .profile-help { margin: 0; }
.profile-tunnel-card-list { display: grid; min-width: 0; gap: 8px; margin: 0; padding: 0; border: 0; }
.profile-tunnel-card-list legend { margin-bottom: 4px; padding: 0; font-size: 13px; font-weight: 800; }
.profile-tunnel-card-list > .button { justify-self: start; }
.profile-tunnel-card-list > div:empty { display: none; }
.profile-tunnel-card-row {
  display: grid;
  min-width: 0;
  gap: 4px;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid var(--profile-border);
  border-radius: 7px;
  background: #f7f6f0;
}
.profile-tunnel-card-row:last-child { margin-bottom: 0; }
.profile-tunnel-card-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.profile-tunnel-card-row-actions .text-button { min-height: 42px; font-size: 12px; }
.profile-stay-link { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 8px; }
.profile-stay-link > label { flex: 1 1 240px; min-width: 0; }
.profile-stay-settings {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid #c8d5da;
  border-radius: 12px;
  background: #f1f6f7;
  color: #172830;
}
.profile-stay-settings h5,
.profile-stay-settings h6 { margin: 0 0 5px; font-weight: 800; }
.profile-stay-settings h5 { font-size: 1.25rem; }
.profile-stay-settings h6 { font-size: 1.05rem; }
#dialog-content .profile-stay-settings p { margin: 0; font-size: 0.97rem; line-height: 1.5; }
.profile-stay-settings > .profile-choice { justify-self: start; }
.profile-stay-location { max-width: 32rem; }
.profile-stay-location > summary { padding-block: 9px; cursor: pointer; font-size: 0.95rem; font-weight: 750; }
.profile-stay-location label { margin-bottom: 6px; }
.profile-stay-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.profile-stay-actions .button { min-width: 0; min-height: 44px; white-space: normal; }
.profile-stay-review { display: grid; gap: 20px; min-width: 0; }
.profile-stay-review:not(:has(> section:not([hidden]))) { display: none; }
.profile-stay-review > section { padding-top: 14px; border-top: 1px solid #c8d5da; }
.profile-stay-list { display: grid; gap: 9px; margin: 12px 0 0; padding: 0; list-style: none; }
.profile-stay-item {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: clamp(12px, 2.5vw, 16px);
  border: 1px solid #c8d5da;
  border-radius: 9px;
  background: var(--white);
  overflow-wrap: anywhere;
}
.profile-stay-item strong { display: block; margin-bottom: 4px; font-size: 1rem; }
#dialog-content .profile-stay-item p { font-size: 0.9rem; }
@media (max-width: 430px) {
  .profile-stay-link > .button,
  .profile-stay-actions > .button { flex-grow: 1; }
}
.profile-special-list { display: grid; gap: 8px; }
.profile-special-list:empty { display: none; }
.profile-tunnel-special-add { background: var(--profile-highlight); }
.profile-tunnel-special-name { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.profile-special-state {
  flex: 0 0 auto;
  margin-inline-start: auto;
  padding: 2px 6px;
  border-radius: 4px;
  background: #edf2f5;
  color: #304655;
  font-size: 11px;
}
.profile-tunnel-special summary::after { margin-inline-start: 0; }
.profile-special-fields { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-special-timezone,
.profile-tunnel-card-editor .profile-tunnel-publish { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; }
.profile-special-timezone { padding: 4px 10px; border-radius: 7px; background: #f7f6f0; }
.profile-tunnel-card-editor .profile-tunnel-publish { min-height: 40px; cursor: pointer; }
.profile-tunnel-card-editor .profile-savebar { flex-wrap: wrap; }
.profile-tunnel-card-editor .profile-savebar .profile-error { flex: 1 0 100%; }
.profile-tunnel-form { gap: 13px; }
.profile-tunnel-item-form { padding-top: 12px; border-top: 1px solid var(--profile-border); }
.profile-tunnel-add [data-tunnel-chooser] { width: 100%; max-width: 330px; font-size: 16px; }
[data-profile-command="retry-tunnel-instructors"] { justify-self: start; }
.profile-tunnel-add [data-tunnel-draft]:empty,
.profile-tunnel-items:empty { display: none; }
.profile-tunnel-items { display: grid; gap: 8px; min-width: 0; padding: 0; margin: 0; list-style: none; }
.profile-tunnel-item { display: grid; gap: 10px; padding: 10px; border: 1px solid var(--profile-border); border-radius: 7px; }
.profile-tunnel-item [data-tunnel-item-slot]:empty { display: none; }
.profile-tunnel-item-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.profile-tunnel-item-summary > div:first-child { display: grid; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
.profile-tunnel-item-summary span { color: var(--muted); font-size: 11px; }
.profile-tunnel-item-summary strong { color: var(--ink); font-size: 14px; }
.profile-tunnel-item-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.profile-tunnel-item-controls .button { padding-inline: 10px; }
.profile-tunnel-form .profile-fields > label { min-width: 0; align-content: start; }
.profile-tunnel-form input:not([type="checkbox"]),
.profile-tunnel-form select,
.profile-tunnel-form textarea { width: 100%; min-width: 0; font-size: 16px; }

.profile-tunnel-roster { gap: 14px; }
.profile-tunnel-roster [data-profile-command="retry-tunnel-instructors"] { justify-self: start; }
.profile-tunnel-roster-group {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: clamp(12px, 2.6vw, 18px);
  border: 1px solid var(--profile-border);
  border-radius: 10px;
  background: var(--white);
}
.profile-tunnel-roster-group h5 { font: 750 clamp(1.2rem, 3vw, 1.5rem)/1.15 var(--body); }
.profile-tunnel-roster-note,
.profile-tunnel-roster-empty { padding: 10px 12px; border-radius: 8px; }
.profile-tunnel-roster-note { border-inline-start: 3px solid var(--orange-dark); background: var(--profile-highlight); }
.profile-tunnel-roster-empty { border: 1px dashed var(--profile-border); }
.profile-tunnel-instructor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px;
  border-radius: 8px;
}
.profile-tunnel-instructor-info { display: grid; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
.profile-tunnel-instructor-info strong { color: var(--ink); font-size: 1rem; }
.profile-tunnel-instructor-state { color: var(--muted); font-size: .875rem; }
.profile-tunnel-instructor-state.is-published { color: #176044; font-weight: 750; }
.profile-tunnel-instructor-actions { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 7px 10px; }
.profile-shell .profile-tunnel-roster :is(.button, .profile-remove) { min-height: 44px; font-size: .875rem; }
.profile-tunnel-roster-invite { padding-top: 12px; border-top: 1px solid var(--profile-border); }
.profile-tunnel-roster-invite h6 { margin: 0; font: 750 1rem/1.3 var(--body); }
.profile-tunnel-roster-invite-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.profile-tunnel-roster-invite-fields label { min-width: 0; font-size: .875rem; }

#dialog-content .profile-fixed-venue {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--profile-border);
  border-radius: 6px;
  background: #f7f6f0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.profile-fixed-venue span { color: var(--muted); font-size: 11px; }


#dialog-content .profile-fixed-venue {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--profile-border);
  border-radius: 6px;
  background: #f7f6f0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.profile-fixed-venue span { color: var(--muted); font-size: 11px; }

.profile-package-group,
.profile-camp-group,
.profile-event-logo {
  min-width: 0;
  margin: 3px 0 0;
  padding: 8px 10px 10px;
  border: 1px solid var(--profile-border);
  border-radius: 7px;
  background: #f7f6f0;
}

.profile-package-group > legend,
.profile-camp-group > legend,
.profile-event-logo > legend { padding-inline: 4px; font-size: 13px; font-weight: 800; }

.profile-live-opt-in { cursor: pointer; }
.profile-live-fields > [data-live-fields] { min-width: 0; margin: 10px 0 0; padding: 0; border: 0; }
.profile-live-fields [data-live-external] .profile-help { margin-top: 5px; }

.profile-flight-days { min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-flight-days > legend { padding: 0; margin-bottom: 5px; font-size: 13px; }
.profile-flight-days > div { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.profile-flight-days .profile-choice { align-items: center; min-height: 40px; padding: 5px 7px; border: 1px solid var(--profile-border); border-radius: 6px; background: #fffefa; cursor: pointer; }
.profile-flight-days .profile-choice:has(input:checked) { background: var(--profile-highlight); border-color: #e6baaa; }
.profile-flight-days .profile-choice input { margin-top: 0 !important; }

.profile-tunnel-form .profile-package-accommodation { align-items: center; min-height: 42px; cursor: pointer; }
.profile-camp-import { display: grid; min-width: 0; gap: 8px; }
.profile-camp-import [data-camp-import-message]:has([hidden]),
.profile-event-logo [data-event-logo-message]:has([hidden]) { display: none; }
.profile-tunnel-form textarea[name="program"] { min-height: 125px; }
.profile-event-logo-body { display: grid; grid-template-columns: minmax(0, 108px) minmax(0, 1fr); align-items: start; gap: 12px; }
.profile-event-logo-preview { display: grid; place-items: center; min-height: 78px; padding: 5px; border: 1px solid var(--profile-border); border-radius: 6px; background: #fffefa; text-align: center; color: var(--muted); font-size: 11px; }
.profile-event-logo-preview img { width: 100%; height: 66px; object-fit: contain; }
.profile-event-logo .profile-remove { justify-self: start; }
.profile-event-logo [data-event-logo-message] { margin-top: 8px; }

.profile-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.profile-disclosure { padding: 10px 0 0; border-top: 1px solid var(--profile-border); }
.profile-disclosure summary { cursor: pointer; font-size: 13px; font-weight: 800; }
.profile-disclosure[open] summary { margin-bottom: 10px; }

.profile-pricing { display: grid; gap: 8px; min-width: 0; }
.profile-pricing > .button, .profile-upload > .button { justify-self: start; }

.profile-rate-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--profile-border);
  border-radius: 7px;
  background: #f7f6f0;
}

.profile-shell .profile-remove { min-height: 42px; color: #912c19; font-size: 12px; font-weight: 800; }
.profile-remove:hover { color: #651909; }

.profile-savebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.profile-savebar > .button { margin-inline-start: auto; }
.profile-shell > .profile-actions { padding-top: 13px; border-top: 1px solid var(--profile-border); }
.profile-shell .profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.profile-shell .button { white-space: normal; min-width: 0; max-width: 100%; }
.profile-type-dialog h4 { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.25; }
#dialog-content .profile-type-dialog p { font-size: 1rem; }
.profile-type-dialog .profile-actions { justify-content: flex-end; }

#dialog-content .profile-shell .profile-help,
#dialog-content .profile-shell .profile-error,
#dialog-content .profile-gallery-empty {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

#dialog-content .profile-help, #dialog-content .profile-gallery-empty { color: var(--muted); }
#dialog-content :is(.profile-tunnel-dashboard, .profile-tunnel-roster) .profile-help { font-size: 1rem; }
#dialog-content .profile-tunnel-roster .profile-error { font-size: .9375rem; }
#dialog-content .profile-media-note { margin: 0; padding: 10px 12px; border: 1px solid #d6e0e5; border-radius: 8px; background: #edf3f6; color: #304655; font-size: 12px; }
.profile-card .profile-picklist { padding-top: 6px; }
.profile-card .profile-picklist p { margin: 0 !important; }
.profile-card .profile-picklist .profile-choice { padding: 5px 0; }
.profile-card .profile-picklist :is([data-no-tunnel],[data-no-language]) { margin-top: 7px !important; }

.profile-shell .profile-photo { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 13px; }
.profile-shell .profile-photo-preview { width: clamp(65px, 15vw, 96px); height: auto; aspect-ratio: 1; border-radius: 8px; padding: 0; }
.profile-upload { gap: 8px; }
.profile-upload input[type="file"] { min-height: 44px; padding: 5px 7px; font-size: 13px; }

.profile-upload input::file-selector-button {
  margin-inline-end: 7px;
  border: 0;
  border-radius: 4px;
  padding: 6px 8px;
  background: #efeee8;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.profile-card-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px; }
.profile-count { font-size: 11px; color: var(--muted); }
.profile-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(138px, 100%), 1fr)); gap: 9px; }
.profile-gallery-empty { grid-column: 1 / -1; min-height: 66px; padding: 17px 12px; border: 1px dashed #cec9bd; border-radius: 8px; display: grid; place-items: center; }
.profile-gallery-item { min-width: 0; overflow: hidden; border: 1px solid var(--profile-border); border-radius: 8px; background: #f7f6f0; }
.profile-gallery-item img, .profile-gallery-item video { display: block; width: 100%; aspect-ratio: 4 / 3; background: #17242e; }
.profile-gallery-item img { object-fit: cover; }
.profile-gallery-item video { object-fit: contain; }
.profile-gallery-item button { display: block; max-width: 100%; margin-inline: auto; padding-inline: 8px; }

@media (max-width: 560px) {
  .profile-tunnel-roster-invite-fields { grid-template-columns: minmax(0, 1fr); }
  .profile-shell .profile-card .profile-fields,
  .profile-shell .profile-tunnel-form .profile-fields { grid-template-columns: minmax(0, 1fr); }
  .profile-rate-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-rate-row label:first-child { grid-column: 1 / -1; }
  .profile-rate-row .profile-remove { grid-column: 1 / -1; justify-self: end; margin-top: -5px; }
  .profile-shell .profile-photo { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 450px) {
  .profile-event-logo-body { grid-template-columns: minmax(0, 1fr); }
  .profile-event-logo-preview { width: min(108px, 100%); }
}

@media (max-width: 350px) {
  .profile-savebar { flex-direction: column; align-items: stretch; }
  .profile-savebar > .button { width: 100%; margin-inline-start: 0; }
}

dialog.dialog-wide:has(.profile-shell--member) {
  width: min(900px, calc(100% - 24px));
  padding: clamp(12px, 3vw, 26px);
}

dialog:has(.profile-shell--member) .dialog-top { align-items: center; }
dialog:has(.profile-shell--member) .dialog-top .eyebrow { display: none; }
dialog:has(.profile-shell--member) .dialog-top h2 {
  font: 800 clamp(19px, 4vw, 25px)/1.25 var(--body);
  text-transform: none;
}

.profile-shell--member { gap: 18px; }
.profile-shell--member .profile-summary {
  gap: 18px 22px;
  padding: clamp(15px, 4vw, 28px);
  border-radius: 16px;
  background: linear-gradient(120deg, #172831, #21424e);
}

.profile-shell--member .profile-identity { gap: clamp(10px, 3vw, 18px); }
.profile-shell--member .profile-avatar { flex-basis: clamp(56px, 12vw, 79px); border-radius: 50%; font-size: 31px; }
.profile-shell--member .profile-summary h3 { margin: 0 0 8px; font-size: clamp(29px, 6vw, 46px); }
.profile-shell--member .profile-roles .tag { padding: 4px 8px; border-radius: 6px; font-size: .875rem; }
.profile-shell--member .profile-stats { flex-wrap: wrap; gap: 10px 18px; }
.profile-shell--member .profile-stats dt { font-size: .875rem; }
.profile-shell--member .profile-stats dd { font-size: 1.85rem; }

.profile-publication {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex: 1 0 100%;
  min-width: 0;
  padding: 12px 15px;
  border: 1px solid #5d7784;
  border-radius: 10px;
  background: #142c38;
  font-size: 1rem;
}

.profile-publication[data-profile-publication="public"] { border-color: #61988a; }
.profile-publication[data-profile-publication="pending"] { border-color: #ffb998; }
.profile-publication[data-profile-publication="pending"] strong { color: #ffd1b6; }
#dialog-content .profile-publication p { margin-top: 4px !important; color: #e5eff2; font-size: .9375rem; }
.profile-publication > div { flex: 1 1 19rem; min-width: 0; }
.profile-publication .button {
  min-height: 44px;
  border-color: #91aab6;
  color: #f5fbfc;
  background: #244957;
  font-size: .9375rem;
}
.profile-publication .button:hover { color: #fff; background: #356171; }

.profile-shell--member .profile-tabs { gap: 5px; padding: 5px; border-radius: 11px; }
.profile-shell--member .profile-tabs button { min-height: 46px; padding-inline: 3px; font-size: .9375rem; }
.profile-shell--member .profile-tabs button[aria-selected="true"] { border-color: #bd6e4d; }
.profile-shell--member .profile-training-actions .button { min-height: 44px; font-size: .875rem; }
.profile-shell--member > .profile-actions { margin-top: 0; }

.profile-card.profile-member-panel { gap: 20px; padding: clamp(14px, 4vw, 28px); border-radius: 15px; }
.profile-member-panel h4 { font-size: clamp(27px, 5vw, 36px); }
.profile-panel-intro { display: grid; gap: 7px; }
#dialog-content .profile-panel-intro p,
#dialog-content .profile-instructor-guide p { margin: 0; color: var(--muted); font-size: 1rem; }
.profile-member-panel .profile-fields { gap: 15px; }
.profile-member-panel :is(label, legend) { font-size: .9375rem; font-weight: 750; }
.profile-member-panel :is(input:not([type="checkbox"]), select, textarea) { min-height: 46px; }
.profile-member-panel .profile-toggle { padding: 14px; }
.profile-member-panel .profile-toggle strong { font-size: 1rem; }
.profile-member-panel small { font-size: .875rem; }
#dialog-content .profile-shell--member :is(.profile-help, .profile-error, .profile-gallery-empty) { font-size: .9375rem; }
#dialog-content .profile-shell--member .profile-media-note { font-size: .9375rem; }
.profile-shell--member .profile-portrait > summary { min-height: 44px; font-size: .9375rem; }
.profile-member-panel .profile-disclosure summary { padding-block: 5px; font-size: 1rem; }
.profile-member-panel .profile-card-heading .profile-count { font-size: .875rem; }
.profile-member-panel .profile-picklist { padding: 12px; }
.profile-member-panel .profile-picklist .profile-choice { min-height: 40px; }
.profile-member-panel .profile-coaching { gap: 20px; }
.profile-member-group { display: grid; gap: 13px; min-width: 0; padding-top: 18px; border-top: 1px solid var(--profile-border); }
.profile-member-group h5 { font-size: 1.125rem; }
.profile-member-group .instructor-type-fields { gap: 9px; }

.profile-instructor-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.profile-instructor-guide > div {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--profile-border);
  border-radius: 9px;
  background: #f5f4ee;
}

#dialog-content .profile-member-panel [data-instructor-status] {
  padding: 11px 13px;
  border-inline-start: 3px solid #b85d3d;
  border-radius: 4px;
  background: var(--profile-highlight);
  color: #672f24;
  font-size: .9375rem;
}

.profile-card.instructor-review-card { gap: 16px; padding: clamp(14px, 4vw, 28px); border-radius: 15px; }
.instructor-review-card h4 { font-size: clamp(27px, 5vw, 36px); }
.instructor-review-card > button { justify-self: start; }
.instructor-review-card .profile-disclosure summary { min-height: 44px; padding-block: 10px; font-size: 1rem; }
.instructor-review-card .profile-form { gap: 13px; }
.instructor-review-card .profile-form label { font-size: .9375rem; font-weight: 750; }
.instructor-review-card .profile-form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.instructor-review-card .profile-form-footer > .button { margin-inline-start: auto; min-height: 44px; }
.instructor-review-card .profile-form-footer .profile-error:empty { display: none; }
#dialog-content .instructor-review-card .profile-help { font-size: .9375rem; }

.instructor-review-state {
  padding: 13px 15px;
  border: 1px solid #9dbbc4;
  border-inline-start-width: 4px;
  border-radius: 9px;
  background: #edf4f6;
  color: #21414e;
  font-size: 1.0625rem;
}

.instructor-review-state:is([data-review-state="pending"], [data-review-state="attention"]) {
  border-color: #c88362;
  background: #fff2e9;
  color: #663624;
}

.instructor-review-state[data-review-state="verified"] { border-color: #739683; background: #edf5ef; color: #264e38; }
#dialog-content .instructor-review-state p { margin: 4px 0 0; font-size: 1rem; }
#dialog-content .instructor-review-level { margin: 0; font-size: .9375rem; }

.profile-shell--member [data-profile-form="details"] > .profile-savebar {
  position: sticky;
  z-index: 1;
  bottom: 0;
  padding: 8px 10px;
  border: 1px solid var(--profile-border);
  border-radius: 10px;
  background: var(--profile-surface);
  box-shadow: 0 -4px 15px #1b251b12;
}

.profile-shell--member .profile-savebar .button { flex: none; min-height: 44px; }


@media (max-width: 560px) { .profile-instructor-guide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 450px) { .instructor-review-card .profile-form-footer > .button { width: 100%; } }
@media (max-height: 480px) { .profile-shell--member [data-profile-form="details"] > .profile-savebar { position: static; } }

.profile-event-interests{display:grid;gap:8px;padding:0;margin:12px 0;list-style:none}
.profile-event-interests li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;padding:12px;border:1px solid var(--line);border-radius:8px}
.profile-event-interests li>div{min-width:0;overflow-wrap:anywhere}
#dialog-content .profile-event-interests p{margin:4px 0 0}
.profile-event-interests button{min-height:44px}
