:root{--paper:#fbf8f3;--white:#fffefa;--ink:#392e33;--muted:#82757a;--rose:#86465f;--rose-soft:#f2e5e9;--line:#e8dfe0;--gold:#a88c55;--green:#4d7767;--shadow:0 10px 32px #533c4a05;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #be92a5;outline-offset:3px}a{color:var(--rose)}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400}h1{font-size:49px;letter-spacing:-1.8px;line-height:1.15}h1 em{color:var(--rose);font-weight:400}h2{font-size:25px}h3{font-size:24px}small,.small{font-size:12px;line-height:1.6}.muted{color:var(--muted)}.topbar{height:100px;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:0 5.4%;border-bottom:1px solid var(--line);background:var(--white)}.brand{display:flex;align-items:center;gap:13px;color:var(--ink);text-decoration:none;font-family:Georgia,serif;font-size:24px;white-space:nowrap}.brand em{color:var(--rose);font-style:normal}.brand small{display:block;font-family:Arial,sans-serif;letter-spacing:2.6px;font-size:8px;margin-top:6px}.monogram{display:grid;place-items:center;font-size:31px;width:46px;height:49px;border:1px solid #bd8a9e;border-radius:50% 50% 44% 44%;color:var(--rose)}nav{display:flex;align-items:stretch;align-self:stretch;gap:30px}.nav-tab{background:none;border:0;color:var(--muted);font-size:13px;padding:4px 0 0;position:relative}.nav-tab.active{color:var(--rose);font-weight:600}.nav-tab.active:after{content:'';height:2px;background:var(--rose);position:absolute;bottom:0;left:0;right:0}.nav-tab span{padding:3px 6px;margin-left:3px;background:var(--rose-soft);border-radius:5px;font-size:10px}.local-pill{color:var(--green);font-size:11px;border:1px solid #dfe8df;border-radius:30px;padding:8px 12px;white-space:nowrap}.local-pill i{display:inline-block;background:var(--green);height:5px;width:5px;border-radius:50%;margin-right:6px}main{max-width:1530px;margin:auto;padding:48px 5.4% 60px}.intro{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:40px}.eyebrow{font-size:9px;letter-spacing:2.3px;font-weight:600;color:var(--rose);margin-bottom:13px}.lede{color:var(--muted);font-size:14px;margin-top:15px;line-height:1.6}.version-note{display:flex;align-items:center;gap:14px;font-size:11px;color:var(--muted);line-height:1.7}.version-note small{display:block;font-size:10px}.tiny-star{font-size:28px;color:var(--gold)}.workspace{display:grid;grid-template-columns:342px minmax(0,1fr);gap:32px}.controls{display:flex;flex-direction:column;gap:18px}.panel{border:1px solid var(--line);background:var(--white);border-radius:10px;padding:24px;box-shadow:var(--shadow)}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:20px}.section-heading h2{font-size:20px}.step{font-size:9px;color:var(--rose);border:1px solid #e6cdd6;width:24px;height:24px;border-radius:50%;display:grid;place-items:center}.dropzone{border:1px dashed #c9a9b7;background:#fcf5f6;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;border-radius:7px;padding:22px 10px;cursor:pointer}.dropzone.dragover{background:#eddae2;border-color:var(--rose)}.upload-icon{font-size:27px;color:var(--rose);line-height:1}.dropzone strong{font-family:Georgia,serif;font-size:18px;font-weight:400}.dropzone span:not(.upload-icon){font-size:11px;color:var(--muted)}.dropzone small{font-size:9px;color:var(--muted)}.file-input{width:100%;margin-top:10px;font-size:10px;color:var(--muted)}.file-input::file-selector-button{border:0;background:var(--rose-soft);border-radius:4px;padding:5px 8px;color:var(--rose);margin-right:7px;cursor:pointer}.import-status{font-size:11px;margin:13px 0;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}.scope-row{margin-top:18px}.scope-row label,.field-label{display:block;font-size:11px;font-weight:600;margin-bottom:8px}.scope-row select{font-size:12px}.button{border:1px solid var(--line);border-radius:6px;padding:11px 15px;font-size:11px;background:var(--white);color:var(--ink);transition:background .15s}.button.primary{background:var(--rose);color:white;border-color:var(--rose);display:flex;justify-content:space-between;align-items:center;margin-top:19px;font-size:12px;padding:14px 17px}.button.primary:hover{background:#68374b}.button.secondary:hover{background:var(--rose-soft)}.full{width:100%}input:not([type=checkbox]):not([type=file]),select{width:100%;border:1px solid var(--line);border-radius:5px;background:#fffefa;padding:11px;color:var(--ink);font-size:12px;max-width:100%}input::placeholder{color:#9b8f92}select[size]{margin-top:10px;padding:4px;min-height:144px;font-size:11px}select[size] option{padding:8px 6px;border-radius:3px}select[size] option:checked{background:var(--rose-soft);color:var(--rose)}details{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}summary{font-size:11px;cursor:pointer;color:var(--rose)}details p{margin:12px 0}.weight-row{display:flex;align-items:center;justify-content:space-between;margin-top:8px;gap:10px;font-size:11px}.weight-row input{max-width:76px;padding:6px!important}.check-row{font-size:11px;display:flex;gap:7px;align-items:center;margin-bottom:16px}.check-row input{accent-color:var(--rose)}.compact .small{margin-top:12px}.results{min-width:0}.result-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:5px 0 24px}.result-heading h2{font-size:26px}.result-heading .eyebrow{margin-bottom:8px}.result-heading .button{white-space:nowrap}.empty-state{min-height:525px;background:var(--white);border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;padding:30px}.dress-illustration{width:185px;height:200px;margin-bottom:20px;background:radial-gradient(ellipse,#f5e8ec,transparent 68%)}.dress-illustration svg{width:100%;height:100%}.empty-state h3{font-size:24px;max-width:400px;line-height:1.35}.empty-state p{font-size:12px;line-height:1.9;color:var(--muted);margin-top:14px}.text-button{border:0;background:none;padding:0;color:var(--rose);font-size:11px;line-height:1.6;text-align:left}.empty-state .text-button{margin-top:24px}.explanation-strip{display:flex;gap:15px;border-top:1px solid var(--line);margin-top:26px;padding:24px 5px;color:var(--muted)}.explanation-strip>span{color:var(--gold);font-size:32px}.explanation-strip strong{font-family:Georgia,serif;font-weight:400;color:var(--ink);font-size:17px}.explanation-strip p{font-size:11px;line-height:1.7;margin:6px 0 9px;max-width:500px}#global-status:not(:empty){padding:14px 18px;margin-bottom:20px;border:1px solid #dfc7cd;background:#fff3f5;border-radius:7px;font-size:12px;line-height:1.6}.score-hero{background:#754159;color:#fff6ed;padding:28px;border-radius:10px;display:flex;justify-content:space-between;align-items:center;gap:20px}.score-label{font-size:10px;letter-spacing:1.7px;text-transform:uppercase;color:#e9cbd7}.score-number{font-size:50px;font-family:Georgia,serif;margin:6px 0}.score-note{font-size:11px;line-height:1.6;color:#edd8e0}.score-meta{text-align:right;font-size:12px;line-height:2;color:#f1dee7}.score-meta b{font-size:19px;color:white}.stats-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:15px 0}.stat{padding:14px 8px;background:var(--white);border:1px solid var(--line);border-radius:7px;text-align:center}.stat small{display:block;font-size:9px;color:var(--muted)}.stat strong{font-size:13px;display:block;margin-top:7px;font-weight:500}.result-notes{font-size:11px;line-height:1.8;color:var(--muted);padding:12px 15px;border:1px solid var(--line);border-radius:7px;margin-bottom:18px;background:#f9f0e7}.outfit-table{width:100%;border-collapse:collapse;font-size:12px;background:var(--white)}.table-wrap{border:1px solid var(--line);border-radius:9px;overflow:hidden}.outfit-table th{text-align:left;font-size:9px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);padding:13px 16px;background:#f5efed;font-weight:500}.outfit-table td{padding:14px 16px;border-top:1px solid #f0e9e8;vertical-align:top}.outfit-table td:first-child{color:var(--muted);font-size:10px;width:24%}.outfit-table td:last-child,.outfit-table th:last-child{text-align:right;white-space:nowrap}.item-name{font-size:12px;font-weight:600;color:var(--ink)}.item-sub{font-size:9px;color:var(--muted);margin-top:5px;line-height:1.7}.tag{display:inline-block;font-size:9px;padding:2px 5px;border-radius:3px;background:var(--rose-soft);color:var(--rose);margin:4px 3px 0 0}.stage-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px}.stage-description{font-size:11px;color:var(--muted);line-height:1.6;margin-top:12px}footer{display:flex;justify-content:space-between;gap:20px;padding:25px 5.4%;border-top:1px solid var(--line);color:var(--muted);font-size:9px;letter-spacing:.4px}.footer-dot{padding:0 8px}.evidence-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}.evidence-layout .wide{grid-column:1/-1}.evidence-layout h2{margin-bottom:16px}.evidence-layout p,.evidence-layout li{font-size:13px;line-height:1.9;color:#6d5f65}.evidence-layout ul,.evidence-layout ol{padding-left:20px}.evidence-layout pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4edee;border:1px solid var(--line);padding:20px;border-radius:6px;font-size:12px;line-height:1.8}.evidence-layout code{font-size:11px;color:var(--rose)}.evidence-layout a{overflow-wrap:anywhere}.evidence-ref{display:block;font-size:11px;margin-top:14px}.evidence-label{display:inline-block;font-size:9px;color:var(--green);background:#ebf1eb;border-radius:3px;padding:4px 6px;margin-bottom:12px}.evidence-layout .unknown{background:#f8eedc;color:#8b6e2d}.view[hidden],[hidden]{display:none!important}#item-search{max-width:290px}#wardrobe-summary{font-size:12px;margin-bottom:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1450px){.workspace{grid-template-columns:365px 1fr}.empty-state{min-height:555px}}@media(max-width:1050px){.topbar{padding:0 4%;gap:20px}nav{gap:19px}.local-pill{display:none}.intro{align-items:start}.version-note{display:none}main{padding:35px 4% 45px}.workspace{grid-template-columns:310px minmax(0,1fr);gap:22px}.panel{padding:19px}.result-heading{align-items:start}.result-heading h2{font-size:23px}.result-heading .button{padding:9px}.empty-state h3{font-size:21px}.stats-grid{grid-template-columns:repeat(3,1fr)}.outfit-table td,.outfit-table th{padding:12px 10px}.score-hero{padding:22px}.score-number{font-size:43px}}@media(max-width:720px){.topbar{height:auto;min-height:88px;padding:16px 5% 0;flex-wrap:wrap;gap:10px}.brand{font-size:22px}.monogram{height:41px;width:39px;font-size:26px}nav{width:100%;height:44px;justify-content:space-around;gap:20px}.nav-tab{font-size:12px}main{padding:30px 5%}h1{font-size:39px}.intro{margin-bottom:28px}.lede{font-size:12px}.workspace{display:flex;flex-direction:column}.controls{gap:14px}.panel{padding:22px}.result-heading{margin-top:12px}.result-heading h2{font-size:25px}.empty-state{min-height:430px}.evidence-layout{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(5,1fr)}.stat{padding:10px 4px}.stat small{font-size:8px}.stat strong{font-size:11px}.score-number{font-size:46px}.score-meta{font-size:10px}.score-meta b{font-size:16px}.score-hero{padding:23px 20px}footer{flex-direction:column;padding:22px 5%;gap:10px}.outfit-table td{padding:12px 9px}.result-heading:has(#item-search){flex-direction:column}#item-search{max-width:none}}

/* Shared controls: the same form and calculation action serve every screen size. */
#local-save-help{margin-top:9px;line-height:1.7}.setup-shell{min-width:0}.setup-toggle,.mobile-only,.nav-icon{display:none}.nav-tab .nav-label{padding:0;margin:0;background:none;border-radius:0;font-size:inherit}.calculate-actions{margin-top:18px}.calculate-actions .button.primary{margin-top:0}.calculate-note{margin:10px 4px 0}.result-actions{display:flex;gap:8px;flex-shrink:0}.result-notes summary{font-weight:600;line-height:1.6}.result-notes summary span{font-weight:400;color:var(--muted);margin-left:8px}.result-notes p{margin-bottom:0}.score-scope{margin-bottom:9px;color:#fff6ed}.outfit-table td,.outfit-table th,.item-name{overflow-wrap:anywhere}.wardrobe-table label{display:flex;align-items:center;gap:7px;min-height:32px;cursor:pointer}.wardrobe-table input{accent-color:var(--rose);flex-shrink:0}.copy-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}#copy-dialog{width:min(540px,calc(100% - 32px));max-height:85dvh;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);box-shadow:0 20px 80px #392e3333}#copy-dialog::backdrop{background:#392e3355}#copy-dialog p{font-size:14px;line-height:1.6;margin:16px 0}#copy-outfit-text{width:100%;height:260px;max-height:40dvh;resize:vertical;padding:12px;font:16px/1.6 Arial,sans-serif;color:var(--ink);border:1px solid var(--line);border-radius:6px;background:var(--paper)}

@media(max-width:720px){
  html{scroll-padding-top:calc(80px + env(safe-area-inset-top));scroll-padding-bottom:calc(150px + env(safe-area-inset-bottom))}body{overflow-wrap:anywhere}.topbar{position:sticky;top:0;z-index:20;min-height:68px;height:auto;padding:calc(12px + env(safe-area-inset-top)) 18px 12px;flex-wrap:nowrap;gap:12px;background:var(--white)}.brand{font-size:21px;gap:9px}.brand small{font-size:7px;letter-spacing:2px;margin-top:3px}.monogram{width:34px;height:38px;font-size:25px}.local-pill{display:block;padding:7px 9px;font-size:9px}.local-pill i{margin-right:4px}
  nav{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:auto;height:calc(66px + env(safe-area-inset-bottom));padding:5px max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left));gap:4px;background:var(--white);border-top:1px solid var(--line);box-shadow:0 -4px 18px #533c4a05}.nav-tab{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:10px;min-width:0;padding:5px 2px;border-radius:8px;min-height:52px}.nav-tab.active{background:#f8eef1}.nav-tab.active:after{display:none}.nav-icon{display:block;width:21px;height:21px}.nav-tab #wardrobe-count{font-size:9px;padding:1px 4px}.nav-label{white-space:nowrap}
  main{padding:25px max(16px,env(safe-area-inset-right)) 20px max(16px,env(safe-area-inset-left));max-width:100%}.intro{margin-bottom:23px}.intro .eyebrow{font-size:8px;letter-spacing:1.8px;margin-bottom:9px}h1{font-size:32px;letter-spacing:-1.1px}.lede{font-size:13px;line-height:1.5;margin-top:9px}.workspace{gap:23px}.setup-shell{width:100%}.setup-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:#f2e5e9;border:1px solid #e4ced7;border-radius:10px;padding:14px 15px;color:var(--ink);margin-bottom:14px;min-height:72px}.setup-toggle{scroll-margin-top:calc(80px + env(safe-area-inset-top))}.setup-toggle>span:first-child{min-width:0}.setup-label{display:block;font-size:8px;letter-spacing:1.6px;color:var(--rose);margin-bottom:6px}.setup-toggle strong{display:block;font-size:14px;line-height:1.4;font-weight:600}.setup-toggle small{display:block;font-size:11px;line-height:1.5;color:#74626b;margin-top:4px}#setup-toggle-label{flex-shrink:0;max-width:90px;color:var(--rose);font-size:11px;line-height:1.5}.setup-toggle[aria-expanded=false]{margin-bottom:0}.controls{gap:12px}.panel{padding:19px 17px;border-radius:10px}.section-heading{margin-bottom:17px}.section-heading h2{font-size:21px}.step{font-size:10px}.dropzone{padding:17px 12px;gap:6px}.dropzone strong{font-size:19px}.dropzone span:not(.upload-icon){font-size:12px;line-height:1.5}.dropzone small{font-size:10px}.upload-icon{display:none}
  input:not([type=checkbox]):not([type=file]),select,textarea,.scope-row select{font-size:16px;min-height:46px;padding:11px 10px}.file-input{font-size:12px;min-height:44px;line-height:44px}.file-input::file-selector-button{font-size:14px;min-height:44px;padding:10px 12px}.field-label,.scope-row label{font-size:12px;line-height:1.5}.field-label:not(:first-child){margin-top:15px}select[size]{font-size:16px;min-height:178px;padding:5px}select[size] option{padding:10px 7px}.weight-row{font-size:13px;min-height:44px}.weight-row input{font-size:16px;min-width:80px}.check-row{font-size:13px;min-height:44px;margin-bottom:7px;gap:10px}.check-row input,.wardrobe-table input{width:22px;height:22px;margin:0}.button{font-size:13px;padding:12px 14px;min-height:44px}.button.primary{font-size:15px;min-height:50px;padding:14px 18px}.text-button{font-size:13px;min-height:44px;display:inline-flex;align-items:center}summary{font-size:13px;min-height:44px;align-content:center;line-height:1.6}.import-status{font-size:12px;line-height:1.6}details{padding-top:4px}.calculate-actions{position:fixed;left:0;right:0;bottom:calc(66px + env(safe-area-inset-bottom));z-index:30;margin:0;padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));background:#fbf8f3f5;border-top:1px solid var(--line)}.calculate-actions .button{margin:0;box-shadow:0 4px 16px #86465f18}.calculate-note{display:none}
  .results{scroll-margin-top:90px}.result-heading{flex-direction:column;align-items:stretch;margin:0 0 17px;gap:12px}.result-heading h2{font-size:26px;line-height:1.25;overflow-wrap:anywhere}.result-heading .eyebrow{font-size:9px}.result-actions{justify-content:flex-end}.result-actions .button{min-height:44px;padding:10px 13px}.mobile-only{display:inline-block}.empty-state{min-height:350px;padding:25px 18px}.dress-illustration{width:135px;height:145px;margin-bottom:13px}.empty-state h3{font-size:22px}.empty-state p{font-size:13px}.empty-state .text-button{margin-top:14px}.score-hero{padding:22px 18px;flex-wrap:wrap;gap:15px}.score-hero>div:first-child{min-width:0;flex:1 1 180px}.score-label{font-size:9px;line-height:1.5;letter-spacing:1.2px}.score-number{font-size:49px;line-height:1.1;margin:9px 0}.score-note{font-size:11px}.score-meta{font-size:11px;line-height:1.7;text-align:left;flex:0 1 auto;border-left:1px solid #ffffff30;padding-left:14px}.score-meta b{font-size:17px}.score-scope{font-size:12px}.stats-grid{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.stat{flex:1 1 56px;min-width:0;padding:11px 5px}.stat small{font-size:9px}.stat strong{font-size:13px;margin-top:5px}.result-notes{padding:4px 13px;margin:0 0 16px;font-size:12px}.result-notes summary{font-size:12px}.result-notes summary span{display:none}.result-notes p{margin:3px 0 12px;line-height:1.8}
  .table-wrap{overflow:visible;border:0;border-radius:0}.outfit-table{display:block;width:100%;background:transparent}.outfit-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.outfit-table tbody{display:grid;gap:10px}.outfit-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 14px;padding:15px;border:1px solid var(--line);border-radius:9px;background:var(--white)}.outfit-table td{display:block;border:0;padding:0;min-width:0}.outfit-table td:first-child{grid-column:1/-1;width:auto;font-size:10px;line-height:1.5;text-transform:uppercase;letter-spacing:.6px;color:var(--rose)}.outfit-table td:nth-child(2){grid-column:1;grid-row:2;min-width:0}.outfit-table td:last-child{grid-column:2;grid-row:2;align-self:start;max-width:105px;text-align:right;white-space:normal;font-size:15px;color:var(--rose);font-weight:600;line-height:1.3;overflow-wrap:anywhere}.outfit-table td:last-child:before{content:'POINTS';display:block;font-size:8px;letter-spacing:1px;font-weight:400;color:var(--muted);margin-bottom:5px}.item-name{font-size:14px;line-height:1.45}.item-sub{font-size:11px;line-height:1.7;margin-top:5px}.tag{font-size:10px;line-height:1.4;padding:3px 6px;margin-top:6px}.wardrobe-table td:first-child{font-size:11px;letter-spacing:0;text-transform:none}.wardrobe-table label{min-height:44px;gap:10px}.wardrobe-table td:last-child:before{content:'ID'}.wardrobe-table td:last-child{font-size:12px}.wardrobe-table tr{padding-top:6px}#wardrobe-summary{font-size:12px;line-height:1.7}.stage-description{font-size:12px}
  .explanation-strip{margin-top:22px;padding:20px 0}.explanation-strip p{font-size:12px}.explanation-strip strong{font-size:19px}.evidence-layout{gap:13px}.evidence-layout h2{font-size:24px}.evidence-layout p,.evidence-layout li{font-size:13px}.evidence-layout pre{padding:13px;font-size:12px}.evidence-layout .panel{min-width:0}.evidence-ref{padding:10px 0;min-height:44px}#global-status:not(:empty){font-size:13px;padding:12px 14px}footer{padding:20px 18px calc(160px + env(safe-area-inset-bottom));font-size:9px;line-height:1.6;gap:6px}body[data-current-view=wardrobe] footer,body[data-current-view=evidence] footer{padding-bottom:calc(90px + env(safe-area-inset-bottom))}body[data-current-view=wardrobe] .intro,body[data-current-view=evidence] .intro{display:none}#copy-dialog{padding:18px}#copy-dialog h2{font-size:23px}#copy-dialog .button{min-height:44px}
}
@media(max-width:360px){.local-pill{font-size:0;padding:8px}.local-pill i{margin:0;width:6px;height:6px}.score-meta{border-left:0;padding-left:0;display:flex;align-items:baseline;gap:5px;flex:1 1 100%;font-size:10px}.score-meta br{display:none}.stats-grid .stat{flex-basis:70px}.setup-toggle{gap:8px;padding:13px}.result-heading h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Account, membership and cloud wardrobe additions reuse the atelier palette. */
.wardrobe-layout {display:grid;grid-template-columns:320px minmax(0,1fr);gap:24px;align-items:start}
.billing-layout {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;align-items:start;max-width:1050px;margin:auto}
.billing-layout .panel,.account-panel {padding:32px}
.membership-card {background:linear-gradient(145deg,#fffdf8,#f5e8ed);border-color:#dfbecb}
.membership-price {font-family:Georgia,serif;font-size:2rem;color:var(--wine,#7b3f58);margin:24px 0}
.membership-features {padding-left:22px;line-height:1.8;margin:22px 0 30px}
.membership-features li {padding:5px 0}
.button-row {display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}
.notice {padding:16px;border:1px solid #dfbecb;background:#fff4f7;border-radius:12px;margin:18px 0;line-height:1.6}
.error-message {color:#8e263f;white-space:pre-wrap}
.sync-bar {display:flex;gap:14px;align-items:center;justify-content:space-between;background:#f6f3ee;border-radius:10px;padding:12px 16px;margin:20px 0;font-size:.85rem}
.wardrobe-filters {display:flex;gap:12px;margin-bottom:20px}.wardrobe-filters input {flex:1;min-width:0}.wardrobe-filters select {width:auto;min-width:150px}
.slot-group {border:1px solid #e5ddd4;border-radius:12px;margin:12px 0;overflow:hidden}
.slot-group>summary {padding:16px 18px;background:#faf7f2;font-family:Georgia,serif;font-size:1.15rem;cursor:pointer}
.slot-group>summary span {float:right;border-radius:20px;font:12px sans-serif;padding:5px 10px;background:#ede3e6;color:#75465c}
.slot-group p,.slot-group>button {margin:16px}.slot-group .table-wrap {border:0;border-radius:0}
.account-panel {max-width:730px;margin:auto}.account-panel h3 {margin:26px 0 12px}.account-panel p {line-height:1.65}
.delete-account {border-top:1px solid #e5ddd4;margin-top:32px;padding-top:20px}.delete-account input {margin:10px 0 14px}.danger {color:#8e263f;background:#fff1f3;border:1px solid #d9a6b2}
#auth-status {white-space:pre-wrap}dialog {max-width:640px;width:calc(100% - 32px);border:1px solid #ddc6cc;border-radius:18px;padding:28px;background:#fffdf9;color:#392c32}dialog::backdrop {background:#37262d77}dialog p {line-height:1.65}#import-preview {overflow-wrap:anywhere;max-height:220px;overflow:auto}
.topbar .local-pill {cursor:pointer;font:inherit;white-space:nowrap;background:#fff9f6;border:1px solid #dfd4cf}
button:disabled {opacity:.55;cursor:not-allowed}.dropzone:has(+ input:disabled) {opacity:.7}
@media(max-width:900px){.wardrobe-layout{grid-template-columns:1fr}.billing-layout{grid-template-columns:1fr}.wardrobe-layout .import-panel{max-width:none}}
@media(max-width:720px){.billing-layout .panel,.account-panel{padding:24px 20px}.wardrobe-filters{flex-direction:column}.wardrobe-filters select{width:100%}.topbar .local-pill{display:flex;font-size:.75rem;padding:8px 10px}.membership-price{font-size:1.75rem}.sync-bar{align-items:flex-start}.button-row .button{width:100%}.slot-group .wardrobe-table tr{padding:12px}.slot-group .wardrobe-table td:first-child{display:block}}

.slot-group p {overflow-wrap:anywhere}
