.tier-card {
  --tier-top: #47647d;
  --tier-bottom: #243a50;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 24px 22px 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--tier-top), var(--tier-bottom));
  box-shadow: 0 16px 30px #14313d24;
  color: #fff;
  text-align: center;
}
.tier-card::before {
  content: "⚓";
  position: absolute;
  top: 22px;
  right: -24px;
  z-index: -1;
  color: #fff;
  font-size: 300px;
  line-height: 1;
  opacity: .07;
  transform: rotate(-18deg);
}
.tier-gold { --tier-top: #bd8a33; --tier-bottom: #76521c; }
.tier-platinum { --tier-top: #8391a4; --tier-bottom: #42546a; }
.tier-emerald { --tier-top: #169b74; --tier-bottom: #075f4e; }
.tier-diamond { --tier-top: #24a5d7; --tier-bottom: #0877af; }
.tier-diamond-plus { --tier-top: #7869d4; --tier-bottom: #3a308d; }
.tier-pinnacle { --tier-top: #354367; --tier-bottom: #111c35; }
.tier-label {
  align-self: center;
  margin: -24px 0 13px;
  padding: 8px 18px;
  border-radius: 0 0 9px 9px;
  background: #112458;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
}
.tier-heading { display: flex; align-items: center; justify-content: center; gap: 13px; }
.tier-emblem { width: 39px; height: 42px; color: #fff; opacity: .94; }
.tier-eyebrow { display: block; color: #e7f5ff; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.tier-heading h4 { margin: 2px 0 0; color: #fff; font: 700 30px Georgia, serif; }
.tier-meter { position: relative; width: min(220px, 68vw); margin: 7px auto -6px; aspect-ratio: 1; }
.tier-meter svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tier-meter-track,.tier-meter-fill { fill: none; stroke-width: 16; stroke-linecap: round; }
.tier-meter-track { stroke: #ffffff66; }
.tier-meter-fill { stroke: #fff; }
.tier-meter-dot { fill: #fff; }
.tier-meter-value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tier-meter-value strong { color: #fff; font: 700 54px Georgia, serif; line-height: 1; }
.tier-meter-value span { margin-top: 9px; color: #fff; font-size: 15px; }
.tier-next { margin: 2px 0 14px; color: #eaf7ff; font-size: 17px; font-weight: 600; }
.tier-nights { padding: 8px 25px; border-radius: 100px; background: #063f684d; color: #fff; font-size: 16px; }
.tier-disclaimer { margin-top: 13px; color: #f2faff; font-size: 10px; line-height: 1.4; opacity: .83; }
.profile-totals { margin-top: 12px; }
@media (max-width: 700px) {
  .tier-card { padding: 21px 14px 14px; border-radius: 14px; }
  .tier-label { margin-top: -21px; }
  .tier-heading h4 { font-size: 25px; }
  .tier-emblem { width: 33px; height: 36px; }
  .tier-meter { width: min(190px, 64vw); }
  .tier-meter-value strong { font-size: 44px; }
  .tier-next { font-size: 14px; }
  .tier-nights { font-size: 14px; }
}

/* Compact, account-specific profile overview. */
.profiles-layout.single-profile { display: block; }
#profilesDialog:has(.single-profile) { width: min(780px,96vw); }
.profiles-heading:has(+ .single-profile) h2 { margin-bottom: 9px; }
.tier-card { display: block; padding: 22px 26px 17px; text-align: left; }
.tier-card::before { right: -20px; top: auto; bottom: -74px; opacity: .055; }
.tier-label { display: inline-block; align-self: auto; margin: 0; padding: 6px 10px; border: 1px solid #ffffff5c; border-radius: 5px; background: transparent; font-size: 10px; letter-spacing: .13em; }
.tier-main { display: grid; grid-template-columns: minmax(0,1fr) 160px; align-items: center; gap: 12px; }
.tier-heading { justify-content: flex-start; gap: 12px; margin-top: 18px; }
.tier-emblem { width: 36px; height: 40px; }
.tier-eyebrow { font-size: 10px; letter-spacing: .12em; }
.tier-heading h4 { font-size: 27px; }
.tier-summary-points { display: flex; align-items: baseline; gap: 11px; margin-top: 14px; }
.tier-summary-points strong { font: 700 43px Georgia,serif; line-height: 1; }
.tier-summary-points span { color: #eef5ff; font-size: 12px; }
.tier-next { margin: 9px 0 0; font-size: 12px; }
.tier-meter { width: 158px; margin: 4px 0 -8px; }
.tier-meter-value strong { font-size: 32px; }
.tier-meter-value span { margin-top: 5px; font-size: 10px; }
.tier-progress { margin-top: 7px; }
.tier-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.tier-progress b { font-weight: 700; }
.tier-progress-track { height: 7px; margin-top: 7px; overflow: hidden; border-radius: 20px; background: #ffffff4d; }
.tier-progress-track span { display: block; height: 100%; border-radius: inherit; background: #fff; }
.tier-disclaimer { display: block; margin-top: 9px; font-size: 10px; }
.profile-asof { margin-bottom: 12px; }
.profile-asof span { padding: 0 4px; }
.profile-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.profile-totals > div { min-height: 104px; padding: 13px 14px; border-radius: 10px; }
.profile-totals span { font-size: 11px; font-weight: 700; }
.profile-totals b { margin-top: 8px; font-size: 29px; line-height: 1; }
.profile-totals small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.profile-line-totals { margin-top: 20px; }
.profile-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.profile-section-heading h4 { margin: 0 0 4px; font-size: 14px; }
.profile-section-heading span { color: var(--muted); font-size: 11px; }
.profile-line-summary span strong { color: var(--ink); font-size: 13px; }
.profile-line-summary i { color: #9aa9ad; font-style: normal; }
.profile-note { margin: 13px 0 0; }
@media (max-width: 700px) {
  .tier-card { padding: 17px 16px 14px; }
  .tier-label { margin: 0; }
  .tier-main { grid-template-columns: minmax(0,1fr) 108px; gap: 3px; }
  .tier-heading { gap: 7px; margin-top: 14px; }
  .tier-heading h4 { font-size: 21px; }
  .tier-emblem { width: 25px; height: 29px; }
  .tier-summary-points { display: block; margin-top: 10px; }
  .tier-summary-points strong { font-size: 35px; }
  .tier-summary-points span { display: block; margin-top: 3px; font-size: 10px; }
  .tier-next { font-size: 11px; }
  .tier-meter { width: 106px; margin: 7px 0 0; }
  .tier-meter-value strong { font-size: 23px; }
  .tier-meter-value span { font-size: 9px; }
  .tier-progress > div:first-child { font-size: 10px; }
  .profile-totals { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-totals > div:last-child { grid-column: 1 / -1; min-height: 0; }
  .profile-totals > div { min-height: 91px; padding: 11px; }
  .profile-totals b { font-size: 25px; }
  .profile-section-heading { display: block; }
  .profile-section-heading span { display: block; margin-bottom: 5px; }
}
.family-profile-list { display: grid; gap: 9px; }
.family-profile-row { display: block; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.family-profile-row:hover,.family-profile-row:focus-visible { border-color: var(--teal); box-shadow: 0 4px 14px #123c4620; }
.family-profile-top,.family-profile-bottom { display: flex; align-items: baseline; gap: 12px; }
.family-profile-top b { min-width: 66px; font-size: 15px; }
.family-tier { padding: 3px 8px; border-radius: 100px; background: #eef4f6; color: var(--teal); font-size: 10px; font-weight: 700; }
.family-profile-top strong { margin-left: auto; font-size: 17px; white-space: nowrap; }
.family-profile-top strong small { color: var(--muted); font-size: 10px; font-weight: 500; }
.family-progress-track { display: block; height: 9px; margin: 11px 0 8px; overflow: hidden; border-radius: 30px; background: #e1eaed; }
.family-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#1596b0,#12617c); }
.family-profile-bottom { justify-content: space-between; color: var(--muted); font-size: 10px; }
.family-profile-bottom span:last-child { color: var(--teal); font-weight: 700; }
.family-back { margin: -2px 0 12px; padding: 0; border: 0; background: none; color: var(--teal); font-size: 12px; font-weight: 700; cursor: pointer; }
@media (max-width: 700px) {
  .family-profile-row { padding: 12px; }
  .family-profile-top { flex-wrap: wrap; gap: 5px; }
  .family-profile-top strong { font-size: 15px; }
  .family-profile-top strong small { display: block; text-align: right; }
  .family-profile-bottom { display: block; line-height: 1.5; }
  .family-profile-bottom span { display: block; }
}
.family-strip { padding: 22px 7vw 24px; background: #fff; border-bottom: 1px solid var(--line); }
.family-strip-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; }
.family-strip-heading small { color: var(--teal); font-size: 10px; }
.family-strip-heading h2 { margin: 3px 0 0; font: 26px Georgia,serif; }
.family-strip-heading button { border: 0; background: none; color: var(--teal); font-size: 12px; font-weight: 700; cursor: pointer; }
.family-widget-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(135px,1fr); gap: 9px; overflow-x: auto; padding: 2px 2px 7px; scrollbar-width: thin; }
.family-widget { display: flex; flex-direction: column; min-height: 153px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfa; color: var(--ink); text-align: left; cursor: pointer; }
.family-widget:hover,.family-widget:focus-visible { border-color: var(--teal); box-shadow: 0 5px 15px #123c4620; }
.family-widget-name { font-size: 14px; font-weight: 800; }
.family-widget-tier { margin-top: 2px; color: var(--teal); font-size: 10px; font-weight: 700; }
.family-widget strong { margin-top: 12px; font: 700 24px Georgia,serif; line-height: 1; }
.family-widget strong small { color: var(--muted); font: 10px Arial,sans-serif; letter-spacing: 0; }
.family-widget-track { display: block; width: 100%; height: 7px; margin-top: 9px; overflow: hidden; border-radius: 20px; background: #dce8eb; }
.family-widget-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#1596b0,#12617c); }
.family-widget-next,.family-widget-days { display: block; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.family-widget-next { margin-top: 6px; }
.family-widget-days { margin-top: auto; padding-top: 8px; }
.family-strip-loading { margin: 0; color: var(--muted); font-size: 12px; }
.stats.amar-summary { grid-template-columns: minmax(0,1.2fr) minmax(0,1.2fr) minmax(0,.8fr) minmax(0,.8fr); }
.stats.amar-summary > div { min-width: 0; }
.amar-line-breakdown,.amar-points-breakdown { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 9px; }
.stats .amar-line-breakdown span,.stats .amar-points-breakdown span { display: inline-flex; gap: 5px; align-items: baseline; font-size: 11px; }
.stats .amar-line-breakdown strong,.stats .amar-points-breakdown strong { color: var(--ink); font-size: 13px; }
.stats .amar-sailing-stat small { display: block; margin-top: 10px; color: var(--muted); font-size: 9px; letter-spacing: 0; font-weight: 400; }
.stats .amar-points-stat > span { margin-bottom: 13px; }
.stats .amar-home-stat small { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; letter-spacing: 0; font-weight: 400; }
.stats .amar-casino-stat small { display: block; margin-top: 9px; color: var(--muted); font-size: 9px; letter-spacing: 0; font-weight: 400; }
.amar-casino-breakdown { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.stats .amar-casino-breakdown span { display: inline-flex; gap: 5px; align-items: baseline; font-size: 11px; }
.stats .amar-casino-breakdown strong { color: var(--ink); font-size: 16px; }
.casino-edit { display: block; margin-top: 7px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--teal); font-size: 11px; font-weight: 700; cursor: pointer; }
.itinerary-button { margin: 14px 0 8px; padding: 8px 12px; border: 1px solid var(--teal); border-radius: 6px; background: #fff; color: var(--teal); font-size: 12px; font-weight: 700; cursor: pointer; }
.booking-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 8px; }
.booking-actions button { margin: 0; padding: 8px 12px; border: 1px solid var(--teal); border-radius: 6px; background: #fff; color: var(--teal); font-size: 12px; font-weight: 700; cursor: pointer; }
.booking-actions .booking-delete-button { border-color: #c6857b; color: #a13c30; }
.legend { display: flex; flex-wrap: wrap; align-items: center; }
.legend .legend-edit { margin-left: auto; padding: 6px 12px; border: 1px solid var(--teal); border-radius: 6px; background: #fff; color: var(--teal); font-size: 11px; font-weight: 700; cursor: pointer; }
.legend .legend-edit[aria-pressed="true"] { background: var(--teal); color: #fff; }
#bookingEditDialog { width: min(760px,96vw); max-height: 94dvh; overflow: auto; }
#bookingEditDialog .formhead button { border: 0; background: none; font-size: 26px; cursor: pointer; }
#bookingEditDialog .grid label { margin: 8px 0; }
#bookingEditDialog .grid input,#bookingEditDialog .grid textarea { padding: 9px; }
#bookingEditIdentity { color: var(--muted); font-size: 12px; }
.booking-cruise-fields { border-top: 1px solid var(--line); padding-top: 12px; }
.booking-cruise-fields .edit-suite { display: flex; align-items: center; gap: 8px; }
.booking-cruise-fields .edit-suite input { width: auto!important; margin: 0!important; }
#bookingEditError { min-height: 1em; }
#itineraryDialog { width: min(620px,92vw); max-height: 85vh; overflow-y: auto; }
#closeItinerary { float: right; border: 0; background: none; font-size: 27px; cursor: pointer; }
.itinerary-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.itinerary-facts span { padding: 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 11px; }
.itinerary-facts b { display: block; margin-top: 4px; color: var(--ink); font-size: 13px; }
.itinerary-ports { padding-left: 22px; }
.itinerary-ports li { margin: 8px 0; padding: 5px 0; border-bottom: 1px solid var(--line); }
.itinerary-ports li span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.itinerary-fallback { color: var(--muted); }
.details div > small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: 0; }
.weekdays,.calendar { grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar .day { min-width: 0; overflow: hidden; }
@media (max-width: 1050px) { .stats.amar-summary { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) {
  .family-strip { padding: 17px 3vw 18px; }
  .family-strip-heading h2 { font-size: 22px; }
  .family-widget-row { grid-auto-columns: minmax(150px,58vw); }
  .stats.amar-summary { grid-template-columns: 1fr; }
}
