:root{--bg:#f6f6f1;--paper:#fff;--ink:#1e2727;--muted:#778080;--line:#e5e9e3;--lime:#d4fc83;--dark:#1e302a;--accent:#45664c;--green:#287556;--safe:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;min-height:100%;background:#edf0e8;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible{outline:3px solid #90bba0;outline-offset:2px}.app{max-width:560px;margin:auto;min-height:100vh;background:var(--bg);padding-bottom:calc(94px + var(--safe));box-shadow:0 0 90px #1e332010}.masthead{height:86px;display:flex;align-items:center;justify-content:space-between;padding:11px 20px;gap:8px}.brand-lockup,.head-actions{display:flex;align-items:center;gap:9px}.brand-swatch{width:41px;height:41px;background:var(--dark);border-radius:14px 14px 13px 5px;display:grid;place-items:center;color:var(--lime);font-size:26px;font-weight:900;font-family:Georgia,serif}.brand{font-size:16px;line-height:1.15;font-weight:900;letter-spacing:-.7px;white-space:nowrap}.brand strong{color:#607c61}.brand-sub{font-size:10px;color:var(--muted);font-weight:600;margin-top:3px}.icon-button{width:36px;height:36px;border:1px solid var(--line);background:var(--paper);border-radius:12px;color:var(--dark);font-size:22px;display:grid;place-items:center}.location-pill{display:flex;align-items:center;gap:5px;border:1px solid var(--line);background:white;padding:10px 10px;border-radius:12px;font-size:12px;font-weight:800;min-width:66px;max-width:122px}.location-pill span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chevron{color:#66746b}.page-content{padding:0 16px 25px}.eyebrow{font-size:11px;letter-spacing:1.3px;font-weight:900;color:var(--accent)}.intro-row{display:flex;align-items:flex-end;justify-content:space-between;margin:13px 3px 12px;gap:10px}.intro-title{font-size:27px;line-height:1.26;letter-spacing:-1.1px;margin:4px 0 0;font-weight:900}.intro-sub{font-size:12px;color:var(--muted);margin:7px 0 0}.date-chip{border:1px solid #d9e3d2;border-radius:13px;padding:8px 10px;white-space:nowrap;background:#e9f1e5;text-align:center;color:#527359;font-size:11px;font-weight:800}.date-chip strong{font-size:18px;color:var(--dark);display:block}.day-tabs,.time-tabs,.select-row{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}.day-tabs::-webkit-scrollbar,.time-tabs::-webkit-scrollbar,.select-row::-webkit-scrollbar{display:none}.day-tabs{margin:10px 0 12px}.day-button{flex:1;min-width:0;white-space:nowrap;border:1px solid var(--line);border-radius:13px;padding:10px 4px;background:white;color:#657267;font-weight:800;font-size:12px}.day-button.active{background:var(--dark);color:white;border-color:var(--dark)}.time-tabs{margin:12px 0 14px}.time-button{border:1px solid transparent;background:#e8ede4;color:#5b6a60;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:800;white-space:nowrap;flex:1}.time-button.active{background:var(--lime);color:#26352c}.weather-card{position:relative;overflow:hidden;border-radius:25px;color:#fff;background:linear-gradient(125deg,#243f3d,#3d6961 64%,#7b9a7d);padding:22px 19px 16px;min-height:270px;box-shadow:0 13px 30px #254e4630}.weather-card.sunny{background:linear-gradient(125deg,#28564e 0%,#669d8d 75%,#c5b889 120%)}.weather-card.rainy{background:linear-gradient(135deg,#27394c,#536b78 68%,#899aab)}.weather-card.snowy{background:linear-gradient(135deg,#30415a,#728da2)}.weather-card.hot{background:linear-gradient(135deg,#655143,#a77f62 80%,#caa66a)}.weather-circle{position:absolute;width:195px;height:195px;right:-53px;top:-60px;border-radius:50%;background:rgba(255,255,255,.08)}.weather-orb{position:absolute;right:20px;top:42px;font-size:80px;line-height:1;filter:drop-shadow(0 6px 14px #0002)}.weather-head{position:relative;z-index:1;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.tiny-pill{border:1px solid #ffffff42;background:#ffffff24;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800}.tiny-pill.data-pill{background:#d4fc83;color:#284b30;border-color:transparent}.weather-main{position:relative;z-index:1;display:flex;align-items:baseline;gap:14px;margin:17px 0 3px}.degrees{font-size:66px;line-height:1;letter-spacing:-5px;font-weight:800}.weather-summary{font-size:15px;font-weight:800}.weather-mini{font-size:11px;line-height:1.7;color:#ffffffc7}.weather-trend{display:flex;flex-wrap:wrap;gap:8px;position:relative;z-index:1;margin-top:15px;padding:13px 0 0;border-top:1px solid #ffffff35}.metric{flex:1;min-width:72px}.metric b{font-size:13px}.metric span{display:block;font-size:10px;color:#fff9;line-height:1.3;margin-bottom:3px}.weather-credit{margin:8px 3px 0;color:#818b85;font-size:10px;display:flex;justify-content:space-between;gap:8px;align-items:center}.weather-credit a{color:#5f806d}.insight{display:flex;gap:11px;margin:15px 0 21px;background:#e5efdd;border:1px solid #d7e7d1;border-radius:18px;padding:13px 14px}.insight-icon{width:35px;height:35px;display:grid;place-items:center;background:#fff;border-radius:11px;flex-shrink:0;font-size:20px}.insight-text strong{font-size:13px;line-height:1.45;display:block}.insight-text p{margin:5px 0 0;color:#50695a;font-size:11px;line-height:1.65}.section-title-row{display:flex;justify-content:space-between;align-items:end;gap:10px;margin:15px 3px 11px}.section-title-row h2{font-size:19px;letter-spacing:-.6px;line-height:1.3;margin:3px 0 0}.section-title-row p{color:var(--muted);font-size:11px;margin:4px 0 0}.soft-action{background:none;border:0;color:var(--accent);font-size:12px;font-weight:800;padding:7px}.section-kicker{font-weight:900;color:#718471;font-size:10px;letter-spacing:1px}.controls{display:flex;gap:7px;margin-bottom:13px;flex-wrap:wrap}.filter-btn{border-radius:11px;background:#fff;border:1px solid var(--line);padding:9px 13px;font-size:12px;font-weight:800;color:#66776a}.filter-btn.active{background:var(--dark);color:#fff;border-color:var(--dark)}.look-feature{border:1px solid #e0e5de;border-radius:22px;background:#fff;overflow:hidden;box-shadow:0 9px 24px #2639290b}.look-cover{position:relative;aspect-ratio:1.5/1;background:#e6eadf;overflow:hidden}.look-cover img{width:100%;height:100%;object-fit:cover}.look-label{position:absolute;top:12px;left:12px;background:var(--lime);color:#26372d;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:900}.bookmark{width:37px;height:37px;background:#fffc;border:0;border-radius:11px;display:grid;place-items:center;font-size:22px;color:#254336}.bookmark.saved{background:#e5f9b9;color:#24613c}.look-cover>.bookmark{position:absolute;top:11px;right:12px}.look-content{padding:17px}.look-heading{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.look-heading h3{font-size:20px;margin:0;letter-spacing:-.5px}.look-category{font-size:11px;margin:4px 0 0;color:#78817e;font-weight:700}.look-desc{line-height:1.65;font-size:12px;color:#53635c;margin:11px 0 12px}.pieces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.piece{background:#f4f6f0;border-radius:11px;padding:10px;min-height:53px}.piece small{display:block;font-size:10px;color:#859087;margin-bottom:4px}.piece strong{font-size:12px;font-weight:850;line-height:1.4}.look-footer{margin-top:12px;display:flex;justify-content:space-between;align-items:center;gap:6px}.tag-row{display:flex;flex-wrap:wrap;gap:5px}.soft-tag{border-radius:5px;background:#edf3e7;padding:5px 7px;font-size:10px;color:#56725d;font-weight:700}.share-button{background:#edf1eb;border:0;border-radius:10px;padding:9px 10px;font-size:11px;font-weight:800;color:#48634e;white-space:nowrap}.more-looks{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.mini-look{overflow:hidden;background:#fff;border-radius:17px;border:1px solid var(--line)}.mini-photo{height:135px;position:relative;background:#e6ebe6}.mini-photo img{height:100%;width:100%;object-fit:cover}.mini-photo .bookmark{position:absolute;top:8px;right:8px;height:32px;width:32px;font-size:18px}.mini-body{padding:11px}.mini-body h3{font-size:13px;margin:0 0 5px}.mini-body p{font-size:10px;line-height:1.6;color:var(--muted);margin:0;min-height:33px}.mini-body .soft-tag{display:inline-block;margin-top:9px}.timeline{display:flex;overflow-x:auto;gap:8px;padding:2px 1px 9px;scrollbar-width:none}.timeline::-webkit-scrollbar{display:none}.hour-box{min-width:68px;flex:1;text-align:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px 7px}.hour-box.target{border:2px solid #79a373;background:#e9f2e5}.hour-box time{display:block;color:#6e7a71;font-size:10px;font-weight:800}.hour-box .symbol{display:block;font-size:22px;margin:7px 0}.hour-box b{display:block;font-size:14px}.hour-box small{color:#477baa;font-size:10px}.timeline-note{font-size:10px;color:var(--muted);margin:0 3px 15px}.tips-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.tip-card{border:1px solid var(--line);background:#fff;border-radius:15px;padding:14px}.tip-card .tip-emoji{font-size:23px}.tip-card b{display:block;font-size:13px;margin:7px 0 4px}.tip-card p{margin:0;font-size:11px;color:#68756a;line-height:1.6}.bottom-nav{position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:min(560px,100%);display:grid;grid-template-columns:repeat(3,1fr);background:#fffffff2;backdrop-filter:blur(14px);border-top:1px solid #e7eae4;padding:9px 10px calc(8px + var(--safe));box-shadow:0 -5px 30px #2132250d}.nav-item{border:0;background:transparent;color:#879088;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;padding:4px;font-weight:800;font-size:10px}.nav-item.active{color:#2b684b}.nav-icon{font-size:22px;font-weight:600;line-height:1.15}.panel{border-radius:20px;background:#fff;border:1px solid var(--line);padding:17px;margin:12px 0}.panel h3{font-size:15px;margin:0 0 5px}.panel p{font-size:12px;color:#7d8980;margin:4px 0 13px;line-height:1.7}.panel-title{font-size:12px;letter-spacing:.3px;font-weight:900;margin:0 0 10px;color:#314a38}.option-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.option{border:1px solid #e3e9e0;background:#fafcf8;padding:12px;text-align:left;border-radius:12px;font-size:12px;font-weight:800;color:#607062}.option small{font-size:10px;font-weight:600;display:block;margin-top:4px;color:#859087}.option.active{border-color:#84a984;background:#edf7df;color:#2b593b}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 1px;border-bottom:1px solid #eef0eb}.setting-row:last-child{border:0}.setting-row strong{font-size:12px}.setting-row small{font-size:11px;color:var(--muted);display:block;margin-top:4px}.number-stepper{display:flex;gap:8px;align-items:center}.number-stepper button{border:1px solid var(--line);background:#f2f5f0;width:32px;height:32px;border-radius:9px;font-size:19px}.number-stepper span{min-width:28px;text-align:center;font-size:13px;font-weight:850}.empty-state{padding:47px 20px;text-align:center;border-radius:20px;background:#fff;border:1px solid var(--line);margin:16px 0}.empty-state .large-emoji{font-size:45px}.empty-state h2{font-size:18px;margin:15px 0 4px}.empty-state p{font-size:12px;color:var(--muted);line-height:1.7}.primary-button{border:0;border-radius:13px;padding:13px 18px;background:var(--dark);color:#fff;font-size:12px;font-weight:850}.secondary-button{border:1px solid #cedace;border-radius:13px;padding:12px 15px;background:#f2f7f0;color:#386049;font-size:12px;font-weight:850}.error-box{border:1px solid #f0dcd1;background:#fff9f3;border-radius:17px;padding:17px;margin:10px 0;color:#543e32}.error-box h3{font-size:14px;margin:0 0 8px}.error-box p{font-size:12px;line-height:1.7;margin:0 0 13px}.saved-item{display:grid;grid-template-columns:102px 1fr;gap:14px;align-items:center;border-radius:17px;padding:10px;background:white;border:1px solid var(--line);margin:9px 0}.saved-item img{width:102px;height:107px;object-fit:cover;border-radius:12px;background:#eee}.saved-item h3{font-size:13px;margin:0 0 5px}.saved-item p{font-size:11px;color:var(--muted);margin:0 0 7px;line-height:1.55}.saved-item .small-actions{display:flex;gap:8px}.saved-item button{border:0;background:#eef5e8;color:#355d42;padding:7px 9px;border-radius:9px;font-size:11px;font-weight:800}.opening{margin-top:100px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;color:#4c5f54}.opening p{font-size:12px;color:#819087;margin:0}.spinner{width:40px;height:40px;border-radius:50%;border:4px solid #cbdcc8;border-top-color:#4a8255;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;left:50%;transform:translate(-50%,12px);bottom:calc(98px + var(--safe));width:max-content;max-width:calc(100vw - 40px);background:#253a30;color:white;font-size:12px;font-weight:750;border-radius:13px;padding:12px 18px;z-index:50;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}.dialog-shell{padding:0;border:0;background:transparent;max-width:min(520px,calc(100vw - 20px));width:100%;max-height:84vh}.dialog-shell::backdrop{background:#111b17a8;backdrop-filter:blur(4px)}.dialog-card{background:#f6f8f3;padding:22px;border-radius:23px;max-height:82vh;overflow-y:auto}.row-between{display:flex;justify-content:space-between;align-items:center}.row-between h2{font-size:20px;margin:0}.simple-close{border:0;border-radius:11px;background:#e4eae1;width:35px;height:35px}.dialog-intro{font-size:12px;color:#65756a;line-height:1.6}.gps-choice{width:100%;background:#253f32;color:white;border:0;border-radius:15px;padding:15px;display:flex;gap:14px;align-items:center;text-align:left}.gps-choice>span:first-child{font-size:25px}.gps-choice>span:last-child{margin-left:auto}.gps-choice small{display:block;margin-top:4px;opacity:.7;font-size:11px}.city-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.city-grid button{background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px 4px;font-size:12px;font-weight:800;color:#4b6353}.overline{font-size:11px;font-weight:900;letter-spacing:1px;margin-top:19px}.micro-note{font-size:10px;color:#819084;line-height:1.7;margin:15px 0 0}.footer-credit{font-size:10px;color:#899189;text-align:center;line-height:1.7;margin:22px 0 4px}.footer-credit a{color:#657e69}.saved-count{font-size:12px;color:var(--accent);font-weight:850}.warning-strip{display:flex;gap:8px;align-items:center;background:#fff6db;border-radius:12px;padding:10px;margin:12px 0;font-size:11px;color:#795b22}.location-active{font-size:10px;color:var(--green);font-weight:850;margin-bottom:3px}.empty-gap{min-height:10px}@media(max-width:380px){.masthead{padding:10px 13px}.page-content{padding:0 12px 24px}.brand{font-size:14px}.brand-swatch{width:35px;height:35px}.intro-title{font-size:24px}.degrees{font-size:59px}.weather-orb{font-size:66px;right:15px}.look-cover{aspect-ratio:1.3/1}.mini-photo{height:120px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* OOTD CAST v3.1 - field tested refinements */
.duration-control{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-4px 1px 15px;padding:8px 11px;border-radius:13px;background:#eef1e9;border:1px solid #e0e7d9}
.duration-control>span{font-size:11px;color:#536657;font-weight:900}
.duration-buttons{display:flex;gap:5px}
.duration-button{border:0;background:#fff;color:#657468;font-weight:800;font-size:11px;padding:7px 12px;border-radius:9px;min-height:33px}
.duration-button.active{background:#2b4739;color:#fff}
.outfit-summary{margin:15px 0 10px;background:#fbfff2;border:1px solid #dfecc9;border-radius:18px;padding:16px}
.summary-overline{color:#61734c;font-weight:900;font-size:10px;letter-spacing:.7px;margin-bottom:6px}
.outfit-summary>strong{font-size:18px;letter-spacing:-.5px;display:block;line-height:1.45}
.summary-chips{display:flex;gap:5px;flex-wrap:wrap;margin:11px 0 8px}
.summary-chips span{background:#e8f4d6;border-radius:8px;padding:6px 8px;color:#476348;font-weight:750;font-size:10px}
.outfit-summary p{font-size:10px;color:#71806b;margin:5px 0 0;line-height:1.6}
@media(max-width:360px){.duration-button{padding:6px 9px}.weather-trend{gap:4px}.weather-mini{font-size:10px}}

.city-search{display:flex;gap:7px;margin:8px 0}
.city-search input{flex:1;min-width:0;border:1px solid #d4ded3;background:#fff;border-radius:11px;padding:12px;font-size:12px}
.city-search button{border:0;border-radius:11px;background:#254633;color:white;padding:0 15px;font-size:12px;font-weight:900}
.city-search-status{font-size:11px;color:#687e6b;line-height:1.6;margin:8px 0}
.city-search-results{display:flex;flex-direction:column;gap:5px}
.city-search-results button{display:flex;gap:8px;align-items:center;text-align:left;border:1px solid var(--line);border-radius:11px;background:#fff;padding:12px}
.city-search-results strong{font-size:12px}
.city-search-results small{font-size:11px;color:#8a958b;flex:1}
.city-search-results span{font-size:10px;font-weight:850;color:#4a6b55}
/* OOTD CAST v4 — outfit discovery and editorial wardrobe UI */
.bottom-nav{grid-template-columns:repeat(4,1fr)}
.nav-item{font-size:10px}
.gender-shortcut{display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:14px;background:#edf2e9;padding:10px 9px;margin:0 0 10px}
.gender-shortcut strong{font-size:11px;white-space:nowrap;color:#3e5947}
.gender-shortcut>div{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.gender-chip{background:white;color:#59705e;border:1px solid #dfebdd;border-radius:9px;font-size:11px;font-weight:800;padding:7px 9px}
.gender-chip.active{background:#284638;color:#fff;border-color:#284638}
.mini-detail{display:block;margin-top:9px;background:none;border:0;color:#466b4d;font-size:11px;padding:6px 1px;font-weight:800;text-align:left}
.library-promo{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:14px 0 5px;padding:17px;border:1px solid #dbe9d1;border-radius:17px;background:linear-gradient(125deg,#ecf5e1,#f9ffef)}
.library-promo strong{font-size:13px}.library-promo p{margin:5px 0 0;font-size:10px;color:#72806b;line-height:1.4}
.library-promo-buttons{display:flex;flex-direction:column;gap:6px;flex-shrink:0}
.library-promo-buttons button{background:#274435;color:white;border:0;border-radius:10px;padding:10px;font-size:11px;font-weight:800}
.library-promo-buttons button:first-child{background:#e3edda;color:#3c5844}
.library-banner{border-radius:21px;padding:21px;margin:13px 0;background:linear-gradient(130deg,#243d34,#486553);color:white;display:flex;flex-direction:column;gap:8px;box-shadow:0 10px 22px #172e2625;overflow:hidden;position:relative}
.library-banner:after{content:'✳';position:absolute;right:-18px;top:-55px;font-size:220px;color:#ffffff14;line-height:1}
.library-banner span{color:#d4fc83;font-size:10px;letter-spacing:1.6px;font-weight:900}
.library-banner strong{font-size:18px;line-height:1.3;z-index:1}
.library-banner p{font-size:11px;color:#d9e5d7;margin:0;z-index:1}
.library-banner small{font-size:10px;line-height:1.6;color:#c6d3ca;z-index:1}
.catalog-panel{border:1px solid var(--line);background:#fff;border-radius:18px;padding:13px;margin:12px 0 15px}
.catalog-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.catalog-filter{display:flex;flex-direction:column;gap:5px;min-width:0}
.catalog-filter>span{font-size:10px;font-weight:900;color:#69816f}
.catalog-filter select{width:100%;background:#f7f9f5;border:1px solid #e0e8de;border-radius:10px;color:#334b3c;padding:11px 9px;font-size:12px;font-weight:800;outline:none}
.catalog-filter select:focus-visible{outline:2px solid #69b487}
.catalog-search{margin:14px 0 2px;display:flex;gap:6px}
.catalog-search input{min-width:0;flex:1;border:1px solid #dae4d7;border-radius:11px;padding:12px 10px;font-size:12px;color:#293c32;background:#fbfdf9}
.catalog-search button{flex-shrink:0;background:#274638;color:white;border:0;border-radius:11px;font-size:12px;font-weight:800;padding:8px 15px}
.result-bar{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:10px}
.result-bar strong{font-size:12px;color:#304f3c}
.result-bar button{background:none;border:0;color:#70917c;font-size:11px;font-weight:800}
.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.catalog-item{border:1px solid #e0e8df;border-radius:16px;background:white;overflow:hidden}
.catalog-photo{position:relative;background:#e9e8dc;aspect-ratio:1.16;overflow:hidden}
.catalog-photo img{height:100%;width:100%;object-fit:cover}
.catalog-photo .bookmark{position:absolute;top:7px;right:7px;width:34px;height:34px;font-size:18px}
.catalog-item-content{padding:12px}
.catalog-meta{font-size:10px;font-weight:850;color:#65846a;margin-bottom:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.catalog-item-content>strong{font-size:13px;line-height:1.35;display:block;min-height:35px;letter-spacing:-.3px}
.catalog-item-content>p{font-size:10px;line-height:1.55;color:#7c877b;margin:8px 0 12px;min-height:30px}
.catalog-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px;border-top:1px solid #e9eee6;padding-top:10px}
.catalog-bottom>span{font-size:10px;font-weight:800;color:#58765d}
.catalog-bottom button{border:0;background:#e9f2e6;border-radius:8px;padding:8px 7px;font-size:10px;font-weight:800;color:#476e4a}
.catalog-more{margin-top:15px;width:100%;border:1px solid #d8e4d9;background:white;border-radius:13px;padding:15px;font-size:12px;font-weight:900;color:#3a5741}
.look-dialog{padding:0;border:0;border-radius:22px;max-width:min(540px,calc(100vw - 24px));width:100%;max-height:90dvh;background:#fff}
.look-dialog::backdrop{background:#1a261dcc;backdrop-filter:blur(4px)}
.look-dialog-wrap{position:relative;max-height:90dvh;overflow-y:auto}
.look-dialog-close{position:sticky;float:right;top:11px;right:10px;margin:12px 12px -54px 0;z-index:2;background:#fffd;border:1px solid #efeee8;border-radius:50%;width:35px;height:35px;font-size:25px;line-height:1;color:#38453c}
.look-dialog-photo{height:225px;background:#efefe8}
.look-dialog-photo img{width:100%;height:100%;object-fit:cover}
.look-dialog-body{padding:21px}
.look-dialog-body h2{font-size:21px;line-height:1.3;margin:5px 0 8px;letter-spacing:-.7px}
.look-dialog-body .piece:last-child{grid-column:1/-1}
.detail-tags{display:flex;gap:6px;flex-wrap:wrap;margin:15px 0}
.detail-tags span{font-size:10px;font-weight:800;color:#4b6754;background:#edf5e9;padding:7px 9px;border-radius:7px}
.art-disclaimer{font-size:11px;line-height:1.6;color:#819086;margin-top:14px}
.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.detail-actions button{background:#264638;border:0;border-radius:12px;color:white;font-weight:800;padding:13px 8px;font-size:12px}
.detail-actions button:last-child{background:#eaf2e5;color:#416447}
@media(max-width:380px){.gender-shortcut{align-items:flex-start;flex-direction:column}.gender-shortcut>div{justify-content:flex-start}.catalog-item-content{padding:10px}.catalog-item-content>strong{font-size:12px}.catalog-bottom button{font-size:9px}}

/* v5 · Photo-first fashion lookbook layout */
.look-cover{aspect-ratio:4 / 4.8;background:#e6e6e6}
.look-cover img{object-fit:contain;object-position:center center}
.mini-photo{height:auto;aspect-ratio:4 / 5;background:#e6e6e6}
.mini-photo img{object-fit:contain}
.catalog-photo{aspect-ratio:4 / 5;background:#e5e5e5}
.catalog-photo img{object-fit:contain;object-position:center center}
.look-dialog-photo{height:min(70vh,540px);background:#e5e5e5}
.look-dialog-photo img{object-fit:contain}
.saved-item img{background:#e5e5e5;object-fit:contain}
.look-photo-note{font-size:11px;line-height:1.6;color:#5d6b62;background:#f3f6f1;border-radius:10px;padding:9px 11px;margin-top:12px}
.look-feature,.catalog-item,.mini-look{box-shadow:0 3px 16px #222e260a}
.library-banner small{display:block;color:#e1e8dc}
@media(max-width:380px){.look-cover{aspect-ratio:4 / 4.8}.mini-photo{height:auto}}

.production-colors{padding:12px 16px;background:#f1eee7;border-radius:10px;font-size:13px;line-height:1.6}.production-colors small{color:#777}.production-colors p{margin:4px 0}

/* iPhone Safari and installed home-screen app */
html{min-height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-height:100dvh}button,a,input,select{touch-action:manipulation}
.app{min-height:100dvh;padding-top:env(safe-area-inset-top,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
[hidden]{display:none!important}
.install-hint{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 16px;background:#e6efda;color:#38513d;font-size:12px;line-height:1.5}
.install-hint button{background:#fff;border:1px solid #ccd9c2;border-radius:10px;color:#284638;padding:8px 12px;font-weight:800;white-space:nowrap}
.connection-note{padding:10px 16px;background:#fff2cd;color:#5e4b1c;font-size:12px;line-height:1.5}
.install-dialog{width:calc(100% - 28px);max-width:450px;border:0;border-radius:22px;padding:22px;color:var(--ink);max-height:calc(100dvh - 40px);overflow:auto}
.install-dialog::backdrop{background:#16271bb3}.install-dialog h2{font-size:20px}.install-dialog ol{padding-left:22px;line-height:1.9;font-size:15px}.install-dialog p{font-size:13px;color:#657565;line-height:1.7}.install-dialog .primary-button{width:100%}
@media(max-width:600px){
 button,.icon-button,.bookmark,.mini-photo .bookmark,.catalog-photo .bookmark,.look-dialog-close,.simple-close{min-height:44px;min-width:44px}
 input,select,.catalog-filter select,.catalog-search input,.city-search input{font-size:16px!important;min-height:44px}
 .catalog-filters{gap:12px}.catalog-grid{gap:10px}.catalog-item-content{padding:11px}
 .catalog-photo,.mini-photo,.look-cover{aspect-ratio:2/3}
 .catalog-bottom{flex-wrap:wrap}.catalog-bottom button{font-size:12px;flex:1}
 .look-dialog{max-width:100%;width:100%;max-height:calc(100dvh - env(safe-area-inset-top,0px));margin:auto 0 0;border-radius:22px 22px 0 0}
 .look-dialog-wrap{max-height:calc(100dvh - env(safe-area-inset-top,0px));padding-bottom:env(safe-area-inset-bottom,0px)}
 .look-dialog-photo{height:min(66dvh,660px)}.look-dialog-body{padding:18px}
 .bottom-nav{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
 .nav-item{min-height:52px}.piece strong{font-size:13px}.look-desc{font-size:13px}
 .saved-item img{height:120px;width:80px;aspect-ratio:2/3;flex-shrink:0}
}
@media(display-mode:standalone){.install-hint{display:none}}

@media(max-width:360px){.masthead{padding:10px 12px;gap:6px}.brand-lockup{gap:7px}.brand{font-size:15px}.brand-swatch{width:36px;height:36px;font-size:23px}.head-actions{gap:6px}.location-pill{max-width:104px}}

@media(max-width:600px){.catalog-item-content>p{font-size:12px;line-height:1.6}.catalog-meta{font-size:11px}.catalog-item-content>strong{font-size:13px}.look-category{font-size:12px}.weather-mini{font-size:12px}.weather-credit{font-size:11px}}

@media(max-width:600px){.duration-button{min-height:44px}}

/* Backup and update controls follow the mobile button system. */
.panel .small-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.panel .small-actions button,#applyUpdate{border:1px solid #d6e0d1;border-radius:12px;background:#e8efdf;color:#2d4936;padding:11px 15px;font-size:13px;font-weight:750;min-height:44px}.panel .small-actions button:first-child{background:#2d4936;color:white;border-color:#2d4936}#updateNote{margin:10px 16px;justify-content:space-between;flex-wrap:wrap}
