

.moodpicker.custwin {
  width: min(400px, calc(100vw - 1.6rem));
  top: calc(var(--il-topbar-h, 48px) + 6px);
  padding: 0;
  max-height: calc(100vh - var(--il-topbar-h, 48px) - 16px);
  max-height: calc(100dvh - var(--il-topbar-h, 48px) - 16px);
  overflow: hidden;
}
.moodpicker.custwin.on { display: flex; flex-direction: column; }

@media (min-width: 601px) {
  .moodpicker.custwin[data-tab="profile"] { width: min(600px, calc(100vw - 1.6rem)); }
}

.cust-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .7rem .6rem .35rem .95rem; flex: none;
}
.cust-title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: 1.3rem; line-height: 1.1; color: var(--text-primary); letter-spacing: -.01em;
}
.cust-x {
  appearance: none; flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: calc(var(--radius) * .6); background: none; cursor: pointer;
  color: var(--text-muted);
}
.cust-x:hover { color: var(--text-primary); background: color-mix(in oklab, var(--text-primary) 7%, transparent); }


.cust-tabs {
  display: flex; gap: 2px; flex: none; margin: 0 .95rem;
  border-bottom: 1px solid var(--border);
}
.cust-tabs [role="tab"] {
  flex: 1 1 0; padding: 8px 4px 9px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.cust-tabs [role="tab"]:hover { color: var(--text-primary); }
.cust-tabs [role="tab"][aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }


.cust-panel { padding: .8rem .95rem .9rem; overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.cust-panel[hidden] { display: none; }
.cust-panel > h4:first-child { margin-top: 0; }
.custwin .cust-panel .moodblurb { min-height: 0; }
.custwin .cust-panel .moodblurb + h4 { margin-top: .15rem; }
.custwin .cust-panel .moodoptions { margin-bottom: .35rem; }
.custwin .cust-panel .moodopt { padding: .65rem .5rem; gap: .4rem; }
.custwin .cust-panel .roomoptions + .moodblurb { margin-bottom: 0; }
.cust-foot { margin: .5rem 0 0; }

.cust-tour { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; }
.cust-ccy { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .35rem; }
.cust-ccy .cust-ccy-select { border-color: var(--border); background: var(--surface-1); width: auto; max-width: 100%; }


.custwin :is(.cust-x, .cust-tabs [role="tab"], .moodopt, .shapeopt):focus-visible {
  outline: none; box-shadow: inset 0 0 0 2px var(--brand);
}
.custwin .shapeopt[aria-pressed="true"]:focus-visible {
  box-shadow: inset 0 0 0 2px var(--brand), inset 0 0 0 4px var(--surface-1);
}


@media (max-width: 600px) {
  .moodpicker.custwin {
    left: 0; right: 0; top: auto; width: auto;
    bottom: var(--il-tabbar-h, 0px);
    
    height: min(690px, calc(100vh - var(--il-tabbar-h, 0px) - 48px));
    height: min(690px, calc(100dvh - var(--il-tabbar-h, 0px) - 48px));
    border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0;
  }
  .cust-head { padding: .45rem .35rem .2rem 1rem; }
  .cust-x { width: 44px; height: 44px; }
  .cust-tabs { margin: 0 1rem; }
  .cust-tabs [role="tab"] { min-height: 44px; font-size: 14px; }
  .cust-panel { padding: .75rem 1rem 1rem; }
  .custwin .cust-panel .shapeopt { min-height: 44px; padding: .45rem .85rem; font-size: .8rem; }
  .custwin .cust-panel .moodopt { padding: .6rem .4rem; gap: .35rem; min-height: 64px; }
}
