*{box-sizing:border-box}body{margin:0;background:#e9c7c0;color:#252829;font:14px -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}button,input,select{font:inherit;color:inherit}button{cursor:pointer;background:transparent;border:0;border-radius:12px;padding:10px 13px;min-height:44px}button:focus-visible,input:focus-visible{outline:2px solid #bd526e;outline-offset:3px}h1{font-size:24px;font-weight:600;margin:0}h2{font-size:24px;font-weight:550}h3{font-size:15px;font-weight:550;margin:8px 0}p{line-height:1.7}.intro{display:none}.preview-banner{max-width:440px;margin:20px auto 12px;display:flex;align-items:center;justify-content:space-between;color:#6a5052;font-size:12px}.preview-banner button{font-size:12px;text-decoration:underline}.layout{max-width:440px;margin:0 auto 32px}.phone{background:#fff;border-radius:24px;min-height:820px;padding:32px 25px 100px;position:relative;overflow:hidden}.app-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.mode-buttons{display:flex;align-items:center;gap:3px}.mode-buttons button{font-size:24px;width:40px;padding:4px}.mode-buttons [aria-pressed=true]{background:#fbe9ed}.mode-buttons span{height:22px;border-left:1px solid #ddd;margin:0 5px}.filters{display:flex;gap:16px;overflow:auto;margin:23px 0 16px}.filters button{padding:8px 0 14px;min-width:42px;color:#78808a;border-radius:0;position:relative;font-size:14px}.filters [aria-pressed=true]{color:#252829;font-weight:550}.filters [aria-pressed=true]:after{content:'';position:absolute;width:6px;height:6px;border-radius:50%;background:#cf6782;bottom:4px;left:12px}.cabinet{display:grid;grid-template-columns:1fr 1fr;gap:26px 20px}.cabinet article{min-width:0}.image-button{width:100%;padding:0;display:block}.product-image{display:block;width:100%;height:210px;object-fit:contain;margin:auto}.cabinet h3{font-size:15px;margin:5px 0 3px}.tag{display:inline-block;font-size:12px;color:#7a8088;margin-right:8px;line-height:1.8}.small-start{background:#fbecee;width:100%;margin-top:7px;min-height:37px;padding:7px;font-size:13px}.tone-2{background:#f8f0ea}.tone-3{background:#eaf4ee}.nav{position:absolute;bottom:0;left:0;right:0;background:#fffffff5;border-top:1px solid #eee;display:flex;justify-content:space-around;padding:10px 10px 20px;height:78px}.nav button{font-size:13px}.nav button:first-child{color:#c6607c}.muted,small{color:#7b8189;font-size:12px;line-height:1.8}.center{text-align:center}.primary{background:#292d2c;color:white}.wide{width:100%;margin-top:14px}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.card{padding:18px 0;border-top:1px solid #eee;margin-top:12px}.note{font-size:12px;line-height:1.8;background:#fcf1f3;padding:14px;border-radius:12px;margin:18px 0;color:#806a70}input,select{padding:12px;border:1px solid #e6e3e4;border-radius:10px;width:100%;background:#fff}label{display:block;margin:17px 0 8px}input[type=file]{display:none}.preview{max-width:100%;max-height:160px}.flip-stage{height:282px;position:relative;touch-action:pan-y}.flip-picture .product-image{height:278px;width:85%;margin:auto}.index{position:absolute;right:4px;top:0;color:#848790;font-size:12px}.arrow{position:absolute;top:42%;z-index:2;font-size:28px;padding:0;width:30px;color:#777}.prev{left:0}.next{right:0}.summary-title{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.summary-title button{font-size:12px;color:#777;white-space:nowrap;padding:5px}.ruler{margin-top:12px;background:repeating-linear-gradient(90deg,#a6a9ae 0 1px,transparent 1px 12px);background-size:100% 15px;background-repeat:no-repeat;background-position:0 8px}.ruler input{width:100%;appearance:none;background:transparent;border:0;padding:0;height:30px;margin:0;cursor:ew-resize}.ruler input::-webkit-slider-thumb{appearance:none;width:20px;height:20px;border-radius:50%;background:#d06d86;border:2px solid white;box-shadow:0 0 0 1px #eed3dc}.ruler-labels{display:flex;justify-content:space-between;font-size:10px;color:#81858d}.duration-value{text-align:center;color:#cc627d;font:30px Georgia,serif;margin:4px 0}.duration-value small{font:11px sans-serif}.round-play{display:block;margin:8px auto 0;width:78px;height:78px;border-radius:50%;background:#292d2c;color:#fff;font-size:31px;padding-left:17px}.confirm-label{margin:7px 0 0;font-size:13px}.back-info{height:270px;max-width:255px;margin:auto;padding:30px 24px;background:#fff1f3;border-radius:18px}.empty{padding:100px 0;text-align:center;color:#777}.generic-pack{width:150px;height:200px;background:#f9e2e7;display:grid;place-items:center;margin:auto;font:32px Georgia}.clock{font-size:64px;text-align:center;margin:65px 0 25px;font-variant-numeric:tabular-nums}.resume{background:#fae8ed}.stats{display:flex;gap:50px;margin:25px 0}.stats b{display:block;font-size:30px;font-weight:500}.grid{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;gap:4px}.day{height:42px;padding:3px;border-radius:50%;position:relative}.day.active{background:#d16e88;color:white}.dot{display:block;width:4px;height:4px;background:#d16e88;border-radius:50%;margin:3px auto}.active .dot{background:white}.danger{color:#b04458}dialog{border:0;border-radius:24px!important;padding:24px;width:min(400px,calc(100vw - 20px));color:#252829;background:white}dialog::backdrop{background:#20212566;backdrop-filter:blur(2px)}#startSheet{position:fixed;inset:auto 0 0;margin:0 auto;border-radius:24px 24px 0 0!important;padding:20px 25px 28px;width:min(440px,100vw);max-height:90dvh;overflow:auto}.sheet-handle{width:36px;height:4px;border-radius:4px;background:#bcbfc2;margin:0 auto 25px}.close{position:absolute;right:16px;top:12px;font-size:25px}.sheet-product{display:flex;gap:15px;align-items:center;margin:25px 0;border-bottom:1px solid #eee;padding-bottom:20px}.sheet-product .product-image{width:95px;height:125px}.sheet-product h3{font-size:16px}.stepper{display:flex;align-items:center;gap:10px;margin:20px 0}.stepper button{background:#fce9ee;width:52px;font-size:24px}.stepper input{text-align:center;border:0;flex:1;min-width:60px;font-size:23px;width:90px;padding:4px}.stepper span{font-size:12px}.stepper input::-webkit-inner-spin-button{appearance:none}.sheet-product+.stepper{margin-top:20px}#app>.product-image{height:220px;width:200px}@media(max-width:500px){body{background:#fff}.preview-banner{margin:0;padding:0 20px;background:#fcf0f2}.layout{margin:0;max-width:none}.phone{border-radius:0;min-height:calc(100dvh - 44px);padding-top:23px}.product-image{height:190px}.flip-stage{height:250px}.flip-picture .product-image{height:245px}.back-info{height:245px}.nav{position:fixed;z-index:5;padding-bottom:max(12px,env(safe-area-inset-bottom));height:74px}.cabinet{gap:24px 20px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.nav button:first-child{color:inherit}.nav button.nav-active{color:#c6607c}
.flip-stage{touch-action:auto}.flip-track{display:flex;gap:28px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y;cursor:grab;user-select:none;height:100%;-webkit-overflow-scrolling:touch}.flip-track::-webkit-scrollbar{display:none}.flip-track .flip-picture{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always}.flip-track img{-webkit-user-drag:none;pointer-events:none}.flip-stage .index{z-index:2;pointer-events:none;background:#ffffffce;padding:3px 6px;border-radius:8px}.swipe-hint{text-align:center;font-size:11px;color:#989099;margin:6px 0 8px}.flip-track:active{cursor:grabbing}
/* Centered shelf: full selected pouch, visible neighboring pouches. */
.flip-stage{margin-left:-25px;margin-right:-25px;height:300px}.flip-track{padding:0 18%;gap:28px;scroll-padding:0;align-items:center}.flip-track .flip-picture{flex:0 0 100%;width:100%;height:100%;scroll-snap-align:center;display:flex;align-items:center;justify-content:center;transform:scale(.82);opacity:.65;transition:transform .25s ease,opacity .25s ease}.flip-track .flip-picture.is-current{transform:scale(1);opacity:1}.flip-track .product-image{width:100%;height:290px;object-fit:contain}.flip-stage .index{right:25px;top:0}.flip-track .back-info{width:100%;height:250px;padding:20px;font-size:12px}@media(max-width:500px){.flip-stage{height:275px}.flip-track .product-image{height:265px}.flip-track .back-info{height:245px}}@media(prefers-reduced-motion:reduce){.flip-track .flip-picture{transition:none}}
.flip-track{padding-left:23%;padding-right:23%;gap:28px}.flip-track .flip-picture{transform:scale(.92);opacity:.8}.flip-track .flip-picture.is-current{transform:scale(1);opacity:1}
.nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:100px;padding:3px 15px;color:#7b8189;font-size:12px}.nav button:first-child{color:#7b8189}.nav button.nav-active{color:#cf6c86}.nav svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav button.nav-active svg{stroke-width:2}

/* Flip duration: consistent spacing between guidance, selection and action. */
#maskSummary .duration-suggestion{margin:24px 0 16px;line-height:20px}
#maskSummary .ruler{margin-top:0;background-position:0 14px}
#maskSummary .ruler input{display:block;height:44px}
#maskSummary .ruler-labels{font-size:11px;line-height:16px;margin-top:2px}
#maskSummary .duration-value{display:flex;align-items:baseline;justify-content:center;gap:6px;margin:20px 0 0;font-size:32px;line-height:40px}
#maskSummary .duration-value small{font:12px/20px -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}
#maskSummary .round-play{margin:20px auto 0;width:72px;height:72px;min-height:72px;line-height:1;font-size:28px;display:flex;align-items:center;justify-content:center;padding:0 0 0 4px}
#maskSummary .confirm-label{margin:10px 0 8px;font-size:13px;line-height:20px;font-weight:400}

/* Upright pouches on an open, white display shelf. */
.flip-stage{height:302px;margin-top:4px;margin-bottom:8px}
.flip-track{padding-left:23%;padding-right:23%}
.flip-track .flip-picture{transform:scale(.76);opacity:.72}
.flip-track .flip-picture.is-current{transform:scale(1);opacity:1}
.flip-track .shelf-pouch{width:100%;height:294px;object-fit:fill}
@media(max-width:500px){.flip-stage{height:282px}.flip-track .shelf-pouch{height:274px}}

/* image2-generated icons, alpha masks inherit the active UI color. */
.ui-icon{display:block;flex:none;width:26px;height:26px;background:currentColor;mask:var(--icon) center/contain no-repeat;-webkit-mask:var(--icon) center/contain no-repeat}
.icon-cabinet{--icon:url('assets/icon-cabinet-v12.png?v=2')}
.icon-swipe{--icon:url('assets/icon-swipe-v12.png?v=2')}
.icon-masks{--icon:url('assets/icon-face-v13.png');width:25px;height:25px}
.mode-buttons button{display:flex;align-items:center;justify-content:center}
.mode-buttons button[aria-pressed]{color:#81858b}
.mode-buttons button[aria-pressed=true]{color:#bd647e;background:#fbe9ed}

.mask-flipper{display:block;width:100%;height:100%;padding:0;border-radius:0;perspective:900px;cursor:pointer;text-align:left;min-width:0}
.mask-faces{display:block;position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .42s ease}
.mask-flipper.is-flipped .mask-faces{transform:rotateY(180deg)}
.mask-front,.flip-track .mask-back{position:absolute;inset:0;width:100%;height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;align-items:center;justify-content:center}
.flip-track .mask-back{transform:rotateY(180deg);flex-direction:column;align-items:flex-start;gap:14px;background:#faf3f3;border:1px solid #efdfdf;border-radius:8px;padding:22px;line-height:1.7;font-size:12px}
.mask-back strong{font-size:16px}.mask-back small:last-child{align-self:center;margin-top:auto}
@media(prefers-reduced-motion:reduce){.mask-faces{transition:none}}



/* Clear shortcuts above a subtle recommendation band. */
#maskSummary .ruler{position:relative;padding-top:80px;background-position:0 94px}
.duration-marks{position:absolute;top:0;left:0;right:0;display:flex;justify-content:center;gap:12px}
.duration-mark{display:flex;align-items:center;gap:10px;min-height:52px;padding:9px 14px;border:1px solid #ece6e8;border-radius:13px;background:#fff;color:#75777d}
.mark-caption{font-size:11px;line-height:18px}.mark-time{font-size:19px;line-height:24px;font-weight:500;font-variant-numeric:tabular-nums;color:#45484b}.mark-time small{font-size:10px;font-weight:400;color:inherit}
.duration-mark[aria-pressed=true]{border-color:#dca3b3;background:#fcf1f4;color:#a8546d}.duration-mark[aria-pressed=true] .mark-time{color:#b85774}
.duration-mark:hover{border-color:#cf6c86}
.suggested-band{position:absolute;left:10px;right:10px;top:90px;height:24px;pointer-events:none}
.suggested-band i{position:absolute;left:calc(var(--from)*100%);width:calc((var(--to) - var(--from))*100%);min-width:3px;height:24px;background:#d7819c26;border-left:2px solid #d99bb0;border-right:2px solid #d99bb0;border-radius:3px}
#maskSummary .ruler input{position:relative;z-index:1}
#maskSummary .ruler:not(:has(.duration-marks)){padding-top:0;background-position:0 14px}
@media(max-width:360px){.duration-mark{gap:6px;padding:9px 10px}.duration-marks{gap:8px}}

.extend-timer{margin:8px auto 6px;padding:10px 22px;border:1px solid #e6bcc8;background:#fcf1f4;color:#aa526b;border-radius:24px;min-height:44px}.extend-timer:disabled{opacity:.4;cursor:default}

/* Calendar selection stays circular regardless of grid column width. */
.grid .day{justify-self:center;align-self:center;width:40px;height:40px;min-height:40px;max-width:100%;padding:0;border-radius:50%;display:flex;align-items:center;justify-content:center;line-height:1}
.grid .day .dot{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);margin:0;width:4px;height:4px}

/* Compact recommendation row and a focused fine-adjustment scale. */
#maskSummary .ruler{margin-top:24px;padding-top:66px;background-position:0 80px}
.duration-marks{align-items:center;justify-content:space-between;gap:12px}
.duration-caption{font-size:12px;color:#7b8189;line-height:20px}
.duration-presets{display:flex;gap:8px}
.duration-mark{min-height:44px;min-width:66px;padding:8px 12px;justify-content:center;gap:3px;border-radius:22px;font-size:16px;border-color:#eee8eb;background:#fff}
.duration-mark small{font-size:10px;color:inherit}
.duration-mark[aria-pressed=true]{background:#f9eaf0;border-color:#dca3b3;color:#b85774}
.suggested-band{top:76px}
.duration-tools{display:flex;align-items:center;justify-content:space-between;margin-top:6px;font-size:10px;color:#95949a}
.duration-tools button{font-size:11px;color:#a45d73;min-height:36px;padding:6px 0 6px 12px}
#maskSummary .duration-value{margin-top:10px}.duration-chosen-caption{font:12px/20px -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;color:#7b8189;margin-right:4px}
#maskSummary .ruler:not(:has(.duration-marks)){padding-top:0;background-position:0 14px}

#maskSummary .ruler-labels{position:relative;display:block;height:16px;margin-left:10px;margin-right:10px}#maskSummary .ruler-labels span{position:absolute;white-space:nowrap}

/* Record dots keep category colors even on a selected date. */
.grid{row-gap:12px}
.grid .day .day-dots{position:absolute;top:43px;left:50%;transform:translateX(-50%);display:flex;justify-content:center;gap:3px;width:max-content}
.grid .day .day-dots .dot{position:static;transform:none;display:block;width:4px;height:4px;margin:0;border-radius:50%}
.legend-dot{display:inline-block;width:5px;height:5px;border-radius:50%;margin-right:4px;vertical-align:middle}

.filters button{flex:0 0 auto;white-space:nowrap}.filters{scrollbar-width:none}.filters::-webkit-scrollbar{display:none}

/* Lightweight display shelf and turned-page icons. */
.view-line-icon{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.mode-buttons button[aria-pressed]{width:40px;height:40px;min-height:40px;border-radius:12px;color:#85878b}
.mode-buttons button[aria-pressed=true]{color:#bb617d;background:#fbf0f3}

/* Compact category-colored start action. */
.cabinet .small-start{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:106px;min-height:44px;padding:9px 16px;margin-top:10px;border-radius:24px;font-size:13px;line-height:20px;font-weight:500;border:1px solid color-mix(in srgb,currentColor 16%,transparent)}
.small-start svg{width:14px;height:14px;fill:currentColor;flex:none}
.cabinet .small-start:hover{filter:brightness(.97)}.cabinet .small-start:active{transform:translateY(1px)}
.cabinet{row-gap:30px}

/* One calm metadata/action row beneath each pouch. */
.cabinet-action-row{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:44px}
.cabinet-action-row .tag{font-size:11px;margin:0;white-space:nowrap}
.cabinet .small-start{background:transparent;border:0;border-radius:8px;min-width:0;width:auto;min-height:44px;margin:0;padding:5px 0 5px 6px;gap:6px;font-size:12px;font-weight:500;white-space:nowrap}
.start-disc{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--category-soft);flex:none}
.small-start .start-disc svg{width:12px;height:12px;margin-left:0}
.cabinet h3{margin-top:8px;margin-bottom:0}.cabinet{row-gap:24px}

/* Unified compact action in the existing metadata row. */
.cabinet h3{text-align:left;margin:8px 0 0;line-height:1.5}
.cabinet-action-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:6px;min-height:48px}
.cabinet-action-row>div{text-align:left}
.cabinet .small-start{width:auto;min-width:82px;min-height:40px;margin:0;padding:8px 10px;border:0;border-radius:12px;background:var(--category-soft);gap:6px;font-size:12px;justify-content:center}
.cabinet .small-start svg{width:12px;height:12px;fill:currentColor;stroke:none;flex:none}
.cabinet .small-start:hover{filter:brightness(.97)}

/* Selected B: one circular action beside product information. */
.cabinet-action-row{align-items:flex-start;gap:8px;margin-top:10px;min-height:64px}
.cabinet-copy{flex:1;min-width:0;padding-top:4px}
.cabinet .cabinet-copy h3{margin:0 0 4px;font-size:14px;line-height:1.45;text-align:left}
.cabinet-copy .tag{font-size:12px;line-height:1.6;white-space:normal}
.cabinet .small-start{display:flex;flex-direction:column;flex:none;min-width:48px;min-height:64px;padding:0 2px;gap:4px;background:transparent;border:0;border-radius:10px;font-size:10px;font-weight:400;line-height:16px}
.cabinet .small-start .start-disc{width:38px;height:38px;background:currentColor;border-radius:50%;display:flex;align-items:center;justify-content:center}
.cabinet .small-start .start-disc svg{fill:#fff;width:18px;height:18px;stroke:none}
.cabinet .small-start>span:last-child{color:#7b8189}
.cabinet .small-start:hover{background:transparent;filter:brightness(.95)}

/* Balance the two-line product copy with the circular action. */
.cabinet-action-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;column-gap:10px;margin-top:12px;min-height:58px}
.cabinet-copy{padding-top:0;align-self:center}
.cabinet .cabinet-copy h3{font-size:14px;font-weight:500;line-height:1.45;letter-spacing:0;margin:0 0 6px;overflow-wrap:anywhere}
.cabinet-copy .tag{font-size:11px;line-height:16px;font-weight:400;opacity:.85}
.cabinet .small-start{min-width:44px;min-height:58px;padding:0;gap:3px;font-size:11px;line-height:16px;align-items:center}
.cabinet .small-start .start-disc{width:34px;height:34px}
.cabinet .small-start .start-disc svg{width:16px;height:16px}
.cabinet .small-start>span:last-child{font-size:10px;line-height:16px;color:#85868b}

/* Give the product footer a coherent optical width and hierarchy. */
.cabinet-action-row{grid-template-columns:minmax(0,1fr) 44px;column-gap:6px;margin:10px 4px 0;min-height:64px;align-items:start}
.cabinet-copy{padding-top:3px;align-self:start}
.cabinet .cabinet-copy h3{font-size:15px;font-weight:550;line-height:21px;margin:0 0 5px}
.cabinet-copy .tag{font-size:12px;line-height:18px;opacity:1}
.cabinet .small-start{min-height:62px;gap:4px;justify-content:flex-start}
.cabinet .small-start .start-disc{width:40px;height:40px}
.cabinet .small-start .start-disc svg{width:18px;height:18px}
.cabinet .small-start>span:last-child{font-size:11px;line-height:16px}
@media(max-width:380px){.cabinet-action-row{margin-left:0;margin-right:0;column-gap:4px}.cabinet .cabinet-copy h3{font-size:13px;line-height:19px}}

/* Symmetric card footers: identical inset, text block and action column. */
.cabinet-action-row{width:100%;margin:10px 0 0;padding:0 6px;grid-template-columns:minmax(0,1fr) 44px;column-gap:8px;align-items:center;min-height:64px}
.cabinet-copy{padding:0;align-self:center}
.cabinet .cabinet-copy h3{font-size:14px;line-height:20px;font-weight:500;margin:0 0 5px;min-height:20px}
.cabinet .small-start{align-self:center;justify-self:center;justify-content:center;width:44px;height:64px}
.cabinet .small-start .start-disc{width:36px;height:36px}
.cabinet .small-start>span:last-child{width:44px;text-align:center}
@media(max-width:380px){.cabinet-action-row{padding:0;column-gap:4px}.cabinet .cabinet-copy h3{font-size:13px}}

.sheet-presets{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 4px}
.sheet-presets button{min-height:44px;padding:9px 15px;border:1px solid #ece3e6;border-radius:12px;font-size:13px;background:#fff;color:#7b6970}
.sheet-presets button[aria-pressed=true]{background:#fbedf2;border-color:#d99aaf;color:#b55874}
.sheet-presets>span{font-size:11px;color:#8b8589}
