/* Responsive corrections verified against the v4 home and v3 form/notice frames. */
.page-heading > div, .panel, .reward-card-body, .vip-hero > div { min-width: 0; }
.panel h2, .panel p, .reward-card h2, .reward-card h3, .reward-card p, .activity-card h2,
.vip-hero h2, .vip-hero p,
.notice-list summary, .page-heading h1 { overflow-wrap: anywhere; }
.page-heading > .button { flex-shrink: 0; }
.header-user-label { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-header h2 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.password-toggle img { width: 24px; height: 24px; }
.balance small { white-space: nowrap; }
@media (max-width: 420px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.table-region { min-width: 0; max-width: 100%; }
.table-hint { margin: 8px 0; color: var(--muted); font-size: 12px; }
.table-scroll { max-width: 100%; overscroll-behavior-x: contain; }
.table-scroll:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
.auth-shell { display: flex; flex-direction: column; }
.auth-brand, .auth-card { flex-shrink: 0; }
.auth-footer { margin: auto 0 0; padding-top: 32px; }
.notice-list details { padding: 0 16px; border: 0; }
.notice-list summary { display: grid; grid-template-columns: 28px minmax(0,1fr) 16px; align-items: center; gap: 16px; min-height: 76px; padding: 20px 0; list-style: none; font-weight: 500; line-height: 23px; }
.notice-list summary::-webkit-details-marker { display: none; }
.notice-info { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); color: var(--blue); font-size: 17px; font-weight: 700; }
.notice-chevron { width: 16px; height: 16px; }
.notice-list details[open] .notice-chevron { transform: rotate(90deg); }
.notice-list details + details { position: relative; }
.notice-list details + details::before { content: ""; position: absolute; top: 0; right: 20px; left: 60px; height: 1px; background: var(--line); }
.notice-list details p { margin: 0 0 20px 44px; }
.activity-cta { display: inline-flex; padding: 7px 10px; border-radius: 9px; background: var(--mist); }
@media (min-width: 761px) {
  .activity-card:first-child { min-height: 212px; }
  .activity-card:first-child picture { width: 180px; height: 180px; }
}
@media (max-width: 760px) {
  /* The square feature grows with the viewport, so its containing rows must too. */
  .recommendation { height: max(294px, calc(50vw + 100px)); min-height: 294px; }
  .member-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); overflow: visible; padding-bottom: 0; }
  .member-nav a { min-width: 0; text-align: center; padding-inline: 6px; }
}

/* The dock floats over the page. Reserving a grid row for it clips the page
   above the mascot and exposes a full-width canvas-colored strip. */
#app {
  --kiosk-dock-height: 106px;
  --kiosk-dock-clearance: calc(var(--kiosk-dock-height) + var(--kiosk-dock-headroom) + var(--kiosk-footer-height) + env(safe-area-inset-bottom, 0px));
  grid-template-rows: var(--kiosk-header-height) minmax(0, 1fr);
  padding-bottom: 0;
}
#app > main:not(.auth-shell) {
  padding-bottom: calc(var(--kiosk-dock-clearance) + 24px);
  scroll-padding-bottom: calc(var(--kiosk-dock-clearance) + 24px);
}
#app > .dock {
  position: fixed;
  left: 50%;
  bottom: calc(var(--kiosk-footer-height) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  margin: 0;
}
#app > .site-footer {
  position: fixed;
  left: 50%;
  bottom: env(safe-area-inset-bottom, 0px);
  transform: translateX(-50%);
  z-index: 30;
  background: transparent;
  pointer-events: none;
}
#app > .site-footer a, #app > .site-footer button { pointer-events: auto; }
/* The protruding mascot remains part of the records link. */
.dock-main::before {
  content: "";
  position: absolute;
  width: 104px;
  height: 36px;
  left: 50%;
  top: -36px;
  transform: translateX(-50%);
}
@media (max-width: 760px) {
  #app { --kiosk-dock-height: 80px; }
  body[data-route=home] #app { --kiosk-footer-height: 0px; }
  .dock-main::before { width: 72px; height: 28px; top: -28px; }
}

/* Figma activity content geometry, within the authorized kiosk frame. */
.auth-footer { font-size: 10px; line-height: 15px; font-weight: 700; }
.activity-card h2 { font-weight: 500; }
.activity-card:first-child { box-shadow: var(--hero-shadow); }
.activity-page .reward-grid:empty { display: none; }
.activity-cta { justify-content: center; width: 120px; height: 36px; padding: 0; border-radius: 11px; font-size: 13px; }
@media (min-width: 761px) {
  #app > .activity-page { --page-content-width: 720px; }
  .activity-page .page-heading h1 { font-size: 30px; }
  .activity-card { gap: 26px; }
  .activity-card h2 { font-size: 18px; line-height: 28px; }
  .activity-card:first-child { min-height: 220px; }
}
@media (max-width: 760px) {
  .activity-card { gap: 20px; }
  .activity-card h2 { font-size: 14px; line-height: 22px; }
  .activity-card:first-child { min-height: 196px; }
  .activity-cta { width: 112px; font-size: 13px; }
}
