/* WHY-sized modal frame, shared by all secondary TMP destinations. */
dialog.cc-sheet,
dialog.pp-dialog,
dialog#why {
  font-family: Inter, system-ui, sans-serif;
}

.cc-sheet[open],
dialog.pp-dialog[open] {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 0;
  left: var(--cc-sheet-left);
  top: var(--cc-sheet-top);
  width: var(--cc-sheet-width);
  height: var(--cc-sheet-height);
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #130e1c;
  color: #f3edf7;
  border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--accent, #b79acb) 38%, transparent);
  box-shadow: 0 30px 90px #0008;
}
.cc-sheet::backdrop,
dialog.pp-dialog::backdrop {
  background: #050408ad;
  backdrop-filter: blur(10px);
}
.cc-sheet-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  flex-shrink: 0;
  border-bottom: 1px solid #ffffff0e;
  color: var(--accent);
  background: #130e1c;
}
.cc-sheet-header strong {
  flex: 1;
  font-size: 16px;
  line-height: 23px;
  font-weight: 600;
  min-width: 0;
}
dialog.cc-sheet .cc-sheet-close,
dialog.cc-sheet .cc-sheet-header button {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #d8cfdf;
  font-size: 28px !important;
  padding: 0;
  position: static;
  transform: none;
  display: grid;
  place-items: center;
}
.cc-sheet-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px 22px 24px;
  scrollbar-width: none;
}
dialog.cc-sheet .sky-overlay,
dialog.cc-sheet .ask-overlay,
dialog.cc-sheet .feed-overlay {
  position: static;
  inset: auto;
  display: block;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  overflow: visible;
}
dialog.cc-sheet
  :is(
    .sky-overlay-panel,
    .ask-overlay-panel,
    .feed-overlay-panel,
    .sky-precision-page
  ) {
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}
.cc-sheet .sky-precision-content {
  padding: 0;
}
.cc-sheet .sky-precision-page > header,
.cc-sheet .sky-detail-top,
.cc-sheet .feed-detail-head,
.cc-sheet .ask-back,
.cc-sheet .ask-history-back {
  display: none;
}
.cc-sheet .sky-detail,
.cc-sheet .feed-detail {
  padding: 0;
}
.cc-sheet :is(h2, h3, p) {
  overflow-wrap: anywhere;
}
.cc-detail-backdrop {
  pointer-events: none;
}
.cc-sheet .ask-store {
  overflow: visible;
  max-height: none;
}
.cc-sheet .plus-welcome-panel > [data-plus-welcome-close] {
  display: none;
}
#why[open] {
  border-color: color-mix(in srgb, var(--accent, #b79acb) 38%, transparent);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#why #modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: var(--phone-dialog-height);
  width: 100%;
}
#why .modal-top {
  position: relative;
  flex-shrink: 0;
  top: auto;
}
#why #modal-body > .modal-content {
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.pp-more,
.pp-inactive summary {
  color: #9a8fa4 !important;
  font:
    400 12px/18px Inter,
    system-ui,
    sans-serif !important;
  min-height: 44px;
  padding: 8px 0;
}
.pp-more span,
.pp-inactive summary span {
  color: inherit;
  font-size: 10px;
}
.cc-plus-link {
  color: #e7c58b !important;
}
.cc-plus {
  padding: 22px;
  border: 1px solid #e7c58b60;
  border-radius: 26px;
  background: linear-gradient(135deg, #e7c58b25, #130e1c);
}
.cc-plus-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e7c58b;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
}
.cc-plus-kicker span {
  font-size: 36px;
}
.cc-plus h2 {
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 20px 0;
}
.cc-plus p {
  font-size: 16px;
  line-height: 1.5;
  color: #d7cedd;
}
.cc-plus-week {
  display: flex;
  align-items: center;
  gap: 14px;
  border-block: 1px solid #e7c58b30;
  padding: 20px 0;
  margin: 20px 0;
}
.cc-plus-week > b {
  font-size: 68px;
  line-height: 1;
  color: #e7c58b;
}
.cc-plus-week > span {
  font-size: 20px;
  font-weight: 700;
}
.cc-plus-week small {
  display: block;
  font-size: 17px;
  color: #e7c58b;
  font-weight: 400;
}
.cc-plus-week i {
  margin-left: auto;
  color: #e7c58b;
  font-size: 38px;
}
.cc-plus small,
.cc-plus-benefits small {
  display: block;
  color: #dac7a7;
  font-size: 12px;
  line-height: 1.5;
}
.cc-plus-benefits h2 {
  font-size: 24px;
  line-height: 1.2;
  margin-top: 24px;
}
.cc-plus-benefits p {
  color: #aca0b8;
  font-size: 14px;
  line-height: 1.6;
}
.cc-plus-benefits button {
  width: 100%;
  padding: 15px;
  border-radius: 18px;
  background: #e7c58b;
  color: #21172b;
  font-size: 15px;
  font-weight: 700;
  margin-block: 15px;
}
@media (prefers-reduced-motion: reduce) {
  .cc-sheet * {
    scroll-behavior: auto !important;
  }
}

/* Keep each existing portrait family color on its shared modal frame. */
dialog.pp-dialog[open] {
  border-color: color-mix(in srgb, var(--pp-accent) 38%, transparent);
}
dialog.pp-dialog > header {
  flex-shrink: 0;
  position: static;
}
dialog.pp-dialog [data-pp-close] {
  width: 44px;
  height: 44px;
  min-height: 44px;
}
dialog.pp-dialog .pp-dialog-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

dialog.pp-dialog:has([data-pp-preview-plus]) {
  border-color: #e7c58b60;
}
