.varya-page { --petal: #f3c3b8; --leaf: #cde4d1; --paper: #f8efdd; --outline: #556472; background: radial-gradient(ellipse at 42% 14%, #344b58, #172a38 52%, #121f2a); }
.varya-main { padding-block: clamp(22px, 4vw, 44px) 51px; }
.varya-heading { display: grid; gap: 18px; margin-bottom: 20px; }
.varya-heading h1 { font-size: clamp(38px, 5.8vw, 69px); }
.varya-heading h1 span { color: var(--petal); }
.mode-switch, .season-buttons, .trip-buttons, .clothing-tabs, .clothes, .palette-row, .walk-actions, #palette { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.varya-main button { min-height: 44px; min-width: 44px; border: 1px solid var(--outline); border-radius: 9px; color: #f3eee5; padding: 7px 11px; background: #253745; font: 800 14px/1.25 Nunito, 'Segoe UI', sans-serif; cursor: pointer; touch-action: manipulation; }
.varya-main button:hover:not(:disabled), .varya-main button:focus-visible { border-color: var(--petal); }
.varya-main button:focus-visible { outline: 2px solid var(--petal); outline-offset: 2px; }
.varya-main button[aria-pressed='true'] { background: #3a564f; border-color: #a7c8af; color: #f0fff4; }
.varya-main button:disabled { cursor: default; opacity: .6; }
.mode-switch button { padding-inline: 15px; }
#album-count { margin-left: 4px; color: #c5d8cb; font-size: 12px; }
.season-buttons { margin-bottom: 10px; }
.season-buttons button span { margin-right: 5px; color: var(--petal); font-size: 16px; }
.dressing-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.portrait-card { position: sticky; top: 12px; margin: 0; border: 1px solid #999f9f; border-radius: 18px; overflow: hidden; color: #213e40; background: var(--paper); box-shadow: 0 18px 50px #09152270; }
#varya-scene { display: block; width: 100%; height: auto; }
.portrait-card figcaption { padding: 8px 12px; border-top: 1px solid #bfb5a0; font-size: 13px; font-weight: 800; text-align: center; }
.outfit-panel, .album { border: 1px solid var(--outline); border-radius: 17px; background: #182c38; padding: clamp(12px, 2.5vw, 23px); box-shadow: 0 14px 35px #08141f56; }
.trip-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.trip-heading > div:first-child { flex: 1 1 215px; }
.trip-heading h2, .wardrobe h2, .album h2 { color: var(--petal); line-height: 1.08; letter-spacing: -.035em; }
.trip-heading h2 { font-size: clamp(23px, 3.1vw, 34px); }
.trip-heading p { color: #cbdce3; margin-top: 5px; }
.forecast { display: grid; min-width: 102px; padding: 5px 10px; border: 1px solid #648084; border-radius: 10px; background: #294548; text-align: center; }
.forecast strong { font-size: 21px; color: #f7e4ce; }
.forecast span { color: #ecf8ee; font-size: 12px; font-weight: 800; }
.trip-buttons { margin-top: 11px; }
.trip-buttons button { font-size: 13px; }
.wardrobe { border-top: 1px solid #455962; margin-top: 14px; padding-top: 14px; }
.wardrobe h2 { margin-bottom: 9px; font-size: 24px; }
.clothes { margin-top: 9px; gap: 7px; }
.clothes button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.fabric { width: 15px; height: 15px; border: 1px solid #f8e6d1b0; border-radius: 5px; background: var(--fabric); flex: none; }
.palette-row { margin-top: 8px; color: #d3e0e3; font-size: 13px; }
#palette { gap: 2px; }
#palette button { padding: 7px; border-color: transparent; background: transparent; }
#palette button[aria-pressed='true'] { border-color: #a7c8af; }
#palette .fabric { display: block; width: 20px; height: 20px; }
.walk-actions { margin-top: 12px; }
.varya-main .varya-primary { background: var(--petal); color: #251d28; border-color: #ffdcd0; padding-inline: 14px; }
.varya-main .varya-primary:hover { background: #ffd8cb; }
.varya-main .varya-subtle { background: transparent; }
.feedback { padding: 10px 12px; margin-top: 11px; border-radius: 8px; border: 1px solid #a28574; background: #503d42; color: #fff0df; }
.feedback.success { background: #315238; border-color: #83ae8b; color: #f1fff3; }
.feedback ul { padding-left: 20px; margin: 5px 0 0; }
.album > p { margin-top: 8px; }
.postcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 13px; }
.postcards:not(:empty) { margin-top: 13px; }
.postcard { margin: 0; border: 1px solid #b2a590; padding: 7px; border-radius: 8px; background: var(--paper); color: #294349; }
.postcard canvas { display: block; width: 100%; height: auto; border-radius: 4px; }
.postcard figcaption { padding: 7px 3px 3px; font-size: 13px; }
.postcard strong { display: block; }

@media (max-width: 760px) {
  .dressing-grid { grid-template-columns: 1fr; gap: 10px; }
  .portrait-card { z-index: 2; top: 0; border-radius: 13px; }
  #varya-scene { width: 100%; height: min(32vh, 255px); object-fit: contain; background: #d9e2cd; }
  .portrait-card figcaption { padding: 4px 9px; }
  .varya-heading { gap: 11px; }
  .varya-main { padding-top: 21px; }
  .season-buttons button, .mode-switch button { padding-inline: 8px; }
}
@media (max-height: 460px) and (orientation: landscape) {
  .portrait-card { position: static; }
}