:root{
  --bg:#f5f5f7;--surface:#fff;--surface-2:#f2f2f7;--text:#1d1d1f;--muted:#6e6e73;
  --line:rgba(60,60,67,.14);--blue:#007aff;--blue-pressed:#006ee6;--green:#34c759;
  --red:#ff3b30;--orange:#ff9500;--shadow:0 8px 30px rgba(0,0,0,.045);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",sans-serif;
  color:var(--text);background:var(--bg);font-synthesis:none;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{min-height:100vh;background:var(--bg)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;padding:22px 14px;border-right:1px solid var(--line);background:rgba(255,255,255,.72);backdrop-filter:saturate(180%) blur(20px)}
.brand{display:flex;align-items:center;gap:10px;padding:8px 10px 22px;font-size:17px;font-weight:700;letter-spacing:-.02em}
.brand-mark{width:32px;height:32px;border-radius:11px;background:rgba(255,255,255,.9);border:1px solid var(--line);display:grid;place-items:center;box-shadow:0 3px 12px rgba(0,0,0,.055);overflow:hidden}\n.brand-mark img{width:23px;height:23px;display:block;object-fit:contain}
.nav{display:grid;gap:4px}
.nav-btn{display:flex;align-items:center;gap:11px;width:100%;border:0;background:transparent;color:#3a3a3c;padding:10px 12px;border-radius:12px;text-align:left;font-size:14px;font-weight:550}
.nav-btn:hover{background:rgba(118,118,128,.09)}
.nav-btn.active{background:rgba(0,122,255,.10);color:var(--blue)}
.nav-btn svg{width:18px;height:18px;stroke-width:1.9}
.sidebar-footer{position:absolute;left:14px;right:14px;bottom:18px}
.connection-mini{display:flex;align-items:center;gap:8px;padding:10px 12px;color:var(--muted);font-size:12px}
.dot{width:8px;height:8px;border-radius:50%;background:#c7c7cc}
.dot.ok{background:var(--green)}
.main{padding:38px 40px 70px;min-width:0}
.page{display:none}
.page.active{display:block}
.page-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:26px}
.eyebrow{font-size:12px;color:var(--muted);font-weight:650;text-transform:uppercase;letter-spacing:.07em;margin-bottom:7px}
h1{font-size:36px;line-height:1.05;letter-spacing:-.045em;margin:0}
h2{font-size:21px;letter-spacing:-.025em;margin:0}
h3{font-size:16px;letter-spacing:-.015em;margin:0}
.sub{margin:8px 0 0;color:var(--muted);font-size:14px;line-height:1.45}
.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.btn{height:40px;border:0;border-radius:999px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--blue);color:#fff;font-size:14px;font-weight:650;box-shadow:none}
.btn:hover{filter:brightness(.98)}
.btn:active{background:var(--blue-pressed);transform:scale(.985)}
.btn.secondary{background:var(--surface-2);color:var(--text)}
.btn.ghost{background:transparent;color:var(--blue);padding-inline:10px}
.btn.danger{background:rgba(255,59,48,.10);color:var(--red)}
.btn.small{height:34px;padding:0 13px;font-size:13px}
.btn svg{width:17px;height:17px;stroke-width:2}
.card{background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.metric-card{padding:19px}
.metric-label{font-size:12px;color:var(--muted);font-weight:600}
.metric-value{font-size:31px;font-weight:700;letter-spacing:-.04em;margin-top:8px}
.metric-foot{font-size:12px;color:var(--muted);margin-top:4px}
.section-grid{display:grid;grid-template-columns:1.35fr .85fr;gap:14px;margin-top:14px}
.section-card{padding:20px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.empty{min-height:180px;display:grid;place-items:center;text-align:center;padding:28px}
.empty-icon{width:42px;height:42px;border-radius:14px;background:var(--surface-2);display:grid;place-items:center;margin:0 auto 11px;color:var(--muted)}
.empty-icon svg{width:21px;height:21px}
.empty p{margin:5px 0 0;color:var(--muted);font-size:13px;max-width:320px}
.platform-list{display:grid;gap:10px}
.platform-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}
.platform-row:last-child{border-bottom:0}
.platform-name{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600}
.status-pill{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:999px;background:var(--surface-2);font-size:12px;color:var(--muted);font-weight:600}
.status-pill.ok{background:rgba(52,199,89,.11);color:#218c3d}
.status-pill.blue{background:rgba(0,122,255,.10);color:var(--blue)}
.toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:14px}
.search{position:relative;flex:1;max-width:420px}
.search svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:#8e8e93}
.search input{width:100%;height:40px;border:1px solid var(--line);background:rgba(255,255,255,.8);border-radius:999px;padding:0 14px 0 40px;outline:none}
.search input:focus{border-color:rgba(0,122,255,.45);box-shadow:0 0 0 3px rgba(0,122,255,.10)}
.filters{display:flex;gap:8px;flex-wrap:wrap}
.select{height:40px;border:1px solid var(--line);border-radius:999px;background:var(--surface);padding:0 34px 0 14px;color:var(--text)}
.dress-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.dress-card{overflow:hidden;content-visibility:auto;contain-intrinsic-size:auto 420px}
.dress-image{aspect-ratio:4/3;background:linear-gradient(145deg,#f2f2f7,#e8e8ed);display:grid;place-items:center;color:#8e8e93}
.dress-image img{width:100%;height:100%;object-fit:cover;display:block}
.dress-body{padding:15px}
.dress-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.dress-title{font-size:15px;font-weight:650;line-height:1.35}
.price{font-size:15px;font-weight:700;white-space:nowrap}
.meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.chip{height:26px;padding:0 9px;border-radius:999px;background:var(--surface-2);display:inline-flex;align-items:center;font-size:11px;color:#48484a}
.dress-actions{display:flex;gap:7px;margin-top:14px}
.list-empty{padding:60px 20px}
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}
.auth-card{width:min(420px,100%);padding:28px}
.auth-mark{width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,var(--blue),var(--green));display:grid;place-items:center;color:#fff;margin-bottom:20px}\n.auth-mark.brand-logo{width:56px;height:56px;border-radius:18px;background:#fff;border:1px solid var(--line);box-shadow:0 5px 18px rgba(0,0,0,.055);overflow:hidden}\n.auth-mark.brand-logo img{width:39px;height:39px;display:block;object-fit:contain}
.auth-card h1{font-size:28px}
.field{display:grid;gap:7px;margin-top:14px}
.field label{font-size:12px;color:var(--muted);font-weight:600}
.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;padding:11px 12px;outline:none}
.field textarea{min-height:92px;resize:vertical}
.field input:focus,.field textarea:focus,.field select:focus{border-color:rgba(0,122,255,.45);box-shadow:0 0 0 3px rgba(0,122,255,.10)}
.auth-actions{display:flex;gap:8px;margin-top:18px}
.auth-actions .btn{flex:1}
.auth-password-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.auth-link{border:0;background:transparent;color:var(--blue);padding:4px 0;font-size:12px;font-weight:600;line-height:1;min-height:28px}
.auth-link:hover{text-decoration:underline}
.auth-link:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(0,122,255,.16);border-radius:6px}
.auth-recovery-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:18px}
.auth-recovery-actions .btn{width:100%}
.auth-msg{min-height:18px;color:var(--muted);font-size:12px;margin-top:12px;line-height:1.45}
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.28);backdrop-filter:blur(4px);display:grid;place-items:center;padding:20px;z-index:20}
.modal{width:min(560px,100%);max-height:88vh;overflow:auto;padding:22px}
.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.icon-btn{width:38px;height:38px;border:0;border-radius:999px;background:var(--surface-2);display:grid;place-items:center;color:var(--text)}
.icon-btn svg{width:18px;height:18px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-grid .span-2{grid-column:span 2}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.notice{padding:12px 14px;border-radius:14px;background:rgba(0,122,255,.08);color:#164f8f;font-size:13px;line-height:1.45}
.placeholder{padding:30px}
.placeholder-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.placeholder .card{padding:22px}
@media(max-width:1100px){
 .metrics{grid-template-columns:repeat(2,1fr)}
 .dress-grid{grid-template-columns:repeat(2,1fr)}
 .section-grid{grid-template-columns:1fr}
}
@media(max-width:780px){
 .shell{grid-template-columns:1fr}
 .sidebar{position:fixed;z-index:10;left:12px;right:12px;bottom:12px;top:auto;height:auto;border:1px solid var(--line);border-radius:22px;padding:8px;background:rgba(255,255,255,.9)}
 .brand,.sidebar-footer{display:none}
 .nav{grid-template-columns:repeat(7,1fr);gap:2px}
 .nav-btn{justify-content:center;padding:10px 6px}
 .nav-btn span{display:none}
 .main{padding:24px 18px 102px}
 .page-head{align-items:flex-start}
 h1{font-size:31px}
 .dress-grid,.placeholder-grid{grid-template-columns:1fr}
 .toolbar{align-items:stretch;flex-direction:column}
 .search{max-width:none}
}
@media(max-width:520px){
 .metrics{grid-template-columns:1fr 1fr}
 .metric-card{padding:16px}
 .metric-value{font-size:26px}
 .page-head{flex-direction:column}
 .form-grid{grid-template-columns:1fr}
 .form-grid .span-2{grid-column:auto}
 .nav{grid-template-columns:repeat(4,1fr)}
 .nav-btn:nth-child(n+5){display:none}
}

.workflow-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:14px}
.form-card,.preview-card{padding:20px}
.segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:var(--surface-2);padding:4px;border-radius:999px}
.segmented button{height:34px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:12px;font-weight:650}
.segmented button.active{background:#fff;color:var(--blue);box-shadow:0 1px 5px rgba(0,0,0,.08)}
.preview-box{min-height:320px;border-radius:16px;background:var(--surface-2);padding:16px}
.preview-platform{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.preview-copy{white-space:pre-wrap;font-size:14px;line-height:1.55}
.stack{display:grid;gap:10px}
.queue-list,.calendar-list{display:grid;gap:10px}
.queue-item,.calendar-item{padding:16px 18px}
.item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.item-copy{margin:10px 0 0;color:#3a3a3c;font-size:13px;line-height:1.5;white-space:pre-wrap}
.item-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px}
.datetime{height:36px;border:1px solid var(--line);border-radius:999px;padding:0 12px;background:#fff;color:var(--text);font-size:12px}
.platform-badge{display:inline-flex;align-items:center;height:26px;padding:0 9px;border-radius:999px;background:rgba(0,122,255,.09);color:var(--blue);font-size:11px;font-weight:700;text-transform:capitalize}
.toast{position:fixed;right:22px;bottom:22px;z-index:40;max-width:380px;padding:12px 15px;border-radius:14px;background:rgba(29,29,31,.94);color:#fff;box-shadow:0 12px 40px rgba(0,0,0,.22);font-size:13px;line-height:1.4;opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s ease}
.toast.show{opacity:1;transform:translateY(0)}
.toast.success{background:rgba(31,135,59,.96)}
.toast.error{background:rgba(194,38,31,.96)}
@media(max-width:950px){.workflow-grid{grid-template-columns:1fr}}

.library-summary{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin-bottom:14px}
.pace-card,.smart-card{padding:18px}
.pace-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.pace-number{font-size:24px;font-weight:700;letter-spacing:-.035em}
.progress-track{height:7px;border-radius:999px;background:var(--surface-2);overflow:hidden;margin-top:12px}
.progress-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--blue),var(--green));width:0}
.smart-pills{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.filter-pill{height:34px;border:0;border-radius:999px;padding:0 12px;background:var(--surface-2);color:var(--text);font-size:12px;font-weight:600}
.filter-pill.active{background:rgba(0,122,255,.11);color:var(--blue)}
.view-toggle{display:flex;gap:4px;padding:4px;background:var(--surface-2);border-radius:999px}
.view-toggle button{width:34px;height:32px;border:0;border-radius:999px;background:transparent;color:var(--muted);display:grid;place-items:center}
.view-toggle button.active{background:#fff;color:var(--blue);box-shadow:0 1px 5px rgba(0,0,0,.08)}
.view-toggle svg{width:16px;height:16px}
.dress-card{cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}
.dress-card:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(0,0,0,.07)}
.dress-card.list-mode{display:grid;grid-template-columns:120px 1fr}
.dress-card.list-mode .dress-image{aspect-ratio:auto;height:120px}
.card-status{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px}
.workspace-hero{display:grid;grid-template-columns:260px 1fr;gap:24px;align-items:start;margin-bottom:16px}
.workspace-image{aspect-ratio:4/5;border-radius:20px;background:var(--surface-2);overflow:hidden;display:grid;place-items:center;color:var(--muted)}
.workspace-image img{width:100%;height:100%;object-fit:cover}
.workspace-info{padding-top:8px}
.workspace-price{font-size:25px;font-weight:700;letter-spacing:-.035em;margin-top:10px}
.workspace-tabs{display:flex;gap:5px;background:var(--surface-2);padding:4px;border-radius:999px;width:max-content;max-width:100%;overflow:auto;margin:18px 0}
.workspace-tabs button{border:0;background:transparent;border-radius:999px;min-height:44px;padding:0 14px;color:var(--muted);font-size:13px;font-weight:650;white-space:nowrap}
.workspace-tabs button.active{background:#fff;color:var(--blue);box-shadow:0 1px 5px rgba(0,0,0,.08)}
.workspace-panel{display:none}.workspace-panel.active{display:block}
.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.detail-tile{padding:16px}
.detail-value{font-size:16px;font-weight:650;margin-top:5px}
.media-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.media-card{overflow:hidden}
.media-thumb{aspect-ratio:4/5;background:var(--surface-2);position:relative;display:grid;place-items:center;color:var(--muted)}
.media-thumb img{width:100%;height:100%;object-fit:cover}
.media-badges{position:absolute;left:8px;top:8px;display:flex;gap:5px;flex-wrap:wrap}
.media-body{padding:11px}
.media-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.upload-drop{border:1.5px dashed rgba(60,60,67,.22);border-radius:18px;padding:28px;text-align:center;background:rgba(255,255,255,.55)}
.content-history{display:grid;gap:10px}
.history-card{padding:16px}
.back-link{margin-bottom:16px}
.quick-look{position:fixed;inset:0;z-index:45;background:rgba(0,0,0,.78);backdrop-filter:blur(14px);display:grid;place-items:center;padding:30px}
.quick-look img{max-width:min(100%,1100px);max-height:82vh;object-fit:contain;border-radius:16px}
.quick-close{position:absolute;right:24px;top:24px;background:rgba(255,255,255,.16);color:#fff}
@media(max-width:950px){.library-summary,.workspace-hero{grid-template-columns:1fr}.workspace-image{max-width:300px}.media-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.detail-grid{grid-template-columns:1fr 1fr}.media-grid{grid-template-columns:1fr 1fr}.workspace-tabs{width:100%}}


:root{
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;
}
.main{padding:40px 44px 76px;max-width:1600px}
.page-head{margin-bottom:32px;align-items:center}
.page-head .sub{margin-top:8px}
.card{border-radius:22px}
.btn{height:42px;padding:0 17px}
.btn.small{height:36px;padding:0 14px}
.icon-btn{width:40px;height:40px}
.metrics,.section-grid,.library-summary{gap:16px}
.metric-card{padding:20px}
.section-card,.pace-card,.smart-card{padding:20px}
.section-head{margin-bottom:18px;align-items:flex-start}
.toolbar{margin-bottom:18px;gap:12px}
.search input,.select{height:42px}
.dress-grid{gap:16px}
.dress-body{padding:16px}
.dress-meta-line{margin-top:8px}
.card-status{margin-top:14px;padding-top:14px}
.field{margin-top:16px}
.field label{margin-left:2px}
.form-card,.preview-card{padding:22px}
.workspace-hero{gap:32px;margin-bottom:14px}
.workspace-info{padding-top:14px}
.workspace-tabs{margin:24px 0 20px}
.workspace-actions{margin-top:20px}
.workspace-state{margin-top:16px}
.workspace-signals{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.workspace-signal,.watcher-note{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.workspace-signal svg,.watcher-note svg{width:14px;height:14px}
.dress-signal-row{min-height:20px;margin-top:8px}
.photo-pending,.workspace-photo-pending{width:100%;height:100%;display:grid;place-items:center;align-content:center;gap:8px;color:#8e8e93;background:linear-gradient(145deg,#f7f7f9,#ededf2)}
.photo-pending-icon{width:42px;height:42px;border-radius:14px;background:rgba(255,255,255,.78);display:grid;place-items:center}
.photo-pending svg,.workspace-photo-pending svg{width:21px;height:21px}
.photo-pending span{font-size:12px;font-weight:600}
.workspace-photo-pending{text-align:center;padding:28px}
.workspace-photo-pending strong{font-size:15px;color:#6e6e73}
.workspace-photo-pending span{max-width:220px;font-size:12px;line-height:1.4}
.detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.detail-tile{padding:18px}
.detail-value-small{font-size:14px;line-height:1.35}
.creative-memory-card{margin-top:16px}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.settings-card{padding:22px}
.settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-top:1px solid var(--line)}
.settings-row:first-of-type{border-top:0}
.settings-row-stack{align-items:flex-end}
.settings-label{font-size:14px;font-weight:650;letter-spacing:-.01em}
.settings-actions{padding-top:16px;border-top:1px solid var(--line)}
.number-pill{width:78px;height:40px;border:1px solid var(--line);border-radius:999px;background:#fff;text-align:center;padding:0 10px;color:var(--text);outline:none}
.number-pill:focus,.time-pill:focus{border-color:rgba(0,122,255,.45);box-shadow:0 0 0 3px rgba(0,122,255,.10)}
.number-pill:disabled{opacity:.45}
.switch{position:relative;display:inline-flex;width:48px;height:28px;flex:0 0 auto}
.switch input{opacity:0;position:absolute}
.switch span{position:absolute;inset:0;border-radius:999px;background:#d1d1d6;transition:.18s ease}
.switch span:after{content:"";position:absolute;width:24px;height:24px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.18);transition:.18s ease}
.switch input:checked+span{background:var(--green)}
.switch input:checked+span:after{transform:translateX(20px)}
.mode-segment{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:999px;background:var(--surface-2);margin:4px 0 10px}
.mode-segment button{height:36px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:13px;font-weight:650}
.mode-segment button.active{background:#fff;color:var(--blue);box-shadow:0 1px 5px rgba(0,0,0,.08)}
.mode-help{font-size:12px;line-height:1.45;color:var(--muted);min-height:36px;padding:0 4px 8px}
.time-pair{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}
.time-pill{height:40px;border:1px solid var(--line);border-radius:999px;background:#fff;padding:0 12px;outline:none}
.platform-limit-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-top:1px solid var(--line);font-size:14px;font-weight:600}
.platform-limit-row:first-of-type{border-top:0}
@media(max-width:1000px){.settings-grid{grid-template-columns:1fr}.main{padding:30px 26px 96px}}
@media(max-width:600px){.main{padding:24px 16px 96px}.page-head{margin-bottom:24px;align-items:flex-start}.settings-card{padding:18px}.settings-row{gap:12px}.settings-row-stack{align-items:flex-start;flex-direction:column}.time-pair{width:100%}.time-pill{min-width:0;flex:1}.detail-grid{grid-template-columns:1fr 1fr}}

.cost-note{display:flex;gap:9px;align-items:flex-start;margin-top:14px;padding:12px 14px;border-radius:14px;background:rgba(52,199,89,.07);color:#39744a;font-size:12px;line-height:1.45}
.cost-note svg{width:16px;height:16px;flex:0 0 auto;margin-top:1px}
.library-image-loading{width:100%;height:100%;display:grid;place-items:center;color:#8e8e93;background:linear-gradient(145deg,#f7f7f9,#ededf2)}
.library-image-loading svg{width:20px;height:20px}

/* Analytics + hierarchy refinement */
body{letter-spacing:-.006em}
.nav-btn{min-height:44px}
.btn{min-height:44px}
.btn.small{min-height:36px}
.icon-btn{width:44px;height:44px}
.page-head{margin-bottom:28px}
.page-head h1{max-width:780px}
.page-head .sub{max-width:700px;line-height:1.5}
.card{overflow:hidden}
.metric-card{min-height:132px;padding:22px;display:flex;flex-direction:column;align-items:flex-start}
.metric-label{font-size:12px;line-height:1.35}
.metric-value{font-variant-numeric:tabular-nums;line-height:1;margin-top:10px}
.metric-value-money{font-size:29px}
.metric-foot{line-height:1.4;margin-top:7px}
.metric-icon{width:32px;height:32px;border-radius:10px;background:var(--surface-2);display:grid;place-items:center;color:var(--muted);margin-bottom:18px}
.metric-icon.blue{background:rgba(0,122,255,.09);color:var(--blue)}
.metric-icon.green{background:rgba(52,199,89,.10);color:#218c3d}
.metric-icon svg{width:16px;height:16px}
.section-head h2+.sub{margin-top:5px}
.section-card,.chart-card{padding:24px}
.analytics-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:16px;margin-top:16px}
.overview-secondary{margin-top:16px}
.price-snapshot{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;padding:7px 0 4px}
.snapshot-stat{display:grid;gap:7px;min-width:0}
.snapshot-stat span{font-size:12px;color:var(--muted);font-weight:600}
.snapshot-stat strong{font-size:24px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.035em}
.snapshot-divider{width:1px;height:42px;background:var(--line);margin:0 20px}
.insight-note{margin-top:22px;padding:13px 15px;border-radius:15px;background:rgba(0,122,255,.065);color:#315f8d;font-size:12px;line-height:1.5}
.workflow-summary{display:grid}
.workflow-summary-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;border-top:1px solid var(--line)}
.workflow-summary-row:first-child{border-top:0}
.workflow-summary-row span{display:flex;align-items:center;gap:9px;color:#3a3a3c;font-size:13px;font-weight:600}
.workflow-summary-row svg{width:16px;height:16px;color:var(--muted)}
.workflow-summary-row strong{font-size:17px;font-variant-numeric:tabular-nums}
.performance-charts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.performance-lower{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.chart-card{min-height:360px}
.bar-chart{display:grid;gap:15px;margin-top:8px}
.bar-row{display:grid;grid-template-columns:minmax(82px,120px) minmax(0,1fr) auto;align-items:center;gap:12px}
.bar-label{font-size:12px;color:#48484a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar-track{height:9px;background:#ececf1;border-radius:999px;overflow:hidden}
.bar-fill{height:100%;min-width:3px;border-radius:999px;background:var(--blue)}
.bar-value{min-width:28px;text-align:right;font-size:12px;font-weight:650;font-variant-numeric:tabular-nums;color:#3a3a3c}
.chart-summary{display:flex;justify-content:space-between;gap:16px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.chart-summary strong{color:var(--text);font-weight:650}
.rank-list{display:grid}
.rank-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 0;border-top:1px solid var(--line)}
.rank-row:first-child{border-top:0;padding-top:2px}
.rank-index{width:30px;height:30px;border-radius:10px;background:rgba(0,122,255,.08);display:grid;place-items:center;color:var(--blue);font-size:12px;font-weight:700}
.rank-copy{min-width:0}
.rank-title{font-size:13px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-meta{font-size:11px;color:var(--muted);margin-top:4px}
.rank-value{display:flex;align-items:center;gap:5px;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.rank-value svg{width:14px;height:14px;color:var(--muted)}
.calm-empty{min-height:210px;display:flex;align-items:flex-start;gap:14px;padding:18px 2px 4px}
.calm-empty .empty-icon{margin:0;flex:0 0 auto}
.calm-empty h3{margin-top:2px}
.calm-empty p{margin:7px 0 0;max-width:430px;color:var(--muted);font-size:13px;line-height:1.55}
.empty{min-height:156px;padding:24px}
.empty p{line-height:1.5}
.platform-row{min-height:48px;padding:10px 0}
.dress-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px}
.dress-top .price{font-variant-numeric:tabular-nums}
.workspace-panel{padding-top:2px}
.workspace-panel>.card,.workspace-panel>.detail-grid{margin-bottom:16px}
.workspace-tabs button{min-height:40px}
.performance-signal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.performance-signal{padding:20px}
.signal-value{font-size:25px;font-weight:700;letter-spacing:-.035em;font-variant-numeric:tabular-nums;margin-top:8px}
.signal-context{font-size:12px;color:var(--muted);line-height:1.45;margin-top:7px}
.signal-bar{height:7px;background:#ececf1;border-radius:999px;overflow:hidden;margin-top:16px}
.signal-bar>span{display:block;height:100%;border-radius:999px;background:var(--blue)}
.signal-bar.green>span{background:var(--green)}
.performance-note{padding:17px 18px;margin-top:14px}
.performance-note h3{margin-bottom:6px}
.performance-note p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.settings-label{line-height:1.35}
.platform-limit-row>div{min-width:0}
.platform-limit-row .metric-foot{max-width:330px}
@media(max-width:1100px){
  .analytics-grid,.performance-charts,.performance-lower{grid-template-columns:1fr}
  .chart-card{min-height:0}
}
@media(max-width:700px){
  .overview-metrics,.performance-metrics{grid-template-columns:1fr 1fr}
  .price-snapshot{grid-template-columns:1fr 1fr 1fr;gap:14px}
  .snapshot-divider{display:none}
  .bar-row{grid-template-columns:88px minmax(0,1fr) auto;gap:9px}
  .performance-signal-grid{grid-template-columns:1fr}
}
@media(max-width:430px){
  .overview-metrics,.performance-metrics{grid-template-columns:1fr}
  .metric-card{min-height:118px}
  .price-snapshot{grid-template-columns:1fr}
  .snapshot-stat{padding:8px 0}
}

/* Mobile product pass */
.mobile-more-nav,.mobile-sheet-backdrop{display:none}
.social-settings-list{display:grid}
.social-setting-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:60px;border-top:1px solid var(--line)}
.social-setting-row:first-child{border-top:0}
.social-setting-copy{display:flex;align-items:center;gap:12px;min-width:0}
.social-setting-copy>span:last-child{display:grid;gap:3px;min-width:0}
.social-setting-copy strong{font-size:14px}
.social-setting-copy small,.platform-name small{display:block;font-size:11px;color:var(--muted);font-weight:500;margin-top:2px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.social-logo{width:36px;height:36px;border-radius:11px;background:var(--surface-2);display:grid;place-items:center;color:#48484a;flex:0 0 auto}
.social-logo svg{width:18px;height:18px}
.platform-row .status-pill:is(button){border:0;cursor:pointer}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
@media(max-width:780px){
  html{background:var(--bg);-webkit-text-size-adjust:100%}
  body{overscroll-behavior-y:none;-webkit-tap-highlight-color:transparent}
  body.sheet-open{overflow:hidden}
  .shell{display:block;min-height:100dvh}
  .main{
    width:100%;max-width:none;
    padding:max(22px,env(safe-area-inset-top)) 16px calc(108px + env(safe-area-inset-bottom));
  }
  .sidebar{
    position:fixed;z-index:30;
    left:10px;right:10px;
    top:auto;bottom:max(8px,env(safe-area-inset-bottom));
    height:72px;padding:6px 7px;
    border:1px solid rgba(60,60,67,.16);
    border-radius:23px;
    background:rgba(250,250,252,.86);
    backdrop-filter:saturate(180%) blur(24px);
    -webkit-backdrop-filter:saturate(180%) blur(24px);
    box-shadow:0 8px 30px rgba(0,0,0,.12);
  }
  .brand,.sidebar-footer{display:none}
  .nav{height:100%;grid-template-columns:repeat(5,1fr);gap:1px}
  .nav-btn{min-width:0;min-height:58px;padding:5px 2px;border-radius:16px;justify-content:center;flex-direction:column;gap:3px;font-size:10px;font-weight:600;color:#6e6e73}
  .nav-btn span{display:block;line-height:1.05}
  .nav-btn svg{width:21px;height:21px;stroke-width:1.9}
  .nav-btn.active{background:transparent;color:var(--blue)}
  .nav-btn[data-view="queue"],.nav-btn[data-view="performance"],.nav-btn[data-view="settings"]{display:none}
  .nav .mobile-more-nav,.nav .nav-btn[data-view="calendar"]{display:flex!important}
  .page-head{margin-bottom:24px;gap:14px;align-items:flex-start}
  .page-head h1{font-size:34px;line-height:1.03}
  .page-head .sub{font-size:14px;line-height:1.45;margin-top:7px}
  .eyebrow{font-size:11px;margin-bottom:6px}
  .page-head>.actions{flex:0 0 auto}
  .page-head>.actions .btn{min-height:44px}
  .card{border-radius:20px;box-shadow:0 2px 12px rgba(0,0,0,.035)}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .metric-card{min-height:126px;padding:16px}
  .metric-icon{margin-bottom:13px}
  .metric-value{font-size:27px}
  .metric-value-money{font-size:23px}
  .metric-foot{font-size:11px}
  .analytics-grid,.section-grid,.performance-charts,.performance-lower{grid-template-columns:1fr;gap:12px;margin-top:12px}
  .section-card,.chart-card,.pace-card,.smart-card,.settings-card,.form-card,.preview-card{padding:18px}
  .section-head{gap:12px;margin-bottom:16px}
  .section-head h2{font-size:19px}
  .section-head .sub{font-size:13px}
  .price-snapshot{grid-template-columns:repeat(3,1fr);gap:12px}
  .snapshot-divider{display:none}
  .snapshot-stat strong{font-size:21px}
  .workflow-summary-row{min-height:50px}
  .toolbar{align-items:stretch;flex-direction:column;gap:10px;margin-bottom:14px}
  .search{max-width:none}
  .search input,.select{height:44px}
  .filters{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:0 1px 3px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .filters::-webkit-scrollbar,.smart-pills::-webkit-scrollbar,.workspace-tabs::-webkit-scrollbar{display:none}
  .filters>.select,.filters>.view-toggle{flex:0 0 auto}
  .view-toggle button{width:38px;height:36px}
  .library-summary{grid-template-columns:1fr;gap:10px;margin-bottom:14px}
  .pace-number{font-size:21px}
  .smart-pills{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
  .filter-pill{height:38px;flex:0 0 auto}
  .dress-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
  .dress-card.list-mode{grid-column:1/-1;grid-template-columns:104px minmax(0,1fr)}
  .dress-card.list-mode .dress-image{height:142px}
  .dress-image{aspect-ratio:4/5}
  .dress-body{padding:12px}
  .dress-kicker{font-size:10px;margin-bottom:5px}
  .dress-title{font-size:13px;line-height:1.3;min-height:34px}
  .dress-top{gap:7px;display:block}
  .dress-top .price{display:block;margin-top:6px;font-size:14px}
  .dress-meta-line{font-size:11px;min-height:15px}
  .dress-signal-row{min-height:18px;margin-top:6px}
  .watcher-note{font-size:10px}
  .card-status{align-items:center;gap:5px;margin-top:10px;padding-top:10px}
  .card-status>.status-pill{max-width:94px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .card-status .actions{gap:4px;flex-wrap:nowrap}
  .card-status .icon-btn{width:38px;height:38px}
  .card-status .btn.small{width:38px;padding:0;font-size:0}
  .card-status .btn.small svg{margin:0}
  .workflow-grid{grid-template-columns:1fr;gap:12px}
  .segmented,.mode-segment{border-radius:14px}
  .segmented button,.mode-segment button{min-height:40px;border-radius:11px}
  .field{margin-top:15px}
  .field input,.field textarea,.field select{font-size:16px;min-height:46px;border-radius:13px}
  .field textarea{min-height:112px}
  .preview-card .modal-actions,.form-card .modal-actions{justify-content:stretch}
  .preview-card .modal-actions .btn{width:100%}
  .queue-item,.calendar-item,.history-card{padding:16px}
  .item-top{gap:10px}
  .item-top h3{line-height:1.35}
  .item-copy{font-size:13px;line-height:1.55}
  .item-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .item-actions .datetime{grid-column:1/-1;width:100%;height:44px;font-size:14px}
  .item-actions .btn{width:100%}
  .workspace-hero{grid-template-columns:1fr;gap:18px;margin-bottom:4px}
  .workspace-image{width:min(78vw,320px);max-width:none;margin:0 auto;border-radius:22px}
  .workspace-info{padding-top:0}
  .workspace-info h1{font-size:31px!important;line-height:1.07}
  .workspace-price{font-size:24px}
  .workspace-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .workspace-actions .btn{width:100%;padding-inline:10px}
  .workspace-actions .btn:first-child{grid-column:1/-1}
  .back-link{margin:0 0 12px -8px}
  .workspace-tabs{
    position:sticky;top:max(6px,env(safe-area-inset-top));z-index:12;
    width:calc(100% + 32px);max-width:none;margin:18px -16px 16px;
    padding:6px 16px;background:rgba(245,245,247,.91);
    border-radius:0;overflow-x:auto;scrollbar-width:none;
    backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  }
  .workspace-tabs button{min-height:40px;flex:0 0 auto}
  .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .detail-tile{padding:15px}
  .media-toolbar{align-items:flex-start}
  .media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .media-body{padding:9px}
  .media-actions{display:grid;grid-template-columns:1fr}
  .media-actions .btn{width:100%}
  .performance-signal-grid{grid-template-columns:1fr;gap:10px}
  .bar-row{grid-template-columns:80px minmax(0,1fr) auto;gap:8px}
  .bar-label{font-size:11px}
  .rank-row{grid-template-columns:32px minmax(0,1fr) auto}
  .settings-grid{grid-template-columns:1fr;gap:12px}
  .settings-row{padding:15px 0}
  .settings-row-stack{align-items:flex-start;flex-direction:column}
  .time-pair{width:100%}
  .time-pill{min-width:0;flex:1}
  .platform-limit-row{min-height:58px;gap:14px}
  .social-setting-row{min-height:64px}
  .auth-wrap{min-height:100dvh;padding:max(20px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom))}
  .auth-card{padding:24px 20px;border-radius:24px}
  .auth-actions{display:grid;grid-template-columns:1fr}
  .modal-backdrop{align-items:end;padding:0;background:rgba(0,0,0,.32)}
  .modal{width:100%;max-height:88dvh;border-radius:24px 24px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom));border-bottom:0}
  .form-grid{grid-template-columns:1fr}
  .form-grid .span-2{grid-column:auto}
  .modal-actions{display:grid;grid-template-columns:1fr 1fr}
  .modal-actions .btn{width:100%}
  .toast{left:14px;right:14px;bottom:calc(92px + env(safe-area-inset-bottom));max-width:none;text-align:center}
  .quick-look{padding:18px}
  .quick-close{right:16px;top:max(16px,env(safe-area-inset-top))}
  .mobile-sheet-backdrop{display:grid;position:fixed;inset:0;z-index:60;align-items:end;background:rgba(0,0,0,.28);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
  .mobile-sheet{width:100%;padding:8px 16px calc(18px + env(safe-area-inset-bottom));border-radius:26px 26px 0 0;background:rgba(250,250,252,.98);box-shadow:0 -10px 40px rgba(0,0,0,.12)}
  .sheet-handle{width:36px;height:5px;border-radius:99px;background:#c7c7cc;margin:2px auto 14px}
  .mobile-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:0 2px 10px}
  .mobile-sheet-head h2{font-size:25px}
  .mobile-more-list{display:grid}
  .mobile-more-list button{width:100%;min-height:68px;border:0;border-top:1px solid var(--line);background:transparent;display:grid;grid-template-columns:42px minmax(0,1fr) 20px;align-items:center;gap:12px;padding:8px 4px;text-align:left;color:var(--text)}
  .mobile-more-list button:first-child{border-top:0}
  .mobile-more-icon{width:40px;height:40px;border-radius:12px;background:rgba(0,122,255,.09);color:var(--blue);display:grid;place-items:center}
  .mobile-more-icon svg{width:19px;height:19px}
  .mobile-more-list button>span:nth-child(2){display:grid;gap:4px}
  .mobile-more-list strong{font-size:15px}
  .mobile-more-list small{font-size:12px;color:var(--muted)}
  .mobile-more-list button>svg{width:17px;height:17px;color:#c7c7cc}
}
@media(max-width:390px){
  .nav .mobile-more-nav,.nav .nav-btn[data-view="calendar"]{display:flex!important}
  .main{padding-left:13px;padding-right:13px}
  .dress-grid{gap:8px}
  .dress-body{padding:10px}
  .card-status>.status-pill{display:none}
  .workspace-tabs{width:calc(100% + 26px);margin-left:-13px;margin-right:-13px;padding-left:13px;padding-right:13px}
}

.social-setting-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
@media(max-width:430px){
  .social-setting-actions{gap:3px}
  .social-setting-actions .btn{padding-inline:10px}
}

/* Final component alignment pass */
button{line-height:1}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(0,122,255,.16);
}
.status-pill{line-height:1;white-space:nowrap}
.smart-card{display:flex;flex-direction:column}
.smart-card-head{display:grid;gap:5px}
.smart-copy{margin:0;color:var(--muted);font-size:12px;line-height:1.42}
.smart-pills{display:flex;align-items:center;gap:8px;row-gap:8px;flex-wrap:wrap;margin-top:16px}
.filter-pill{
  min-height:38px;height:38px;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:0 13px;
  border:1px solid transparent;border-radius:999px;
  background:var(--surface-2);color:#3a3a3c;
  font-size:12px;font-weight:650;line-height:1;
  white-space:nowrap;
  transition:background .14s ease,color .14s ease,border-color .14s ease,transform .14s ease;
}
.filter-pill svg{width:14px;height:14px;flex:0 0 auto;stroke-width:2}
.filter-pill:hover{background:#e9e9ee}
.filter-pill:active{transform:scale(.98)}
.filter-pill.active{background:rgba(0,122,255,.10);border-color:rgba(0,122,255,.10);color:var(--blue)}
.toolbar{min-height:44px}
.search input,.select{min-height:44px;height:44px}
.view-toggle{height:44px;padding:4px;align-items:center}
.view-toggle button{width:36px;height:36px}
.segmented,.mode-segment{min-height:44px;align-items:center}
.segmented button,.mode-segment button{min-height:36px;height:36px;display:flex;align-items:center;justify-content:center;line-height:1}
.workspace-tabs{align-items:center}
.workspace-tabs button{display:inline-flex;align-items:center;justify-content:center;line-height:1}
.platform-row{gap:14px}
.platform-name{min-width:0}
.platform-name>span:last-child{min-width:0}
.social-setting-actions .btn{white-space:nowrap}
.section-head>div{min-width:0}
.settings-row>div:first-child,.platform-limit-row>div:first-child{min-width:0}
.number-pill,.time-pill{font-variant-numeric:tabular-nums}
@media(max-width:780px){
  .smart-card-head{gap:4px}
  .smart-copy{font-size:12px}
  .smart-pills{
    gap:8px;flex-wrap:nowrap;overflow-x:auto;
    margin:14px -4px 0;padding:0 4px 4px;
    scroll-padding-inline:4px;
  }
  .filter-pill{min-height:44px;height:44px;padding:0 15px;font-size:12px}
  .filter-pill svg{width:15px;height:15px}
  .filters{align-items:center}
  .select{min-height:44px}
  .view-toggle{flex:0 0 auto}
  .segmented,.mode-segment{min-height:48px;padding:4px}
  .segmented button,.mode-segment button{min-height:40px;height:40px}
  .workspace-tabs button{min-height:44px;height:44px;padding:0 16px}
  .platform-row{min-height:52px}
  .platform-row .status-pill:is(button){min-height:40px;padding-inline:12px}
  .social-setting-actions .btn{min-height:40px}
}
@media(max-width:430px){
  .smart-card,.pace-card{padding:16px}
  .filter-pill{padding-inline:14px}
  .social-setting-row{align-items:flex-start;padding:12px 0}
  .social-setting-actions{align-self:center}
}

/* Narrow-screen collision fixes */
@media(max-width:520px){
  .nav-btn[data-view="calendar"]{display:flex!important}
  .nav .mobile-more-nav{display:flex!important}
  .overview-metrics,.performance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:360px){
  .metric-card{padding:14px}
  .metric-value{font-size:24px}
  .metric-value-money{font-size:20px}
  .nav-btn{font-size:9px}
}

/* Control quality pass */
.smart-card-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.smart-card-head .metric-label{font-size:12px;line-height:1.2}
.smart-copy{margin:0;color:var(--muted);font-size:12px;line-height:1.4;text-align:right}
.smart-pills{gap:8px;margin-top:16px;align-items:center}
.filter-pill{
  min-height:44px;height:44px;
  padding:0 15px;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  border:1px solid transparent;
  background:#f2f2f7;color:#3a3a3c;
  font-size:13px;font-weight:600;line-height:1;
  white-space:nowrap;
  transition:background .15s ease,color .15s ease,border-color .15s ease,transform .12s ease;
}
.filter-pill svg{width:16px;height:16px;flex:0 0 auto;stroke-width:1.9}
.filter-pill:hover{background:#e9e9ef}
.filter-pill:active{transform:scale(.985)}
.filter-pill.active,.filter-pill[aria-pressed="true"]{
  background:rgba(0,122,255,.10);
  color:var(--blue);
  border-color:rgba(0,122,255,.12);
}
.filter-pill:focus-visible,
.segmented button:focus-visible,
.mode-segment button:focus-visible,
.workspace-tabs button:focus-visible,
.view-toggle button:focus-visible,
.nav-btn:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(0,122,255,.18);
}

.segmented,.mode-segment{gap:3px;padding:4px;border-radius:14px}
.segmented button,.mode-segment button{
  min-height:40px;height:40px;
  display:flex;align-items:center;justify-content:center;
  padding:0 13px;
  border-radius:11px;
  line-height:1;
}
.workspace-tabs{gap:4px;padding:4px}
.workspace-tabs button{
  min-height:40px;height:40px;
  display:flex;align-items:center;justify-content:center;
  padding:0 15px;line-height:1;
}
.view-toggle{height:44px;align-items:center;padding:4px;gap:2px}
.view-toggle button{width:36px;height:36px;min-width:36px;display:grid;place-items:center}
.view-toggle svg{width:17px;height:17px}
.item-actions{gap:8px}
.item-actions .btn{min-height:40px}
.datetime{min-height:40px}
.platform-row{gap:12px}
.platform-row .status-pill:is(button){min-height:36px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center}
.social-setting-actions .btn{min-width:72px}
.switch{margin:0 2px}
.number-pill,.time-pill{min-height:44px}
.settings-row{min-height:68px}
.platform-limit-row{min-height:60px}

@media(max-width:780px){
  .smart-card{padding:18px 16px 16px}
  .smart-card-head{align-items:flex-start;display:block}
  .smart-copy{margin-top:5px;text-align:left}
  .smart-pills{
    width:calc(100% + 32px);
    margin:14px -16px -2px;
    padding:0 16px 4px;
    display:flex;flex-wrap:nowrap;gap:8px;
    overflow-x:auto;overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;
  }
  .filter-pill{flex:0 0 auto;scroll-snap-align:start;min-height:44px;height:44px;padding:0 14px}
  .filters{align-items:center}
  .filters .select{min-height:44px}
  .view-toggle{height:44px;flex:0 0 auto}
  .workspace-tabs button{min-height:44px;height:44px}
  .segmented button,.mode-segment button{min-height:44px;height:44px}
  .item-actions .btn,.item-actions .datetime{min-height:44px}
  .settings-row{min-height:72px}
  .number-pill,.time-pill{min-height:44px}
}

/* eBay sync feedback */
.sync-progress{margin:14px 0 4px;padding:14px;border-radius:14px;background:rgba(0,122,255,.055);border:1px solid rgba(0,122,255,.10)}
.sync-progress.success{background:rgba(52,199,89,.06);border-color:rgba(52,199,89,.14)}
.sync-progress.error{background:rgba(255,59,48,.055);border-color:rgba(255,59,48,.12)}
.sync-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:650}
.sync-progress-track{height:6px;margin:10px 0 8px;border-radius:999px;overflow:hidden;background:rgba(60,60,67,.10)}
.sync-progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:var(--blue);transition:width .25s ease}
.sync-progress.success .sync-progress-track span{background:var(--green)}
.sync-progress.error .sync-progress-track span{background:#ff3b30}
.spin{animation:onerobe-spin .8s linear infinite}
.inline-sync-feedback{margin-top:10px;display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;line-height:1.35}
.inline-sync-feedback.success{color:#248a3d}
.inline-sync-feedback.error{color:#c9342d}
.inline-sync-feedback svg{width:14px;height:14px;flex:0 0 auto}
@keyframes onerobe-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.spin{animation:none}.sync-progress-track span{transition:none}}

/* Garment reference Images workspace */
.image-segment{display:flex;align-items:center;gap:4px;width:max-content;max-width:100%;padding:4px;margin:0 0 18px;background:var(--surface-2);border-radius:999px;overflow:auto;scrollbar-width:none}
.image-segment::-webkit-scrollbar{display:none}
.image-segment button{min-height:44px;padding:0 16px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:13px;font-weight:650;white-space:nowrap;cursor:pointer}
.image-segment button.active{background:#fff;color:var(--blue);box-shadow:0 1px 5px rgba(0,0,0,.08)}
.image-segment button:focus-visible,.image-card-button:focus-visible,.workspace-signal-button:focus-visible,.quick-look-control:focus-visible{outline:3px solid rgba(0,122,255,.28);outline-offset:2px}
.images-panel{min-height:240px}
.images-toolbar{margin-bottom:16px}
.images-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.image-card-button{appearance:none;width:100%;padding:0;border:0;background:transparent;text-align:left;color:inherit;font:inherit;cursor:pointer}
.workspace-image-button{display:grid}
.originals-grid .media-card{transition:transform .16s ease,box-shadow .16s ease}
.originals-grid .media-card:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(0,0,0,.07)}
.images-empty{padding:34px;text-align:center}
.images-empty p{margin:8px auto 0;max-width:420px;color:var(--muted);font-size:13px;line-height:1.5}
.reference-placeholder{display:flex;align-items:flex-start;gap:16px;padding:22px;max-width:720px}
.reference-placeholder h2{font-size:20px;margin:1px 0 6px}
.reference-placeholder p{margin:0 0 16px;color:var(--muted);line-height:1.5;max-width:540px}
.reference-state-icon{width:46px;height:46px;display:grid;place-items:center;flex:0 0 auto;border-radius:15px;background:var(--surface-2);color:var(--blue)}
.reference-state-icon.success{color:var(--green)}
.reference-state-icon svg{width:22px;height:22px}
.reference-status-note{display:flex;align-items:flex-start;gap:8px;margin:-4px 0 16px;color:var(--muted);font-size:13px;line-height:1.4}
.reference-progress{margin:15px 0 14px;max-width:520px}
.reference-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:7px;font-size:12px;line-height:1.25;color:var(--muted)}
.reference-progress-meta strong{font-size:13px;font-variant-numeric:tabular-nums;color:var(--text)}
.reference-progress-track{height:7px;overflow:hidden;border-radius:999px;background:color-mix(in srgb,var(--text) 9%,transparent)}
.reference-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),var(--green));transition:width .45s cubic-bezier(.22,1,.36,1)}
@media (prefers-reduced-motion:reduce){.reference-progress-track span{transition:none}}
.reference-time-estimate{display:flex;align-items:center;gap:7px;margin:-5px 0 12px;font-size:13px;font-weight:650;color:var(--text)}
.reference-time-estimate svg{width:15px;height:15px;flex:0 0 auto;color:var(--muted)}
.reference-status-note svg{width:15px;height:15px;flex:0 0 auto;margin-top:1px}
.reference-placeholder-failed .reference-state-icon{color:var(--danger)}
.reference-placeholder .btn svg{width:16px;height:16px}

.workspace-signal-button{border:0;background:transparent;padding:0;cursor:pointer;font:inherit}
.workspace-signal-button:hover{color:var(--blue)}

.quick-look{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.78);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);display:grid;place-items:center;padding:22px}
.quick-look-dialog{width:min(1240px,100%);height:min(900px,94vh);display:grid;grid-template-rows:auto 1fr;gap:10px}
.quick-look-top{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#fff;min-height:48px}
.quick-look-top>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}
.quick-source{font-size:14px;font-weight:650}
.quick-position{font-size:12px;color:rgba(255,255,255,.72)}
.quick-look-tools{display:flex;align-items:center;gap:6px}
.quick-look-control{min-width:44px;min-height:44px;border:0;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;display:grid;place-items:center;cursor:pointer}
.quick-look-control:disabled{opacity:.3;cursor:default}
.quick-look-control svg{width:20px;height:20px}
.quick-look-stage{min-height:0;display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;gap:12px}
.quick-look-image-wrap{height:100%;min-height:0;display:grid;place-items:center;overflow:auto;border-radius:18px;background:rgba(0,0,0,.18)}
.quick-look-image-wrap img{max-width:100%;max-height:100%;object-fit:contain;border-radius:14px;transform-origin:center;transition:transform .14s ease}
.quick-look-error{display:grid;place-items:center;align-content:center;gap:7px;color:#fff;text-align:center;min-height:240px;padding:24px}
.quick-look-error svg{width:26px;height:26px}
.quick-look-error span{font-size:12px;color:rgba(255,255,255,.7)}
.quick-look-error.hidden{display:none}
.quick-nav{align-self:center}
@media(max-width:780px){
  .image-segment{width:100%}
  .image-segment button{flex:1 0 auto}
  .images-toolbar{align-items:flex-start;flex-direction:column}
  .images-toolbar-actions{width:100%;justify-content:space-between}
  .reference-placeholder{padding:18px;gap:12px}
  .quick-look{padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))}
  .quick-look-dialog{height:96dvh}
  .quick-look-top{align-items:flex-start}
  .quick-look-tools{gap:4px}
  .quick-look-stage{grid-template-columns:44px minmax(0,1fr) 44px;gap:5px}
  .quick-look-image-wrap{border-radius:14px}
}
@media(max-width:480px){
  .quick-look-top{flex-direction:column;gap:7px}
  .quick-look-tools{width:100%;justify-content:flex-end}
  .quick-look-dialog{grid-template-rows:auto 1fr}
}


/* Garment reference review */
.reference-review{display:grid;gap:22px}
.reference-review-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.reference-review-heading h2{font-size:28px;line-height:1.08;margin:2px 0 8px}
.reference-review-heading .sub{max-width:660px}
.reference-review-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.75fr);gap:18px;align-items:start}
.reference-atlas-card{overflow:hidden;padding:14px}
.reference-atlas-image{appearance:none;width:100%;border:0;padding:0;background:var(--surface-2);border-radius:16px;overflow:hidden;cursor:zoom-in;display:block}
.reference-atlas-image img{display:block;width:100%;height:auto;max-height:720px;object-fit:contain;background:var(--surface-2)}
.reference-atlas-missing{min-height:420px;display:grid;place-items:center;align-content:center;gap:8px;background:var(--surface-2);border-radius:16px;color:var(--muted)}
.reference-atlas-actions{display:flex;justify-content:flex-end;padding:12px 2px 0}
.reference-details-card{padding:20px}
.reference-details-card h3{font-size:17px;margin:0 0 12px}
.reference-facts{display:grid}
.reference-fact{display:grid;grid-template-columns:92px minmax(0,1fr);gap:5px 12px;padding:12px 0;border-top:1px solid var(--line)}
.reference-fact:first-child{border-top:0}
.reference-fact>span{font-size:12px;color:var(--muted);padding-top:2px}
.reference-fact>strong{font-size:13px;font-weight:650;line-height:1.4}
.reference-fact>small{grid-column:2;font-size:11px;color:#9a6700}
.reference-fact.attention>strong{color:#6e6e73}
.reference-blocking-warning{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:16px;background:rgba(255,149,0,.10);color:#7a4b00}
.reference-blocking-warning svg{width:19px;height:19px;flex:0 0 auto;margin-top:1px}
.reference-blocking-warning div{display:grid;gap:3px}
.reference-blocking-warning strong{font-size:13px}
.reference-blocking-warning span{font-size:12px;line-height:1.45}
.reference-review-section{display:grid;gap:4px}
.reference-evidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.reference-evidence-card{min-height:44px;overflow:hidden;display:grid;grid-template-rows:auto 1fr}
.reference-evidence-image{appearance:none;border:0;padding:0;background:var(--surface-2);aspect-ratio:4/3;overflow:hidden;cursor:zoom-in}
.reference-evidence-image img{width:100%;height:100%;object-fit:contain;display:block}
.reference-evidence-fallback{height:100%;display:grid;place-items:center;color:var(--muted)}
.reference-evidence-copy{padding:12px 12px 8px;display:flex;align-items:flex-start;justify-content:space-between;gap:9px}
.reference-evidence-copy h3{font-size:14px;margin:0 0 4px}
.reference-evidence-copy p{font-size:11px;color:var(--muted);margin:0}
.reference-evidence-state{font-size:10px;font-weight:700;white-space:nowrap;padding:4px 7px;border-radius:999px;background:var(--surface-2);color:var(--muted)}
.reference-evidence-state.ok{background:rgba(52,199,89,.11);color:#237d3b}
.reference-evidence-state.attention{background:rgba(255,149,0,.12);color:#8a5700}
.reference-evidence-actions{display:flex;gap:4px;flex-wrap:wrap;padding:2px 8px 10px}
.reference-evidence-actions .btn{min-height:44px;padding:0 10px;font-size:11px}
.reference-empty-note{padding:18px;border-radius:16px;background:var(--surface-2);color:var(--muted);font-size:13px}
.reference-colour{padding:18px;display:grid;gap:14px}
.reference-colour-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.reference-colour-head h3{font-size:17px;margin-bottom:4px}
.reference-colour-swatches{display:flex;gap:18px;flex-wrap:wrap}
.reference-colour-item{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}
.reference-colour-swatch{width:34px;height:34px;border-radius:50%;border:1px solid rgba(0,0,0,.08);box-shadow:0 1px 2px rgba(0,0,0,.06)}
.reference-colour details{border-top:1px solid var(--line);padding-top:12px}
.reference-colour summary{cursor:pointer;color:var(--blue);font-size:12px;font-weight:650}
.reference-colour-details{display:grid;gap:8px;padding-top:10px}
.reference-colour-details>div{display:flex;gap:10px;align-items:baseline;font-size:11px}
.reference-colour-details strong{min-width:56px}
.reference-colour-details span{color:var(--muted)}
.reference-review-actions{position:sticky;bottom:max(12px,env(safe-area-inset-bottom));z-index:4;display:flex;justify-content:flex-end;gap:8px;padding:12px;border:1px solid rgba(60,60,67,.12);border-radius:18px;background:rgba(250,250,252,.88);backdrop-filter:saturate(180%) blur(22px);-webkit-backdrop-filter:saturate(180%) blur(22px);box-shadow:0 5px 20px rgba(0,0,0,.07)}
.reference-review-actions .btn[disabled]{opacity:.42;cursor:not-allowed}
.reference-live-region{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.reference-compare,.reference-picker,.reference-crop-editor{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.66);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);display:grid;place-items:center;padding:22px}
.reference-compare-dialog,.reference-picker-dialog,.reference-crop-dialog{width:min(1180px,100%);max-height:94vh;overflow:auto;border-radius:24px;background:var(--bg);box-shadow:0 25px 80px rgba(0,0,0,.28);padding:20px}
.reference-compare-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}
.reference-compare-head h2{font-size:25px;margin-top:3px}
.reference-compare-head .quick-look-control{background:var(--surface-2);color:var(--text)}
.reference-compare-mode{display:none;grid-template-columns:1fr 1fr;gap:4px;background:var(--surface-2);border-radius:999px;padding:4px;margin-bottom:12px}
.reference-compare-mode button{min-height:44px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-weight:650}
.reference-compare-mode button.active{background:#fff;color:var(--blue);box-shadow:0 1px 5px rgba(0,0,0,.08)}
.reference-compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.reference-compare-pane{min-width:0}
.reference-compare-image{position:relative;aspect-ratio:4/5;background:var(--surface-2);border-radius:18px;overflow:auto;display:grid;place-items:center}
.reference-compare-image img{max-width:100%;max-height:100%;object-fit:contain;transition:transform .14s ease}
.reference-source-box{position:absolute;border:2px solid var(--blue);border-radius:8px;box-shadow:0 0 0 9999px rgba(0,0,0,.18);pointer-events:none}
.reference-compare-label{display:flex;justify-content:space-between;gap:8px;padding:10px 4px 0;font-size:12px}
.reference-compare-label span{color:var(--muted)}
.reference-compare-tools{display:flex;justify-content:center;gap:6px;margin-top:14px}
.reference-picker-dialog{width:min(860px,100%)}
.reference-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.reference-picker-item{border:1px solid var(--line);background:#fff;border-radius:16px;overflow:hidden;padding:0;cursor:pointer;color:var(--text);min-height:44px}
.reference-picker-item.selected{box-shadow:0 0 0 2px var(--blue)}
.reference-picker-item img{width:100%;aspect-ratio:4/3;object-fit:contain;background:var(--surface-2)}
.reference-picker-item span{display:block;padding:10px;font-size:12px;font-weight:650}
.reference-crop-dialog{width:min(920px,100%)}
.reference-crop-stage{position:relative;min-height:420px;max-height:68vh;overflow:hidden;background:#151515;border-radius:18px;display:grid;place-items:center;touch-action:none;user-select:none}
.reference-crop-stage>img{width:100%;height:100%;max-height:68vh;object-fit:contain;pointer-events:none}
.reference-crop-box{position:absolute;border:2px solid #fff;box-shadow:0 0 0 9999px rgba(0,0,0,.48);border-radius:6px;cursor:move;touch-action:none}
.reference-crop-handle{position:absolute;width:44px;height:44px;right:-22px;bottom:-22px;border-radius:50%;background:transparent;border:0;cursor:nwse-resize}
.reference-crop-handle::after{content:"";position:absolute;inset:9px;border-radius:50%;background:#fff;border:4px solid var(--blue);box-shadow:0 2px 8px rgba(0,0,0,.3)}
.reference-crop-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}

@media(max-width:980px){
  .reference-review-grid{grid-template-columns:1fr}
  .reference-details-card{order:2}
  .reference-evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:780px){
  .reference-review-heading{align-items:flex-start}
  .reference-review-heading h2{font-size:24px}
  .reference-evidence-grid{grid-template-columns:1fr 1fr;gap:9px}
  .reference-review-actions{bottom:max(86px,calc(env(safe-area-inset-bottom) + 76px))}
  .reference-compare,.reference-picker,.reference-crop-editor{padding:10px}
  .reference-compare-dialog,.reference-picker-dialog,.reference-crop-dialog{padding:14px;border-radius:20px;max-height:96dvh}
  .reference-compare-mode{display:grid}
  .reference-compare-grid{grid-template-columns:1fr}
  .reference-compare[data-compare-mode="original"] [data-compare-pane="reference"]{display:none}
  .reference-compare[data-compare-mode="reference"] [data-compare-pane="original"]{display:none}
  .reference-compare:not([data-compare-mode]) [data-compare-pane="reference"]{display:none}
  .reference-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reference-crop-stage{min-height:360px}
}
@media(max-width:480px){
  .reference-evidence-grid{grid-template-columns:1fr}
  .reference-review-actions{flex-direction:column-reverse}
  .reference-review-actions .btn{width:100%}
  .reference-colour-head{flex-direction:column}
  .reference-picker-grid{grid-template-columns:1fr 1fr}
}


/* Development-only Reference showcase */
.reference-showcase-panel{position:fixed;right:18px;bottom:18px;z-index:90;width:min(320px,calc(100vw - 36px));padding:12px;border:1px solid rgba(60,60,67,.16);border-radius:20px;background:rgba(250,250,252,.94);backdrop-filter:saturate(180%) blur(24px);-webkit-backdrop-filter:saturate(180%) blur(24px);box-shadow:0 18px 48px rgba(0,0,0,.16)}
.reference-showcase-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.reference-showcase-head>div{display:grid;gap:2px}
.reference-showcase-head strong{font-size:13px}
.reference-showcase-head span{font-size:10px;color:var(--muted)}
.reference-showcase-close{width:44px;height:44px;border:0;border-radius:999px;background:var(--surface-2);color:var(--text);display:grid;place-items:center}
.reference-showcase-close svg{width:18px;height:18px}
.reference-showcase-states{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.reference-showcase-state{min-height:44px;border:1px solid transparent;border-radius:13px;background:var(--surface-2);color:#3a3a3c;padding:8px 10px;font-size:11px;font-weight:650;text-align:left}
.reference-showcase-state:hover{background:#e9e9ee}
.reference-showcase-state.active{background:rgba(0,122,255,.11);border-color:rgba(0,122,255,.18);color:var(--blue)}
.reference-showcase-state:focus-visible,.reference-showcase-close:focus-visible{outline:3px solid rgba(0,122,255,.28);outline-offset:2px}
@media(max-width:780px){
  .reference-showcase-panel{right:10px;bottom:92px;width:min(300px,calc(100vw - 20px))}
}
@media(prefers-reduced-motion:reduce){
  .reference-showcase-panel *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}


/* Fidelity Inspector review */
.fidelity-review-modal,.fidelity-compare,.fidelity-override-modal{position:fixed;inset:0;z-index:95;background:rgba(0,0,0,.68);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);display:grid;place-items:center;padding:22px}
.fidelity-review-dialog{width:min(1180px,100%);max-height:94vh;overflow:auto;border-radius:26px;background:var(--bg);box-shadow:0 26px 84px rgba(0,0,0,.3);padding:20px}
.fidelity-review-shell{display:grid;gap:18px}
.fidelity-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.fidelity-review-head h2{font-size:25px;line-height:1.12;margin-top:3px;max-width:760px}
.fidelity-review-head .quick-look-control{background:var(--surface-2);color:var(--text)}
.fidelity-review-grid{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr);gap:18px;align-items:start}
.fidelity-candidate-card{padding:12px;overflow:hidden}
.fidelity-candidate-card>img{display:block;width:100%;max-height:720px;aspect-ratio:4/5;object-fit:contain;background:var(--surface-2);border-radius:18px}
.fidelity-candidate-missing{aspect-ratio:4/5;display:grid;place-items:center;align-content:center;gap:8px;border-radius:18px;background:var(--surface-2);color:var(--muted)}
.fidelity-candidate-label{font-size:11px;color:var(--muted);font-weight:650;padding:10px 4px 0}
.fidelity-review-content{display:grid;gap:16px}
.fidelity-checking,.fidelity-summary{display:flex;gap:14px;align-items:flex-start;padding:18px;border-radius:18px;background:var(--surface-2)}
.fidelity-checking h3,.fidelity-summary h2{font-size:20px;margin:1px 0 5px}
.fidelity-checking p,.fidelity-summary p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}
.fidelity-summary{display:block}
.fidelity-summary-label{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;background:rgba(0,122,255,.09);color:var(--blue);font-size:10px;font-weight:750;margin-bottom:9px}
.fidelity-summary.success .fidelity-summary-label{background:rgba(52,199,89,.11);color:#237d3b}
.fidelity-summary.attention .fidelity-summary-label{background:rgba(255,149,0,.12);color:#8a5700}
.fidelity-summary.error .fidelity-summary-label{background:rgba(255,59,48,.1);color:#b42318}
.fidelity-decision-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fidelity-decision-pair>div{display:grid;gap:3px;padding:12px 14px;border-radius:14px;background:var(--surface-2)}
.fidelity-decision-pair span{font-size:10px;color:var(--muted)}
.fidelity-decision-pair strong{font-size:13px}
.fidelity-findings{display:grid;gap:10px}
.fidelity-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.fidelity-section-head h3{font-size:17px;margin:0 0 4px}
.fidelity-section-head p{font-size:12px;color:var(--muted);margin:0}
.fidelity-finding-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:14px}
.fidelity-finding-card.fail{border-color:rgba(255,59,48,.16);background:rgba(255,59,48,.025)}
.fidelity-finding-card.review{border-color:rgba(255,149,0,.18);background:rgba(255,149,0,.03)}
.fidelity-finding-main{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.fidelity-finding-feature{font-size:10px;color:var(--muted);font-weight:650}
.fidelity-finding-main h3{font-size:15px;margin:3px 0 4px}
.fidelity-finding-main p{font-size:12px;line-height:1.45;color:var(--muted);margin:0;max-width:620px}
.fidelity-finding-status{font-size:10px;font-weight:750;white-space:nowrap;padding:5px 8px;border-radius:999px;background:var(--surface-2);color:var(--muted)}
.fidelity-finding-card.pass .fidelity-finding-status{background:rgba(52,199,89,.11);color:#237d3b}
.fidelity-finding-card.review .fidelity-finding-status{background:rgba(255,149,0,.12);color:#8a5700}
.fidelity-finding-card.fail .fidelity-finding-status{background:rgba(255,59,48,.1);color:#b42318}
.fidelity-finding-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:10px}
.fidelity-all-clear{display:flex;align-items:center;gap:9px;padding:14px;border-radius:14px;background:rgba(52,199,89,.08);color:#237d3b;font-size:12px;font-weight:650}
.fidelity-review-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.fidelity-review-action{min-height:44px}
.fidelity-finding-action{min-height:44px}

.fidelity-compare-dialog,.fidelity-override-dialog{width:min(1080px,100%);max-height:94vh;overflow:auto;border-radius:24px;background:var(--bg);box-shadow:0 25px 80px rgba(0,0,0,.3);padding:20px}
.fidelity-compare-dialog .quick-look-control,.fidelity-override-dialog .quick-look-control{background:var(--surface-2);color:var(--text)}
.fidelity-compare-mode{display:none;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:999px;background:var(--surface-2);margin-bottom:12px}
.fidelity-compare-mode button{min-height:44px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-weight:650}
.fidelity-compare-mode button.active{background:#fff;color:var(--blue);box-shadow:0 1px 5px rgba(0,0,0,.08)}
.fidelity-compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.fidelity-compare-image{position:relative;aspect-ratio:4/5;display:grid;place-items:center;overflow:auto;border-radius:18px;background:var(--surface-2)}
.fidelity-compare-image img{max-width:100%;max-height:100%;object-fit:contain}
.fidelity-candidate-box{position:absolute;border:2px solid var(--blue);border-radius:8px;box-shadow:0 0 0 9999px rgba(0,0,0,.14);pointer-events:none}
.fidelity-compare-label{display:flex;justify-content:space-between;gap:8px;padding:10px 4px 0;font-size:12px}
.fidelity-compare-label span{color:var(--muted)}
.fidelity-compare-note{display:grid;gap:4px;margin-top:14px;padding:14px 16px;border-radius:15px;background:var(--surface-2)}
.fidelity-compare-note strong{font-size:13px}
.fidelity-compare-note span{font-size:12px;line-height:1.45;color:var(--muted)}
.fidelity-override-dialog{width:min(560px,100%)}
.fidelity-override-copy{display:grid;gap:5px;padding:14px;border-radius:15px;background:var(--surface-2);margin-bottom:15px}
.fidelity-override-copy>span{font-size:10px;color:var(--muted)}
.fidelity-override-copy>strong{font-size:14px}
.fidelity-override-copy p{font-size:12px;line-height:1.45;color:var(--muted);margin:4px 0 0}
.fidelity-override-field{display:grid;gap:7px}
.fidelity-override-field>span{font-size:12px;font-weight:650}
.fidelity-override-field textarea{width:100%;min-height:110px;resize:vertical;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--text);padding:12px;font:inherit;line-height:1.45}
.fidelity-override-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}

@media(max-width:900px){
  .fidelity-review-grid{grid-template-columns:1fr}
  .fidelity-candidate-card>img,.fidelity-candidate-missing{max-height:520px;aspect-ratio:auto}
}
@media(max-width:780px){
  .fidelity-review-modal,.fidelity-compare,.fidelity-override-modal{padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))}
  .fidelity-review-dialog,.fidelity-compare-dialog,.fidelity-override-dialog{padding:14px;border-radius:20px;max-height:96dvh}
  .fidelity-review-head h2{font-size:22px}
  .fidelity-section-head{flex-direction:column}
  .fidelity-decision-pair{grid-template-columns:1fr}
  .fidelity-compare-mode{display:grid}
  .fidelity-compare-grid{grid-template-columns:1fr}
  .fidelity-compare[data-compare-mode="candidate"] [data-fidelity-pane="reference"]{display:none}
  .fidelity-compare[data-compare-mode="reference"] [data-fidelity-pane="candidate"]{display:none}
  .fidelity-review-actions{position:sticky;bottom:max(0px,env(safe-area-inset-bottom));padding:10px 0;background:linear-gradient(to bottom,rgba(250,250,252,0),var(--bg) 22%)}
}
@media(max-width:480px){
  .fidelity-finding-main{display:grid}
  .fidelity-finding-status{justify-self:start}
  .fidelity-review-actions,.fidelity-override-actions{flex-direction:column-reverse}
  .fidelity-review-actions .btn,.fidelity-override-actions .btn{width:100%}
}


/* Development-only Fidelity showcase */
.fidelity-showcase-panel{position:fixed;left:18px;bottom:18px;z-index:91;width:min(330px,calc(100vw - 36px));padding:12px;border:1px solid rgba(60,60,67,.16);border-radius:20px;background:rgba(250,250,252,.94);backdrop-filter:saturate(180%) blur(24px);-webkit-backdrop-filter:saturate(180%) blur(24px);box-shadow:0 18px 48px rgba(0,0,0,.16)}
.fidelity-showcase-states{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.fidelity-showcase-state{min-height:44px;border:1px solid transparent;border-radius:13px;background:var(--surface-2);color:#3a3a3c;padding:8px 10px;font-size:11px;font-weight:650;text-align:left}
.fidelity-showcase-state:hover{background:#e9e9ee}
.fidelity-showcase-state.active{background:rgba(0,122,255,.11);border-color:rgba(0,122,255,.18);color:var(--blue)}
.fidelity-showcase-state:focus-visible{outline:3px solid rgba(0,122,255,.28);outline-offset:2px}
@media(max-width:780px){
  .fidelity-showcase-panel{left:10px;bottom:92px;width:min(310px,calc(100vw - 20px))}
}


/* Development-only Generation Workflow showcase */
.generation-showcase-panel{position:fixed;left:18px;top:18px;z-index:92;width:min(340px,calc(100vw - 36px));padding:12px;border:1px solid rgba(60,60,67,.16);border-radius:20px;background:rgba(250,250,252,.94);backdrop-filter:saturate(180%) blur(24px);-webkit-backdrop-filter:saturate(180%) blur(24px);box-shadow:0 18px 48px rgba(0,0,0,.16)}
.generation-showcase-states{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.generation-showcase-state{min-height:44px;border:1px solid transparent;border-radius:13px;background:var(--surface-2);color:#3a3a3c;padding:8px 10px;font-size:11px;font-weight:650;text-align:left}
.generation-showcase-state:hover{background:#e9e9ee}
.generation-showcase-state.active{background:rgba(0,122,255,.11);border-color:rgba(0,122,255,.18);color:var(--blue)}
.generation-showcase-state:focus-visible{outline:3px solid rgba(0,122,255,.28);outline-offset:2px}

.generation-workflow-modal{position:fixed;inset:0;z-index:96;background:rgba(0,0,0,.68);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);display:grid;place-items:center;padding:22px}
.generation-workflow-dialog{width:min(980px,100%);max-height:94vh;overflow:auto;border-radius:28px;background:var(--bg);box-shadow:0 28px 90px rgba(0,0,0,.32);padding:20px}
.generation-workflow-shell{display:grid;gap:16px}
.generation-workflow-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.generation-workflow-head h2{font-size:26px;line-height:1.1;margin:3px 0 6px}
.generation-workflow-head p{font-size:13px;color:var(--muted);margin:0}
.generation-workflow-head .quick-look-control{background:var(--surface-2);color:var(--text)}
.generation-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:4px;border-radius:999px;background:var(--surface-2)}
.generation-progress span{display:grid;place-items:center;min-height:34px;border-radius:999px;color:var(--muted);font-size:11px;font-weight:700}
.generation-progress span.active{background:#fff;color:var(--blue);box-shadow:0 1px 5px rgba(0,0,0,.08)}
.generation-progress span.done{color:#237d3b}
.generation-workflow-body{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:16px;align-items:start}
.generation-setup{display:grid;gap:12px}
.generation-reference-lock{display:flex;align-items:center;gap:10px;padding:14px;border-radius:16px;background:rgba(52,199,89,.08);color:#237d3b}
.generation-reference-lock svg{width:20px;height:20px}
.generation-reference-lock div{display:grid;gap:2px}
.generation-reference-lock strong{font-size:13px}
.generation-reference-lock span{font-size:11px;color:var(--muted)}
.generation-option{display:grid;gap:9px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}
.generation-option>div{display:grid;gap:2px}
.generation-option strong{font-size:13px}
.generation-option span{font-size:11px;color:var(--muted)}
.generation-choice-row{display:flex;gap:6px;flex-wrap:wrap}
.generation-choice{min-height:44px;border:1px solid transparent;border-radius:999px;background:var(--surface-2);color:var(--muted);padding:0 14px;font:inherit;font-size:12px;font-weight:650}
.generation-choice.active{background:rgba(0,122,255,.1);border-color:rgba(0,122,255,.18);color:var(--blue)}
.generation-candidate{padding:10px;overflow:hidden}
.generation-candidate img{display:block;width:100%;max-height:620px;aspect-ratio:4/5;object-fit:contain;border-radius:18px;background:var(--surface-2)}
.generation-candidate-foot{display:grid;gap:2px;padding:10px 4px 2px}
.generation-candidate-foot span{font-size:10px;color:var(--muted)}
.generation-candidate-foot strong{font-size:12px}
.generation-workflow-state{display:grid;gap:10px}
.generation-status{display:flex;align-items:flex-start;gap:12px;padding:16px;border-radius:18px;background:var(--surface-2)}
.generation-status-icon{width:38px;height:38px;flex:0 0 38px;border-radius:999px;display:grid;place-items:center;background:#fff}
.generation-status-icon svg{width:19px;height:19px}
.generation-status h3{font-size:18px;margin:1px 0 4px}
.generation-status p{font-size:12px;line-height:1.45;color:var(--muted);margin:0}
.generation-status.success{background:rgba(52,199,89,.08)}
.generation-status.error{background:rgba(255,59,48,.06)}
.generation-status.attention{background:rgba(255,149,0,.08)}
.generation-finding,.generation-retry-summary{display:grid;gap:6px;padding:14px;border:1px solid rgba(255,59,48,.13);border-radius:16px;background:#fff}
.generation-finding>div{display:flex;justify-content:space-between;gap:10px}
.generation-finding span,.generation-finding small{font-size:10px;color:var(--muted)}
.generation-finding strong{font-size:11px;color:#b42318}
.generation-finding p,.generation-retry-summary p{font-size:12px;line-height:1.45;margin:0;color:var(--muted)}
.generation-retry-summary{border-color:rgba(255,149,0,.17);background:rgba(255,149,0,.04)}
.generation-retry-summary h3{font-size:15px;margin:0}
.generation-workflow-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding-bottom:max(0px,env(safe-area-inset-bottom))}
.generation-workflow-action{min-height:44px}

@media(max-width:780px){
  .generation-showcase-panel{left:10px;top:max(10px,env(safe-area-inset-top));width:min(320px,calc(100vw - 20px))}
  .generation-workflow-modal{padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))}
  .generation-workflow-dialog{padding:14px;border-radius:20px;max-height:96dvh}
  .generation-workflow-body{grid-template-columns:1fr}
  .generation-candidate img{max-height:520px}
  .generation-workflow-actions{position:sticky;bottom:0;background:linear-gradient(to bottom,rgba(250,250,252,0),var(--bg) 24%);padding-top:16px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
}
@media(max-width:480px){
  .generation-choice-row{display:grid;grid-template-columns:1fr}
  .generation-workflow-actions{flex-direction:column-reverse}
  .generation-workflow-actions .btn{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .generation-workflow-modal *,.generation-showcase-panel *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}


/* Performance loading states: preserve final geometry to avoid layout shift. */
.skeleton-block,.skeleton-line,.skeleton-value{
  position:relative;overflow:hidden;background:rgba(118,118,128,.10)!important;color:transparent!important;border-color:transparent!important;
}
.skeleton-block::after,.skeleton-line::after,.skeleton-value::after{
  content:"";position:absolute;inset:0;transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.58),transparent);
  animation:onerobe-skeleton 1.25s ease-in-out infinite;
}
.skeleton-line{height:11px;border-radius:999px;margin-top:10px;width:100%}
.skeleton-line.short{width:28%}.skeleton-line.title{height:16px;width:78%}.skeleton-line.medium{width:56%}.skeleton-line.actions{height:32px;width:42%;margin-top:18px}
.skeleton-card{pointer-events:none}.skeleton-card .dress-image{aspect-ratio:4/3}
.skeleton-list-row{padding:18px;min-height:112px;pointer-events:none}
.skeleton-value{display:inline-block;min-width:72px;min-height:1em;border-radius:9px}
#dressCount.skeleton-value,#reviewCount.skeleton-value,#scheduledCount.skeleton-value,#publishedCount.skeleton-value{min-width:42px}
@keyframes onerobe-skeleton{to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){
  .skeleton-block::after,.skeleton-line::after,.skeleton-value::after{animation:none;display:none}
}


/* Interaction feedback — restrained, composited motion only. */
:root{--motion-fast:120ms;--motion-base:180ms;--motion-slow:240ms;--motion-ease:cubic-bezier(.2,.8,.2,1)}
.btn,.icon-btn,.nav-btn,.filter-pill,.view-toggle button,.segmented button,.workspace-tabs button,.mode-segment button,.status-pill[role="button"],button.status-pill{
  transition:transform var(--motion-fast) var(--motion-ease),background-color var(--motion-base) var(--motion-ease),color var(--motion-base) var(--motion-ease),box-shadow var(--motion-base) var(--motion-ease),opacity var(--motion-base) ease;
  -webkit-tap-highlight-color:transparent;
}
.btn:active,.icon-btn:active,.nav-btn:active,.filter-pill:active,.view-toggle button:active,.segmented button:active,.workspace-tabs button:active,.mode-segment button:active,button.status-pill:active{transform:scale(.97)}
.btn:disabled,.icon-btn:disabled,button.status-pill:disabled{cursor:default;opacity:.48;transform:none}
.icon-btn:hover{background:rgba(118,118,128,.13)}
.filter-pill:hover,.segmented button:hover,.workspace-tabs button:hover,.mode-segment button:hover{background:rgba(118,118,128,.08)}
.dress-card,.queue-item,.calendar-item,.media-card,.history-card,.metric-card,.detail-tile{
  transition:transform var(--motion-base) var(--motion-ease),box-shadow var(--motion-base) var(--motion-ease),border-color var(--motion-base) ease;
}
.dress-card:active{transform:scale(.992)}
.page.active{animation:onerobe-page-in var(--motion-slow) var(--motion-ease) both}
.workspace-panel.active{animation:onerobe-panel-in var(--motion-base) var(--motion-ease) both}
.modal-backdrop:not(.hidden),.quick-look:not(.hidden){animation:onerobe-fade-in var(--motion-base) ease both}
.modal-backdrop:not(.hidden) .modal{animation:onerobe-modal-in var(--motion-slow) var(--motion-ease) both}
.quick-look:not(.hidden) img{animation:onerobe-preview-in var(--motion-slow) var(--motion-ease) both}
.progress-fill,.reference-progress-track span,.bar-fill{transition:width 420ms var(--motion-ease)}
.status-pill,.chip,.platform-badge{transition:background-color var(--motion-base) ease,color var(--motion-base) ease,opacity var(--motion-base) ease}
.toast{transition:opacity var(--motion-base) ease,transform var(--motion-base) var(--motion-ease)}
@keyframes onerobe-page-in{from{opacity:.01;transform:translateY(3px)}to{opacity:1;transform:none}}
@keyframes onerobe-panel-in{from{opacity:.01;transform:translateY(2px)}to{opacity:1;transform:none}}
@keyframes onerobe-fade-in{from{opacity:0}to{opacity:1}}
@keyframes onerobe-modal-in{from{opacity:.01;transform:translateY(8px) scale(.992)}to{opacity:1;transform:none}}
@keyframes onerobe-preview-in{from{opacity:.01;transform:scale(.99)}to{opacity:1;transform:none}}
@media (hover:hover) and (pointer:fine){
  .btn:not(:disabled):hover{transform:translateY(-1px)}
  .dress-card:hover{transform:translateY(-2px)}
  .queue-item:hover,.calendar-item:hover,.media-card:hover{border-color:rgba(60,60,67,.22)}
}
@media(prefers-reduced-motion:reduce){
  .page.active,.workspace-panel.active,.modal-backdrop:not(.hidden),.modal-backdrop:not(.hidden) .modal,.quick-look:not(.hidden),.quick-look:not(.hidden) img{animation:none!important}
  .btn,.icon-btn,.nav-btn,.filter-pill,.view-toggle button,.segmented button,.workspace-tabs button,.mode-segment button,.dress-card,.queue-item,.calendar-item,.media-card,.history-card,.metric-card,.detail-tile,.progress-fill,.reference-progress-track span,.bar-fill,.status-pill,.chip,.platform-badge,.toast{transition-duration:.01ms!important}
  .btn:active,.icon-btn:active,.nav-btn:active,.filter-pill:active,.view-toggle button:active,.segmented button:active,.workspace-tabs button:active,.mode-segment button:active,.dress-card:active{transform:none!important}
}

.btn.is-pending{cursor:progress}
.activity-dot{width:8px;height:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:onerobe-activity .65s linear infinite;opacity:.9}
@keyframes onerobe-activity{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.activity-dot{animation:none;border-right-color:currentColor;opacity:.55}}

.auth-legal{margin:14px 2px 0;color:var(--muted);font-size:11px;line-height:1.5}.auth-legal a,.global-legal-footer a,.legal-link-grid a{color:var(--blue);text-decoration:none}.global-legal-footer{position:static;width:100%;margin-top:42px;background:var(--bg);color:var(--muted)}.footer-inner{width:min(980px,calc(100% - 40px));margin:0 auto;padding:0 0 22px}.footer-rule{height:1px;background:var(--line);margin-bottom:13px}.footer-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px;min-height:28px}.footer-copy,.footer-region{margin:0;color:var(--muted);font-size:11px;line-height:1.35}.footer-links{display:flex;align-items:center;gap:9px;min-width:0}.footer-links a{color:var(--text);font-size:11px;line-height:1.35;text-decoration:none;white-space:nowrap}.footer-links a:hover{text-decoration:underline}.footer-links a:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:3px}.footer-links span{width:1px;height:11px;background:var(--line);flex:0 0 1px}.footer-region{text-align:right;white-space:nowrap}@media(max-width:780px){.global-legal-footer{margin-top:28px}.footer-inner{width:min(100% - 32px,980px);padding-bottom:104px}.footer-row{grid-template-columns:1fr;gap:9px}.footer-links{order:1;flex-wrap:wrap;gap:7px 9px}.footer-copy{order:2}.footer-region{order:3;text-align:left}.footer-links a{white-space:normal}}
