/* MXLAB Studio · presentation only. Workflow, storage and notifications unchanged. */
:root,:root[data-theme=dark]{--bg:#151917;--panel:#202622;--panel2:#2b332d;--text:#f3f1e9;--muted:#b0b8af;--line:#3b453d;--accent:#c0d8a6;--ink:#21301c;--accent-soft:rgba(192,216,166,.10);--danger:#f29296;--warning:#ecd29f;--blue:#afc8d3;--shadow:none}
:root[data-theme=light]{--bg:#f3f1e9;--panel:#fffef9;--panel2:#e5e9df;--text:#202b22;--muted:#566353;--line:#cbd2c5;--accent:#405f33;--ink:#fffef9;--accent-soft:rgba(64,95,51,.08);--shadow:none}
body{background:var(--bg)!important;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.45}
.ambient{display:none}
.app-shell{padding-left:20px!important;padding-right:20px!important;padding-top:calc(18px + var(--safe-t))!important}
.topbar{margin-bottom:23px!important;gap:12px}
.brand img{display:none}
.brand .eyebrow{font-size:14px;letter-spacing:.25em;color:var(--text);margin-bottom:9px}
.brand h1{font-family:Georgia,'Times New Roman',serif;font-size:32px!important;letter-spacing:-1px;line-height:1.12}
.brand #pageSubtitle{font-size:13px;white-space:normal;max-width:260px}
.icon-button{width:44px;height:44px;border-radius:50%;background:transparent!important;border:1px solid var(--line);box-shadow:none!important}
#quickAddButton{background:var(--accent)!important;color:var(--ink)!important;border:0}
.eyebrow,.kicker{color:var(--muted);letter-spacing:.12em;font-size:11px}
.primary,.primary-mini,.save{background:var(--accent)!important;color:var(--ink)!important;box-shadow:none!important;text-shadow:none!important;border-color:transparent!important}
.primary,.secondary{min-height:48px;border-radius:12px;font-size:15px;font-weight:650}
.secondary{background:var(--panel)!important;color:var(--text);border:1px solid var(--line);box-shadow:none!important}
button{touch-action:manipulation}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.search{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:12px;margin:18px 0 14px;padding:0 14px;box-shadow:none!important}
.search input{min-height:51px;font-size:16px!important}
input,select,textarea{font-size:16px!important}
.field input,.field select,.field textarea,.inline-field input,.inline-field select{background:var(--panel)!important;border-color:var(--line)!important;border-radius:10px!important;min-height:48px}
.field>span,.inline-field>span{font-size:14px!important;color:var(--muted)!important;letter-spacing:0!important;text-transform:none!important}
.field{margin-bottom:8px}
.hint,.workflow-step .hint{font-size:13px!important;line-height:1.55!important;color:var(--muted)}
.compact-metrics{gap:10px!important;margin:16px 0!important}
.compact-metrics article{background:transparent!important;box-shadow:none!important;border:0!important;border-right:1px solid var(--line)!important;border-radius:0!important;min-height:64px!important;padding:7px 12px!important;flex:1 0 100px}
.compact-metrics article:last-child{border-right:0!important}
.compact-metrics span{font-size:11px!important;min-height:26px!important;line-height:1.2!important}
.compact-metrics strong{font-size:21px!important;line-height:1.2!important}
.chips button,.segments button{font-size:13px!important;min-height:44px;border-radius:7px!important;background:transparent!important;color:var(--muted)!important;border:0!important;border-bottom:2px solid transparent!important;box-shadow:none!important}
.chips button.active,.segments button.active{color:var(--accent)!important;border-bottom-color:var(--accent)!important}
#workFilters{gap:4px!important;border-bottom:1px solid var(--line);padding-bottom:8px}
#liveFilters .primary-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.filter-more>summary{font-size:13px;padding:12px 0;background:none}
.list-head{font-size:13px;margin:16px 0}
.item-list{gap:0}
.item-card{grid-template-columns:108px minmax(0,1fr)!important;gap:17px!important;padding:20px 0!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.item-card .cover{width:108px!important;height:144px!important;border-radius:10px!important;background:var(--panel2)}
.item-top{display:block}.item-top h3{font-family:Georgia,'Times New Roman',serif;font-size:20px!important;line-height:1.22;white-space:normal!important;overflow-wrap:anywhere;margin:6px 0 8px}
.code{font-size:11px!important;letter-spacing:.1em;color:var(--muted)!important}
.stage{display:inline-block;font-size:11px!important;background:var(--accent-soft)!important;color:var(--accent)!important;padding:3px 7px;border-radius:5px;font-weight:600}
.meta{font-size:13px!important;line-height:1.5;max-height:none!important;overflow:visible!important;gap:5px 8px;margin:10px 0}
.meta span{font-size:12px!important}
.progress{height:2px!important;margin:12px 0!important;background:var(--line)!important}.progress b{background:var(--accent)!important;box-shadow:none!important}
.next{align-items:flex-start;flex-direction:column;gap:7px}.next p{font-size:12px!important;white-space:normal!important;line-height:1.4}
.next button{align-self:flex-end;min-height:44px;padding:8px 0;font-size:15px!important;color:var(--accent)!important}
.bottom-nav{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:none!important;padding:7px!important}
.bottom-nav button{background:transparent!important;color:var(--muted)!important;min-height:52px;box-shadow:none!important;border-radius:10px!important}
.bottom-nav button.active{background:var(--accent-soft)!important;color:var(--accent)!important}
.bottom-nav button span{font-size:11px!important}.bottom-nav .nav-icon,.bottom-nav .nav-icon svg{width:22px;height:22px}
.sheet,.sheet-content,.sheet-header,.sheet-body{background:var(--bg)!important;color:var(--text)}
.sheet-header{border-bottom:1px solid var(--line)!important;padding:16px!important;box-shadow:none!important}
.sheet-header h2{font-family:Georgia,'Times New Roman',serif;font-size:24px!important;line-height:1.2}
.sheet-header>button{min-width:44px;min-height:44px;background:var(--panel)!important;border-radius:50%;color:var(--text)}
.sheet-header>button.save{border-radius:10px;background:var(--accent)!important;color:var(--ink)!important}
.sheet-body{padding:20px 18px calc(24px + var(--safe-b))!important}
.stepper{padding:16px 10px!important;background:var(--bg)!important;border-bottom:1px solid var(--line);gap:3px!important}
.stepper button{padding:4px 0!important;background:transparent!important;color:var(--muted)!important;min-height:48px!important;border:0!important;box-shadow:none!important}
.stepper button small{display:block!important;font-size:10px!important;letter-spacing:0;line-height:1.3;margin-top:5px}
.stepper span{width:32px!important;height:32px!important;border:1px solid var(--line)!important;background:transparent!important;color:var(--muted)!important;box-shadow:none!important;font-size:14px!important}
.stepper button.active span{background:var(--accent)!important;color:var(--ink)!important;border-color:var(--accent)!important}
.stepper button.active small{color:var(--accent)!important}
.step-head h3{font-family:Georgia,'Times New Roman',serif;font-size:26px!important;line-height:1.2}.step-head{margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.optional-block,.quick-card,.measurements{background:transparent!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;padding:20px 0!important;margin:20px 0!important}
.optional-block h4,.measurements h4{font-family:Georgia,'Times New Roman',serif;font-size:21px!important;margin:0 0 16px}
.sheet-footer,.workflow-footer{background:var(--bg)!important;border-top:1px solid var(--line);box-shadow:none!important;padding:14px!important}
.photo-grid{gap:10px}.photo-tile{border-radius:10px;overflow:hidden}
#publishQuickFacts strong{font-family:Georgia,'Times New Roman',serif;font-size:23px}.quick-photo-strip img{width:92px;height:116px;border-radius:10px}
.published-card{background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;padding:20px 0!important;gap:14px!important}
.compact-published.published-card{grid-template-columns:92px minmax(0,1fr)!important}
.compact-published .published-cover{width:92px!important;height:122px!important;border-radius:10px}
.published-card h3{font-family:Georgia,'Times New Roman',serif;font-size:19px!important;white-space:normal!important;line-height:1.3}
.published-top time{font-size:11px!important}.published-facts{flex-wrap:wrap}.published-facts span{font-size:11px!important}
.published-actions button,.card-buttons button,.platform-tools button{font-size:13px!important;min-height:44px!important;border-radius:9px!important}
.platform-card,.calendar-row,.settings,.quick-tool,.diagnostics-summary,.diagnostics-grid>article{background:var(--panel)!important;border-color:var(--line)!important;box-shadow:none!important}
.quick-tool{min-height:78px}.quick-tool strong{font-size:14px!important}.quick-tool small{font-size:12px!important}
.settings-disclosure>summary,.analytics-details>summary{font-size:15px!important;min-height:54px;background:var(--panel)!important;border-color:var(--line)!important}
.settings-disclosure>button,.settings>button{font-size:15px!important;min-height:56px}
.research-fact{padding:10px 0;border-bottom:1px solid var(--line)}.research-fact small{font-size:13px}.research-fact span{font-size:16px}
.backup-reminder{background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0;margin:0 0 14px;padding:10px 0;text-align:left;font-size:12px}
.save-state{font-size:12px!important;background:var(--bg)!important;color:var(--muted);padding:8px 0}
@media(max-width:360px){.app-shell{padding-left:14px!important;padding-right:14px!important}.item-card{grid-template-columns:88px minmax(0,1fr)!important;gap:12px!important}.item-card .cover{width:88px!important;height:120px!important}.brand h1{font-size:27px!important}.item-top h3{font-size:18px!important}.stepper button small{font-size:9px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.resume-item{font:inherit!important;color:inherit!important;background:transparent!important;border:0!important;padding:0!important;text-align:left;line-height:inherit;min-height:44px;display:block;width:100%}.resume-item:active{color:var(--accent)!important}

.app-update-notice{position:fixed;top:calc(12px + var(--safe-t));left:16px;right:16px;z-index:90;display:flex;gap:12px;align-items:center;justify-content:space-between;background:var(--panel);color:var(--text);border:1px solid var(--accent);border-radius:12px;padding:12px 14px;font-size:14px}.app-update-notice[hidden],body.dialog-open .app-update-notice{display:none}.app-update-notice button{min-height:44px;padding:10px 16px;border-radius:9px}

.money{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:12px!important;padding:0 14px!important;box-shadow:none!important;gap:10px;overflow:hidden}.field .money input{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;flex:1;min-width:0}.money span{background:transparent!important;color:var(--muted)!important}.money:focus-within{border-color:var(--accent)!important}.money input:focus-visible{outline:none!important}.research-main-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.research-main-actions #openVintedSearchButton{grid-column:1/-1}.research-main-actions button{min-height:48px}.research-details{border-bottom:1px solid var(--line);margin:12px 0;padding:0}.research-details>summary{padding:12px 0;color:var(--muted);font-size:14px;min-height:44px;cursor:pointer}.research-details .quick-card{margin:0!important;padding:12px 0!important;border-top:0!important}.research-details .hint{margin:10px 0}.research-details textarea{min-height:150px}.research-details #copyResearchPromptButton{margin:12px 0}[data-workflow-step="2"] #priceAiStatusText{margin:10px 0}[data-workflow-step="2"] #pricePendingText:empty{display:none}[data-workflow-step="2"] #waitPriceButton{margin:4px 0 12px}[data-workflow-step="2"] #saveTargetButton{display:none!important}

/* Scout camera → Safari → imported market data */
.business-finance{padding:12px 0}.finance-month{max-width:270px}.finance-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.finance-summary article{display:grid;gap:8px;padding:12px 0;border-top:1px solid var(--line);min-width:0}.finance-summary span{font-size:13px;color:var(--muted)}.finance-summary strong{font-size:20px;overflow-wrap:anywhere}.finance-summary>.hint{grid-column:1/-1}.finance-history>summary,.finance-expenses>summary,.finance-calculations>summary,#archivedExpenses>summary{cursor:pointer;min-height:46px;display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--muted);border-top:1px solid var(--line);list-style:none}.finance-history>summary::after,.finance-expenses>summary::after,.finance-calculations>summary::after,#archivedExpenses>summary::after{content:'＋'}.finance-history[open]>summary::after,.finance-expenses[open]>summary::after,.finance-calculations[open]>summary::after,#archivedExpenses[open]>summary::after{content:'−'}.expense-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px 0;border-top:1px solid var(--line);font-size:14px}.expense-row>div:first-child{display:grid;gap:5px;overflow-wrap:anywhere}.expense-row small{font-size:12px;color:var(--muted)}.expense-actions{grid-column:1/-1;display:flex;gap:12px}.expense-actions button{font-size:13px;min-height:40px;background:transparent;border:1px solid var(--line);border-radius:10px;padding:7px 12px;color:var(--text)}.finance-line{display:flex;justify-content:space-between;gap:15px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}.finance-line span{color:var(--muted)}.finance-line strong{white-space:nowrap}.business-finance>.button-grid{margin:14px 0}.business-finance input,.business-finance select{font-size:16px}@media(max-width:430px){.finance-summary{grid-template-columns:1fr 1fr}.finance-summary article:last-of-type{grid-column:1/-1}}
.batch-tools{border-bottom:1px solid var(--line);margin:8px 0 16px;padding:0 4px}.batch-tools>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:14px;list-style:none}.batch-tools>summary::after{content:'＋'}.batch-tools[open]>summary::after{content:'−'}.batch-tools>.field{margin:12px 0}.batch-tools>button{margin:8px 0;min-height:44px}.batch-tools>.button-grid{margin:10px 0}.batch-tools input,.batch-tools select{font-size:16px}.batch-queue-bar{grid-column:1/-1;display:grid;gap:8px;min-width:0}.batch-queue-bar[hidden]{display:none!important}.batch-queue-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.batch-queue-heading strong{font-size:13px}.batch-queue-heading button{font-size:12px!important;min-height:32px!important;padding:4px!important;flex-shrink:0}.batch-queue-actions{display:grid;grid-template-columns:1fr 1.6fr;gap:8px}.batch-queue-actions button{font-size:14px!important;min-width:0;white-space:normal}.batch-cost-preview{padding:12px;background:var(--panel2);border-radius:12px;font-size:15px;line-height:1.5}
.sale-state{display:inline-flex;margin:6px 0 2px;padding:4px 9px;border:1px solid var(--line);border-radius:20px;font-size:12px;color:var(--accent)}.sale-state.sale-issue{color:var(--text);background:var(--panel2)}.sold-compact-card>.sale-next{grid-column:1/-1;min-height:44px;margin-top:8px}.sold-details .field{margin:10px 0}.sold-details .grid{gap:10px}.sold-details textarea{font-size:16px!important;min-height:70px}.sold-details>button{margin-top:10px;min-height:44px}.sale-payment-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.sale-payment-summary>div{display:grid;gap:5px}.sale-payment-summary span{font-size:13px;color:var(--muted)}.sale-payment-summary strong{font-size:21px}.sale-payment-summary>.hint{grid-column:1/-1;margin:0;font-size:13px}.sale-history-entry{padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}.sale-history-entry p{margin:5px 0;color:var(--muted);overflow-wrap:anywhere}
.storage-location{font-size:13px;color:var(--muted);margin:6px 0;overflow-wrap:anywhere}.backup-health{margin:12px 14px!important;font-size:14px}.backup-details{display:grid;gap:8px}.backup-details>div{display:grid;gap:3px;padding:6px 0}.backup-details strong{font-size:14px}.backup-details span{font-size:13px;color:var(--muted);overflow-wrap:anywhere}.backup-options{padding:0 14px 8px;border-top:1px solid var(--line)}.backup-options>summary,.backup-meta>summary{cursor:pointer;min-height:48px;display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--muted);list-style:none}.backup-options>summary::after,.backup-meta>summary::after{content:'＋'}.backup-options[open]>summary::after,.backup-meta[open]>summary::after{content:'−'}.backup-options>button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:60px;padding:12px 0;text-align:left;background:transparent;border:0;border-top:1px solid var(--line);color:var(--text)}.backup-options>button>span{display:grid;gap:4px}.backup-options>button strong{font-size:15px}.backup-options>button small{font-size:13px;color:var(--muted)}.backup-meta{border-top:1px solid var(--line)}.backup-verification{white-space:pre-line;overflow-wrap:anywhere;padding:12px;border:1px solid var(--line);border-radius:12px}
.scout-market-panel{display:grid;gap:14px;margin-bottom:24px}.scout-market-panel[hidden]{display:none!important}.scout-market-panel h3{font-size:19px;margin:10px 0 0}.scout-market-panel input,.scout-market-panel select,.scout-market-panel textarea{font-size:16px;min-width:0}.scout-market-panel a.primary{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;padding:14px;border-radius:16px}.scout-market-panel .hint{white-space:pre-line;overflow-wrap:anywhere}.scout-market-panel .button-grid>*{min-width:0}.scout-comparison{display:grid;gap:8px;padding:16px 0;border-bottom:1px solid var(--line,#485242)}.scout-comparison a{color:inherit;overflow-wrap:anywhere}.scout-comparison small{display:block}.scout-market-panel .scout-photo-empty{padding:18px}.scout-market-panel .scout-photo-grid:empty{display:none}

