/*
 * Shared component structure migrated from the retired theme layer.
 * Theme colours and dark-mode ownership live only in oms-refresh.css and design-system.css.
 */
/* Shared shell components, grouped settings, and browser-persistent theme control. */
body .shell{max-width:1380px}
.brand-lockup,.account-tools,.account-chip,.login-brand{display:flex;align-items:center}
.brand-lockup{gap:12px}.brand-logo,.brand-monogram{width:45px;height:45px;flex:0 0 45px;border-radius:13px}
.brand-logo{border:1px solid var(--border);background:#fff;object-fit:contain;padding:3px}
.brand-monogram{display:grid;place-items:center;background:linear-gradient(145deg,#286ee6,#174bb0);color:#fff;font-size:22px;font-weight:900;box-shadow:0 7px 18px rgba(36,116,229,.24)}
.brand-lockup .brand{font-size:24px;letter-spacing:-.025em}.brand-lockup .kicker{margin-bottom:2px}
.account-tools{gap:9px}.account-chip{gap:9px;min-width:155px;padding:6px 11px 6px 7px;border:1px solid var(--border);border-radius:13px;background:#f8fafc}
.user-avatar{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:10px;background:#e5edfb;color:#174f91;font-size:12px;font-weight:900}
.account-copy{display:grid;min-width:0;line-height:1.2}.account-copy strong{overflow:hidden;color:var(--navy);font-size:13px;text-overflow:ellipsis}.account-copy small{margin-top:2px;color:var(--muted);font-size:10px}
.theme-toggle,.logout-button{display:inline-flex;width:auto;align-items:center;justify-content:center;margin:0}
.theme-toggle{gap:7px;padding:8px 10px;border:1px solid var(--border);background:transparent;color:var(--text);font-size:11px}.theme-toggle [data-theme-icon]{font-size:16px}
.logout-button{padding:9px 12px;border:1px solid #efc4c0;background:#fff7f6;color:#a8281e}.logout-button:hover{background:#ffebe9}
.login-theme{position:fixed;z-index:5;top:16px;right:18px}.login-brand{gap:12px;margin-bottom:17px}.login-brand h1{margin:2px 0 0}
.settings-page-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:16px}.settings-page-head h1{margin:2px 0 4px}
.settings-groups{display:grid;gap:11px}.settings-group{overflow:hidden;border:1px solid var(--border);border-radius:15px;background:#fbfdff}
.settings-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;cursor:pointer;list-style:none;background:#f8fafc}.settings-group>summary::-webkit-details-marker{display:none}
.settings-group>summary>span:first-child{display:grid;gap:3px}.settings-group>summary strong{color:var(--navy);font-size:15px}.settings-group>summary small{color:var(--muted);font-size:10px;font-weight:500}
.settings-chevron{display:grid;width:28px;height:28px;place-items:center;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--muted);font-size:18px;transition:transform .16s}.settings-group[open] .settings-chevron{transform:rotate(180deg)}
.settings-group-body{display:grid;gap:10px;padding:11px}.settings-group-body .settings-section{margin:0;padding:15px;background:#fff;box-shadow:none}
.settings-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.settings-section-heading h2,.settings-page .settings-section h2{margin:0 0 3px;font-size:16px}.settings-section-heading .check-row{flex:0 0 auto;margin:2px 0}
.settings-page label{margin:9px 0 4px;font-size:11px}.settings-page input,.settings-page select,.settings-page textarea{padding:8px 10px;border-radius:8px;font-size:12px}.settings-page textarea{min-height:88px}
.settings-page .grid2{gap:8px 11px}.settings-page .message{margin-top:10px;padding:9px 11px;font-size:11px}.settings-page .meta{font-size:10px}
.settings-page button{margin-top:10px}.settings-page .inline button{margin:0}.settings-test-actions{margin-top:10px}
.settings-save-bar{position:sticky;z-index:7;bottom:8px;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;padding:10px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 9px 28px rgba(15,23,42,.14);backdrop-filter:blur(12px)}
.settings-save-bar #settingsMsg{flex:1}.settings-save-bar #settingsMsg:empty{display:none}.settings-save-bar .message{margin:0}.settings-save-bar button{width:auto;min-width:190px;margin:0}
.brand-upload-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:15px;align-items:start}.brand-preview{display:grid;width:100px;height:82px;place-items:center;padding:8px;border:1px dashed #b9c5d7;border-radius:13px;background:#f8fafc}.brand-preview img{max-width:100%;max-height:100%;object-fit:contain}.brand-upload-controls label{margin-top:0}.brand-upload-controls .inline{margin-top:9px}.brand-upload-controls .inline button{width:auto}
.compact-checks{margin-top:10px}.compact-checks label{margin:0;padding:7px 10px;border:1px solid var(--border);border-radius:9px;background:#f8fafc}
.invoice-template-note{margin-top:8px;padding:7px 9px;border-radius:8px;background:#fff4dc;color:#75500a;font-size:10px}.invoice-template-note span{font-weight:850}
.upload-tag-editor{margin-top:5px}.upload-tag-chip-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:9px}
.upload-tag-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:8px 10px 8px 13px;border:1px solid #ddd7d4;border-radius:999px;background:#f0edeb;color:#322f38;font-size:12px;font-weight:750;line-height:1}
.upload-tag-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-tag-chip button{display:grid;width:22px;height:22px;margin:0;padding:0;place-items:center;border:0;border-radius:50%;background:transparent;color:#49444d;font-size:20px;font-weight:500;line-height:1}
.upload-tag-chip button:hover{background:#ded8d5;color:#17151a}.upload-tag-entry{margin:0}
.upload-tag-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:5px;color:var(--muted);font-size:10px}.upload-tag-editor-footer span:first-child{font-weight:800}
.tag-suggestion.added{border-color:#a7d9bd;background:#e4f6ec;color:#11613f}
.upload-review-panel{display:grid;gap:16px}.upload-review-form-layout{display:grid;gap:14px}
.upload-review-card{overflow:hidden;margin:0;border:1px solid var(--border);border-radius:15px;background:#fff;box-shadow:0 3px 12px rgba(20,35,58,.045)}
.upload-review-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 12px;border-bottom:1px solid var(--border);background:#fbfcfe}.upload-review-card-heading h2{margin:0;color:var(--navy);font-size:17px}.upload-review-card-heading p{margin:4px 0 0;color:var(--muted);font-size:11px}.upload-review-card-heading>button{width:auto;margin:0}
.upload-review-card-body{padding:15px 18px 18px}.upload-review-card-body>label:first-child{margin-top:0}.upload-review-single-column{display:grid;grid-template-columns:1fr;gap:4px}.upload-review-three-column{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.upload-review-card input.source-locked,.upload-review-card textarea.source-locked,.upload-review-card select.source-locked{border-color:transparent;background:#eef2f7;color:#58667a;cursor:default}.shopify-upload-size-control,.shopify-upload-country-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.shopify-upload-size-control button,.shopify-upload-country-control button{width:auto;margin:0;white-space:nowrap}.shopify-upload-size-field>p{margin:5px 0 0}.shopify-upload-country-field #shopifyUploadCountryMsg{margin-top:5px}
.upload-review-description-field{display:grid;grid-column:1/-1}.upload-review-description-field textarea{min-height:150px}
.upload-review-source{grid-column:1/-1;margin-top:10px;border:1px solid var(--border);border-radius:12px;background:#f8fafc}.upload-review-source>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer;list-style:none}.upload-review-source>summary::-webkit-details-marker{display:none}.upload-review-source>summary>div{display:grid;gap:2px}.upload-review-source>summary strong{color:var(--navy);font-size:12px}.upload-review-source>summary span{color:var(--muted);font-size:10px}.upload-review-source-chevron{font-size:14px!important;transition:transform .15s}.upload-review-source[open] .upload-review-source-chevron{transform:rotate(180deg)}.upload-review-source-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px 0;border-top:1px solid var(--border)}.upload-review-source-toolbar span{color:var(--muted);font-size:10px}.upload-review-source-toolbar button{width:auto;margin:0;padding:6px 9px;font-size:10px}.upload-review-source-grid{padding:0 14px 14px}.upload-review-source input.source-locked,.upload-review-source textarea.source-locked,.upload-review-source select.source-locked,.upload-review-secondary-choice select.source-locked,.upload-fixed-field{border-color:transparent;background:#eef2f7;color:#58667a;cursor:default}.upload-review-primary-choice{margin-bottom:5px;padding:11px 12px;border:1px solid #aac9f7;border-radius:11px;background:#f3f8ff}.upload-review-primary-choice label{margin-top:0;color:#174f91}.upload-review-secondary-choice{max-width:760px}
.upload-review-media{order:-1}.upload-review-media-body{display:grid;grid-template-columns:1fr 1fr;gap:0}.upload-review-media-body>section{min-width:0;margin:0;padding:16px 18px 18px}.upload-review-media-body>section+section{border-left:1px solid var(--border)}.upload-review-media-body h2{margin:0 0 10px;font-size:15px}.upload-review-media-body form{padding:12px;border:1px dashed #b8c5d8;border-radius:11px;background:#f8fafc}.upload-review-media-body form label{margin-top:0}.upload-review-media-body form button{margin-top:9px}.upload-review-media-body .upload-photo-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
.upload-review-card .upload-ai-tags{margin:14px 0 0;padding:13px;border-radius:11px}.upload-review-card .upload-ai-tags .item-head{align-items:center}.upload-review-card .upload-ai-tags .item-head button{margin:0}.upload-ai-guidance{margin:7px 0 10px;line-height:1.45;white-space:pre-wrap}
.upload-review-save-bar{position:sticky;z-index:5;bottom:8px;display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:14px;padding:10px;border:1px solid var(--border);border-radius:13px;background:rgba(255,255,255,.94);box-shadow:0 8px 26px rgba(15,23,42,.13);backdrop-filter:blur(12px)}.upload-review-action-messages{flex:1}.upload-review-action-messages>div:empty{display:none}.upload-review-save-bar .message{margin:0}.upload-review-save-bar button{width:auto;min-width:185px;margin:0}.upload-review-save-bar #uploadEditBtn.secondary{border:1px solid var(--border);background:#edf2f7;color:#43516a}.upload-publish-primary{border-color:#d94d0c!important;background:#f1641e!important;color:#fff!important;box-shadow:0 5px 14px rgba(241,100,30,.25)}.upload-publish-primary:hover:not(:disabled){background:#d94d0c!important}.upload-publish-primary:disabled{box-shadow:none;opacity:.45}
.upload-review-panel>.item-head{align-items:center;padding-bottom:14px;border-bottom:1px solid var(--border)}.upload-review-panel>.item-head h2{margin:10px 0 4px;font-size:22px;line-height:1.25}.upload-review-panel>.upload-final-actions{display:flex;align-items:center;gap:12px;padding:16px 18px;border:1px solid var(--border);border-radius:15px;background:#fbfcfe}.upload-review-panel>.upload-final-actions>button{width:auto;margin:0}.upload-review-panel>.upload-final-actions>div{flex:1}

@media(max-width:820px){.top{align-items:flex-start}.account-tools{flex-wrap:wrap;justify-content:flex-end}.theme-toggle [data-theme-label]{display:none}.theme-toggle{width:38px}.account-chip{min-width:0}}
@media(max-width:820px){.upload-review-media-body,.upload-review-three-column{grid-template-columns:1fr}.upload-review-media-body>section+section{border-top:1px solid var(--border);border-left:0}.upload-review-source-heading{align-items:flex-start;flex-direction:column;gap:3px}}
@media(max-width:620px){.top{align-items:stretch;flex-direction:column}.account-tools{justify-content:space-between}.account-chip{flex:1}.settings-group-body{padding:8px}.settings-group-body .settings-section{padding:12px}.settings-section-heading{align-items:stretch;flex-direction:column}.brand-upload-row{grid-template-columns:1fr}.brand-preview{width:100%;height:92px}.settings-save-bar{align-items:stretch;flex-direction:column}.settings-save-bar button{width:100%}.upload-tag-editor-footer{align-items:flex-start;flex-direction:column;gap:2px}.upload-review-card-heading,.upload-review-card-body,.upload-review-media-body>section{padding-right:13px;padding-left:13px}.upload-review-source .grid2{grid-template-columns:1fr}.shopify-upload-size-control{grid-template-columns:1fr}.shopify-upload-size-control button{width:100%}.upload-review-save-bar{align-items:stretch;flex-direction:column}.upload-review-save-bar button{width:100%}.upload-review-panel>.upload-final-actions{align-items:stretch;flex-direction:column}.upload-review-panel>.upload-final-actions>button{width:100%}}

/* Theme controls */
.theme-toggle-icon{display:grid;width:20px;height:20px;flex:0 0 20px;place-items:center;color:currentColor}.theme-toggle-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.theme-toggle{min-height:39px;color:var(--text);font-weight:800}.login-theme .theme-toggle{background:rgba(255,255,255,.92);color:#18263a}

/* v1.3.205 ticket order results */
@media(max-width:820px){.theme-toggle{min-width:42px;height:42px;padding:0}.theme-toggle-icon{width:22px;height:22px}.theme-toggle-icon svg{width:20px;height:20px}}
