:root {
  --ink: #13253a;
  --muted: #6f7f91;
  --line: #dfe7ef;
  --line-strong: #cbd7e3;
  --page: #f3f6f9;
  --panel: #ffffff;
  --navy: #12263b;
  --navy-soft: #1c354e;
  --teal: #087f74;
  --teal-dark: #05685f;
  --teal-soft: #e8f7f4;
  --amber: #d58b18;
  --red: #c24a4a;
  --shadow: 0 8px 30px rgba(20, 40, 60, .07);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--navy); color: #fff; padding: 24px 18px 18px; display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark { width: 42px; height: 42px; border-radius: 11px; background: #11a497; display: grid; place-items: center; font-weight: 900; font-size: 17px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.brand strong { display: block; font-size: 17px; letter-spacing: .5px; }
.brand span { color: #94a9bd; display: block; font-size: 10px; margin-top: 3px; }
.side-nav { display: grid; gap: 7px; margin-top: 25px; }
.nav-item { border: 0; border-radius: 9px; background: transparent; color: #adc0d1; padding: 12px 13px; display: flex; align-items: center; gap: 12px; text-align: left; }
.nav-item > span { width: 24px; font-size: 19px; color: #8aa2b8; }
.nav-item:hover:not(.disabled), .nav-item.active { background: var(--navy-soft); color: #fff; }
.nav-item.active { box-shadow: inset 3px 0 #2bb5a6; }
.nav-item.active > span { color: #32c5b5; }
.nav-item em { margin-left: auto; font-style: normal; font-size: 9px; color: #7f94a8; }
.side-guide { margin-top: auto; padding: 15px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: rgba(255,255,255,.04); }
.guide-icon { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #72d6cc; border: 1px solid #4ea89f; margin-bottom: 9px; font-weight: 700; }
.side-guide strong { font-size: 12px; }
.side-guide p { color: #91a7ba; line-height: 1.65; font-size: 11px; margin: 7px 0 0; }
.side-footer { color: #8197aa; font-size: 10px; padding: 18px 5px 0; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #38c9a8; margin-right: 6px; box-shadow: 0 0 8px #38c9a8; }

.main { min-width: 0; }
.topbar { height: 92px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 0 32px; position: sticky; top: 0; z-index: 8; backdrop-filter: blur(12px); }
.eyebrow { margin: 0 0 3px; color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
h1 { font-size: 24px; margin: 0; letter-spacing: -.5px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.local-badge { color: #567081; border: 1px solid var(--line); border-radius: 999px; background: #fafcfd; padding: 8px 12px; font-size: 11px; }
.local-badge span { width: 7px; height: 7px; border-radius: 50%; background: #1faf8b; display: inline-block; margin-right: 7px; }
.icon-button { border: 1px solid var(--line); background: #fff; width: 35px; height: 35px; border-radius: 9px; color: var(--ink); font-size: 18px; }
.icon-button:hover { border-color: #9fb2c3; }
.content { padding: 25px 30px 42px; max-width: 1760px; margin: 0 auto; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 17px; }
.stat-card { padding: 17px 19px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 6px rgba(30,50,70,.02); position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 74px; height: 74px; border-radius: 50%; background: #f1f7f7; right: -22px; top: -26px; }
.stat-card span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.stat-card strong { display: block; font-size: 25px; line-height: 1.2; }
.stat-card small { color: #92a0ae; font-size: 10px; }

.connection-panel { margin-bottom: 18px; scroll-margin-top: 108px; overflow: hidden; }
.connection-head { min-height: 75px; display: flex; align-items: center; gap: 13px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.connection-head .meli-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #163b72; background: #ffe600; font: 900 20px Georgia, serif; box-shadow: inset 0 0 0 1px rgba(15,50,90,.1); }
.connection-head h2 { margin: 0; font-size: 17px; }
.connection-head p:not(.eyebrow) { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.connection-status { margin-left: auto; border-radius: 999px; padding: 6px 11px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.connection-status.pending { color: #6c7986; background: #eef2f5; }
.connection-status.ready { color: #8b630e; background: #fff3ce; }
.connection-status.connected { color: #087469; background: #e3f7f3; }
.connection-status.error { color: #9a3535; background: #fde9e9; }

.connection-progress { display: flex; align-items: center; padding: 12px 20px; background: #fafcfd; border-bottom: 1px solid var(--line); color: #8a98a6; font-size: 9px; }
.connection-progress span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.connection-progress b { width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: #e8edf2; color: #7b8a98; font-size: 9px; }
.connection-progress span.done { color: var(--teal); font-weight: 700; }
.connection-progress span.done b { color: #fff; background: var(--teal); }
.connection-progress i { height: 1px; min-width: 25px; flex: 1; margin: 0 10px; background: #dce4eb; }

.connection-grid { display: grid; grid-template-columns: minmax(330px, .92fr) minmax(420px, 1.08fr); }
.connection-form, .developer-settings { padding: 18px 20px 20px; }
.connection-form { display: grid; gap: 12px; border-right: 1px solid var(--line); }
.section-label { display: flex; align-items: center; justify-content: space-between; min-height: 20px; margin-bottom: 1px; }
.section-label > span { color: #334b60; font-size: 11px; font-weight: 800; }
.section-label a { color: var(--teal); font-size: 9px; font-weight: 700; text-decoration: none; }
.section-label small { color: #8d9aa7; font-size: 8px; }
.connection-form > label { display: grid; gap: 5px; }
.connection-form > label > span { color: #596c7e; font-size: 9px; font-weight: 700; }
.connection-form input:not([type="checkbox"]) { width: 100%; height: 39px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 11px; outline: none; background: #fbfcfd; color: var(--ink); }
.connection-form input:not([type="checkbox"]):focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(8,127,116,.08); }
.connection-form label small { color: #8b99a6; font-size: 8px; }
.secret-input { display: flex; border: 1px solid var(--line-strong); border-radius: 8px; background: #fbfcfd; overflow: hidden; }
.secret-input:focus-within { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(8,127,116,.08); }
.secret-input input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
.secret-input button { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--teal); padding: 0 11px; font-size: 9px; }
.pkce-option { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px !important; padding: 10px 11px; border: 1px solid #cfe6e2; border-radius: 8px; background: #f3faf9; }
.pkce-option input { accent-color: var(--teal); }
.pkce-option span { display: grid; gap: 1px; }
.pkce-option strong { color: #3f625e; font-size: 9px; }
.connection-actions { display: flex; gap: 8px; padding-top: 2px; }
.connection-actions button { flex: 1; }

.developer-settings { background: #fbfcfd; }
.copy-field { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; padding: 11px 12px; margin-top: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.copy-field > span { grid-column: 1 / -1; color: #7a8997; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.copy-field code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #31546e; font: 9px/24px Consolas, monospace; }
.copy-field button { border: 0; border-radius: 5px; background: #e9f5f3; color: var(--teal); padding: 0 9px; font-size: 8px; font-weight: 700; }
.settings-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.settings-checklist > div { min-width: 0; padding: 9px 10px; border-radius: 7px; background: #f0f4f7; display: grid; gap: 2px; }
.settings-checklist span { color: #8996a2; font-size: 8px; }
.settings-checklist strong { color: #43586b; font-size: 9px; overflow-wrap: anywhere; }
.settings-checklist small { color: #7e8e9d; font-size: 8px; line-height: 1.4; }
.account-note { margin: 11px 0 0; padding: 8px 10px; border-left: 3px solid #e4b44c; background: #fff9e8; color: #7e632b; font-size: 8px; line-height: 1.6; }

.connection-result { border-top: 1px solid var(--line); padding: 13px 20px; background: #f6fbfa; }
.connected-shop { display: flex; align-items: center; gap: 11px; }
.shop-avatar { width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-weight: 800; }
.connected-shop > div:nth-child(2) { display: grid; gap: 2px; }
.connected-shop span, .connected-shop small { color: #7c8b97; font-size: 8px; }
.connected-shop strong { color: #263f52; font-size: 11px; }
.webhook-count { margin-left: auto; padding: 0 18px; border-left: 1px solid #d9e9e6; display: grid; gap: 1px; text-align: right; }
.webhook-count strong { color: var(--teal); font-size: 16px; }
.result-actions { display: flex; align-items: center; gap: 3px; }
.result-actions .secondary-button { min-height: 34px; font-size: 9px; }
.result-actions .text-button { font-size: 9px; }
.text-button.danger { color: #a64040; }
.connection-error { display: grid; gap: 3px; padding: 10px; border-radius: 8px; color: #8f3e3e; background: #fff0f0; font-size: 9px; }
.self-check { margin-top: 12px; padding-top: 12px; border-top: 1px solid #dce9e7; }
.self-check-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.self-check-head strong { font-size: 10px; }
.self-check-head span { color: #7d8e8b; font-size: 8px; }
.check-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.check-item { display: flex; gap: 7px; padding: 8px; background: #fff; border: 1px solid #dfe8e6; border-radius: 7px; min-width: 0; }
.check-item > b { flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #98a5af; font-size: 9px; }
.check-item.pass > b { background: var(--teal); }
.check-item.warn > b { background: #d89b25; }
.check-item.fail > b { background: #c14b4b; }
.check-item span { display: grid; gap: 2px; min-width: 0; }
.check-item strong { font-size: 8px; }
.check-item small { color: #778a89; font-size: 7px; line-height: 1.45; overflow-wrap: anywhere; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.collector { padding: 19px 21px 18px; margin-bottom: 18px; scroll-margin-top: 108px; }
.panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.heading-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); font-size: 21px; display: grid; place-items: center; }
.panel-heading h2, .catalog-head h2 { margin: 0; font-size: 16px; }
.panel-heading p, .catalog-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.panel-heading .text-button { margin-left: auto; }
.text-button { border: 0; background: transparent; color: var(--teal); font-weight: 600; padding: 7px 9px; }
.text-button:hover { color: var(--teal-dark); }
.url-row { display: flex; gap: 10px; }
.url-input { height: 45px; display: flex; flex: 1; align-items: center; gap: 9px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 0 13px; background: #fbfcfd; transition: .2s; }
.url-input:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,116,.1); background: #fff; }
.url-input span { opacity: .6; font-size: 13px; }
.url-input input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; color: var(--ink); }
.primary-button, .secondary-button { min-height: 39px; border-radius: 9px; padding: 0 17px; font-weight: 700; border: 1px solid transparent; }
.primary-button { background: var(--teal); color: #fff; min-width: 132px; box-shadow: 0 5px 13px rgba(8,127,116,.2); }
.primary-button:hover { background: var(--teal-dark); }
.primary-button span { font-size: 10px; margin-right: 6px; }
.secondary-button { background: #fff; border-color: var(--line-strong); color: #43576a; }
.secondary-button:hover { background: #f6f9fb; border-color: #9fb3c5; }
.advanced { margin-top: 13px; padding: 14px; border-radius: 10px; background: #f7f9fb; border: 1px solid #e6ebf0; display: flex; gap: 14px; align-items: stretch; }
.advanced[hidden] { display: none; }
.advanced > label:not(.check-card) { display: grid; grid-template-columns: 105px; gap: 5px; }
.advanced label > span { font-size: 11px; color: #536678; font-weight: 600; }
.advanced input[type="number"] { height: 34px; border: 1px solid var(--line-strong); border-radius: 7px; padding: 0 9px; outline: 0; }
.advanced small { color: #8c9aaa; font-size: 9px; }
.collection-types { display: grid; align-content: start; gap: 5px; min-width: 175px; padding: 2px 14px; border-left: 1px solid var(--line); }
.collection-types > span { font-size: 11px; color: #536678; font-weight: 600; }
.collection-types label { display: flex; align-items: center; gap: 6px; color: #536678; font-size: 10px; }
.collection-types input { accent-color: var(--teal); }
.remote-media-note { display: grid; align-content: center; gap: 3px; padding-left: 14px; border-left: 1px solid var(--line); min-width: 190px; }
.remote-media-note strong { color: #536678; font-size: 11px; }
.remote-media-note small { display: block; }
.check-card { display: flex; align-items: center; gap: 10px; padding: 7px 15px; border-left: 1px solid var(--line); }
.check-card input { accent-color: var(--teal); }
.check-card span { display: block; }
.check-card strong, .check-card small { display: block; }
.check-card strong { font-size: 11px; color: #536678; }
.token-card { display: grid; grid-template-columns: minmax(190px, 280px); gap: 5px; padding-left: 15px; border-left: 1px solid var(--line); }
.token-card input { height: 34px; border: 1px solid var(--line-strong); border-radius: 7px; padding: 0 9px; outline: 0; }
.browser-assist { margin-top: 14px; border: 1px solid #bfe1dc; border-radius: 11px; background: linear-gradient(115deg,#f3fbfa,#fbfdfd); padding: 14px; display: flex; align-items: center; gap: 13px; }
.browser-assist-icon { flex: 0 0 auto; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: #dff5f1; color: var(--teal); font-size: 22px; }
.browser-assist-copy { flex: 1; min-width: 0; }
.browser-assist-copy h3 { display: inline; margin: 0 0 0 7px; font-size: 13px; }
.browser-assist-copy p { margin: 4px 0 8px; color: #64798a; font-size: 10px; }
.recommended { color: #fff; background: var(--teal); border-radius: 4px; padding: 3px 6px; font-size: 8px; font-weight: 700; }
.browser-steps { display: flex; align-items: center; gap: 7px; color: #536b7a; font-size: 9px; margin-bottom: 8px; }
.browser-steps span { display: flex; align-items: center; gap: 4px; }
.browser-steps b { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: var(--teal); background: #ddf1ee; }
.browser-steps i { color: #98aaa8; font-style: normal; }
.extension-path { display: inline-flex; align-items: center; gap: 5px; border: 1px dashed #b6cbc8; border-radius: 6px; background: #fff; padding: 4px 5px 4px 8px; }
.extension-path code { color: #47636c; font-size: 9px; }
.extension-path button,.extension-path a { border: 0; border-radius: 4px; background: #e9f5f3; color: var(--teal); font-size: 8px; font-weight: 800; padding: 4px 7px; text-decoration: none; }
.extension-guide { border: 1px solid var(--line); border-top: 0; margin: -4px 8px 0; padding: 13px 17px 11px; border-radius: 0 0 9px 9px; background: #fafcfd; color: #536878; font-size: 10px; }
.extension-guide[hidden] { display: none; }
.extension-guide ol { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.extension-guide p { margin: 8px 0 0; color: #8a6a2d; }
.job-box { margin-top: 15px; border: 1px solid #cfe6e2; border-radius: 10px; background: #f5fbfa; padding: 14px; }
.job-top { display: flex; align-items: center; gap: 10px; }
.job-top strong { font-size: 12px; }
.job-top p { margin: 2px 0 0; font-size: 10px; color: #6b817f; max-width: 720px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-status { margin-left: auto; font-size: 10px; border-radius: 999px; padding: 5px 9px; background: #dff4f0; color: #077569; font-weight: 700; }
.job-status.failed { color: #a53838; background: #fdeaea; }
.job-status.completed { color: #276744; background: #e7f4eb; }
.stop-button { border: 1px solid #e0b6b6; background: #fff; color: #aa3f3f; border-radius: 7px; padding: 5px 10px; font-size: 10px; }
.progress-track { height: 7px; border-radius: 999px; background: #dce9e7; overflow: hidden; margin: 11px 0 6px; }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b8f82, #37b9a8); min-width: 2%; transition: width .35s; }
.job-meta { display: flex; justify-content: space-between; color: #718582; font-size: 10px; }
.variant-failures { border-top: 1px solid #f0d7d7; background: #fffafa; }
.variant-failures h3 { color: #a24343; }
.job-logs { margin: 10px 0 0; max-height: 95px; overflow: auto; border-top: 1px solid #dfece9; padding-top: 7px; }
.job-log { display: flex; gap: 8px; padding: 3px 0; color: #657a78; font-size: 9px; }
.job-log b { min-width: 36px; text-transform: uppercase; color: #4d716d; }
.job-log.error { color: #a24343; }

.catalog { overflow: hidden; }
.catalog-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 13px; }
.view-toggle { display: flex; padding: 3px; background: #eef2f5; border-radius: 8px; }
.view-toggle button { border: 0; background: transparent; border-radius: 6px; width: 30px; height: 27px; color: #788a99; }
.view-toggle button.active { background: #fff; color: var(--teal); box-shadow: 0 1px 4px rgba(40,60,80,.12); }
.toolbar { padding: 11px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; background: #fbfcfd; }
.search-box { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; flex: 1; min-width: 200px; }
.search-box span { color: #799; font-size: 20px; }
.search-box input { border: 0; outline: 0; min-width: 0; width: 100%; }
.filter-control, .price-filter { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.filter-control > span, .price-filter > span { color: #8a98a6; font-size: 9px; text-transform: uppercase; }
.filter-control select { border: 0; outline: 0; background: #fff; color: #405568; max-width: 112px; }
.price-filter input { border: 0; outline: 0; width: 62px; }
.price-filter i { color: #aab5bf; font-style: normal; }
.toolbar .secondary-button { min-height: 38px; padding: 0 12px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 1px; background: var(--line); }
.product-card { min-width: 0; background: #fff; padding: 12px; transition: transform .18s, box-shadow .18s; position: relative; cursor: pointer; }
.product-card:hover { z-index: 2; box-shadow: 0 8px 24px rgba(25,50,75,.14); transform: translateY(-2px); }
.product-image { aspect-ratio: 1 / 1; border: 1px solid #e1e7ec; background: #f5f7f9; overflow: hidden; position: relative; display: grid; place-items: center; }
.product-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-image .image-count { position: absolute; right: 7px; bottom: 7px; background: rgba(16,34,51,.78); color: #fff; padding: 4px 7px; border-radius: 6px; font-size: 9px; backdrop-filter: blur(4px); }
.product-badges { position: absolute; left: 7px; top: 7px; display: flex; gap: 4px; flex-wrap: wrap; }
.product-badge { padding: 3px 6px; border-radius: 4px; color: #075e56; background: rgba(229,248,244,.94); font-weight: 700; font-size: 8px; border: 1px solid rgba(8,127,116,.12); }
.product-badge.partial { color: #915f10; background: #fff5dd; }
.product-info { padding: 11px 3px 3px; }
.price-line { display: flex; align-items: baseline; gap: 7px; margin-bottom: 6px; }
.product-price { color: #0b3377; font-family: Georgia, serif; font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.original-price { color: #96a0a9; text-decoration: line-through; font-size: 10px; }
.product-title { margin: 0; min-height: 42px; color: #263b4f; line-height: 1.45; font-size: 12px; font-weight: 600; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.product-id { color: #8a98a6; font-size: 9px; margin: 6px 0 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-flags { display: flex; gap: 5px; flex-wrap: wrap; min-height: 20px; }
.data-flag { border-radius: 4px; padding: 3px 5px; background: #f0f4f7; color: #687b8c; font-size: 8px; }
.data-flag.on { background: #e8f6f3; color: #08776d; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding-top: 8px; border-top: 1px solid #eef2f5; color: #81909e; font-size: 9px; }
.card-foot button { border: 0; background: transparent; color: var(--teal); font-weight: 700; padding: 0; }
.empty-state { text-align: center; padding: 70px 20px 78px; }
.empty-illustration { width: 80px; height: 80px; border-radius: 24px; background: #eaf4f3; color: var(--teal); display: grid; place-items: center; margin: 0 auto 17px; font-size: 35px; transform: rotate(-3deg); }
.empty-state h3 { margin: 0 0 7px; font-size: 17px; }
.empty-state p { color: var(--muted); margin: 0 auto 17px; max-width: 480px; font-size: 12px; }
.empty-state .text-button { margin-left: 5px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 62px; border-top: 1px solid var(--line); }
.pagination:empty { display: none; }
.pagination button { min-width: 32px; height: 31px; border: 1px solid var(--line-strong); background: #fff; border-radius: 7px; color: #566a7b; }
.pagination button.active { color: #fff; background: var(--teal); border-color: var(--teal); }
.pagination button:hover:not(:disabled):not(.active) { background: #f0f5f6; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(8,20,32,.48); z-index: 30; backdrop-filter: blur(2px); }
.product-drawer { position: fixed; z-index: 31; right: 0; top: 0; bottom: 0; width: min(760px, 94vw); background: #fff; transform: translateX(102%); transition: transform .25s ease; box-shadow: -15px 0 45px rgba(10,30,50,.2); display: flex; flex-direction: column; }
.product-drawer.open { transform: translateX(0); }
.drawer-top { height: 58px; flex: 0 0 auto; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 0 20px; font-weight: 700; }
.drawer-top button { border: 0; background: #f0f3f6; color: #405569; width: 31px; height: 31px; border-radius: 50%; font-size: 21px; line-height: 1; }
.drawer-body { overflow: auto; flex: 1; }
.drawer-loading { display: grid; place-items: center; min-height: 400px; color: var(--muted); }
.detail-hero { padding: 20px; display: grid; grid-template-columns: 260px 1fr; gap: 22px; border-bottom: 1px solid var(--line); }
.detail-main-image { aspect-ratio: 1; border: 1px solid var(--line); background: #f7f9fa; display: grid; place-items: center; }
.detail-main-image img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 7px; padding-bottom: 2px; }
.thumb { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 5px; padding: 2px; background: #fff; }
.thumb.active { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-kicker { font-size: 9px; color: var(--teal); font-weight: 700; letter-spacing: .8px; }
.detail-title { font-size: 18px; line-height: 1.45; margin: 7px 0 10px; }
.detail-price { font-family: Georgia, serif; font-size: 28px; font-weight: 800; color: #0b3377; margin-bottom: 15px; }
.detail-price del { color: #9ca7b1; font-family: inherit; font-size: 12px; margin-left: 8px; }
.detail-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-meta { padding: 8px 9px; border-radius: 7px; background: #f5f7f9; }
.detail-meta span { color: #8c99a5; font-size: 8px; display: block; margin-bottom: 2px; }
.detail-meta strong { color: #45596b; font-size: 10px; overflow-wrap: anywhere; }
.source-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; color: var(--teal); font-weight: 700; text-decoration: none; font-size: 11px; }
.detail-tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--line); padding: 0 20px; position: sticky; top: 0; background: rgba(255,255,255,.96); z-index: 2; }
.detail-tabs button { border: 0; background: transparent; padding: 13px 12px 11px; color: #768696; font-size: 11px; border-bottom: 2px solid transparent; }
.detail-tabs button.active { color: var(--teal); border-color: var(--teal); font-weight: 700; }
.detail-section { padding: 20px; }
.detail-section h3 { margin: 0 0 12px; font-size: 13px; }
.description { white-space: pre-wrap; line-height: 1.75; color: #4e6071; background: #f8fafb; border-radius: 9px; padding: 14px; font-size: 11px; max-height: 300px; overflow: auto; }
.info-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.info-table th, .info-table td { padding: 9px 10px; border-bottom: 1px solid #e8edf1; text-align: left; vertical-align: top; }
.info-table th { color: #7d8b98; width: 30%; font-weight: 500; background: #fafbfc; }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.media-tile { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #f6f8fa; }
.media-tile img { width: 100%; height: 100%; object-fit: contain; }
.video-list { margin-top: 18px; display: grid; gap: 7px; }
.video-item { padding: 10px; border: 1px solid var(--line); border-radius: 7px; display: flex; justify-content: space-between; gap: 10px; }
.video-item a { color: var(--teal); }
.raw-json { border-radius: 8px; background: #112536; color: #c8dce7; padding: 15px; font: 10px/1.6 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 550px; overflow: auto; }
.toast-stack { position: fixed; z-index: 50; right: 22px; bottom: 22px; display: grid; gap: 8px; }
.toast { min-width: 250px; max-width: 390px; color: #fff; background: #173047; border-radius: 9px; padding: 12px 14px; box-shadow: 0 10px 28px rgba(10,30,50,.25); animation: toast-in .2s ease; font-size: 11px; }
.toast.error { background: #9a3b3b; }
.toast.success { background: #08776d; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1120px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { flex-wrap: wrap; }
  .search-box { flex-basis: 100%; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .connection-grid { grid-template-columns: 1fr; }
  .connection-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .check-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { height: 75px; padding: 0 16px; }
  .content { padding: 14px; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 14px; }
  .url-row { flex-direction: column; }
  .advanced { flex-direction: column; }
  .check-card { border-left: 0; padding-left: 0; }
  .token-card { border-left: 0; padding-left: 0; grid-template-columns: 1fr; }
  .collection-types, .remote-media-note { border-left: 0; padding-left: 0; }
  .browser-assist { align-items: flex-start; flex-wrap: wrap; }
  .browser-assist .secondary-button { width: 100%; }
  .browser-steps { flex-wrap: wrap; }
  .extension-path { max-width: 100%; }
  .extension-path code { overflow: hidden; text-overflow: ellipsis; }
  .filter-control, .price-filter { flex: 1; }
  .sort-control { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-card { padding: 8px; }
  .product-price { font-size: 18px; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-media { max-width: 330px; margin: auto; }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  .connection-progress { overflow-x: auto; }
  .connection-progress { scrollbar-width: none; }
  .connection-progress::-webkit-scrollbar { display: none; }
  .connection-progress i { flex: 0 0 22px; }
  .connection-form, .developer-settings { padding: 15px; }
  .settings-checklist { grid-template-columns: 1fr; }
  .connected-shop { align-items: flex-start; flex-wrap: wrap; }
  .webhook-count { margin-left: 0; border-left: 0; padding: 0; text-align: left; }
  .result-actions { flex-basis: 100%; }
  .check-grid { grid-template-columns: 1fr; }
}

/* 2026 collection workspace refresh */
.content { display: flex; flex-direction: column; }
.stats-grid { order: 1; }
.collection-workspace { order: 2; }
.connection-panel { order: 3; }
.catalog { order: 4; }
.collection-workspace { padding: 0; overflow: hidden; border-color: #d8e5e6; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.workspace-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.4px; }
.workspace-heading p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.workspace-badges { display: flex; align-items: center; gap: 7px; }
.workspace-badges span { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; border: 1px solid #d8e4e5; border-radius: 999px; color: #58717c; background: #fbfdfd; font-size: 9px; font-weight: 700; }
.workspace-badges i { width: 7px; height: 7px; border-radius: 50%; background: #25b896; box-shadow: 0 0 8px rgba(37,184,150,.55); }
.capture-hero { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.72fr); margin: 18px; border-radius: 17px; overflow: hidden; background: #102c3f; color: #fff; box-shadow: 0 15px 35px rgba(16,44,63,.15); }
.capture-primary { padding: 28px 30px 25px; position: relative; }
.capture-primary::after { content: "GM"; position: absolute; right: 24px; top: 2px; color: rgba(255,255,255,.035); font-size: 120px; line-height: 1; font-weight: 900; pointer-events: none; }
.feature-tag { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 999px; color: #8de4d6; background: rgba(33,201,177,.12); border: 1px solid rgba(88,220,201,.26); font-size: 8px; font-weight: 800; letter-spacing: .5px; }
.capture-primary h3 { position: relative; margin: 14px 0 7px; font-size: 24px; letter-spacing: -.6px; }
.capture-primary > p { position: relative; max-width: 680px; margin: 0; color: #b7cad5; font-size: 11px; line-height: 1.75; }
.detail-url-input { position: relative; display: grid; gap: 6px; margin-top: 19px; }
.detail-url-input > span { color: #8ba7b7; font-size: 8px; font-weight: 800; letter-spacing: .6px; }
.detail-url-input > div { display: flex; gap: 8px; }
.detail-url-input input { min-width: 0; flex: 1; height: 42px; border: 1px solid rgba(255,255,255,.17); border-radius: 9px; padding: 0 12px; color: #e7f2f5; background: rgba(255,255,255,.08); outline: 0; }
.detail-url-input input:focus { border-color: #55cfbe; background: rgba(255,255,255,.11); }
.detail-url-input .primary-button { background: #20aa98; box-shadow: none; }
.direct-steps { position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 20px; }
.direct-steps article { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; background: rgba(255,255,255,.045); }
.direct-steps b { color: #5ed5c4; font-size: 10px; }
.direct-steps strong,.direct-steps small { display: block; }
.direct-steps strong { font-size: 10px; }
.direct-steps small { color: #91aab8; font-size: 7px; margin-top: 2px; }
.capture-sidecard { padding: 25px 22px; border-left: 1px solid rgba(255,255,255,.12); background: #15364a; }
.capture-sidecard-head { display: flex; align-items: center; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.1); }
.capture-sidecard-head small,.capture-sidecard-head strong { display: block; }
.capture-sidecard-head small { color: #7ea0b1; font-size: 8px; }
.capture-sidecard-head strong { font-size: 11px; margin-top: 2px; }
.pulse-ring { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #318f84; background: rgba(22,169,151,.08); }
.pulse-ring i { width: 9px; height: 9px; border-radius: 50%; background: #42d6bf; box-shadow: 0 0 12px #42d6bf; }
.capture-sidecard ul { list-style: none; margin: 15px 0 13px; padding: 0; display: grid; gap: 9px; }
.capture-sidecard li { display: flex; justify-content: space-between; gap: 10px; }
.capture-sidecard li span { color: #84a1b0; font-size: 8px; }
.capture-sidecard li strong { color: #d8e8ec; font-size: 9px; text-align: right; }
.capture-sidecard > p { margin: 0; padding: 9px 10px; border-radius: 8px; color: #8dd8cc; background: rgba(34,191,169,.09); font-size: 8px; }
.capture-sidecard > p i { font-style: normal; margin-right: 5px; }
.extension-console { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; margin: 0 18px 17px; padding: 14px 15px; border: 1px solid #cce5e1; border-radius: 12px; background: #f5fbfa; }
.extension-console-icon { width: 43px; height: 43px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--navy); font-weight: 900; font-size: 11px; }
.extension-console strong,.extension-console small { display: block; }
.extension-console > div:nth-child(2) > strong { color: #28495a; font-size: 11px; }
.extension-console > div:nth-child(2) > small { color: #718b94; font-size: 8px; margin: 2px 0 7px; }
.extension-console .extension-path { padding-top: 3px; padding-bottom: 3px; }
.extension-console + .extension-guide { margin: -17px 26px 17px; }
.extension-guide code { font-family: Consolas, monospace; font-size: .92em; }
.batch-workbench { margin: 0 18px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; overflow: hidden; }
.batch-workbench summary { display: flex; align-items: center; padding: 13px 15px; cursor: pointer; list-style: none; }
.batch-workbench summary::-webkit-details-marker { display: none; }
.batch-workbench summary span { display: grid; }
.batch-workbench summary strong { color: #3a5265; font-size: 10px; }
.batch-workbench summary small { color: #8495a2; font-size: 8px; }
.batch-workbench summary > b { margin-left: auto; color: var(--teal); }
.batch-workbench[open] summary { border-bottom: 1px solid var(--line); }
.batch-workbench-body { padding: 14px; }
.compact-heading { margin-bottom: 11px; }
.compact-heading .heading-icon { width: 31px; height: 31px; font-size: 16px; }
.compact-heading h3 { margin: 0; font-size: 12px; }
.compact-heading p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.collection-workspace > .job-box { margin: 0 18px 18px; }

.store-hub-head { flex-wrap: wrap; }
.store-hub-head > div:nth-child(2) { min-width: 320px; flex: 1; }
.store-hub-head .compact-button { min-width: auto; min-height: 34px; padding: 0 12px; }
.store-hub-head .connection-status { margin-left: auto; }
.store-overview-grid { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--line); background: #fbfcfd; }
.store-overview-grid article { padding: 14px 20px; border-right: 1px solid var(--line); }
.store-overview-grid article:last-child { border-right: 0; }
.store-overview-grid span,.store-overview-grid small { display: block; }
.store-overview-grid span { color: #82929f; font-size: 8px; font-weight: 700; }
.store-overview-grid strong { display: block; margin: 3px 0 1px; color: #244559; font-size: 17px; }
.store-overview-grid small { color: #9aa6af; font-size: 7px; }
.store-empty-state { display: flex; align-items: center; gap: 12px; margin: 14px 18px; padding: 14px; border: 1px dashed #c9d9dd; border-radius: 11px; background: #fcfdfd; }
.empty-store-icon { width: 37px; height: 37px; border-radius: 11px; display: grid; place-items: center; color: var(--teal); background: var(--teal-soft); font-size: 18px; }
.store-empty-state > div { display: grid; }
.store-empty-state strong { color: #375365; font-size: 10px; }
.store-empty-state small { color: #83949f; font-size: 8px; }
.store-empty-state button { margin-left: auto; }
.connection-result.store-roster { margin: 14px 18px; border: 1px solid #d8e7e5; border-radius: 11px; padding: 0; overflow: hidden; background: #f7fbfa; }
.connection-result.store-roster .connected-shop { padding: 13px 14px; background: #fff; }
.connection-result.store-roster .self-check { padding: 12px 14px; margin: 0; background: #f7fbfa; }
.store-capacity-note { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-top: 1px solid #dce9e7; color: #6c848b; background: #f7fbfa; }
.store-capacity-note span { color: var(--teal); font-size: 8px; font-weight: 800; }
.store-capacity-note small { font-size: 8px; }
.connection-setup { border-top: 1px solid var(--line); }
.connection-setup[hidden] { display: none; }
.form-intro { margin: -3px 0 1px; color: #788d99; font-size: 8px; line-height: 1.6; }

@media (max-width: 1120px) {
  .capture-hero { grid-template-columns: 1fr; }
  .capture-sidecard { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .capture-sidecard ul { grid-template-columns: repeat(2,1fr); }
  .store-hub-head .connection-status { margin-left: 0; }
}
@media (max-width: 760px) {
  .workspace-heading { align-items: flex-start; flex-direction: column; padding: 18px; }
  .workspace-badges { flex-wrap: wrap; }
  .capture-hero { margin: 12px; }
  .capture-primary { padding: 22px 18px; }
  .capture-primary h3 { font-size: 20px; }
  .detail-url-input > div { flex-direction: column; }
  .direct-steps { grid-template-columns: 1fr; }
  .capture-sidecard ul { grid-template-columns: 1fr; }
  .extension-console { grid-template-columns: auto 1fr; margin: 0 12px 13px; }
  .extension-console > button { grid-column: 1 / -1; }
  .batch-workbench { margin: 0 12px 13px; }
  .store-overview-grid { grid-template-columns: 1fr; }
  .store-overview-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .store-empty-state { align-items: flex-start; flex-wrap: wrap; }
  .store-empty-state button { margin-left: 0; }
  .store-hub-head > div:nth-child(2) { min-width: 100%; }
  .store-hub-head .connection-status { order: 3; }
  .store-hub-head .compact-button { flex: 0 0 auto; min-width: 112px; white-space: nowrap; }
}

/* Account access and team permissions */
[hidden] { display: none !important; }
.auth-gate { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.12fr) minmax(390px, .88fr); background: #f3f7fa; }
.auth-visual { position: relative; min-height: 100vh; padding: 48px 58px; display: flex; flex-direction: column; overflow: hidden; color: #fff; background: radial-gradient(circle at 82% 18%, rgba(38,196,176,.22), transparent 30%), linear-gradient(145deg, #0e2b3c 0%, #12394a 58%, #0c2434 100%); }
.auth-visual::before,.auth-visual::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.auth-visual::before { width: 480px; height: 480px; right: -190px; bottom: -150px; }
.auth-visual::after { width: 300px; height: 300px; right: -95px; bottom: -60px; }
.auth-brand { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.auth-brand > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #16b5a4, #36cab8); font-size: 17px; font-weight: 900; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.auth-brand div { display: grid; gap: 2px; }.auth-brand strong { font-size: 17px; }.auth-brand small { color: #8fb3bc; font-size: 10px; letter-spacing: .04em; }
.auth-visual-copy { position: relative; z-index: 1; max-width: 610px; margin: auto 0; }
.auth-visual-copy .eyebrow { color: #42d0bf; font-size: 11px; letter-spacing: .18em; }
.auth-visual-copy h1 { margin: 15px 0 20px; font-size: clamp(35px,4.1vw,62px); line-height: 1.15; letter-spacing: -.045em; }
.auth-visual-copy > p:not(.eyebrow) { max-width: 520px; color: #a7c0c7; font-size: 15px; line-height: 1.9; }
.auth-points { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 9px; }
.auth-points span { padding: 9px 12px; border: 1px solid rgba(91,224,207,.2); border-radius: 99px; color: #b8d8dc; background: rgba(25,121,118,.15); font-size: 11px; }
.auth-server-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; color: #789ba5; font-size: 10px; }.auth-server-note i { width: 7px; height: 7px; border-radius: 50%; background: #31c6aa; box-shadow: 0 0 0 5px rgba(49,198,170,.1); }
.auth-form-panel { display: grid; place-items: center; padding: 48px; background: #f7fafc; }
.auth-form { width: min(100%,430px); padding: 40px; border: 1px solid #dce7ec; border-radius: 24px; background: #fff; box-shadow: 0 25px 70px rgba(22,55,72,.1); }
.auth-form-heading { margin-bottom: 28px; }.auth-form-mark { display: none; }.auth-form-heading .eyebrow { color: #0e9c90; font-size: 10px; letter-spacing: .16em; }.auth-form-heading h2 { margin: 7px 0 8px; color: #163144; font-size: 26px; }.auth-form-heading > p:last-child { margin: 0; color: #81929d; font-size: 12px; }
.auth-field { display: grid; gap: 7px; margin-top: 16px; }.auth-field > span { color: #506978; font-size: 11px; font-weight: 800; }.auth-field input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d7e2e7; border-radius: 10px; outline: none; color: #173345; background: #fbfcfd; font: inherit; }.auth-field input:focus { border-color: #1eb8a6; box-shadow: 0 0 0 3px rgba(30,184,166,.11); background: #fff; }
.auth-password { position: relative; }.auth-password input { padding-right: 60px; }.auth-password button { position: absolute; inset: 0 7px 0 auto; border: 0; color: #138f85; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.auth-error { margin: 15px 0 0; padding: 10px 12px; border-radius: 9px; color: #ae3232; background: #fff0f0; font-size: 11px; line-height: 1.5; }
.auth-submit { width: 100%; min-height: 48px; margin-top: 20px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg,#0e9b90,#1bb7a6); font-weight: 900; cursor: pointer; box-shadow: 0 10px 24px rgba(18,157,143,.2); }.auth-submit:disabled { opacity: .6; cursor: wait; }
.auth-hint { margin: 13px 0 0; color: #93a1a9; font-size: 10px; text-align: center; }

.account-menu-wrap { position: relative; }
.account-trigger { min-height: 38px; display: grid; grid-template-columns: 28px auto auto; align-items: center; gap: 8px; padding: 4px 9px 4px 5px; border: 1px solid var(--line); border-radius: 10px; color: #334f5f; background: #fff; cursor: pointer; }
.account-trigger > span:nth-child(2) { display: grid; text-align: left; line-height: 1.2; }.account-trigger strong { font-size: 9px; }.account-trigger small { color: #8b9aa4; font-size: 7px; }.account-trigger > b { color: #8da0aa; font-size: 9px; }
.account-avatar,.account-profile-avatar { display: grid; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(135deg,#12394a,#17a99b); font-weight: 900; }
.account-avatar { width: 28px; height: 28px; font-size: 10px; }
.account-popover { position: absolute; z-index: 80; top: calc(100% + 8px); right: 0; width: 220px; padding: 7px; border: 1px solid #dce6ea; border-radius: 13px; background: #fff; box-shadow: 0 18px 48px rgba(22,49,68,.17); }
.account-popover button { width: 100%; display: grid; gap: 2px; padding: 10px 11px; border: 0; border-radius: 8px; text-align: left; color: #2a4859; background: transparent; cursor: pointer; }.account-popover button:hover { background: #f3f8f8; }.account-popover button span { font-size: 10px; font-weight: 800; }.account-popover button small { color: #8a9aa4; font-size: 8px; }.account-popover button.danger span { color: #b64848; }

.account-modal-backdrop { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(9,31,44,.58); backdrop-filter: blur(5px); }
.account-modal { width: min(820px,96vw); max-height: min(820px,92vh); overflow: hidden; border-radius: 20px; background: #f7fafb; box-shadow: 0 35px 100px rgba(0,0,0,.28); }
.account-modal > header { display: flex; align-items: center; padding: 22px 25px; border-bottom: 1px solid #dce6ea; background: #fff; }.account-modal > header .eyebrow { margin: 0 0 3px; color: #149b8f; font-size: 8px; }.account-modal > header h2 { margin: 0; color: #18364a; font-size: 20px; }.account-modal > header button { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 9px; color: #6d7f89; background: #f0f4f6; font-size: 20px; cursor: pointer; }
.account-modal-body { max-height: calc(92vh - 82px); overflow: auto; padding: 20px; }
.account-profile-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #dbe7ea; border-radius: 14px; background: #fff; }.account-profile-avatar { width: 43px; height: 43px; font-size: 15px; }.account-profile-card > div { display: grid; gap: 3px; }.account-profile-card strong { color: #244255; font-size: 13px; }.account-profile-card small { color: #8697a1; font-size: 9px; }.role-chip { margin-left: auto; padding: 6px 10px; border-radius: 99px; color: #0b8b7e; background: #e9f8f5; font-size: 9px; font-weight: 900; }
.account-section { margin-top: 16px; padding: 18px; border: 1px solid #dbe7ea; border-radius: 14px; background: #fff; }.account-section-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 14px; }.account-section-heading h3 { margin: 0; color: #284758; font-size: 13px; }.account-section-heading p { margin: 3px 0 0; color: #8999a3; font-size: 9px; }.account-section-heading > button { margin-left: auto; }
.create-user-form { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; margin-bottom: 14px; padding: 14px; border: 1px solid #cfe4e0; border-radius: 11px; background: #f5fbfa; }.create-user-form label,.password-change-form label { display: grid; gap: 5px; }.create-user-form label span,.password-change-form label span { color: #58717f; font-size: 8px; font-weight: 800; }.create-user-form input,.create-user-form select,.password-change-form input { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #d7e2e7; border-radius: 8px; outline: none; color: #244255; background: #fff; font: inherit; font-size: 10px; }.create-user-actions { grid-column: 1/-1; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.user-list { display: grid; gap: 8px; }.user-row { display: grid; grid-template-columns: 1.2fr .8fr .7fr auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #e3ebee; border-radius: 10px; }.user-row > div { display: grid; gap: 2px; }.user-row strong { color: #2b4858; font-size: 10px; }.user-row small { color: #8a9aa4; font-size: 8px; }.user-row select { min-height: 33px; border: 1px solid #dbe5e9; border-radius: 7px; color: #47616e; background: #fff; font-size: 9px; }.user-status { padding: 5px 8px; border-radius: 99px; color: #118779; background: #e8f8f4; font-size: 8px; font-weight: 800; }.user-status.disabled { color: #a24747; background: #fff0f0; }.user-actions { display: flex !important; grid-auto-flow: column; gap: 5px !important; }.user-actions button { min-height: 31px; padding: 0 8px; border: 1px solid #dbe5e9; border-radius: 7px; color: #506b79; background: #fff; font-size: 8px; cursor: pointer; }
.user-reset-row { grid-column: 1/-1; display: flex; gap: 7px; padding-top: 9px; border-top: 1px solid #edf2f4; }.user-reset-row input { flex: 1; min-height: 34px; padding: 0 10px; border: 1px solid #d7e2e7; border-radius: 7px; font: inherit; font-size: 9px; }.user-reset-row button { min-height: 34px; padding: 0 10px; border: 1px solid #d4e4e2; border-radius: 7px; color: #28726d; background: #f3faf9; font-size: 8px; cursor: pointer; }
.password-change-form { display: grid; grid-template-columns: repeat(3,1fr) auto; align-items: end; gap: 10px; }
.permission-readonly [data-admin-control],.permission-readonly #userManagementSection,.permission-readonly #toggleStoreConfig,.permission-readonly #newStoreButton,.permission-readonly .connection-setup,.permission-readonly .store-empty-state { display: none !important; }
.permission-viewer #scrapeForm button[type="submit"],.permission-viewer #demoButton,.permission-viewer #saveMlConfig,.permission-viewer #connectMlShop,.permission-viewer #newStoreButton { opacity: .45; pointer-events: none; }

@media (max-width: 850px) {
  .auth-gate { grid-template-columns: 1fr; }.auth-visual { display: none; }.auth-form-panel { min-height: 100vh; padding: 24px; }.auth-form-mark { width: 48px; height: 48px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg,#12394a,#17a99b); font-weight: 900; }
  .account-trigger > span:nth-child(2),.account-trigger > b { display: none; }.account-trigger { grid-template-columns: 28px; padding-right: 5px; }
  .password-change-form { grid-template-columns: 1fr; }.user-row { grid-template-columns: 1fr 1fr; }.user-actions { justify-content: flex-end; }.create-user-form { grid-template-columns: 1fr; }.create-user-actions { grid-column: auto; }
}
