:root {
  --ink: #172034;
  --muted: #65708a;
  --paper: #ffffff;
  --canvas: #f5f7fb;
  --line: #e5e9f2;
  --navy: #101828;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --green: #07856b;
  --red: #c94b5c;
  --shadow: 0 18px 45px rgba(19, 35, 66, .08);
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

/* Stable member Vendor codes: visible to the member and copyable by admins. */
.account-menu .vendor-code-copy {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid #d6e2f2;
  border-radius: 9px;
  background: #f7faff !important;
  color: #24456f !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.account-menu .vendor-code-copy[hidden] { display: none !important; }
.facebook-adset-field[hidden],
.facebook-ad-field[hidden],
.facebook-landing-field[hidden],
.facebook-landing-field select[hidden],
.facebook-auto-landing[hidden],
.facebook-link-suffix-field[hidden],
.facebook-landing-fallback-note[hidden] { display: none !important; }

.facebook-auto-landing {
  display: grid;
  gap: 4px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cdd8e8;
  border-radius: 8px;
  background: #f8fbff;
  overflow-wrap: anywhere;
}

.facebook-auto-landing strong { color: #153f99; }
.facebook-auto-landing small { color: #61708a; }
.account-menu .vendor-code-copy span { display: inline; margin: 0; color: #72819a; font-size: 10px; }
.account-menu .vendor-code-copy strong { display: inline; color: #123e84; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; letter-spacing: .08em; }
.account-menu .vendor-code-copy i { color: #2563eb; font-size: 10px; font-style: normal; font-weight: 800; }
.account-menu .vendor-code-copy:hover { border-color: #9dbcf2; background: #eef5ff !important; text-decoration: none !important; }
.account-menu .account-action-stack { display: grid; align-content: center; gap: 1px; margin-left: 2px; padding-left: 9px; border-left: 1px solid #e3e8f0; }
.account-menu .account-action-stack .quiet-button { min-height: 17px; padding: 0 3px; color: #59677d !important; font-size: 10.5px; line-height: 1.15; text-align: left; white-space: nowrap; }
.account-menu .account-action-stack .quiet-button:hover { color: #174a98 !important; text-decoration: none; }
.vendor-code-table-button { min-height: 29px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid #cfe0fa; border-radius: 8px; background: #f4f8ff; color: #174a98; }
.vendor-code-table-button strong { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; letter-spacing: .07em; }
.vendor-code-table-button span { color: #4977bd; font-size: 9.5px; font-weight: 800; }
.vendor-code-table-button:hover { border-color: #8fb3ed; background: #eaf2ff; }
.users-fixed-page .user-account-row { grid-template-columns: minmax(108px, .68fr) minmax(118px, .72fr) 108px minmax(138px, .9fr) 82px minmax(132px, 1fr) 88px 158px !important; }

@media (max-width: 900px) {
  .users-fixed-page .user-account-list { overflow-x: auto !important; }
  .users-fixed-page .user-account-row { min-width: 1120px; }
}

@media (max-width: 760px) {
  .account-menu .vendor-code-copy { padding: 5px 7px; }
  .account-menu .vendor-code-copy span,
  .account-menu .vendor-code-copy i { display: none; }
  .account-menu .account-action-stack { margin-left: 0; padding-left: 6px; }
}

/* Shopify API test area: lives inside the existing shop workspace and never
   contributes data to the production order summaries while in test mode. */
.shopify-test-fixed-page { min-height: calc(100vh - 68px); }
.fixed-page.shopify-test-fixed-page { overflow: auto; padding-right: 3px; scrollbar-gutter: stable; }
.shopify-test-shell { display: grid; gap: 14px; }
.shopify-test-hero { min-height: 142px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border: 1px solid #dbe5f4; border-radius: 16px; background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 60%, #eefbf7 100%); box-shadow: 0 8px 24px rgba(24, 63, 127, .06); }
.shopify-test-hero h2 { margin: 5px 0 8px; color: #111c32; font-size: 27px; }
.shopify-test-hero p { max-width: 780px; margin: 0; color: #60708b; font-size: 13px; line-height: 1.7; }
.shopify-test-eyebrow { color: #2261d8; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.shopify-safety-badge { min-width: 260px; display: flex; align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid #b9e8d2; border-radius: 13px; background: rgba(255,255,255,.84); }
.shopify-safety-badge i { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: #16a36a; box-shadow: 0 0 0 5px rgba(22,163,106,.12); }
.shopify-safety-badge span { display: grid; gap: 3px; color: #688075; font-size: 11px; }
.shopify-safety-badge strong { color: #13764e; font-size: 13px; }
.shopify-safety-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; overflow: hidden; border: 1px solid #dfe7f2; border-radius: 13px; background: #fff; }
.shopify-safety-strip span { padding: 12px 15px; border-left: 1px solid #edf1f6; color: #40607d; font-size: 12px; font-weight: 780; text-align: center; }
.shopify-safety-strip span:first-child { border-left: 0; }
.shopify-credentials-panel { display: grid; grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 1fr) minmax(220px, 1fr) auto; gap: 16px; align-items: end; padding: 17px 19px; overflow: visible; }
.shopify-credentials-copy { min-width: 0; align-self: center; }
.shopify-credentials-copy h3 { margin: 4px 0 5px; color: #16233d; font-size: 16px; }
.shopify-credentials-copy p { margin: 0; color: #77849a; font-size: 11px; line-height: 1.55; }
.shopify-credentials-panel label { min-width: 0; gap: 5px; }
.shopify-credentials-panel label > span { color: #718098; font-size: 10.5px; font-weight: 780; }
.shopify-credentials-panel input { min-height: 37px; font-size: 12px; }
.shopify-credentials-action { display: flex; align-items: center; gap: 8px; padding-bottom: 1px; }
.shopify-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shopify-summary-grid section { min-width: 0; padding: 16px 18px; border: 1px solid #dfe7f2; border-radius: 14px; background: #fff; box-shadow: 0 5px 15px rgba(24, 42, 78, .035); }
.shopify-summary-grid span, .shopify-summary-grid small { display: block; color: #75839a; font-size: 11px; font-weight: 730; }
.shopify-summary-grid strong { display: block; margin: 7px 0 5px; color: #164fc7; font-size: 27px; line-height: 1; }
.shopify-test-panel { overflow: hidden; }
.shopify-test-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid #e8edf4; }
.shopify-test-panel-head h3 { margin: 0; color: #15233c; font-size: 17px; }
.shopify-test-panel-head p { margin: 5px 0 0; color: #77849a; font-size: 12px; }
.shopify-app-state { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; font-size: 11px; font-weight: 850; }
.shopify-app-state.ready { background: #e9f8f0; color: #0d7f50; }
.shopify-app-state.missing { background: #fff5e6; color: #a86409; }
.shopify-test-list { max-height: calc(100vh - 472px); min-height: 180px; overflow: auto; scrollbar-gutter: stable; }
.shopify-test-row { display: grid; grid-template-columns: minmax(210px, 1.25fr) minmax(220px, 1.1fr) minmax(190px, .8fr) minmax(170px, .9fr) auto; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid #edf1f6; }
.shopify-test-row:last-child { border-bottom: 0; }
.shopify-store-identity, .shopify-connection-state { min-width: 0; display: grid; gap: 5px; }
.shopify-store-identity strong { overflow: hidden; color: #17243b; font-size: 13px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.shopify-store-identity span, .shopify-connection-state small { overflow: hidden; color: #7a879b; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.shopify-domain-field, .shopify-mode-field { min-width: 0; display: grid; gap: 5px; }
.shopify-domain-field > span, .shopify-mode-field > span { color: #79869a; font-size: 10.5px; font-weight: 760; }
.shopify-domain-field input, .shopify-mode-field select { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #d7e0ed; border-radius: 9px; background: #fff; color: #1e2d48; font-size: 12px; }
.shopify-status { width: fit-content; display: inline-flex; min-height: 23px; align-items: center; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 850; }
.shopify-status.connected { background: #e8f8ef; color: #0b8050; }
.shopify-status.error { background: #fff0f1; color: #c43e50; }
.shopify-status.pending { background: #fff5e5; color: #a9660b; }
.shopify-status.neutral { background: #f0f3f8; color: #68758a; }
.shopify-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.shopify-preview-panel { overflow: hidden; }
.shopify-preview-toolbar { display: grid; grid-template-columns: minmax(260px, 1.4fr) minmax(170px, .7fr) minmax(170px, .7fr) auto; gap: 12px; align-items: end; padding: 16px 20px; }
.shopify-preview-toolbar label { min-width: 0; gap: 5px; }
.shopify-preview-toolbar label > span { color: #718098; font-size: 10.5px; font-weight: 780; }
.shopify-preview-toolbar input, .shopify-preview-toolbar select { min-height: 38px; font-size: 12px; }
.shopify-preview-toolbar .button { min-height: 38px; }
.shopify-preview-result { min-height: 150px; border-top: 1px solid #e8edf4; background: #fbfcfe; }
.shopify-preview-safety { display: flex; align-items: center; gap: 10px; padding: 11px 20px; border-bottom: 1px solid #d8eee4; background: #f0fbf6; color: #477363; font-size: 11px; }
.shopify-preview-safety strong { color: #08794b; }
.shopify-preview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 20px 4px; }
.shopify-preview-metrics section { min-width: 0; padding: 13px 15px; border: 1px solid #e0e7f1; border-radius: 11px; background: #fff; }
.shopify-preview-metrics span, .shopify-preview-metrics small { display: block; overflow: hidden; color: #75839a; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.shopify-preview-metrics strong { display: block; margin: 5px 0 4px; color: #174fc4; font-size: 23px; }
.shopify-preview-grid { display: grid; gap: 12px; padding: 12px 20px 20px; }
.shopify-preview-block { min-width: 0; overflow: hidden; border: 1px solid #e1e7f0; border-radius: 12px; background: #fff; }
.shopify-preview-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #e8edf4; }
.shopify-preview-block-head h4 { margin: 0; color: #17243b; font-size: 13px; }
.shopify-preview-block-head span { color: #78859a; font-size: 10.5px; }
.shopify-preview-block table { font-size: 11px; }
.shopify-preview-block th, .shopify-preview-block td { padding: 9px 11px; }
.shopify-preview-orders { max-height: 430px; overflow: auto; }
.shopify-preview-orders td strong, .shopify-preview-orders td small { display: block; }
.shopify-preview-orders td small { margin-top: 3px; color: #8490a2; font-size: 9.5px; }
.shopify-store-v2-fixed-page .store-settings-layout { height: 100%; }
.shopify-store-v2-fixed-page .admin-form-panel { min-height: 0; overflow: auto; }
.shopify-store-v2-fixed-page form { display: grid; gap: 14px; margin-top: 17px; }
.shopify-v2-form-head span { color: #2460d0; font-size: 10px; font-weight: 900; letter-spacing: .09em; }
.shopify-v2-form-head h3 { margin: 5px 0 6px; font-size: 19px; }
.shopify-v2-form-head p { margin: 0; color: #76839a; font-size: 11px; line-height: 1.55; }
.shopify-v2-safety-note { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid #cfeadf; border-radius: 10px; background: #f1fbf6; color: #5f796e; font-size: 10.5px; }
.shopify-v2-safety-note strong { color: #0b7b4c; }
.shopify-v2-table { min-width: 900px; }
.shopify-v2-link-status { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 850; }
.shopify-v2-link-status.linked { background: #e9f8f0; color: #087c4c; }
.shopify-v2-link-status.pending { background: #fff4e1; color: #a26008; }
.shopify-v2-members { display: flex; flex-wrap: wrap; gap: 4px; }
.shopify-v2-members span { padding: 4px 6px; border-radius: 999px; background: #edf4ff; color: #2457a6; font-size: 9.5px; font-weight: 750; }
.shopify-v2-members em { color: #8b96a8; font-size: 10px; font-style: normal; }
.shopify-v2-target-editor { display: flex; align-items: center; gap: 6px; margin: 7px 0 4px; }
.shopify-v2-target-editor select { width: min(230px, 100%); min-height: 32px; padding: 5px 8px; border: 1px solid #d7e0ed; border-radius: 8px; background: #fff; color: #24334d; font-size: 10.5px; }
.shopify-v2-target-editor .button { flex: 0 0 auto; }
.shopify-analytics-preview-form { display: grid; gap: 12px; }
.shopify-analytics-date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shopify-analytics-preview-result { min-height: 220px; margin-top: 16px; overflow: hidden; border: 1px solid #e1e7f0; border-radius: 13px; background: #fbfcfe; }
.shopify-analytics-preview-table { max-height: 430px; border-top: 1px solid #e4eaf2; }
.shopify-analytics-preview-table table { min-width: 820px; font-size: 11px; }
.shopify-analytics-preview-table code { color: #2457a6; font-size: 10.5px; }

@media (max-width: 1180px) {
  .shopify-credentials-panel { grid-template-columns: 1fr 1fr; }
  .shopify-credentials-copy { grid-column: 1 / 3; }
  .shopify-test-row { grid-template-columns: minmax(200px, 1fr) minmax(220px, 1fr) minmax(180px, .8fr); }
  .shopify-connection-state { grid-column: 1 / 3; }
  .shopify-row-actions { grid-column: 3; grid-row: 2; }
  .shopify-preview-toolbar { grid-template-columns: 1fr 1fr; }
  .shopify-preview-toolbar .button { justify-self: start; }
}

@media (max-width: 760px) {
  .shopify-test-hero, .shopify-test-panel-head { align-items: stretch; flex-direction: column; }
  .shopify-safety-badge { min-width: 0; }
  .shopify-safety-strip, .shopify-summary-grid { grid-template-columns: 1fr 1fr; }
  .shopify-credentials-panel { grid-template-columns: 1fr; }
  .shopify-credentials-copy { grid-column: auto; }
  .shopify-safety-strip span:nth-child(3) { border-left: 0; border-top: 1px solid #edf1f6; }
  .shopify-safety-strip span:nth-child(4) { border-top: 1px solid #edf1f6; }
  .shopify-test-row { grid-template-columns: 1fr; }
  .shopify-connection-state, .shopify-row-actions { grid-column: auto; grid-row: auto; }
  .shopify-row-actions { justify-content: flex-start; }
  .shopify-preview-toolbar, .shopify-preview-metrics { grid-template-columns: 1fr; }
  .shopify-preview-safety, .shopify-preview-block-head { align-items: flex-start; flex-direction: column; }
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.boot-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--canvas); }
.boot-card { min-width: 220px; display: grid; justify-items: center; gap: 10px; padding: 30px 34px; border: 1px solid rgba(229, 233, 242, .9); border-radius: 20px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow); }
.boot-card strong { color: #13223d; font-size: 16px; letter-spacing: 0; }
.boot-card span { color: var(--muted); font-size: 12px; }
.login-shell { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 24px 24px 64px; background: radial-gradient(circle at 12% 7%, #dbeafe 0, transparent 34%), radial-gradient(circle at 95% 95%, #d1fae5 0, transparent 29%), #f8fafc; }
.login-card { width: min(100%, 430px); padding: 42px; border: 1px solid rgba(229, 233, 242, .9); border-radius: 26px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); }
.brand-mark { width: 56px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--blue); color: white; font-weight: 850; font-size: 15px; letter-spacing: -.06em; box-shadow: 0 10px 24px rgba(37, 99, 235, .28); }
.brand-mark.small { width: 43px; height: 34px; border-radius: 10px; font-size: 14px; letter-spacing: -.04em; box-shadow: none; }
.eyebrow { margin: 25px 0 8px; color: var(--blue); letter-spacing: .15em; font-size: 11px; font-weight: 800; }
.login-tagline { color: #475569; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 29px; letter-spacing: -.04em; margin-bottom: 11px; }
h2 { margin-bottom: 6px; letter-spacing: -.03em; font-size: 26px; }
h3 { font-size: 15px; margin-bottom: 4px; }
.muted, .subtle { color: var(--muted); line-height: 1.6; }
.stack { display: grid; gap: 16px; margin-top: 29px; }
label { display: grid; gap: 7px; color: #3d4962; font-size: 13px; font-weight: 700; }
input, select { width: 100%; min-height: 42px; border: 1px solid #d9dfeb; border-radius: 10px; background: #fff; color: var(--ink); padding: 0 12px; outline: none; transition: .18s border, .18s box-shadow; }
textarea { width: 100%; min-height: 120px; border: 1px solid #d9dfeb; border-radius: 10px; background: #fff; color: var(--ink); padding: 10px 12px; outline: none; resize: vertical; line-height: 1.55; transition: .18s border, .18s box-shadow; }
input:focus, select:focus, textarea:focus { border-color: #7aa4f7; box-shadow: 0 0 0 3px #dbeafe; }
input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; flex: 0 0 auto; padding: 0; border-radius: 4px; accent-color: #2563eb; transition: none; }
input[type="checkbox"]:focus { border-color: #d9dfeb; box-shadow: none; outline: none; }
input[type="checkbox"]:active { box-shadow: none; transform: none; }
input[type="file"] { padding: 8px; }
.secret-input-wrap { position: relative; width: 100%; }
.secret-input-wrap input { padding-right: 44px; }
.secret-toggle { position: absolute; top: 50%; right: 5px; width: 34px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #78869a; transform: translateY(-50%); cursor: pointer; }
.secret-toggle:hover { background: #f0f5fd; color: #2563eb; }
.secret-toggle:focus-visible { outline: 2px solid #93b4f5; outline-offset: 1px; }
.secret-toggle:disabled { opacity: .45; cursor: not-allowed; }
.secret-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.secret-toggle .secret-eye-off { display: none; }
.secret-toggle.revealed .secret-eye-open { display: none; }
.secret-toggle.revealed .secret-eye-off { display: block; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; padding: 0 15px; font-weight: 750; text-align: center; text-decoration: none; transition: .18s transform, .18s background, .18s border; }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--blue); color: white; }
.button.primary:hover { background: #1d4ed8; }
.button.secondary { border-color: #d9dfeb; background: white; color: #334155; }
.button.danger { background: #fff1f2; color: #b4233a; border-color: #fecdd3; }
.button.primary:disabled, .button.danger:disabled { border-color: #111827; background: #111827; color: #fff; opacity: .72; cursor: not-allowed; transform: none; }
.public-links a { color: #2563eb; text-decoration: none; }
.public-links a:hover { text-decoration: underline; }
.public-links { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center; }
.policy-body { min-height: 100vh; margin: 0; background: #f3f6fb; color: #101828; }
.policy-shell { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }
.policy-card { padding: 42px 48px; border: 1px solid #e4e7ec; border-radius: 20px; background: #fff; box-shadow: 0 16px 50px rgba(16, 24, 40, .08); }
.policy-card h1 { margin: 10px 0 4px; font-size: 34px; }
.policy-card h2 { margin: 30px 0 8px; font-size: 20px; }
.policy-card p, .policy-card li { color: #475467; line-height: 1.8; }
.policy-card a { color: #2563eb; }
.policy-back { text-decoration: none; font-weight: 700; }
@media (max-width: 640px) { .policy-shell { padding: 20px 0; } .policy-card { padding: 28px 22px; } }
.button.small { min-height: 34px; padding: 0 11px; font-size: 12px; }
.form-error { min-height: 18px; margin: -5px 0 0; color: var(--red); font-size: 13px; }
.hint { margin: 24px 0 0; color: var(--muted); font-size: 12px; }
code { border-radius: 5px; background: #f0f3f9; padding: 2px 5px; color: #32405d; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 238px; display: flex; flex-direction: column; padding: 22px 14px; background: var(--navy); color: #d9e1f2; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 31px; color: white; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.sidebar-brand > span:last-child { font-size: 17px; white-space: nowrap; }
.nav { display: grid; gap: 5px; }
.nav button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: #aebbd1; border: 0; border-radius: 9px; background: transparent; font-weight: 650; text-align: left; }
.nav button:hover { background: #1c2a43; color: #f4f8ff; }
.nav button.active { color: white; background: #263752; box-shadow: inset 3px 0 0 #74a1ff; }
.nav-group-button { justify-content: space-between; margin-top: 7px; color: #eef4ff !important; font-weight: 820 !important; }
.nav-group-button:first-child { margin-top: 0; }
.nav-group-button i { margin-left: auto; color: #a8b8d5; font-style: normal; }
.nav-group-button.active { background: transparent !important; box-shadow: none !important; color: #ffffff !important; }
.nav-children { display: grid; gap: 4px; margin: 2px 0 7px; }
.nav-child { padding-left: 26px !important; color: #aebbd1 !important; }
.nav-child.active { color: white !important; background: #263752 !important; box-shadow: inset 3px 0 0 #74a1ff !important; }
.nav-standalone { margin-top: 8px; padding-left: 12px !important; }
.nav-icon { width: 17px; color: #91b3ff; text-align: center; font-size: 16px; }
.sidebar-foot { display: grid; gap: 8px; margin-top: auto; padding: 14px 12px; color: #95a4bf; font-size: 12px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #4ade80; }
.workspace { width: calc(100% - 238px); margin-left: 238px; }
.topbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); backdrop-filter: blur(10px); }
.topbar-title { color: #071735; font-size: 16px; font-weight: 850; letter-spacing: 0; }
.account-menu { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.account-menu strong { display: block; line-height: 1.2; }
.account-menu span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.avatar { min-width: 42px; height: 33px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: #e0ecff; color: #2457a6; font-size: 12px; font-weight: 850; white-space: nowrap; }
.avatar.mini { min-width: 44px; height: 30px; padding: 0 7px; font-size: 11px; flex: 0 0 auto; }
.quiet-button { border: 0; background: transparent; color: #51607b; font-size: 12px; font-weight: 700; }
.quiet-button:hover { color: var(--blue); }
.view { max-width: 1480px; margin: auto; padding: 20px 30px 24px; transition: opacity .12s ease; }
.view.view-updating { opacity: .985; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.page-head p { margin: 0; }
.page-toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.filters label { min-width: 155px; flex: 1 1 160px; }
.filters .button { flex: 0 0 auto; }
.date-switch { display: inline-flex; min-height: 42px; overflow: hidden; border: 1px solid #d9dfeb; border-radius: 10px; background: #f8fafc; }
.date-switch button { min-width: 62px; border: 0; background: transparent; color: #64708a; font-size: 13px; font-weight: 750; }
.date-switch button.active { background: var(--blue); color: white; }
.calendar-filter { align-items: stretch; }
.calendar-filter > label { align-self: center; min-width: 220px; }
.calendar-wrap { flex: 1 1 560px; max-width: 620px; padding: 4px 8px 8px; }
.calendar-summary { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.calendar-summary strong { font-size: 17px; letter-spacing: -.02em; }
.calendar-summary span, .range-hint { color: var(--muted); font-size: 12px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calendar-nav { width: 32px; height: 29px; border: 1px solid #d9dfeb; border-radius: 7px; background: #fff; color: #53627c; font-size: 20px; line-height: 1; }
.calendar-week, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(28px, 1fr)); gap: 4px; text-align: center; }
.calendar-week { margin-bottom: 3px; color: #8893a8; font-size: 11px; font-weight: 750; }
.calendar-day { height: 31px; border: 0; border-radius: 7px; background: transparent; color: #3c4b66; font-size: 12px; font-weight: 650; }
.calendar-day:hover:not(.blank) { background: #e7efff; color: var(--blue); }
.calendar-day.selected { background: var(--blue); color: white; }
.calendar-day.between { border-radius: 4px; background: #dbeafe; color: #1d4ed8; }
.calendar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.date-filter { position: relative; align-items: end; }
.date-filter > label { flex: 1 1 280px; min-width: 280px; }
.date-picker { position: relative; z-index: 2; display: grid; gap: 7px; flex: 0 0 255px; }
.filter-label { color: #3d4962; font-size: 13px; font-weight: 700; }
.date-picker-trigger { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #d9dfeb; border-radius: 10px; background: white; color: #34415a; text-align: left; }
.date-picker-trigger strong { flex: 1; color: var(--ink); font-size: 13px; }
.date-picker-trigger i { color: #71809a; font-size: 15px; font-style: normal; }
.filter-interaction-blocker { position: fixed; inset: 0; z-index: 70; background: transparent; cursor: default; }
.date-picker-popover { position: absolute; top: calc(100% + 8px); left: 0; z-index: 90; width: min(720px, calc(100vw - 50px)); display: grid; grid-template-columns: 132px 1fr; overflow: hidden; border: 1px solid #dce3ee; border-radius: 13px; background: white; box-shadow: 0 18px 50px rgba(19, 35, 66, .18); }
.quick-ranges { display: grid; align-content: start; gap: 3px; padding: 10px; border-right: 1px solid var(--line); background: #fafbfe; }
.quick-ranges button { padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #44526b; font-size: 12px; font-weight: 700; text-align: left; }
.quick-ranges button:hover { background: #e9f1ff; color: var(--blue); }
.picker-main { padding: 15px 17px 13px; }
.picker-selected { display: flex; align-items: center; gap: 10px; min-height: 35px; }
.picker-selected span { min-width: 128px; padding: 8px 9px; border: 1px solid #d9dfeb; border-radius: 7px; color: #34415a; font-size: 12px; }
.picker-selected b { color: #8490a4; }
.picker-selected small { margin-left: auto; color: #8793a8; font-size: 11px; white-space: nowrap; }
.picker-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 9px; color: #6b7891; font-size: 11px; }
.picker-calendars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.picker-month + .picker-month { padding-left: 20px; border-left: 1px solid var(--line); }
.picker-month-title { margin-bottom: 9px; color: #40506b; font-size: 12px; font-weight: 800; text-align: center; }
.picker-actions { display: flex; justify-content: end; gap: 8px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { min-height: 134px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 2px 7px rgba(24, 39, 75, .025); }
.stat-card .label { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-card .value { margin: 13px 0 7px; color: #16213a; font-size: clamp(21px, 2vw, 29px); font-weight: 820; letter-spacing: -.04em; }
.stat-card .caption { color: #8b96aa; font-size: 11px; }
.stat-card.accent { background: linear-gradient(135deg, #eef5ff, #fff); border-color: #cee0ff; }
.original-currency-card { display: flex; flex-direction: column; }
.currency-detail-button { align-self: flex-start; margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 750; }
.currency-detail-button:hover { color: #1d4ed8; text-decoration: underline; }
.currency-breakdown { display: grid; gap: 8px; margin-top: 17px; }
.currency-breakdown div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfe; }
.currency-breakdown strong { color: #172b50; font-size: 15px; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; }
.dashboard-filters { margin-bottom: 14px; }
.dashboard-compass { box-shadow: 0 5px 18px rgba(28, 48, 87, .035); }
.compass-head { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(620px, 2.2fr); align-items: stretch; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #fbfdff 0%, #fff 42%); }
.compass-head > div:first-child { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 16px 20px; border-right: 1px solid var(--line); }
.compass-head > div:first-child strong { color: #1d2d4b; font-size: 15px; }
.compass-head > div:first-child span { color: #7a879c; font-size: 11px; }
.compass-summary { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); align-items: stretch; }
.compass-summary > span { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 13px 18px; border-left: 1px solid #edf1f7; }
.compass-summary > span:first-child { border-left: 0; }
.compass-summary small { overflow: hidden; color: #78859b; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.compass-summary strong { overflow: hidden; color: #174bc4; font-size: 19px; line-height: 1.15; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.compass-currency-summary .currency-detail-button { width: fit-content; margin-top: 0; font-size: 10px; }
.compass-table { table-layout: fixed; }
.compass-table th:nth-child(1) { width: 58px; }
.compass-table th:nth-child(2) { width: 29%; }
.compass-table th:nth-child(3) { width: 17%; }
.compass-table th:nth-child(4) { width: 16%; }
.compass-table th:nth-child(5) { width: 10%; }
.compass-table th:nth-child(6) { width: 13%; }
.compass-table th:nth-child(7) { width: 15%; }
.compass-table td { padding-top: 13px; padding-bottom: 13px; vertical-align: middle; }
.compass-table tbody tr:hover { background: #f8fbff; }
.compass-rank { text-align: center; }
.compass-rank span { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 8px; background: #f0f4fa; color: #60708b; font-size: 11px; font-weight: 850; }
.compass-table tbody tr:nth-child(-n+3) .compass-rank span { background: #e8f1ff; color: #2457c5; }
.compass-usd { color: #174bc4; font-weight: 820; }
.share-value { color: #43516a; font-size: 12px; font-weight: 760; }
.share-track { width: 100%; max-width: 96px; height: 4px; margin: 5px 0 0 auto; overflow: hidden; border-radius: 999px; background: #edf1f6; }
.share-track i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #77a8ff, #2457e6); }
.workbench-summary-panel { margin-bottom: 16px; border-color: #d9e3f0; background: linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #f4faf7 100%); box-shadow: 0 10px 28px rgba(24, 39, 75, .055); }
.workbench-summary-head { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(620px, 2.2fr); align-items: stretch; }
.workbench-summary-head > div:first-child { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 18px 20px; border-right: 1px solid #e2e8f2; }
.workbench-summary-head > div:first-child strong { color: #17233d; font-size: 16px; }
.workbench-summary-head > div:first-child span { color: #73819a; font-size: 12px; }
.workbench-summary-metrics { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); }
.workbench-summary-metrics > span { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 15px 18px; border-left: 1px solid #edf1f7; }
.workbench-summary-metrics > span:first-child { border-left: 0; }
.workbench-summary-metrics small { overflow: hidden; color: #6d7b92; font-size: 11px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.workbench-summary-metrics strong { overflow: hidden; color: #174bc4; font-size: 21px; line-height: 1.15; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.workbench-top-grid { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(280px, .52fr); gap: 14px; align-items: stretch; margin-bottom: 14px; }
.workbench-hero-panel { margin-bottom: 0; border-color: #d5e0ef; background: linear-gradient(135deg, #ffffff 0%, #f8fbff 62%, #f5fbf8 100%); box-shadow: 0 8px 22px rgba(24, 39, 75, .045); }
.workbench-hero-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 240px); gap: 16px; align-items: center; padding: 18px 20px 14px; border-bottom: 1px solid #e4ebf4; }
.workbench-eyebrow { display: block; margin-bottom: 8px; color: #50617d; font-size: 12px; font-weight: 800; }
.workbench-hero-main strong { display: block; color: #0d47c5; font-size: clamp(32px, 3.4vw, 48px); line-height: 1; letter-spacing: 0; }
.workbench-hero-main p { margin: 8px 0 0; color: #64708a; font-size: 13px; }
.workbench-hero-main em { font-style: normal; font-weight: 850; }
.workbench-hero-main em.up { color: #07856b; }
.workbench-hero-main em.down { color: #c94b5c; }
.month-filter { justify-self: end; width: min(100%, 230px); }
.month-filter input { min-height: 40px; font-weight: 800; }
.dashboard-date-control { position: relative; z-index: 3; justify-self: end; display: grid; gap: 7px; width: min(100%, 250px); }
.workbench-hero-metrics { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); }
.workbench-hero-metrics > span { min-width: 0; padding: 11px 16px; border-left: 1px solid #edf1f7; }
.workbench-hero-metrics > span:first-child { border-left: 0; }
.workbench-hero-metrics small { display: block; overflow: hidden; color: #708099; font-size: 11px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.workbench-hero-metrics strong { display: block; overflow: hidden; margin-top: 5px; color: #17233d; font-size: 17px; line-height: 1.18; text-overflow: ellipsis; white-space: nowrap; }
.monthly-sales-panel { display: grid; grid-template-columns: 1fr; align-items: stretch; margin-bottom: 0; border-color: #d9e4f3; box-shadow: 0 5px 18px rgba(28, 48, 87, .03); }
.monthly-sales-main { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fbfdff; }
.monthly-sales-main span { display: block; color: #708099; font-size: 11px; font-weight: 800; }
.monthly-sales-main strong { display: block; margin-top: 4px; color: #17233d; font-size: 18px; }
.month-step-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #d5e0ef; border-radius: 9px; background: #fff; color: #2c5fd7; font-size: 24px; line-height: 1; }
.month-step-button:hover { border-color: #9fbcf8; background: #eff6ff; }
.monthly-sales-metrics { display: grid; grid-template-columns: 1fr; }
.monthly-sales-metrics span { min-width: 0; padding: 10px 16px; border-top: 1px solid #edf1f7; }
.monthly-sales-metrics span:first-child { border-top: 0; }
.monthly-sales-metrics small { display: block; overflow: hidden; color: #708099; font-size: 11px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.monthly-sales-metrics strong { display: block; overflow: hidden; margin-top: 5px; color: #174bc4; font-size: 19px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.workbench-chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.workbench-chart-panel { min-height: 0; box-shadow: 0 5px 18px rgba(28, 48, 87, .03); }
.workbench-share-grid { display: grid; grid-template-columns: minmax(280px, .68fr) minmax(460px, 1.32fr); gap: 16px; margin: 16px 0; align-items: start; }
.workbench-first-screen { display: grid; grid-template-columns: minmax(300px, .56fr) minmax(640px, 1.44fr); gap: 14px; align-items: start; }
.workbench-insight-column { display: grid; gap: 14px; }
.compact-panel-head { align-items: flex-start; padding: 13px 16px 11px; }
.compact-panel-head h3 { margin: 0; color: #1d2d4b; font-size: 15px; }
.compact-panel-head p { margin: 4px 0 0; color: #78859b; font-size: 12px; }
.workbench-share-list { display: grid; gap: 8px; padding: 12px 16px 14px; }
.workbench-share-row { min-width: 0; display: grid; grid-template-columns: minmax(82px, 1fr) minmax(100px, 1.4fr) 54px minmax(94px, .9fr); align-items: center; gap: 10px; }
.workbench-share-row b { overflow: hidden; color: #243555; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.workbench-share-row strong { color: #174bc4; font-size: 12px; text-align: right; }
.workbench-share-row span { overflow: hidden; color: #60718f; font-size: 12px; font-weight: 760; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.workbench-share-track { height: 8px; overflow: hidden; border-radius: 999px; background: #edf2f7; }
.workbench-share-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #0f9f8d); }
.workbench-mini-empty { min-height: 126px; display: grid; place-items: center; color: #7a879d; font-size: 13px; }
.country-share-panel .workbench-share-list { max-height: 160px; overflow: auto; }
.store-share-panel .workbench-share-list { max-height: 210px; overflow: auto; }
.store-share-panel .workbench-share-row { grid-template-columns: minmax(160px, 1.6fr) minmax(110px, 1fr) 58px minmax(88px, .8fr); align-items: center; }
.store-share-panel .workbench-share-row b { white-space: normal; overflow: visible; line-height: 1.35; text-overflow: clip; }
.workbench-ranking-panel { margin-top: 0; }
.workbench-directory-panel { margin-top: 0; }
.workbench-directory-tools { display: grid; grid-template-columns: minmax(112px, 145px) minmax(112px, 145px) minmax(240px, 1fr) auto; align-items: end; gap: 9px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fbfcff; }
.workbench-directory-tools label { min-width: 0; }
.workbench-directory-tools .button { min-width: 82px; }
.workbench-store-list { display: grid; grid-template-columns: 1fr; grid-auto-rows: max-content; align-content: start; gap: 0; padding: 8px 16px; }
.workbench-store-header { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, .8fr); gap: 10px 22px; align-items: center; min-height: 38px; border-bottom: 1px solid #dfe3e8; color: #5f6878; font-size: 12px; font-weight: 750; }
.workbench-store-header.without-actions { grid-template-columns: minmax(0, 1fr) minmax(320px, .6fr); }
.workbench-store-header > span { padding-left: 32px; }
.workbench-store-header .store-card-meta > span { width: 100%; text-align: center; }
.workbench-store-card { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, .8fr); gap: 10px 22px; align-items: center; padding: 10px 0; border: 0; border-top: 1px solid #edf1f7; border-radius: 0; background: transparent; }
.workbench-store-card.without-actions { grid-template-columns: minmax(0, 1fr) minmax(320px, .6fr); }
.workbench-store-header + .workbench-store-card { border-top: 0; }
.store-card-name { min-width: 0; padding-left: 32px; }
.workbench-store-card strong { display: block; color: #1f2d47; font-size: 13px; font-weight: 850; line-height: 1.35; overflow-wrap: anywhere; white-space: normal; }
.store-card-meta { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: center; justify-items: center; }
.store-card-meta.with-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.store-chip { min-width: 0; width: fit-content; max-width: 100%; display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid #b9d4ff; border-radius: 999px; background: #fff; color: #174bc4; font-size: 11px; font-weight: 750; white-space: nowrap; }
.store-card-action { justify-self: center; }
.store-card-action .member-count-button { min-height: 28px; padding: 0 12px; border-color: #2563eb; border-radius: 8px; background: #2563eb; color: #fff; font-size: 11px; font-weight: 850; box-shadow: 0 5px 12px rgba(37, 99, 235, .16); }
.store-card-action .member-count-button:hover { border-color: #1d4ed8; background: #1d4ed8; color: #fff; }
.store-card-action .subtle { color: #7c899f; font-size: 11px; white-space: nowrap; }
.dashboard-fixed-page .store-overview-shell { height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
.store-overview-shell { display: grid; gap: 14px; }
.overview-top-grid { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.overview-middle-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(300px, .85fr); gap: 14px; align-items: stretch; }
.overview-summary-panel, .overview-ranking-panel, .overview-directory-panel { border-color: #dfe6f1; box-shadow: 0 6px 18px rgba(26, 42, 73, .035); }
.overview-summary-panel { overflow: visible; }
.overview-date-panel { position: relative; z-index: 30; }
.overview-month-panel { position: relative; z-index: 1; }
.overview-ranking-panel { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.overview-directory-panel { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.overview-directory-panel .workbench-directory-tools,
.overview-directory-panel .pagination { flex: 0 0 auto; }
.overview-directory-panel .workbench-store-list { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-gutter: stable; }
.overview-panel-head { min-height: 66px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, auto); gap: 12px; align-items: center; padding: 12px 16px 9px; border-bottom: 1px solid #edf1f7; }
.overview-panel-head h3, .overview-section-head h3 { margin: 0; color: #22314f; font-size: 15px; font-weight: 850; }
.overview-panel-head p, .overview-section-head p { margin: 4px 0 0; color: #7a879d; font-size: 12px; }
.overview-title-line { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 11px; }
.overview-title-line h3 { color: #111c32; font-size: 23px; line-height: 1.1; }
.overview-title-line span { color: #111c32; font-size: 13px; font-weight: 780; }
.overview-directory-panel .overview-section-head { align-items: center; padding-top: 16px; padding-bottom: 14px; }
.overview-directory-panel .overview-section-head h3 { color: #111c32; font-size: 19px; line-height: 1.15; }
.overview-directory-panel .workbench-store-card strong { color: #101b31; font-size: 13.5px; font-weight: 850; }
.overview-count-text { color: #111c32; font-size: 14px; font-weight: 850; white-space: nowrap; }
.overview-date-control { width: min(100%, 220px); }
.overview-date-control .date-picker-popover { left: auto; right: 0; z-index: 80; width: min(680px, calc(100vw - 320px)); max-height: calc(100vh - 180px); overflow: auto; }
.overview-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.overview-metric { position: relative; min-width: 0; padding: 14px 16px 13px; border-left: 1px solid #edf1f7; }
.overview-metric:first-child { border-left: 0; }
.overview-metric span { display: block; overflow: hidden; padding-right: 92px; color: #6e7b91; font-size: 12px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.overview-metric strong { display: block; overflow: hidden; margin-top: 9px; color: #16233f; font-size: 28px; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.overview-metric.primary strong { color: #0d47c5; }
.overview-metric em { display: inline-flex; align-items: center; min-height: 22px; margin-top: 10px; padding: 0 8px; border-radius: 999px; background: #eef3fb; color: #62708a; font-size: 11px; font-style: normal; font-weight: 820; }
.overview-metric em.up { background: #e9f8ef; color: #07834f; }
.overview-metric em.down { background: #fff0f1; color: #c94455; }
.overview-metric .metric-badge { position: absolute; top: 12px; right: 12px; max-width: calc(100% - 74px); overflow: hidden; margin-top: 0; text-overflow: ellipsis; white-space: nowrap; }
.overview-support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #edf1f7; }
.overview-support-grid > span { min-width: 0; padding: 11px 16px; border-left: 1px solid #edf1f7; }
.overview-support-grid > span:first-child { border-left: 0; }
.overview-support-grid small { display: block; overflow: hidden; color: #7b879b; font-size: 11px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.overview-support-grid strong { display: block; overflow: hidden; margin-top: 4px; color: #263652; font-size: 15px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.month-choice-control { justify-self: end; display: grid; gap: 7px; min-width: 176px; }
.month-choice-buttons { display: grid; grid-template-columns: 34px minmax(105px, 1fr) 34px; align-items: center; gap: 7px; }
.month-choice-buttons strong { display: block; min-height: 34px; padding: 8px 10px; border: 1px solid #dbe3ef; border-radius: 9px; background: #fff; color: #16233f; font-size: 13px; font-weight: 850; text-align: center; white-space: nowrap; }
.overview-section-head { padding: 12px 16px 10px; }
.overview-rank-list { flex: 1 1 auto; min-height: 0; max-height: 196px; display: grid; align-content: start; gap: 0; overflow-y: auto; padding: 6px 16px 14px; scrollbar-gutter: stable; }
.overview-rank-row { min-width: 0; display: grid; grid-template-columns: 30px minmax(155px, 1.2fr) minmax(110px, 1fr) minmax(92px, auto); gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid #eff2f7; }
.overview-rank-row:first-child { border-top: 0; }
.overview-rank-row .rank-index { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #eef4ff; color: #2461dc; font-size: 12px; font-weight: 850; }
.overview-rank-row.top .rank-index { background: #2457e6; color: #fff; }
.rank-main { min-width: 0; }
.rank-main strong { display: block; overflow: hidden; color: #20304c; font-size: 13px; font-weight: 850; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.rank-main small { display: block; margin-top: 4px; color: #7c899f; font-size: 11px; }
.rank-track { height: 7px; overflow: hidden; border-radius: 999px; background: #edf2f7; }
.rank-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #0f9f8d); }
.overview-rank-row b { color: #174bc4; font-size: 13px; text-align: right; white-space: nowrap; }
.overview-rank-list.compact .overview-rank-row { grid-template-columns: 30px minmax(96px, 1fr) minmax(70px, .75fr) minmax(82px, auto); gap: 9px; }
.overview-empty { min-height: 160px; display: grid; place-items: center; color: #7a879d; font-size: 13px; }
.table-status-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fbfcff; }
.table-status-bar strong { color: #263652; font-size: 13px; }
.table-status-bar span { color: #8490a4; font-size: 11px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 20px; border-bottom: 1px solid var(--line); }
.panel-head p { margin: 4px 0 0; font-size: 12px; }
.store-data-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px; }
.store-data-actions { align-self: end; align-items: center; justify-content: flex-end; gap: 8px; }
.store-data-mode-switch { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid #dbe4f3; border-radius: 12px; background: #f7faff; }
.store-data-mode-switch .button { min-height: 31px; border-radius: 8px; padding-inline: 12px; }
.store-data-export-button { min-height: 37px; padding: 0 16px; border-color: #bfd5ff; border-radius: 10px; background: #fff; color: #174bc4; font-weight: 820; box-shadow: 0 6px 16px rgba(37, 99, 235, .08); }
.store-data-export-button:hover { border-color: #8fb9ff; background: #f4f8ff; }
.store-data-total { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(118px, 1fr)); gap: 9px; }
.store-data-total span { min-width: 0; padding: 12px 14px; border: 1px solid #d8e6ff; border-radius: 11px; background: linear-gradient(135deg, #f3f8ff, #ffffff); box-shadow: 0 7px 18px rgba(37, 99, 235, .06); }
.store-data-total span.primary { border-color: #bed5ff; background: linear-gradient(135deg, #edf5ff, #ffffff); }
.store-data-total small { display: block; margin-bottom: 6px; color: #5d6e8d; font-size: 12px; font-weight: 760; }
.store-data-total strong { display: block; overflow: hidden; color: #174bc4; font-size: 22px; font-weight: 850; line-height: 1.1; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.store-data-country-button { display: inline-flex; align-items: baseline; border: 0; padding: 0; background: transparent; color: #174bc4; font-size: 22px; font-weight: 850; line-height: 1.1; }
.store-data-country-button:hover { color: #0f3aa1; text-decoration: underline; }
.store-data-bulkbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: #f8fbff; }
.store-data-bulkbar strong { display: block; color: #183761; font-size: 13px; }
.store-data-bulkbar span { display: block; margin-top: 2px; color: #71809a; font-size: 12px; }
.store-data-fixed-page .store-data-filters { flex: 0 0 auto; margin-bottom: 0; }
.store-data-fixed-page .date-filter { z-index: 50; }
.store-data-fixed-page .date-picker { z-index: 60; }
.store-data-fixed-page .date-picker-popover { z-index: 90; width: min(680px, calc(100vw - 320px)); max-height: calc(100vh - 170px); overflow: auto; }
.store-data-fixed-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.store-data-fixed-panel .panel-head,
.store-data-fixed-panel .store-data-bulkbar,
.store-data-fixed-panel .pagination { flex: 0 0 auto; }
.store-data-fixed-panel .empty { flex: 1 1 auto; min-height: 0; }
.store-data-fixed-panel .fixed-table-scroll { flex: 1 1 auto; max-height: none; }
.select-column { width: 42px; padding-right: 8px; text-align: center; }
.select-column input { width: 16px; height: 16px; min-height: 0; accent-color: #2563eb; }
.source-code-list { display: flex; flex-wrap: wrap; gap: 4px; }
.currency-stack { display: grid; gap: 3px; }
.currency-stack span { white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.view.fixed-view { height: calc(100vh - 70px); overflow: hidden; display: flex; flex-direction: column; padding-top: 18px; padding-bottom: 8px; }
.view.fixed-view .page-head { flex: 0 0 auto; }
.fixed-page { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.fixed-table-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-gutter: stable; }
.fixed-table-scroll thead th { position: sticky; top: 0; z-index: 2; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px 18px; color: #768197; background: #fafbfe; font-size: 11px; font-weight: 800; letter-spacing: .025em; text-align: left; white-space: nowrap; }
td { padding: 15px 18px; border-top: 1px solid #eff1f6; white-space: nowrap; }
td.number, th.number { text-align: right; }
.sort-header { width: 100%; display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.sort-header.number { justify-content: flex-end; }
.sort-header i { color: #9aa6ba; font-style: normal; font-size: 11px; }
.sort-header.active { color: #2457c5; }
.sort-header.active i { color: #2457c5; }
.cell-main { font-weight: 750; }
.cell-sub { margin-top: 3px; color: #8390a7; font-size: 11px; }
.empty { display: grid; min-height: 215px; place-items: center; padding: 36px; color: var(--muted); text-align: center; }
.empty strong { display: block; margin-bottom: 6px; color: #42516d; }
.upload-grid { display: grid; grid-template-columns: minmax(360px, .88fr) minmax(420px, 1.12fr); gap: 22px; align-items: start; }
.upload-fixed-page .upload-grid { flex: 1 1 auto; min-height: 0; grid-template-columns: minmax(420px, .92fr) minmax(520px, 1.08fr); gap: 22px; align-items: stretch; }
.form-panel { padding: 23px; }
.form-panel form { display: grid; gap: 16px; margin-top: 20px; }
.upload-import-panel { padding: 24px; }
.upload-fixed-page .upload-import-panel { height: 100%; min-height: 0; max-height: 100%; overflow: auto; }
.upload-main-title { margin: 0 0 18px; color: #071735; font-size: 24px; font-weight: 850; letter-spacing: 0; }
.upload-preview-slot:empty { display: none; }
.upload-side { display: grid; gap: 18px; align-content: start; }
.upload-fixed-page .upload-side { height: 100%; min-height: 0; display: flex; flex-direction: column; align-content: stretch; }
#upload-result-slot:empty { display: none; }
.upload-history-panel { overflow: hidden; }
.upload-fixed-page .upload-history-panel { flex: 1 1 auto; height: 100%; min-height: 0; display: flex; flex-direction: column; }
.upload-history-head { padding-block: 18px; }
.upload-history-table { max-height: 560px; overflow: auto; }
.upload-fixed-page .upload-history-table { flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; scrollbar-gutter: stable; }
.upload-history-table table { min-width: 720px; }
.upload-history-table thead th { position: sticky; top: 0; z-index: 1; }
.upload-file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.file-picker-field { display: grid; gap: 7px; }
.hidden-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fake-file-input { min-width: 0; min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 5px 9px; border: 1px solid #d9dfeb; border-radius: 10px; background: #fff; overflow: hidden; }
.fake-file-input .button { flex: 0 0 auto; }
.fake-file-input span { flex: 1 1 auto; min-width: 0; max-width: 100%; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.manual-preview-slot:empty { display: none; }
.manual-date-note { margin: -6px 0 0; }
.manual-import-accordion { margin-top: 18px; overflow: hidden; border: 1px solid #d9e4f4; border-radius: 13px; background: #fbfdff; }
.manual-import-toggle { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 15px; border: 0; background: #fff; color: #1b2d4b; text-align: left; }
.manual-import-toggle span { min-width: 0; display: grid; gap: 4px; }
.manual-import-toggle strong { color: #13233f; font-size: 16px; font-weight: 850; }
.manual-import-toggle small { color: #71809a; font-size: 12px; font-weight: 600; }
.manual-import-toggle i { flex: 0 0 auto; min-width: 48px; height: 32px; display: inline-grid; place-items: center; border: 1px solid #c9dcff; border-radius: 999px; background: #f3f7ff; color: #1d4ed8; font-size: 12px; font-style: normal; font-weight: 850; }
.manual-import-toggle.open { border-bottom: 1px solid #e7edf7; background: #f8fbff; }
.manual-upload-form { margin: 0; padding: 16px; border-top: 0; background: #fbfdff; }
.notice { padding: 15px; border: 1px solid #bfd5fe; border-radius: 10px; background: var(--blue-soft); color: #29519c; font-size: 13px; line-height: 1.65; }
.notice strong { display: block; margin-bottom: 3px; }
.warning-line { color: #b45309; font-weight: 700; }
.ad-data-warning {
  display: block;
  width: 108px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-result { padding: 22px; border: 1px dashed #a9c5fb; border-radius: 14px; background: #f8fbff; }
.upload-result h3 { color: #27529d; }
.result-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 17px 0; }
.result-metrics div { padding: 12px; border-radius: 9px; background: white; }
.result-metrics span { display: block; color: #7a879d; font-size: 11px; }
.result-metrics b { display: block; margin-top: 5px; font-size: 18px; }
.admin-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr); gap: 22px; align-items: start; }
.admin-fixed-page .admin-grid { flex: 1 1 auto; min-height: 0; align-items: stretch; }
.admin-form-panel { min-height: 0; overflow: auto; }
.fixed-list-panel { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.fixed-list-panel .panel-head,
.fixed-list-panel .store-settings-bulkbar,
.fixed-list-panel .pagination { flex: 0 0 auto; }
.fixed-list-panel .empty { flex: 1 1 auto; min-height: 0; }
.fixed-list-panel .table-wrap { flex: 1 1 auto; min-height: 0; max-height: none; }
.store-settings-layout { grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); }
.stores-fixed-page #new-store-panel > h3,
.stores-fixed-page .store-settings-head h3 { margin: 0; color: #071735; font-size: 22px; font-weight: 850; letter-spacing: 0; line-height: 1.15; }
.stores-fixed-page #new-store-panel > h3 { margin-bottom: 2px; }
.stores-fixed-page .store-settings-head { min-height: 64px; }
.store-settings-table { table-layout: fixed; }
.store-settings-table th:nth-child(1) { width: 4%; }
.store-settings-table th:nth-child(2) { width: 38%; }
.store-settings-table th:nth-child(3) { width: 13%; }
.store-settings-table th:nth-child(4) { width: 10%; }
.store-settings-table th:nth-child(5) { width: 10%; }
.store-settings-table th:nth-child(6) { width: 25%; }
.store-settings-table th,
.store-settings-table td { text-align: center; }
.store-settings-table td { vertical-align: middle; }
.store-settings-table th:nth-child(2),
.store-settings-table td:nth-child(2) { text-align: left; }
.store-settings-table .store-select-cell { padding-left: 12px; padding-right: 4px; text-align: center; }
.store-settings-table .store-select-cell input { width: 16px; height: 16px; margin: 0; cursor: pointer; }
.store-settings-table .store-name-cell { white-space: normal; }
.store-settings-table .store-name-cell .cell-main { overflow: visible; line-height: 1.35; overflow-wrap: normal; text-overflow: clip; white-space: nowrap; }
.store-row-actions { justify-content: center; flex-wrap: nowrap; white-space: nowrap; gap: 6px; }
.store-row-actions .button { min-width: 0; padding-inline: 9px; }
.store-settings-bulkbar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px solid #dce7f8; background: #f5f9ff; }
.store-settings-bulkbar[hidden] { display: none; }
.store-settings-bulkbar strong { color: #183761; font-size: 13px; }
.store-settings-bulkbar small { display: block; margin-top: 2px; color: #71809a; font-size: 11px; }
.member-count-button { min-height: 30px; padding: 0 10px; border: 1px solid #c7dcff; border-radius: 999px; background: #eff6ff; color: #2352a8; font-size: 12px; font-weight: 800; white-space: nowrap; }
.member-count-button:hover { border-color: #8fb9ff; background: #dbeafe; color: #174bc4; }
.orders-fixed-page { height: 100%; }
.orders-panel { flex: 1 1 auto; height: auto; }
.order-management-pulse { flex: 0 0 auto; min-width: 0; margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.order-management-pulse[hidden] { display: none; }
.order-pulse-summary { width: 100%; height: 56px; display: grid; grid-template-columns: repeat(3, minmax(104px, .66fr)) minmax(240px, 1.55fr); overflow: hidden; border: 1px solid #dfe3e8; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(26, 26, 26, .08); }
.order-pulse-summary.store-data-pulse-summary { grid-template-columns: repeat(4, minmax(110px, .58fr)) minmax(300px, 1.5fr); }
.order-pulse-metric { min-width: 0; display: grid; align-content: center; gap: 3px; padding: 7px 15px; border-right: 1px solid #e7e9ec; }
.order-pulse-metric span { overflow: hidden; color: #6d7175; font-size: 9.5px; font-weight: 660; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.order-pulse-metric strong { width: fit-content; max-width: 100%; overflow: hidden; color: #202223; font-size: 18px; font-variant-numeric: tabular-nums; font-weight: 780; letter-spacing: -.02em; line-height: 1.1; text-overflow: ellipsis; transform-origin: center bottom; white-space: nowrap; }
.order-pulse-metric:nth-child(2) strong { color: #225fd4; }
.store-data-pulse-summary .order-pulse-metric:nth-child(2) strong { color: #202223; }
.store-data-pulse-summary .order-pulse-metric:nth-child(4) strong { color: #225fd4; }
.order-pulse-metric strong.is-flipping { animation: order-pulse-flip .72s cubic-bezier(.2, .75, .2, 1); }
.order-pulse-summary.is-loading .order-pulse-metric strong { color: #a3aab7; }
.order-pulse-window { min-width: 0; display: grid; grid-template-rows: auto 22px; align-content: center; gap: 2px; padding: 6px 15px; background: #fff; }
.order-pulse-window-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-pulse-window-head span { color: #34445e; font-size: 10px; font-weight: 760; white-space: nowrap; }
.order-pulse-refresh { min-width: 0; overflow: hidden; color: #7b8798; font-size: 9px; font-weight: 600; line-height: 1.2; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.order-pulse-viewport { height: 22px; overflow: hidden; }
.order-pulse-track { will-change: transform; }
.order-pulse-track.is-moving { transition: transform .62s cubic-bezier(.22, .78, .24, 1); }
.order-pulse-store { height: 22px; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-pulse-store span { min-width: 0; overflow: hidden; color: #172033; font-size: 11px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
.order-pulse-store strong { flex: 0 0 auto; padding: 2px 7px; border: 1px solid #bed2fb; border-radius: 999px; background: #eef4ff; color: #1d58cf; font-size: 9px; font-variant-numeric: tabular-nums; font-weight: 820; white-space: nowrap; }
.order-pulse-empty { display: flex; align-items: center; color: #7f8da3; font-size: 10px; font-weight: 600; }
@keyframes order-pulse-flip {
  0% { opacity: .45; transform: perspective(260px) rotateX(-68deg) translateY(-3px); }
  48% { opacity: 1; transform: perspective(260px) rotateX(7deg) translateY(1px); }
  100% { opacity: 1; transform: perspective(260px) rotateX(0) translateY(0); }
}
.orders-toolbar { flex: 0 0 auto; min-height: 78px; display: grid; grid-template-columns: minmax(190px, 240px) minmax(320px, 440px) minmax(320px, 1fr); justify-content: start; align-items: end; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #dedede; background: #fff; }
.orders-toolbar.with-members { grid-template-columns: minmax(190px, 240px) minmax(320px, 440px) minmax(160px, 210px) minmax(320px, 1fr); }
.orders-toolbar label { margin: 0; }
.orders-toolbar .button { height: 36px; }
.orders-toolbar .orders-date-field,
.orders-toolbar .orders-choice-field { width: auto; min-width: 0; display: grid; gap: 5px; }
.orders-toolbar .filter-label { min-height: 13px; display: flex; align-items: flex-end; color: #616161; font-size: 11px; font-weight: 650; line-height: 1; white-space: nowrap; }
.orders-toolbar .date-picker-trigger,
.orders-toolbar .orders-choice-field .store-choice-trigger { height: 36px; min-height: 36px; border-color: #c9cccf; border-radius: 8px; box-shadow: none; }
.orders-toolbar .orders-choice-popover { width: min(620px, calc(100vw - 320px)); }
.orders-toolbar .orders-member-choice-popover { width: min(460px, calc(100vw - 320px)); }
.orders-toolbar .orders-choice-list { grid-template-columns: repeat(2, minmax(220px, 1fr)); max-height: 260px; }
.orders-toolbar .orders-member-choice-popover .orders-choice-list { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
.orders-toolbar .orders-keyword { width: 100%; min-width: 0; }
.orders-report-switch { display: grid; grid-template-columns: repeat(3, minmax(88px, 1fr)); align-self: end; justify-self: end; width: min(312px, 100%); max-width: 100%; min-width: 0; height: 36px; padding: 2px; border: 1px solid #c9cccf; border-radius: 9px; background: #f1f1f1; box-shadow: none; }
.orders-report-switch button { min-width: 0; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #475569; font-size: 12px; font-weight: 750; white-space: nowrap; cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.orders-report-switch button:hover { color: #1d4ed8; background: #eef4ff; }
.orders-report-switch button.active { background: #2f68e8; color: #fff; box-shadow: 0 2px 5px rgba(47, 104, 232, .24); }
.orders-report-switch button.active:hover { color: #fff; background: #285ed8; }
.orders-report-switch button:focus-visible { outline: 2px solid #73a0ff; outline-offset: 1px; }
.orders-report-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.orders-report-table th, .orders-report-table td { height: 38px; padding: 7px 12px; overflow: hidden; border-bottom: 1px solid #e5e7eb; color: #1f2937; font-size: 11px; vertical-align: middle; }
.orders-report-table th { background: #fff; color: #526074; font-weight: 650; text-align: left; white-space: nowrap; }
.orders-report-table th.number, .orders-report-table td.number { text-align: right; }
.orders-report-table .sort-header, .orders-table .sort-header { min-height: 24px; }
.orders-report-table .cell-main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orders-report-summary-row td { background: #f4f5f7; color: #111827; }
.orders-report-path { color: #243047; font-family: inherit; font-size: 11px; }
.orders-report-product { display: grid; gap: 2px; min-width: 0; }
.orders-report-product span { overflow: hidden; color: #1f2937; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.orders-report-product small { overflow: hidden; color: #7b8798; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.order-report-member { display: block; overflow: hidden; color: #253142; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.orders-report-table th.report-owner-column,
.orders-report-table td.report-owner-column,
.orders-report-table .orders-report-summary-row td:last-child { text-align: right; }
.orders-report-table th.report-owner-column .sort-header { justify-content: flex-end; text-align: right; }
.cart-report-table th:nth-child(1) { width: 28%; }
.cart-report-table th:nth-child(2) { width: 27%; }
.cart-report-table th:nth-child(3), .cart-report-table th:nth-child(4), .cart-report-table th:nth-child(5) { width: 10%; }
.cart-report-table th:nth-child(6) { width: 15%; }
.sales-report-table th:nth-child(1) { width: 22%; }
.sales-report-table th:nth-child(2) { width: 28%; }
.sales-report-table th:nth-child(3), .sales-report-table th:nth-child(4) { width: 8%; }
.sales-report-table th:nth-child(5), .sales-report-table th:nth-child(6) { width: 10%; }
.sales-report-table th:nth-child(7) { width: 14%; }
.orders-date-field { position: relative; min-width: 0; }
.orders-date-picker { left: 0; width: min(680px, calc(100vw - 320px)); max-height: calc(100vh - 190px); overflow: auto; }
.orders-selection-summary { flex: 0 0 auto; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 6px 12px 6px 16px; border-bottom: 1px solid #cfe0ff; background: #f3f7ff; }
.orders-selection-summary[hidden] { display: none; }
.orders-selection-summary [data-order-selection-values] { min-width: 0; display: flex; align-items: baseline; gap: 18px; color: #43536b; font-size: 12px; white-space: nowrap; }
.orders-selection-summary strong { color: #174fc4; font-size: 13px; font-weight: 800; }
.orders-selection-summary span { font-weight: 680; }
.orders-selection-summary .button { flex: 0 0 auto; min-width: 100px; }
.orders-table { min-width: 1180px; }
.orders-table th,
.orders-table td { vertical-align: middle; }
.orders-table tbody td { padding-top: 8px; padding-bottom: 8px; font-size: 12px; }
.orders-table tbody .cell-main { white-space: nowrap; }
.orders-table { table-layout: fixed; }
.orders-table th:nth-child(1) { width: 3%; }
.orders-table th:nth-child(2) { width: 9%; }
.orders-table th:nth-child(3) { width: 10%; }
.orders-table th:nth-child(4) { width: 25%; }
.orders-table th:nth-child(5) { width: 8%; }
.orders-table th:nth-child(6) { width: 8%; }
.orders-table th:nth-child(7) { width: 15%; }
.orders-table th:nth-child(8) { width: 11%; }
.orders-table th:nth-child(9) { width: 11%; }
.orders-table .order-select-cell { padding-left: 12px; padding-right: 4px; text-align: center; }
.orders-table .order-select-cell input { width: 15px; height: 15px; margin: 0; cursor: pointer; }
.orders-table .order-usd-cell .cell-main { color: #174fc4; font-weight: 780; }
.order-member-cell { overflow: visible; }
.orders-report-table th.order-owner-column,
.orders-report-table td.order-owner-column,
.orders-table th.order-owner-column,
.orders-table td.order-owner-column {
  min-width: 150px;
  padding-left: 12px;
  padding-right: 12px;
  border-left: 0;
}
.order-member-inline { display: inline-flex; max-width: 100%; align-items: center; gap: 4px; color: #253142; font-size: 11px; font-weight: 650; white-space: nowrap; }
.order-member-inline > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.order-member-edit { flex: 0 0 auto; width: 21px; height: 21px; display: inline-grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; }
.order-member-edit:hover { border-color: #dbe3ef; background: #f4f7fb; }
.order-member-edit:focus-visible { outline: 2px solid #4f8df7; outline-offset: 1px; }
.order-member-edit img { width: 11px; height: 11px; opacity: .82; }
.order-assignee-popover { position: fixed; z-index: 150; width: 320px; max-height: min(420px, calc(100vh - 24px)); overflow: auto; padding: 0; border: 1px solid #dbe2ec; border-radius: 12px; background: #fff; box-shadow: 0 18px 42px rgba(15, 23, 42, .22); }
.order-assignee-popover-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 13px 10px; border-bottom: 1px solid #e5e7eb; background: #fff; }
.order-assignee-popover-head > div { display: grid; gap: 2px; }
.order-assignee-popover-head strong { color: #111827; font-size: 13px; }
.order-assignee-popover-head small { color: #64748b; font-size: 10px; }
.order-assignee-popover-head button { padding: 2px 5px; border: 0; background: transparent; color: #64748b; font-size: 10px; cursor: pointer; }
.order-assignee-popover > p { margin: 10px 13px 7px; color: #64748b; font-size: 10px; line-height: 1.45; }
.order-assignee-list { display: grid; gap: 3px; max-height: 230px; overflow: auto; padding: 2px 10px 8px; }
.order-assignee-list label { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 6px; min-height: 34px; padding: 5px 7px; border-radius: 8px; cursor: pointer; }
.order-assignee-list label:hover { background: #f6f8fb; }
.order-assignee-list input { width: 14px; height: 14px; margin: 0; }
.order-assignee-list span { overflow: hidden; color: #243047; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.order-assignee-list small { color: #8791a1; font-size: 9px; white-space: nowrap; }
.order-assignee-list input:disabled + span { color: #174fc4; }
.order-assignee-actions { display: flex; justify-content: flex-end; gap: 7px; padding: 9px 12px 11px; border-top: 1px solid #edf0f4; }
@media (max-width: 1180px) {
  .order-pulse-summary { grid-template-columns: repeat(3, minmax(90px, .64fr)) minmax(190px, 1.45fr); }
  .order-pulse-summary.store-data-pulse-summary { grid-template-columns: repeat(4, minmax(82px, .55fr)) minmax(190px, 1.4fr); }
  .order-pulse-metric { padding-inline: 10px; }
  .order-pulse-window { padding-inline: 10px; }
  .orders-toolbar,
  .orders-toolbar.with-members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orders-toolbar .orders-keyword,
  .orders-toolbar .orders-report-switch { grid-column: 1 / -1; }
  .orders-toolbar .orders-choice-popover,
  .orders-toolbar .orders-member-choice-popover,
  .orders-date-picker { width: min(680px, calc(100vw - 32px)); }
}
@media (max-width: 560px) {
  .order-management-pulse { padding: 0; }
  .order-pulse-summary { height: auto; min-height: 112px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 56px 56px; }
  .order-pulse-summary.store-data-pulse-summary { min-height: 168px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 56px 56px 56px; }
  .order-pulse-metric { padding-inline: 8px; }
  .order-pulse-window { grid-column: 1 / -1; border-top: 1px solid #e7e9ec; }
  .orders-toolbar,
  .orders-toolbar.with-members { grid-template-columns: 1fr; }
  .orders-toolbar .orders-keyword,
  .orders-toolbar .orders-report-switch { grid-column: auto; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .orders-selection-summary { align-items: stretch; flex-direction: column; gap: 8px; }
  .orders-selection-summary [data-order-selection-values] { align-items: flex-start; flex-direction: column; gap: 3px; white-space: normal; }
  .order-assignee-popover { width: min(320px, calc(100vw - 24px)); }
}
@media (prefers-reduced-motion: reduce) {
  .order-pulse-metric strong.is-flipping { animation: none; }
  .order-pulse-track.is-moving { transition: none; }
}
.order-product-tag { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 6px; border-radius: 6px; background: #f1f5f9; color: #334155; font-size: 11px; }
.order-product-count { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: transparent; color: #334155; font-size: 11px; font-weight: 500; line-height: 1.2; cursor: pointer; }
.order-product-count::after { content: '⌄'; color: #64748b; font-size: 10px; line-height: 1; opacity: 0; transform: translateY(-1px); transition: opacity .12s ease; }
.order-product-count:hover { color: #111827; }
.order-product-count:hover::after, .order-product-count:focus-visible::after { opacity: 1; }
.order-product-detail-list { display: grid; gap: 8px; }
.order-product-detail-row { padding: 11px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; color: #1e293b; font-weight: 700; }
.order-product-popover { position: fixed; z-index: 120; width: 310px; max-height: 340px; overflow: auto; padding: 0; border: 1px solid #dbe2ec; border-radius: 10px; background: #fff; box-shadow: 0 14px 34px rgba(15, 23, 42, .18); font-size: 11px; }
.order-product-popover-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; background: #f8fafc; }
.order-product-popover-head strong { color: #111827; font-size: 12px; }
.order-product-popover-head span { color: #64748b; font-size: 10px; white-space: nowrap; }
.order-product-popover .order-product-detail-list { gap: 0; padding: 4px 10px; }
.order-product-popover .order-product-detail-row { padding: 8px 2px; border: 0; border-bottom: 1px solid #eef2f7; border-radius: 0; background: #fff; color: #334155; font-size: 11px; font-weight: 500; line-height: 1.35; cursor: pointer; }
.order-product-popover .order-product-detail-row:last-child { border-bottom: 0; }
.order-product-name { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.order-product-name span { min-width: 0; color: #1f2937; font-weight: 600; }
.order-product-name b { flex: 0 0 auto; color: #475569; font-size: 10px; font-weight: 600; white-space: nowrap; }
.order-product-option { display: inline-block; max-width: 100%; margin-top: 5px; padding: 2px 7px; overflow: hidden; border-radius: 6px; background: #e5e7eb; color: #374151; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.order-fulfillment-status { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.order-fulfillment-status.fulfilled { background: #dcfce7; color: #15803d; }
.order-fulfillment-status.partial, .order-fulfillment-status.scheduled { background: #dbeafe; color: #1d4ed8; }
.order-fulfillment-status.unfulfilled { background: #fef3c7; color: #92400e; }
.order-fulfillment-status.hold { background: #fee2e2; color: #b91c1c; }
.checkbox-list { max-height: 185px; overflow: auto; display: grid; gap: 7px; padding: 9px; border: 1px solid #d9dfeb; border-radius: 10px; }
.fixed-checkbox-list { max-height: 150px; min-height: 86px; scrollbar-gutter: stable; }
.stores-fixed-page .admin-form-panel { display: flex; flex-direction: column; overflow: hidden; }
.stores-fixed-page #new-store-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.stores-fixed-page #new-store-form { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.stores-fixed-page #new-store-form label,
.stores-fixed-page #new-store-form .button.primary,
.stores-fixed-page #new-store-form .form-error { flex: 0 0 auto; }
.stores-fixed-page #new-store-form .member-selector-field { flex: 1 1 auto; min-height: 112px; overflow: hidden; display: flex; flex-direction: column; }
.stores-fixed-page #new-store-form .fixed-checkbox-list { flex: 1 1 auto; height: auto; max-height: none; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; }
.users-layout { grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 20px; }
.users-fixed-page .fixed-list-panel { height: 100%; }
.users-fixed-page .panel-head { padding: 18px 20px; }
.users-fixed-page .admin-form-panel form { gap: 15px; }
.user-account-list { flex: 1 1 auto; min-height: 0; overflow: auto; overflow-x: hidden; scrollbar-gutter: stable; }
.user-account-row { min-width: 0; display: grid; grid-template-columns: 150px 190px minmax(150px, 1fr) 64px 94px 190px; gap: 8px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #eff1f6; }
.user-account-head { position: sticky; top: 0; z-index: 2; padding-top: 11px; padding-bottom: 11px; background: #fafbfe; color: #768197; font-size: 11px; font-weight: 800; letter-spacing: .025em; }
.user-account-cell, .user-account-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-account-cell.wrap { white-space: nowrap; overflow-wrap: normal; }
.user-account-name .cell-main { font-weight: 800; line-height: 1.35; }
.user-account-actions { min-width: 0; display: flex; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
.user-account-actions .button.small { min-height: 32px; padding: 0 7px; white-space: nowrap; }
.ad-reports-fixed-page { gap: 12px; }
.ad-report-filter-panel { position: relative; z-index: 3; flex: 0 0 auto; padding: 0; overflow: visible; }
.ad-report-date-toolbar { padding: 14px 16px; }
.ad-report-filter-toolbar { display: grid; grid-template-columns: minmax(220px, 260px) minmax(260px, 1fr) max-content auto; align-items: end; gap: 14px; }
.ad-report-filter-toolbar.has-member { grid-template-columns: minmax(220px, 260px) minmax(220px, 270px) minmax(260px, 1fr) max-content auto; }
.ad-report-filter-toolbar.no-member { grid-template-columns: minmax(220px, 260px) minmax(260px, 1fr) max-content auto; }
.ad-report-filter-toolbar > * { min-width: 0; }
.ad-report-filter-toolbar > label { max-width: none; }
.ad-report-date-picker { width: 100%; min-width: 0; flex: initial; }
.ad-report-date-popover { width: min(680px, calc(100vw - 320px)); max-height: calc(100vh - 180px); overflow: auto; }
.ad-report-search-field { display: grid; gap: 7px; }
.ad-report-search-field input { width: 100%; }
.ad-report-member-filter { width: 100%; }
.ad-report-member-filter .store-choice-trigger { width: 100%; }
.ad-report-member-popover { width: min(390px, calc(100vw - 48px)); right: 0; left: auto; }
.ad-report-auto-update { min-height: 38px; align-self: end; padding: 4px 10px; }
.ad-report-auto-update.is-disabled { border-color: #d8e2f0; background: #f8fafc; }
.ad-report-filter-actions { display: flex; align-items: flex-end; justify-content: flex-end; }
.ad-report-filter-actions .button { min-width: 116px; white-space: nowrap; }
.ad-report-panel { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; }
.ad-report-head { padding: 12px 18px 10px; }
.ad-report-summary { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; color: #68758f; font-size: 12px; }
.ad-report-summary strong { color: #174bc4; font-size: 18px; font-weight: 850; }
.ad-report-primary-summary { justify-content: flex-start; flex-wrap: nowrap; }
.ad-report-summary-cards { min-width: max-content; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ad-report-summary-cards::-webkit-scrollbar { display: none; }
.ad-report-panel table { min-width: 1040px; }
.ad-report-table { width: 100%; table-layout: fixed; }
.ad-report-table .ad-report-col-select { width: 44px; }
.ad-report-table .ad-report-col-date { width: 120px; }
.ad-report-table .ad-report-col-member { width: 150px; }
.ad-report-table .ad-report-col-operator { width: 180px; }
.ad-report-table .ad-report-col-name { width: 300px; }
.ad-report-table .ad-report-col-number { width: 230px; }
.ad-report-table .ad-report-col-spend { width: 140px; }
.ad-report-table th,
.ad-report-table td { height: 46px; padding: 0 14px; vertical-align: middle; }
.ad-report-table th.select-column,
.ad-report-table td.select-column { padding-right: 8px; padding-left: 8px; }
.ad-report-table th.metric-date .sort-header,
.ad-report-table th.metric-member .sort-header,
.ad-report-table th.metric-operatorLoginAccount .sort-header,
.ad-report-table th.metric-accountNumber .sort-header { justify-content: center; text-align: center; }
.ad-report-table th.metric-accountName .sort-header { justify-content: flex-start; text-align: left; }
.ad-report-table th.metric-spendValue .sort-header { justify-content: flex-end; text-align: right; }
.ad-report-date-cell,
.ad-report-member-cell,
.ad-report-operator-cell,
.ad-report-number-cell { text-align: center; }
.ad-report-member-cell .cell-main,
.ad-report-operator-cell .cell-main,
.ad-report-name-cell .cell-main,
.ad-report-number-cell code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-report-member-cell .cell-main,
.ad-report-operator-cell .cell-main { text-align: center; }
.ad-report-name-cell .cell-main { text-align: left; }
.ad-report-number-cell code { padding: 0; background: transparent; color: inherit; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-align: center; }
.ad-report-spend-cell { padding-right: 18px !important; font-variant-numeric: tabular-nums; }
.ad-report-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 220px);
  align-items: end;
  gap: 16px;
}

.ad-report-detail-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.ad-report-back-button {
  width: auto;
  min-width: 72px;
  justify-self: start;
}

.ad-report-info-zone {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 820px);
  gap: 16px;
  align-items: start;
}

.ad-report-info-zone.has-local-time {
  grid-template-columns: minmax(0, 820px) minmax(178px, 210px);
  column-gap: 28px;
}

.ad-report-detail-copy {
  min-width: 0;
}

.ad-report-detail-tools {
  display: grid;
  justify-items: end;
  gap: 8px;
  padding-bottom: 2px;
}

.ad-report-reportbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 32px;
  padding: 3px 12px;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  background: #fbfdff;
}

.ad-report-reportbar-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
}

.ad-data-delete-preview {
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
}

.ad-data-delete-preview > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.ad-data-delete-preview span {
  color: #64748b;
  font-size: 12px;
}

.ad-report-comparison {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.ad-report-comparison > div {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  height: 26px;
  padding: 3px 7px;
  border: 1px solid #dbe7ff;
  border-radius: 6px;
  background: #fff;
}

.ad-report-comparison strong {
  color: #09090b;
  font-size: 11px;
  font-weight: 850;
}

.ad-report-comparison.muted {
  color: #64748b;
  white-space: nowrap;
}

#delete-selected-ad-data-snapshots {
  box-sizing: border-box;
  align-self: center;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px;
  padding: 0 9px !important;
  line-height: 24px;
}

.ad-report-row-color-tools {
  flex: 0 0 auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 2px 5px;
  border: 1px solid #dbe7ff;
  border-radius: 6px;
  background: #ffffff;
}

.ad-report-row-color-tools > span {
  margin-right: 1px;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.ad-report-row-color-swatch {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--swatch-border);
  border-radius: 5px;
  background: var(--swatch-color);
  cursor: pointer;
}

.ad-report-row-color-swatch:hover,
.ad-report-row-color-swatch.active {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.ad-report-row-color-reset {
  box-sizing: border-box;
  height: 20px;
  padding: 0 6px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #334155;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  cursor: pointer;
}

.ad-report-row-color-reset:hover,
.ad-report-row-color-reset.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
  color: #1d4ed8;
}

.ad-report-row-color-tools button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.ad-report-row-count {
  flex: 0 0 auto;
  color: #475569;
  font-size: 10px;
  font-weight: 850;
}
.ad-report-title {
  margin: 0 0 8px;
  line-height: 1.25;
}
.ad-report-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  max-width: min(820px, 100%);
  border: 1px solid #e5ebf4;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.ad-report-info-grid > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border-right: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}
.ad-report-info-grid > div:nth-child(2n) {
  border-right: 0;
}
.ad-report-info-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.ad-report-info-grid span,
.ad-report-post-link > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.ad-report-info-grid strong,
.ad-report-fulltext {
  min-width: 0;
  color: #09090b;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-report-fulltext {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  line-height: 1.35;
  text-align: left;
  cursor: text;
  user-select: text;
}
.ad-report-post-link {
  display: grid;
  grid-template-columns: 72px minmax(0, max-content);
  align-items: center;
  gap: 8px;
  max-width: min(820px, 100%);
  margin-top: 8px;
  min-height: 32px;
}
.ad-report-link-copy {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ad-report-link-copy a {
  min-width: 0;
  max-width: min(640px, 60vw);
  color: #245bd6;
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-report-link-copy .button {
  flex: 0 0 auto;
}
.ad-report-local-time {
  justify-self: start;
  min-width: min(210px, 100%);
  display: grid;
  gap: 6px;
  color: #09090b;
}
.ad-report-local-time em {
  color: #09090b;
  font-size: 14px;
  font-style: normal;
  font-weight: 850;
}
.ad-report-local-time div {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.ad-report-local-time span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-width: 178px;
  width: 100%;
  padding: 7px 11px;
  border: 1px solid #dbe7ff;
  border-radius: 8px;
  background: #f8fbff;
}
.ad-report-local-time small {
  color: #09090b;
  font-size: 13px;
  font-weight: 850;
}
.ad-report-local-time strong {
  color: #09090b;
  font-size: 15px;
  font-weight: 850;
}
.fulltext-modal {
  display: grid;
  gap: 16px;
}
.fulltext-box {
  max-height: 48vh;
  overflow: auto;
  padding: 14px;
  border: 1px solid #e5ebf4;
  border-radius: 8px;
  background: #f8fafc;
  color: #09090b;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.plugin-key-panel { display: grid; gap: 15px; }
.plugin-management-fixed-page { justify-content: flex-start; }
.plugin-management-panel { flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow-x: hidden; overflow-y: auto; }
.plugin-management-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.plugin-management-head h3 { margin: 0; color: #071735; font-size: 24px; font-weight: 850; letter-spacing: 0; }
.plugin-management-head p { margin: 5px 0 0; color: #62708b; font-size: 12px; line-height: 1.45; }
.plugin-management-grid { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); align-items: stretch; gap: 16px; padding: 16px 20px 20px; }
.plugin-management-grid.member-only { grid-template-columns: minmax(0, 1fr); }
.plugin-management-main { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); align-content: stretch; gap: 16px; }
.plugin-card { min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid #dfe7f3; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(24, 39, 75, .035); }
.plugin-card-kicker { width: fit-content; padding: 5px 9px; border: 1px solid #bcd3ff; border-radius: 999px; background: #f5f9ff; color: #1d4ed8; font-size: 11px; font-weight: 850; letter-spacing: .04em; }
.plugin-card h4 { margin: 0; color: #101b31; font-size: 20px; font-weight: 850; letter-spacing: 0; }
.plugin-card p { margin: 0; color: #64708a; font-size: 13px; line-height: 1.65; }
.plugin-task-reset-card { min-width: 0; min-height: 0; align-self: stretch; justify-content: flex-start; }
.plugin-task-reset-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.plugin-task-reset-form label { min-width: 0; }
.plugin-task-reset-form select { width: 100%; }
.plugin-task-reset-form .button { min-width: 132px; justify-self: start; }
.plugin-meta { display: grid; gap: 7px; margin-top: auto; color: #53627c; font-size: 12px; }
.plugin-meta span { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 9px; background: #f8fafc; }
.plugin-meta b { color: #17233d; font-weight: 850; }
.plugin-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.copy-row { min-width: 0; display: flex; align-items: center; gap: 8px; }
.copy-row input { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.copy-row .button { flex: 0 0 auto; }
.field-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.form-field { display: grid; gap: 7px; }
.store-settings-bulkbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: #f8fbff; }
.store-settings-bulkbar strong { color: #17355c; font-size: 13px; }
.batch-store-form .reimport-target-list { margin-bottom: 4px; }
.batch-member-field { transition: .18s opacity; }
.muted-section { opacity: .55; }
.checkbox-line { display: flex; align-items: center; gap: 8px; color: #3d4962; font-size: 13px; font-weight: 600; }
.checkbox-line input { width: auto; min-height: 0; }
.checkbox-line input[type="checkbox"] { width: 16px; height: 16px; }
.store-data-filters { align-items: end; }
.store-choice-control { display: grid; gap: 7px; flex: 1 1 300px; min-width: 260px; }
.store-choice-menu { position: relative; }
.store-choice-trigger { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid #d9dfeb; border-radius: 10px; background: white; color: #34415a; text-align: left; }
.store-choice-trigger strong { flex: 1; color: var(--ink); font-size: 13px; }
.store-choice-trigger i { color: #71809a; font-size: 15px; font-style: normal; }
.store-choice-popover { position: absolute; top: calc(100% + 8px); left: 0; z-index: 90; width: min(520px, calc(100vw - 50px)); padding: 9px; border: 1px solid #dce3ee; border-radius: 12px; background: white; box-shadow: 0 18px 50px rgba(19, 35, 66, .18); }
.store-choice-popover-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 3px 9px; border-bottom: 1px solid #edf1f7; }
.store-choice-popover-head strong { color: #20304c; font-size: 13px; font-weight: 850; }
.store-choice-popover-head span { color: #2563eb; font-size: 11px; font-weight: 850; white-space: nowrap; }
.store-choice-list { max-height: 210px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border: 0; padding: 9px 0; }
.store-choice-list .checkbox-line { min-width: 0; flex: 0 0 auto; display: flex; }
.store-choice-list .checkbox-line:first-child { grid-column: 1 / -1; padding-bottom: 6px; border-bottom: 1px solid #edf0f6; color: #243555; }
.store-choice-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 9px; border-top: 1px solid #edf1f7; }
.pill { display: inline-block; padding: 4px 7px; border-radius: 99px; background: #edf2fa; color: #60718f; font-size: 11px; font-weight: 750; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.table-actions { display: flex; justify-content: end; gap: 7px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); background: #fcfdff; color: #1f2937; font-size: 13px; }
.pagination * { font-size: 13px; }
.pagination-summary { color: #1f2937; white-space: nowrap; }
.pagination-pages { display: inline-flex; align-items: center; gap: 2px; }
.pagination-page, .pagination-arrow { min-width: 26px; height: 28px; display: inline-grid; place-items: center; padding: 0 7px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #1f2937; font-weight: 500; line-height: 1; }
.pagination-page:hover, .pagination-arrow:hover:not(:disabled) { border-color: #bfd5ff; color: #1d4ed8; }
.pagination-page.active { border-color: #4f8cff; background: #fff; color: #1d4ed8; }
.pagination-arrow:disabled { color: #b8c1d1; cursor: default; }
.pagination-ellipsis { min-width: 22px; color: #8a96aa; text-align: center; }
.pagination label { display: inline-flex; align-items: center; gap: 6px; color: #1f2937; font-weight: 500; white-space: nowrap; }
.pagination select { width: auto; min-height: 30px; padding: 0 26px 0 9px; border-radius: 4px; font-size: 13px; }
.pagination-jump input { width: 46px; min-height: 28px; padding: 0 6px; border-radius: 2px; text-align: center; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: min(420px, calc(100vw - 44px)); padding: 13px 17px; border-radius: 10px; color: white; background: #172033; box-shadow: 0 12px 30px rgba(10, 21, 42, .25); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; font-size: 13px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #b4233a; }
.modal-backdrop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 22px; background: rgba(16,24,40,.58); }
.modal-backdrop.side-backdrop { place-items: stretch end; padding: 0; background: rgba(16,24,40,.34); }
.modal { width: min(100%, 410px); padding: 25px; border-radius: 15px; background: white; box-shadow: var(--shadow); }
.modal-side { width: min(520px, calc(100vw - 34px)); height: 100vh; max-height: 100vh; overflow: auto; border-radius: 18px 0 0 18px; animation: drawerIn .18s ease-out; }
.modal-wide { width: min(860px, calc(100vw - 44px)); max-height: calc(100vh - 44px); overflow: auto; }
.modal-side.modal-wide { width: min(680px, calc(100vw - 34px)); max-height: 100vh; }
.modal-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.modal-title h3 { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.modal-close { flex: 0 0 auto; }
.modal h3 { font-size: 19px; }
.modal form { display: grid; gap: 14px; margin-top: 19px; }
.modal-title + form { margin-top: 0; }
.modal-actions { display: flex; justify-content: end; gap: 10px; margin-top: 8px; }
@keyframes drawerIn { from { opacity: .8; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
.reimport-modal { display: grid; gap: 14px; margin-top: 14px; }
.reimport-target-list { max-height: 210px; overflow: auto; display: grid; gap: 7px; padding: 10px; border: 1px solid #dde6f4; border-radius: 12px; background: #fbfdff; }
.reimport-target-list.compact { max-height: 260px; }
.reimport-target-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 9px; border-bottom: 1px solid #edf1f7; }
.reimport-target-row:last-child { border-bottom: 0; }
.reimport-target-row strong { min-width: 0; overflow-wrap: anywhere; color: #102344; font-size: 13px; }
.reimport-target-row span { color: #5e6f8d; font-size: 12px; white-space: nowrap; }
.reimport-preview { max-height: min(360px, 42vh); overflow: auto; display: grid; gap: 10px; padding: 12px; border: 1px solid #dbe6f7; border-radius: 12px; background: #fbfdff; scrollbar-gutter: stable; }
.reimport-preview p { margin: 4px 0 0; color: #61708a; font-size: 12px; }
.reimport-preview-list { display: grid; gap: 7px; }
.reimport-preview-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(170px, auto) 72px; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #e2e9f5; border-radius: 10px; background: #fff; }
.reimport-preview-row span { justify-self: start; padding: 3px 7px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 850; }
.reimport-preview-row.missing span { background: #fff1f2; color: #e11d48; }
.reimport-preview-row strong { min-width: 0; overflow-wrap: anywhere; color: #1d2d4c; font-size: 13px; }
.reimport-preview-row em { color: #60718f; font-style: normal; font-size: 12px; white-space: nowrap; }
.reimport-preview-row b { color: #174bc4; font-size: 13px; text-align: right; white-space: nowrap; }
.reimport-skip, .reimport-block { display: grid; gap: 5px; padding: 10px 12px; border-radius: 10px; font-size: 12px; line-height: 1.5; }
.reimport-skip { border: 1px solid #fed7aa; background: #fff7ed; color: #9a3412; }
.reimport-block { border: 1px solid #fecdd3; background: #fff1f2; color: #be123c; }
.reimport-skip strong, .reimport-block strong { color: inherit; font-size: 13px; }
.member-list-modal { max-height: min(420px, 60vh); overflow: auto; display: grid; gap: 8px; margin: 16px 0 18px; padding-right: 3px; }
.member-list-row { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfe; }
.member-list-row strong { display: block; color: #23314d; font-size: 13px; }
.member-list-row small { display: block; margin-top: 2px; color: #7a879d; font-size: 11px; }
.member-popover { position: fixed; z-index: 80; width: min(310px, calc(100vw - 28px)); overflow: hidden; border: 1px solid #d7e2f2; border-radius: 12px; background: #fff; box-shadow: 0 18px 44px rgba(19, 35, 66, .18); }
.member-popover-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 12px; border-bottom: 1px solid #edf1f7; background: #fbfdff; }
.member-popover-head strong { min-width: 0; overflow-wrap: anywhere; color: #1f2d47; font-size: 13px; line-height: 1.35; white-space: normal; }
.member-popover-head span { flex: 0 0 auto; color: #2563eb; font-size: 11px; font-weight: 850; }
.member-popover-list { max-height: min(320px, 48vh); overflow: auto; display: grid; gap: 7px; padding: 9px; }
.member-popover .member-list-row { padding: 8px 9px; border-radius: 9px; background: #fff; }
.member-popover-empty { padding: 16px; color: #7a879d; font-size: 12px; text-align: center; }
.country-popover { width: min(310px, calc(100vw - 28px)); }
.country-popover-row { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.country-popover-row span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #eef4ff; color: #2457d6; font-size: 11px; font-weight: 850; }
.country-popover-row strong { color: #20304c; font-size: 13px; }
.correction-notice p { margin: 10px 0 0; color: #29519c; }
.correction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin-top: 8px; }
.correction-grid span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-empty { min-height: 120px; padding: 22px; }
.mobile-only { display: none; }
@media (max-width: 1100px) {
  .ad-report-detail-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .ad-report-detail-tools {
    justify-items: start;
  }
  .ad-report-info-zone.has-local-time {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }
  .compass-head { grid-template-columns: 1fr; }
  .compass-head > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .workbench-summary-head { grid-template-columns: 1fr; }
  .workbench-summary-head > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .overview-top-grid, .overview-middle-grid { grid-template-columns: 1fr; }
  .workbench-top-grid { grid-template-columns: 1fr; }
  .workbench-hero-main { grid-template-columns: 1fr; }
  .month-filter { justify-self: start; }
  .dashboard-date-control { justify-self: start; width: min(100%, 280px); }
  .monthly-sales-panel { grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr); }
  .monthly-sales-main { border-right: 1px solid var(--line); border-bottom: 0; }
  .monthly-sales-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .monthly-sales-metrics span { border-top: 0; border-left: 1px solid #edf1f7; }
  .monthly-sales-metrics span:first-child { border-left: 0; }
  .workbench-hero-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workbench-share-grid, .workbench-first-screen { grid-template-columns: 1fr; }
  .workbench-store-card { grid-template-columns: minmax(0, 1fr) minmax(500px, .9fr); }
  .workbench-store-card.without-actions { grid-template-columns: minmax(0, 1fr) minmax(390px, .72fr); }
  .store-card-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-card-meta.with-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .country-share-panel .workbench-share-list,
  .store-share-panel .workbench-share-list,
  .workbench-store-list { max-height: none; }
}
@media (max-width: 1000px) { .stat-grid, .workbench-chart-grid { grid-template-columns: repeat(2, 1fr); } .upload-grid, .admin-grid, .upload-file-grid, .plugin-management-grid { grid-template-columns: 1fr; } .store-data-head { grid-template-columns: 1fr; } .store-data-actions { justify-self: end; } .store-data-total { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .plugin-task-reset-form { grid-template-columns: 1fr; } .plugin-task-reset-form .button { width: 100%; } }
@media (max-width: 760px) {
  .sidebar { width: 225px; transform: translateX(-100%); transition: .2s transform; }
  .sidebar.open { transform: translateX(0); box-shadow: 12px 0 32px rgba(16,24,40,.2); }
  .workspace { width: 100%; margin-left: 0; }
  .topbar { min-height: 64px; padding: 0 16px; }
  .topbar-title, #password-button { display: none; }
  .mobile-only { display: block; }
  .icon-button { padding: 5px; border: 0; background: transparent; color: #52607a; font-size: 20px; }
  .view { padding: 23px 16px; }
  .page-head { display: block; }
  .page-head .button { margin-top: 15px; }
  .pagination { justify-content: center; padding: 12px; }
  .pagination-summary { width: 100%; margin-right: 0; text-align: center; }
  .store-data-actions { flex-wrap: wrap; justify-content: flex-start; }
  .store-data-total { grid-template-columns: 1fr 1fr; }
  .correction-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 116px; padding: 15px; }
  .account-menu { gap: 7px; }
  .account-menu div:last-of-type { display: none; }
  .login-card { padding: 30px 25px; }
  .date-picker, .date-picker-trigger { width: 100%; }
  .date-picker-popover { grid-template-columns: 1fr; width: min(100vw - 32px, 520px); }
  .quick-ranges { grid-template-columns: repeat(2, 1fr); border-right: 0; border-bottom: 1px solid var(--line); }
  .picker-calendars { grid-template-columns: 1fr; }
  .picker-month + .picker-month { display: none; }
  .picker-selected { flex-wrap: wrap; }
  .picker-selected small { width: 100%; margin-left: 0; }
  .compass-summary { grid-template-columns: 1fr 1fr; }
  .compass-summary > span:nth-child(3) { border-left: 0; border-top: 1px solid #edf1f7; }
  .compass-summary > span:nth-child(4) { border-top: 1px solid #edf1f7; }
  .workbench-summary-metrics, .workbench-chart-grid, .workbench-hero-metrics, .monthly-sales-panel, .monthly-sales-metrics, .workbench-directory-tools { grid-template-columns: 1fr; }
  .workbench-summary-metrics > span { border-left: 0; border-top: 1px solid #edf1f7; }
  .workbench-summary-metrics > span:first-child { border-top: 0; }
  .workbench-hero-main { padding: 20px 18px 16px; }
  .workbench-hero-main strong { font-size: 38px; }
  .overview-panel-head { grid-template-columns: 1fr; }
  .overview-date-control, .month-choice-control { justify-self: stretch; width: 100%; }
  .overview-metric-grid, .overview-support-grid { grid-template-columns: 1fr; }
  .overview-metric { border-left: 0; border-top: 1px solid #edf1f7; }
  .overview-metric:first-child { border-top: 0; }
  .overview-support-grid > span { border-left: 0; border-top: 1px solid #edf1f7; }
  .overview-support-grid > span:first-child { border-top: 0; }
  .overview-rank-row, .overview-rank-list.compact .overview-rank-row { grid-template-columns: 28px minmax(0, 1fr) minmax(82px, auto); gap: 8px; }
  .overview-rank-row .rank-track { grid-column: 2 / 4; }
  .overview-rank-row b { align-self: start; }
  .workbench-hero-metrics > span { border-left: 0; border-top: 1px solid #edf1f7; }
  .workbench-hero-metrics > span:first-child { border-top: 0; }
  .monthly-sales-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .monthly-sales-metrics span { border-left: 0; border-top: 1px solid #edf1f7; }
  .monthly-sales-metrics span:first-child { border-top: 0; }
  .workbench-share-row { grid-template-columns: minmax(92px, 1fr) minmax(95px, 1.1fr) 48px; }
  .workbench-share-row span { grid-column: 2 / 4; text-align: left; }
  .store-share-panel .workbench-share-row { grid-template-columns: 1fr; gap: 6px; }
  .store-share-panel .workbench-share-row strong, .store-share-panel .workbench-share-row span { text-align: left; }
  .store-share-panel .workbench-share-row span { grid-column: auto; }
  .workbench-store-list { grid-template-columns: 1fr; padding: 10px 12px; }
  .workbench-store-card { grid-template-columns: 1fr; align-items: flex-start; }
  .workbench-store-card.without-actions { grid-template-columns: 1fr; }
  .store-card-name { padding-left: 0; }
  .workbench-store-card:first-child { border-top: 0; }
  .store-card-meta { width: 100%; grid-template-columns: 1fr 1fr; }
  .store-card-meta.with-actions { grid-template-columns: 1fr 1fr; }
  .store-card-action { justify-self: center; }
  .compass-table { min-width: 820px; }
  .table-status-bar { align-items: flex-start; flex-direction: column; }
}

/* TailAdmin-inspired visual refresh */
:root {
  --ink: #101828;
  --muted: #667085;
  --paper: #ffffff;
  --canvas: #f6f8fb;
  --line: #e4e7ec;
  --navy: #101828;
  --blue: #465fff;
  --blue-soft: #eef4ff;
  --green: #039855;
  --red: #d92d20;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 24px rgba(16, 24, 40, .04);
}

body {
  background: var(--canvas);
  color: var(--ink);
}

.app-shell {
  background: var(--canvas);
}

.workspace {
  background:
    radial-gradient(circle at top left, rgba(70, 95, 255, .06), transparent 320px),
    var(--canvas);
}

.view {
  max-width: 1480px;
  padding: 18px 28px;
}

.view.view-updating {
  opacity: 1;
}

.sidebar {
  background: #111827;
  border-right: 1px solid rgba(255, 255, 255, .06);
  padding: 20px 12px;
  box-shadow: none;
}

.sidebar-brand {
  padding: 0 8px 26px;
  color: #ffffff;
  font-size: 16px;
}

.brand-mark {
  background: linear-gradient(135deg, #465fff, #2f54eb);
  box-shadow: 0 10px 22px rgba(70, 95, 255, .22);
}

.nav {
  gap: 4px;
}

.nav button,
.nav-child {
  min-height: 44px;
  border-radius: 10px;
  color: #98a2b3;
  font-weight: 750;
}

.nav button:hover,
.nav-child:hover {
  background: rgba(255, 255, 255, .06);
  color: #ffffff;
}

.nav button.active,
.nav-child.active {
  background: #1f2937 !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 0 #465fff !important;
}

.nav .nav-group-button {
  color: #f2f4f7 !important;
  font-size: 15px;
}

.topbar {
  min-height: 68px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  backdrop-filter: blur(12px);
}

.topbar-title {
  color: #101828;
  font-size: 17px;
  font-weight: 850;
}

.account-menu a,
.account-menu button {
  color: #344054;
}

.panel,
.stat-card,
.form-panel,
.fixed-list-panel,
.upload-import-panel,
.upload-history-panel,
.plugin-card,
.plugin-management-panel,
.overview-summary-panel,
.overview-ranking-panel,
.overview-directory-panel,
.store-data-fixed-panel,
.ads-wb-card,
.modal {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.panel-head,
.overview-panel-head,
.overview-section-head,
.plugin-management-head,
.upload-history-head,
.store-data-head,
.fixed-panel-head {
  border-bottom-color: var(--line);
  background: #ffffff;
}

.panel-head h3,
.overview-panel-head h3,
.overview-section-head h3,
.store-data-title h3,
.upload-main-title,
.plugin-management-head h3,
.stores-fixed-page #new-store-panel > h3,
.stores-fixed-page .store-settings-head h3,
.fixed-panel-head h3,
.admin-panel-title,
.ad-report-title {
  color: #101828;
  font-weight: 850;
  letter-spacing: 0;
}

.section-note,
.panel-head p,
.overview-panel-head p,
.overview-section-head p,
.store-data-title p,
.plugin-management-head p {
  color: var(--muted);
}

input,
select,
textarea,
.date-picker-trigger,
.store-choice-trigger,
.month-choice-control {
  min-height: 44px;
  border-color: #d0d5dd;
  border-radius: 10px;
  color: #101828;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

input:focus,
select:focus,
textarea:focus,
.date-picker-trigger:focus,
.store-choice-trigger:focus,
.month-choice-control:focus-within {
  border-color: #465fff;
  box-shadow: 0 0 0 3px rgba(70, 95, 255, .14);
}

.button {
  min-height: 40px;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.button.primary {
  background: #465fff;
}

.button.primary:hover {
  background: #3641f5;
}

.button.secondary {
  border-color: #d0d5dd;
  background: #ffffff;
  color: #344054;
}

.button.danger {
  border-color: #fecdca;
  background: #fff5f6;
  color: #d92d20;
}

.filters,
.workbench-directory-tools,
.store-data-bulkbar,
.store-settings-bulkbar,
.table-status-bar,
.date-picker-popover,
.store-choice-popover,
.member-popover {
  border-color: var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.table-wrap,
.fixed-table-scroll,
.upload-history-table,
.user-account-list,
.store-settings-list,
.workbench-store-list {
  scrollbar-color: #cbd5e1 transparent;
}

table {
  color: #101828;
}

th {
  height: 44px;
  padding: 12px 18px;
  color: #667085;
  background: #f9fafb;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

td {
  padding: 14px 18px;
  border-top: 1px solid #eaecf0;
  color: #101828;
}

tbody tr:hover,
.store-settings-row:hover,
.user-account-row:hover,
.workbench-store-card:hover {
  background: #f9fbff;
}

.pill,
.store-chip,
.member-count-button,
.badge,
.source-chip {
  border-color: #c7d7fe;
  background: #eef4ff;
  color: #3538cd;
}

.source-chip {
  background: #ffffff;
}

.pagination {
  min-height: 48px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: #344054;
}

.pagination-page,
.pagination-arrow {
  border-radius: 8px;
  color: #344054;
}

.pagination-page.active {
  border-color: #465fff;
  background: #eef4ff;
  color: #3538cd;
}

.modal-backdrop {
  background: rgba(16, 24, 40, .48);
}

.modal {
  box-shadow: 0 24px 48px rgba(16, 24, 40, .18);
}

.modal-side {
  border-radius: 20px 0 0 20px;
}

.toast {
  border-radius: 12px;
  background: #101828;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .22);
}

.overview-top-grid,
.overview-middle-grid,
.upload-grid,
.admin-grid,
.plugin-management-grid {
  gap: 16px;
}

.overview-metric strong,
.store-data-total strong,
.ad-report-summary strong,
.workbench-hero-main strong {
  color: #465fff;
}

.overview-metric,
.overview-support-grid > span,
.monthly-sales-metrics span,
.workbench-hero-metrics > span,
.store-data-total-card {
  border-color: #eaecf0;
}

.overview-rank-row,
.workbench-store-card,
.user-account-row,
.store-settings-row {
  border-color: #eaecf0;
}

.store-card-action .member-count-button,
.member-count-button {
  border-radius: 999px;
  box-shadow: none;
}

@media (max-width: 760px) {
  .view {
    padding: 16px;
  }

  .panel,
  .stat-card,
  .form-panel,
  .fixed-list-panel,
  .upload-import-panel,
  .plugin-card {
    border-radius: 12px;
  }
}

/* shadcn/ui-inspired neutral system */
:root {
  --ink: #09090b;
  --muted: #71717a;
  --paper: #ffffff;
  --canvas: #fafafa;
  --line: #e4e4e7;
  --navy: #ffffff;
  --blue: #18181b;
  --blue-soft: #f4f4f5;
  --green: #16a34a;
  --red: #dc2626;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --shadcn-ring: 0 0 0 2px rgba(24, 24, 27, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  letter-spacing: 0;
}

body,
.app-shell,
.workspace {
  background: #fafafa;
  color: #09090b;
}

.workspace {
  background: #fafafa;
}

.sidebar {
  background: #ffffff !important;
  color: #18181b;
  border-right: 1px solid #e4e4e7;
  box-shadow: none;
}

.sidebar-brand {
  color: #09090b !important;
  font-weight: 750;
}

.sidebar-brand > span:last-child {
  color: #09090b;
}

.brand-mark,
.brand-mark.small {
  background: #18181b !important;
  color: #ffffff;
  border-radius: 10px;
  box-shadow: none !important;
}

.nav button,
.nav-child {
  color: #52525b !important;
  border-radius: 8px;
  font-weight: 650;
  box-shadow: none !important;
}

.nav button:hover,
.nav-child:hover {
  background: #f4f4f5 !important;
  color: #09090b !important;
}

.nav button.active,
.nav-child.active {
  background: #f4f4f5 !important;
  color: #09090b !important;
  box-shadow: none !important;
}

.nav-group-button {
  color: #09090b !important;
  font-weight: 760 !important;
}

.nav-group-button i {
  color: #71717a;
}

.sidebar-foot {
  color: #71717a;
}

.sidebar-foot span:first-child::before {
  background: #16a34a;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e4e4e7;
  box-shadow: none;
  backdrop-filter: none;
}

.topbar-title,
.page-head h1,
.panel-head h3,
.overview-panel-head h3,
.overview-section-head h3,
.store-data-title h3,
.upload-main-title,
.plugin-management-head h3,
.stores-fixed-page #new-store-panel > h3,
.stores-fixed-page .store-settings-head h3,
.fixed-panel-head h3,
.admin-panel-title,
.ad-report-title {
  color: #09090b;
  font-weight: 760;
}

.account-menu a,
.account-menu button {
  color: #3f3f46;
}

.panel,
.stat-card,
.form-panel,
.fixed-list-panel,
.upload-import-panel,
.upload-history-panel,
.plugin-card,
.plugin-management-panel,
.overview-summary-panel,
.overview-ranking-panel,
.overview-directory-panel,
.store-data-fixed-panel,
.ads-wb-card,
.modal,
.filters,
.workbench-directory-tools,
.store-data-bulkbar,
.store-settings-bulkbar,
.table-status-bar,
.date-picker-popover,
.store-choice-popover,
.member-popover {
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.panel-head,
.overview-panel-head,
.overview-section-head,
.plugin-management-head,
.upload-history-head,
.store-data-head,
.fixed-panel-head,
.member-popover-head {
  border-bottom-color: #e4e4e7;
  background: #ffffff;
}

.section-note,
.panel-head p,
.overview-panel-head p,
.overview-section-head p,
.store-data-title p,
.plugin-management-head p,
.member-popover-empty {
  color: #71717a;
}

input,
select,
textarea,
.date-picker-trigger,
.store-choice-trigger,
.month-choice-control {
  min-height: 40px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #ffffff;
  color: #09090b;
  box-shadow: none;
}

input:hover,
select:hover,
textarea:hover,
.date-picker-trigger:hover,
.store-choice-trigger:hover {
  border-color: #a1a1aa;
}

input:focus,
select:focus,
textarea:focus,
.date-picker-trigger:focus,
.store-choice-trigger:focus,
.month-choice-control:focus-within {
  border-color: #18181b;
  box-shadow: var(--shadcn-ring);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #a1a1aa;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #18181b;
}

.button {
  min-height: 38px;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: none;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}

.button.primary {
  border-color: #18181b;
  background: #18181b;
  color: #ffffff;
}

.button.primary:hover {
  background: #27272a;
}

.button.secondary {
  border-color: #d4d4d8;
  background: #ffffff;
  color: #18181b;
}

.button.secondary:hover {
  background: #f4f4f5;
}

.button.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}

.button.primary:disabled,
.button.danger:disabled {
  border-color: #27272a;
  background: #27272a;
  color: #ffffff;
  opacity: .5;
  cursor: not-allowed;
}

th {
  height: 42px;
  color: #71717a;
  background: #fafafa;
  border-bottom: 1px solid #e4e4e7;
  font-size: 12px;
  font-weight: 650;
}

td {
  border-top: 1px solid #f4f4f5;
  color: #09090b;
}

tbody tr:hover,
.store-settings-row:hover,
.user-account-row:hover,
.workbench-store-card:hover,
.overview-rank-row:hover {
  background: #fafafa;
}

.pill,
.store-chip,
.member-count-button,
.badge,
.source-chip {
  border-color: #d4d4d8;
  background: #ffffff;
  color: #18181b;
  box-shadow: none;
}

.source-chip {
  font-weight: 650;
}

.overview-metric strong,
.store-data-total strong,
.ad-report-summary strong,
.workbench-hero-main strong,
.store-data-total-card strong,
.overview-summary-panel strong {
  color: #18181b;
}

.metric-change.up,
.positive,
.trend-up {
  color: #16a34a;
  background: #f0fdf4;
}

.metric-change.down,
.negative,
.trend-down {
  color: #dc2626;
  background: #fef2f2;
}

.pagination {
  min-height: 48px;
  border-top: 1px solid #e4e4e7;
  background: #ffffff;
  color: #3f3f46;
}

.pagination-page,
.pagination-arrow {
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #3f3f46;
}

.pagination-page:hover,
.pagination-arrow:hover:not(:disabled) {
  border-color: #d4d4d8;
  background: #f4f4f5;
  color: #09090b;
}

.pagination-page.active {
  border-color: #18181b;
  background: #18181b;
  color: #ffffff;
}

.pagination select,
.pagination-jump input {
  border-radius: 8px;
}

.calendar-nav {
  border-color: #d4d4d8;
  border-radius: 8px;
  color: #3f3f46;
  background: #ffffff;
}

.calendar-nav:hover {
  background: #f4f4f5;
}

.calendar-day {
  border-radius: 8px;
  color: #18181b;
  font-weight: 600;
}

.calendar-day:hover:not(.blank) {
  background: #f4f4f5;
  color: #09090b;
}

.calendar-day.selected {
  background: #18181b;
  color: #ffffff;
}

.calendar-day.between {
  background: #f4f4f5;
  color: #18181b;
}

.quick-ranges button.active,
.quick-ranges button:hover {
  background: #f4f4f5;
  color: #09090b;
}

.store-choice-popover-head,
.store-choice-actions,
.checkbox-list,
.fixed-checkbox-list {
  border-color: #e4e4e7;
}

.store-choice-popover-head span,
.member-popover-head span {
  color: #18181b;
}

.modal-backdrop {
  background: rgba(24, 24, 27, .42);
}

.modal {
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .14);
}

.modal-side {
  border-radius: 16px 0 0 16px;
}

.toast {
  border-radius: 10px;
  background: #18181b;
  color: #ffffff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .18);
}

.toast.error {
  background: #dc2626;
}

.member-avatar,
.account-avatar {
  background: #f4f4f5;
  color: #18181b;
}

.view.view-updating {
  opacity: 1 !important;
}

/* final shadcn pass: remove legacy blue UI fragments */
.nav-icon {
  width: 18px !important;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: currentColor !important;
  font-size: 0;
}

.nav-svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.nav-child,
.nav-group-button {
  gap: 12px;
}

.nav-child.active .nav-icon,
.nav-child:hover .nav-icon {
  color: #09090b !important;
}

.avatar,
.member-avatar,
.account-avatar,
.avatar.mini {
  background: #18181b !important;
  color: #ffffff !important;
  border: 1px solid #18181b;
  box-shadow: none !important;
}

.quiet-button,
.account-menu a,
.account-menu button {
  color: #18181b !important;
}

.quiet-button:hover,
.account-menu a:hover,
.account-menu button:hover {
  color: #09090b !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.icon-button,
.calendar-nav,
.month-step-button {
  border-color: #d4d4d8 !important;
  background: #ffffff !important;
  color: #18181b !important;
  box-shadow: none !important;
}

.icon-button:hover,
.calendar-nav:hover,
.month-step-button:hover {
  background: #f4f4f5 !important;
  color: #09090b !important;
}

.month-choice-control {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.month-choice-control:focus-within {
  border-color: transparent !important;
  box-shadow: none !important;
}

.month-choice-buttons {
  grid-template-columns: 34px minmax(108px, auto) 34px;
}

.month-choice-buttons strong {
  border-color: #d4d4d8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #09090b !important;
  box-shadow: none !important;
}

.month-step-button {
  width: 34px;
  height: 34px;
  border-radius: 8px !important;
  font-size: 20px;
}

.button.primary,
.button.primary.small,
.store-card-action .member-count-button,
.member-count-button {
  border-color: #18181b !important;
  background: #18181b !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.button.primary:hover,
.button.primary.small:hover,
.store-card-action .member-count-button:hover,
.member-count-button:hover {
  border-color: #27272a !important;
  background: #27272a !important;
  color: #ffffff !important;
}

.button.secondary,
.button.secondary.small,
.pill,
.store-chip,
.badge,
.source-chip {
  border-color: #d4d4d8 !important;
  background: #ffffff !important;
  color: #18181b !important;
  box-shadow: none !important;
}

.button.secondary:hover,
.button.secondary.small:hover {
  border-color: #a1a1aa !important;
  background: #f4f4f5 !important;
  color: #09090b !important;
}

.source-chip small,
.source-chip b,
.store-chip small,
.store-chip b {
  color: #18181b !important;
}

.pagination-page.active,
.calendar-day.selected,
.quick-ranges button.active {
  border-color: #18181b !important;
  background: #18181b !important;
  color: #ffffff !important;
}

select.native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.custom-select-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.custom-select-trigger {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px 0 12px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #ffffff;
  color: #09090b;
  font: inherit;
  font-weight: 650;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}

.custom-select-trigger:hover {
  border-color: #a1a1aa;
  background: #ffffff;
}

.custom-select-wrap.open .custom-select-trigger {
  border-color: #18181b;
  box-shadow: 0 0 0 2px rgba(24, 24, 27, .12);
}

.custom-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #71717a;
  transition: transform .12s ease;
}

.custom-select-wrap.open .custom-select-chevron {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  width: 100%;
  max-height: 232px;
  overflow: auto;
  display: none;
  padding: 4px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.custom-select-wrap.open .custom-select-menu {
  display: grid;
  gap: 2px;
}

.custom-select-option {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #18181b;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.custom-select-option:hover {
  background: #f4f4f5;
}

.custom-select-option.selected {
  background: #18181b;
  color: #ffffff;
}

.custom-select-option:disabled {
  color: #a1a1aa;
  cursor: not-allowed;
}

.pagination .custom-select-wrap {
  display: inline-block;
  width: 80px;
  vertical-align: middle;
}

.pagination .custom-select-trigger {
  min-height: 30px;
  padding-inline: 9px;
  border-radius: 8px;
}

.pagination .custom-select-menu {
  bottom: calc(100% + 6px);
  top: auto;
}

::-webkit-scrollbar-thumb {
  background: #d4d4d8;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

/* Final shadcn cleanup for overview month control and account management. */
.overview-panel-head .month-choice-control {
  justify-self: end !important;
  display: grid !important;
  gap: 6px !important;
  min-width: 190px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.overview-panel-head .month-choice-control::before,
.overview-panel-head .month-choice-control::after {
  display: none !important;
  content: none !important;
}

.overview-panel-head .month-choice-control:focus,
.overview-panel-head .month-choice-control:focus-within {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.overview-panel-head .month-choice-control .filter-label {
  color: #09090b !important;
}

.overview-panel-head .month-choice-buttons {
  width: max-content;
  justify-self: end;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #18181b;
}

.users-layout {
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) !important;
  gap: 14px !important;
}

.users-fixed-page .admin-form-panel {
  padding: 22px 22px 18px !important;
}

.users-fixed-page .admin-form-panel h3,
.users-fixed-page #users-list .panel-head h3 {
  color: #09090b !important;
  font-size: 18px !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
}

.users-fixed-page .admin-form-panel form {
  gap: 12px !important;
}

.users-fixed-page .admin-form-panel label {
  gap: 7px !important;
  color: #18181b !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

.users-fixed-page .admin-form-panel input {
  min-height: 40px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.users-fixed-page .panel-head {
  padding: 16px 18px 12px !important;
}

.users-fixed-page .panel-head p {
  margin-top: 3px !important;
  color: #71717a !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.user-account-list {
  overflow-x: hidden !important;
}

.user-account-row {
  grid-template-columns: minmax(104px, 1fr) minmax(126px, 1.05fr) minmax(145px, 1.1fr) 62px 92px 168px !important;
  gap: 10px !important;
  min-height: 54px !important;
  padding: 0 18px !important;
  color: #09090b !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.user-account-head {
  min-height: 36px !important;
  background: #fafafa !important;
  color: #71717a !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.user-account-cell {
  font-weight: 500 !important;
}

.user-account-name .cell-main {
  font-size: 14px !important;
  font-weight: 700 !important;
}

.user-account-actions {
  justify-content: flex-end !important;
  gap: 6px !important;
}

.user-account-actions .button.small {
  min-height: 30px !important;
  padding: 0 9px !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.users-fixed-page .pagination {
  min-height: 44px !important;
  padding: 8px 16px !important;
}

/* Final account management density pass. */
.users-fixed-page {
  gap: 14px !important;
}

.users-layout {
  grid-template-columns: minmax(248px, 300px) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 12px !important;
}

.users-fixed-page .admin-form-panel {
  align-self: start !important;
  min-height: 0 !important;
  padding: 20px !important;
}

.users-fixed-page .admin-form-panel h3,
.users-fixed-page #users-list .panel-head h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
}

.users-fixed-page .admin-form-panel form {
  gap: 11px !important;
  margin-top: 18px !important;
}

.users-fixed-page .admin-form-panel label {
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.users-fixed-page .admin-form-panel input {
  min-height: 38px !important;
  font-size: 13px !important;
}

.users-fixed-page .admin-form-panel .button.primary {
  min-height: 38px !important;
  margin-top: 3px !important;
}

.users-fixed-page #users-list {
  align-self: start !important;
}

.users-fixed-page .panel-head {
  min-height: 0 !important;
  padding: 14px 16px 12px !important;
}

.users-fixed-page .panel-head p {
  margin-top: 2px !important;
  font-size: 12px !important;
}

.user-account-row {
  grid-template-columns: minmax(118px, .72fr) minmax(128px, .78fr) minmax(160px, 1fr) 62px 96px 158px !important;
  gap: 8px !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
}

.user-account-head {
  min-height: 34px !important;
  font-size: 12px !important;
}

.user-account-name .cell-main {
  font-size: 13px !important;
  font-weight: 650 !important;
}

.user-account-actions {
  gap: 5px !important;
}

.user-account-actions .button.small {
  min-height: 28px !important;
  padding: 0 8px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.users-fixed-page .pagination {
  min-height: 42px !important;
  padding: 7px 16px !important;
}

/* Final monochrome pass: keep the shadcn-style UI black, white, and neutral gray. */
:root {
  --blue: #18181b !important;
  --blue-soft: #f4f4f5 !important;
  --green: #18181b !important;
  --red: #18181b !important;
}

a,
.account-menu a,
.currency-detail-button,
.store-choice-popover-head span,
.member-popover-head span {
  color: #18181b !important;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #18181b !important;
}

.brand-mark,
.brand-mark.small,
.button.primary,
.pagination-page.active,
.custom-select-option.selected {
  border-color: #18181b !important;
  background: #18181b !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.button.primary:hover {
  border-color: #27272a !important;
  background: #27272a !important;
  color: #ffffff !important;
}

.button.secondary,
.calendar-nav,
.custom-select-trigger,
.date-picker-trigger,
.store-choice-trigger,
.fake-file-input,
.upload-file-grid .fake-file-input,
.month-step-button {
  border-color: #d4d4d8 !important;
  background: #ffffff !important;
  color: #18181b !important;
  box-shadow: none !important;
}

.button.secondary:hover,
.calendar-nav:hover,
.custom-select-option:hover,
.quick-ranges button:hover,
.quick-ranges button.active,
.month-step-button:hover,
.pagination-page:hover,
.pagination-arrow:hover:not(:disabled) {
  border-color: #d4d4d8 !important;
  background: #f4f4f5 !important;
  color: #09090b !important;
}

.button.danger,
.button.danger:hover,
.button.danger:disabled,
.reimport-block,
.reimport-skip,
.manual-upload-form .button.danger {
  border-color: #d4d4d8 !important;
  background: #f4f4f5 !important;
  color: #18181b !important;
  box-shadow: none !important;
}

.button.danger:disabled {
  opacity: .62 !important;
}

.metric-change,
.metric-change.up,
.metric-change.down,
.positive,
.negative,
.trend-up,
.trend-down {
  border: 1px solid #e4e4e7 !important;
  background: #f4f4f5 !important;
  color: #18181b !important;
}

.overview-metric strong,
.store-data-total strong,
.store-data-total-card strong,
.ad-report-summary strong,
.workbench-hero-main strong,
.overview-summary-panel strong,
.overview-metric-grid strong,
.monthly-sales-metrics strong,
.workbench-hero-metrics strong,
.compass-summary strong,
.compass-usd,
.store-data-country-button,
.plugin-management-head h3,
.plugin-card h4,
.plugin-card-kicker,
.plugin-meta b,
.upload-result h3,
.result-metrics b {
  color: #09090b !important;
}

.overview-metric,
.store-data-total-card,
.monthly-sales-metrics span,
.workbench-hero-metrics > span,
.result-metrics div,
.plugin-card,
.plugin-management-panel {
  border-color: #e4e4e7 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.pill,
.store-chip,
.badge,
.source-chip,
.plugin-card-kicker,
.plugin-meta span,
.member-avatar,
.account-avatar,
.country-popover-row span,
.reimport-preview-row span,
.status-pill {
  border-color: #d4d4d8 !important;
  background: #ffffff !important;
  color: #18181b !important;
  box-shadow: none !important;
}

.source-chip small,
.source-chip b {
  color: #18181b !important;
}

.member-count-button,
.store-card-action .member-count-button {
  border-color: #18181b !important;
  background: #18181b !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.member-count-button:hover,
.store-card-action .member-count-button:hover {
  border-color: #27272a !important;
  background: #27272a !important;
  color: #ffffff !important;
}

.notice,
.upload-result,
.manual-import-accordion,
.manual-import-toggle,
.manual-upload-form,
.manual-upload-panel,
.reimport-preview,
.plugin-key-panel .notice,
.correction-notice,
.store-choice-popover,
.member-popover,
.date-picker-popover,
.file-preview-card,
.upload-preview,
.import-preview,
.reimport-preview-row,
.reimport-target-list,
.reimport-target-row,
.member-list-row,
.country-popover-row {
  border-color: #e4e4e7 !important;
  background: #ffffff !important;
  color: #18181b !important;
  box-shadow: none !important;
}

.manual-import-toggle.open {
  border-color: #e4e4e7 !important;
  background: #fafafa !important;
}

.manual-import-toggle i {
  border-color: #d4d4d8 !important;
  background: #ffffff !important;
  color: #18181b !important;
}

.notice strong,
.upload-result strong,
.manual-upload-panel strong,
.manual-import-toggle strong,
.reimport-preview strong,
.plugin-key-panel .notice strong,
.reimport-preview-row b,
.ad-report-summary strong {
  color: #09090b !important;
}

.notice p,
.upload-result p,
.manual-upload-panel p,
.manual-import-toggle small,
.reimport-preview p,
.plugin-card p,
.plugin-meta,
.section-note,
.subtle,
.muted {
  color: #71717a !important;
}

.overview-rank-row .rank-index,
.rank-index {
  background: #18181b !important;
  color: #ffffff !important;
}

.rank-track i,
.workbench-share-track i {
  background: #18181b !important;
}

.overview-rank-row b,
.rank-amount,
.store-data-export-button {
  color: #09090b !important;
}

.store-data-export-button {
  border-color: #d4d4d8 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus,
.date-picker-trigger:focus,
.store-choice-trigger:focus,
.custom-select-wrap.open .custom-select-trigger,
.month-choice-control:focus-within {
  border-color: #18181b !important;
  box-shadow: 0 0 0 2px rgba(24, 24, 27, .12) !important;
  outline: 0 !important;
}

.calendar-day {
  color: #18181b !important;
}

.calendar-day.selected {
  background: #18181b !important;
  color: #ffffff !important;
}

.calendar-day.between {
  background: #f4f4f5 !important;
  color: #18181b !important;
}

.custom-select-chevron,
.date-picker-trigger i,
.store-choice-trigger i {
  color: #18181b !important;
}

.sidebar-foot span:first-child::before,
.status-dot {
  background: #18181b !important;
}

::-webkit-scrollbar-thumb {
  background: #d4d4d8 !important;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa !important;
}

/* Final legacy-accent cleanup: remove remaining blue/green/red visual leftovers. */
.avatar,
.avatar.mini {
  border: 1px solid #18181b !important;
  background: #18181b !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.member-avatar,
.account-avatar {
  border-color: #d4d4d8 !important;
  background: #f4f4f5 !important;
  color: #18181b !important;
}

.nav-icon,
.nav-svg,
.nav button svg,
.nav-child svg {
  color: #52525b !important;
  stroke: #52525b !important;
}

.nav button.active .nav-icon,
.nav button.active .nav-svg,
.nav-child.active .nav-icon,
.nav-child.active .nav-svg,
.nav button.active svg,
.nav-child.active svg {
  color: #09090b !important;
  stroke: #09090b !important;
}

.calendar-day:hover:not(.blank),
.date-switch button:hover {
  border-color: #d4d4d8 !important;
  background: #f4f4f5 !important;
  color: #09090b !important;
}

.date-switch button.active,
.date-switch button.active:hover {
  border-color: #18181b !important;
  background: #18181b !important;
  color: #ffffff !important;
}

.workbench-hero-main em,
.workbench-hero-main em.up,
.workbench-hero-main em.down,
.overview-metric em,
.overview-metric em.up,
.overview-metric em.down {
  border: 1px solid #e4e4e7 !important;
  border-radius: 999px !important;
  background: #f4f4f5 !important;
  color: #18181b !important;
}

.stat-card.accent,
.login-shell,
.workbench-summary-panel,
.workbench-hero-panel,
.compass-head,
.monthly-sales-main,
.workbench-directory-tools {
  border-color: #e4e4e7 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.compass-rank span,
.compass-table tbody tr:nth-child(-n+3) .compass-rank span {
  border: 1px solid #e4e4e7 !important;
  background: #f4f4f5 !important;
  color: #18181b !important;
}

.share-track,
.workbench-share-track,
.rank-track {
  background: #e4e4e7 !important;
}

.share-track i,
.workbench-share-track i,
.rank-track i {
  background: #18181b !important;
}

.plugin-meta span,
.plugin-key-panel .notice,
.manual-import-accordion,
.manual-import-toggle,
.manual-upload-form,
.upload-result,
.notice,
.correction-notice {
  border-color: #e4e4e7 !important;
  background: #ffffff !important;
}

.plugin-meta span,
.plugin-card-kicker,
.manual-import-toggle i,
.store-chip,
.source-chip,
.badge,
.status-pill,
.pill {
  border-color: #d4d4d8 !important;
  background: #ffffff !important;
  color: #18181b !important;
}

.manual-import-toggle.open,
.manual-upload-panel {
  border-color: #e4e4e7 !important;
  background: #fafafa !important;
}

.button.danger,
.button.danger:hover,
.manual-upload-form .button.danger,
.manual-upload-form .button.danger:hover,
.reimport-block,
.reimport-skip {
  border-color: #d4d4d8 !important;
  background: #f4f4f5 !important;
  color: #18181b !important;
}

.form-error,
.toast.error,
.reimport-error,
.reimport-warning {
  border-color: #d4d4d8 !important;
  background: #f4f4f5 !important;
  color: #18181b !important;
}

.toast,
.toast.error {
  background: #18181b !important;
  color: #ffffff !important;
}

.overview-metric.primary strong,
.overview-metric strong,
.monthly-sales-metrics strong,
.workbench-hero-main strong,
.workbench-summary-metrics strong,
.workbench-share-row strong,
.compass-summary strong,
.compass-usd,
.rank-amount,
.ad-report-summary strong,
.store-data-total strong,
.store-data-total-card strong,
.store-data-country-button {
  color: #09090b !important;
}

.custom-select-trigger option:checked,
select option:checked {
  background: #18181b !important;
  color: #ffffff !important;
}

/* Final control polish: shadcn-style sort state and form checks. */
.sort-header,
.sort-header i,
.sort-header span {
  color: #52525b !important;
}

.sort-header:hover,
.sort-header:hover i,
.sort-header:hover span,
.sort-header.active,
.sort-header.active i,
.sort-header.active span {
  color: #09090b !important;
}

.sort-header i {
  opacity: .72 !important;
}

input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  flex: 0 0 16px !important;
  display: inline-grid !important;
  place-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #a1a1aa !important;
  background: #ffffff !important;
  box-shadow: none !important;
  vertical-align: middle !important;
  cursor: pointer !important;
  transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease !important;
}

input[type="checkbox"] {
  border-radius: 4px !important;
}

input[type="radio"] {
  border-radius: 999px !important;
}

input[type="checkbox"]::before,
input[type="radio"]::before {
  content: "" !important;
  transform: scale(0) !important;
  transition: transform .12s ease !important;
}

input[type="checkbox"]::before {
  width: 10px !important;
  height: 10px !important;
  background: #ffffff !important;
  clip-path: polygon(14% 48%, 0 62%, 38% 100%, 100% 16%, 84% 0, 36% 66%) !important;
}

input[type="radio"]::before {
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  border-color: #18181b !important;
  background: #18181b !important;
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
  transform: scale(1) !important;
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid rgba(24, 24, 27, .18) !important;
  outline-offset: 2px !important;
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  cursor: not-allowed !important;
  opacity: .45 !important;
}

.select-column input[type="checkbox"] {
  margin-inline: auto !important;
}

.checkbox-list,
.fixed-checkbox-list {
  gap: 3px !important;
  padding: 8px !important;
  border-color: #e4e4e7 !important;
  background: #ffffff !important;
}

.checkbox-line {
  min-height: 30px !important;
  gap: 10px !important;
  padding: 4px 7px !important;
  border-radius: 8px !important;
  color: #18181b !important;
  font-weight: 560 !important;
}

.checkbox-line:hover {
  background: #f4f4f5 !important;
}

.store-choice-list .checkbox-line:first-child {
  border-bottom-color: #e4e4e7 !important;
  color: #18181b !important;
}

.custom-select-trigger:focus,
.store-choice-trigger:focus,
.date-picker-trigger:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #18181b !important;
  outline: none !important;
  box-shadow: 0 0 0 1px #18181b !important;
}

.sidebar-foot span:first-child::before,
.status-dot {
  background: #22c55e !important;
}

/* Final neutral pass: remove leftover blue/gray panels and empty helper bars. */
.store-data-total span,
.store-data-total span.primary,
.store-data-total-card,
.store-data-total-card.primary,
.overview-metric,
.overview-metric.primary,
.monthly-sales-metrics span,
.workbench-hero-metrics > span,
.result-metrics div {
  border-color: #e4e4e7 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.store-data-total small,
.store-data-total-card small,
.overview-metric small,
.monthly-sales-metrics small,
.result-metrics span {
  color: #52525b !important;
}

.store-data-total strong,
.store-data-total span.primary strong,
.store-data-total-card strong,
.overview-metric strong,
.overview-metric.primary strong,
.monthly-sales-metrics strong,
.result-metrics b {
  color: #09090b !important;
}

table code,
.table-scroll code,
.cell-sub code,
.source-code-list code,
.currency-breakdown code,
.store-chip,
.source-chip,
.pill,
.badge,
.status-pill {
  border-color: #d4d4d8 !important;
  background: #ffffff !important;
  color: #18181b !important;
  box-shadow: none !important;
}

.source-chip small,
.source-chip b,
.store-chip small,
.store-chip b {
  color: #18181b !important;
}

.form-error:empty,
.form-message:empty,
#upload-error:empty,
#manual-upload-error:empty,
#upload-result-slot:empty,
.manual-preview-slot:empty,
.drawer-form .form-error:empty,
.drawer-form .form-message:empty {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.manual-import-accordion,
.manual-import-toggle,
.manual-import-toggle.open,
.manual-upload-form,
.manual-upload-panel,
.notice,
.upload-result,
.correction-notice,
.plugin-key-panel .notice,
.reimport-preview,
.reimport-target-list,
.reimport-target-row,
.reimport-preview-row,
.file-preview-card,
.upload-preview,
.import-preview {
  border-color: #e4e4e7 !important;
  background: #ffffff !important;
  color: #18181b !important;
  box-shadow: none !important;
}

.manual-import-toggle i {
  border-color: #d4d4d8 !important;
  background: #ffffff !important;
  color: #18181b !important;
}

.notice strong,
.upload-result strong,
.manual-upload-panel strong,
.manual-import-toggle strong,
.reimport-preview strong,
.plugin-key-panel .notice strong,
.reimport-preview-row b {
  color: #09090b !important;
}

.notice p,
.upload-result p,
.manual-upload-panel p,
.manual-import-toggle small,
.reimport-preview p {
  color: #52525b !important;
}

/* Plugin 0.3.2 blue pass: keep the restored UI, restore the original ADS blue tone. */
:root {
  --blue: #2563eb !important;
  --blue-soft: #eff6ff !important;
  --green: #2f8f72 !important;
  --red: #d04f5f !important;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #2563eb !important;
}

a,
.account-menu a,
.currency-detail-button,
.store-choice-popover-head span,
.member-popover-head span,
.store-data-country-button {
  color: #1d4ed8 !important;
}

.brand-mark,
.brand-mark.small,
.button.primary,
.button.primary.small,
.pagination-page.active,
.custom-select-option.selected,
.date-switch button.active,
.calendar-day.selected {
  border-color: #2563eb !important;
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18) !important;
}

.avatar,
.avatar.mini,
.member-avatar,
.account-avatar {
  border-color: #2563eb !important;
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.button.primary:hover,
.button.primary.small:hover,
.date-switch button.active:hover {
  border-color: #1d4ed8 !important;
  background: #1d4ed8 !important;
  color: #ffffff !important;
}

.button.secondary:hover,
.button.secondary.small:hover,
.calendar-nav:hover,
.custom-select-option:hover,
.quick-ranges button:hover,
.quick-ranges button.active,
.month-step-button:hover,
.pagination-page:hover,
.pagination-arrow:hover:not(:disabled) {
  border-color: #bfd5ff !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.button.danger,
.button.danger:hover,
.manual-upload-form .button.danger,
.manual-upload-form .button.danger:hover {
  border-color: #f3b7bf !important;
  background: #fff1f3 !important;
  color: #b4233a !important;
  box-shadow: none !important;
}

.button.danger:hover,
.manual-upload-form .button.danger:hover {
  border-color: #ea8f9b !important;
  background: #ffe6ea !important;
  color: #9f1f34 !important;
}

.button.danger:disabled {
  border-color: #f3b7bf !important;
  background: #fff1f3 !important;
  color: #b4233a !important;
  opacity: .62 !important;
}

.custom-select-trigger:focus,
.store-choice-trigger:focus,
.date-picker-trigger:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .16) !important;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  border-color: #2563eb !important;
  background: #2563eb !important;
}

.store-card-action .member-count-button,
.member-count-button {
  border-color: #c7dcff !important;
  background: #eff6ff !important;
  color: #2352a8 !important;
  box-shadow: none !important;
}

.store-card-action .member-count-button:hover,
.member-count-button:hover {
  border-color: #1d4ed8 !important;
  background: #1d4ed8 !important;
  color: #ffffff !important;
}

.store-chip,
.source-chip,
.pill,
.badge,
.status-pill {
  border-color: #dbeafe !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.source-chip {
  border-color: #bfd5ff !important;
  background: #eff6ff !important;
}

.source-chip small,
.source-chip b,
.store-chip small,
.store-chip b {
  color: #1d4ed8 !important;
}

.metric-change.up,
.positive,
.trend-up,
.status-pill.success,
.notice.success {
  border-color: #b9dfcf !important;
  background: #eefaf5 !important;
  color: #24745d !important;
}

.metric-change.down,
.negative,
.trend-down,
.status-pill.danger {
  border-color: #f3c2c8 !important;
  background: #fff4f5 !important;
  color: #b4233a !important;
}

.notice,
.upload-result,
.manual-import-accordion,
.manual-import-toggle,
.manual-upload-form,
.manual-upload-panel,
.correction-notice,
.plugin-key-panel .notice {
  border-color: #dbeafe !important;
  background: #fbfdff !important;
}

.notice strong,
.upload-result strong,
.manual-upload-panel strong,
.manual-import-toggle strong,
.plugin-key-panel .notice strong {
  color: #1d4ed8 !important;
}

.overview-metric.primary,
.store-data-total span.primary,
.store-data-total-card.primary {
  border-color: #dbeafe !important;
  background: linear-gradient(135deg, #eff6ff, #ffffff) !important;
}

.overview-metric.primary strong,
.store-data-total span.primary strong,
.store-data-total-card.primary strong {
  color: #1d4ed8 !important;
}

.store-data-export-button {
  border-color: #bfd5ff !important;
  background: #ffffff !important;
  color: #1d4ed8 !important;
}

.store-data-export-button:hover {
  border-color: #1d4ed8 !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.toast.error,
.form-error:not(:empty),
.reimport-error,
.reimport-warning {
  border-color: #f3b7bf !important;
  background: #fff1f3 !important;
  color: #b4233a !important;
}

.upload-unmatched-list,
.reimport-block.reimport-warning,
.notice.warning,
.notice.danger {
  border: 1px solid #f3b7bf !important;
  background: #fff1f3 !important;
  color: #b4233a !important;
  box-shadow: none !important;
}

.upload-unmatched-list strong,
.upload-unmatched-list span,
.reimport-block.reimport-warning strong,
.reimport-block.reimport-warning span,
.form-error:not(:empty),
.warning-line {
  color: #b4233a !important;
}

/* Dashboard summary card alignment: keep the day/month metric rows on the same baseline. */
.overview-summary-panel {
  display: grid !important;
  grid-template-rows: 84px 1fr !important;
  border-radius: 12px !important;
}

.overview-summary-panel > .overview-panel-head {
  min-height: 84px !important;
  height: 84px !important;
  align-items: center !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.overview-summary-panel .date-picker-trigger,
.overview-summary-panel .month-step-button,
.overview-summary-panel .month-choice-buttons strong {
  height: 40px !important;
  min-height: 40px !important;
}

.overview-summary-panel .month-choice-control,
.overview-summary-panel .dashboard-date-control {
  gap: 7px !important;
}

.overview-summary-panel .month-choice-buttons {
  grid-template-columns: 40px minmax(120px, 1fr) 40px !important;
  gap: 7px !important;
}

.overview-summary-panel > .overview-metric-grid {
  overflow: hidden !important;
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

.overview-summary-panel > .overview-metric-grid > .overview-metric:first-child {
  border-bottom-left-radius: 12px !important;
}

.overview-summary-panel > .overview-metric-grid > .overview-metric:last-child {
  border-bottom-right-radius: 12px !important;
}

.ad-data-fixed-page {
  gap: 12px;
}

.ad-data-filter-panel {
  flex: 0 0 auto;
  overflow: visible;
}

.ad-data-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) minmax(320px, 1.25fr) max-content;
  gap: 12px;
  align-items: end;
  padding: 12px 16px 6px;
}

.ad-data-toolbar.has-date {
  grid-template-columns: minmax(210px, .85fr) minmax(150px, .7fr) minmax(160px, .75fr) minmax(150px, .7fr) minmax(320px, 1.2fr);
}

.ad-data-choice-control {
  min-width: 0;
  flex: initial;
}

.ad-data-search-field {
  min-width: 0;
}

.ad-data-search-field input {
  width: 100%;
}

.ad-data-schedule-control {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  gap: 5px;
  align-self: end;
  padding: 8px 10px 7px;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #fff;
}

.ad-data-schedule-row {
  display: grid;
  grid-template-columns: auto minmax(66px, 1fr) minmax(66px, 1fr);
  gap: 10px;
  align-items: center;
}

.ad-data-schedule-row label {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
}

.ad-data-schedule-switch {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.ad-data-schedule-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ad-data-schedule-switch span {
  position: relative;
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #cbd5e1;
  transition: .18s background;
}

.ad-data-schedule-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .24);
  transition: .18s transform;
}

.ad-data-schedule-switch input:checked + span {
  background: #2563eb;
}

.ad-data-schedule-switch input:checked + span::after {
  transform: translateX(16px);
}

.ad-data-schedule-switch input:disabled + span {
  opacity: .62;
}

.ad-data-schedule-switch strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
}

.ad-data-schedule-row input:disabled {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

.ad-data-schedule-row .toggle-line input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.ad-data-schedule-row input[type="number"] {
  width: 100%;
  min-height: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.ad-data-schedule-next {
  min-height: 16px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-data-date-picker {
  min-width: 0;
  flex: initial;
}

.ad-data-date-popover {
  z-index: 95;
  width: min(430px, calc(100vw - 320px));
  grid-template-columns: 112px minmax(0, 1fr);
}

.ad-data-date-popover .picker-main {
  min-width: 0;
}

.ad-data-date-popover .picker-calendars {
  grid-template-columns: 1fr;
}

.ad-data-date-popover .picker-month + .picker-month {
  padding-left: 0;
  border-left: 0;
}

.ad-data-top-actions {
  min-width: max-content;
  min-height: 44px;
  align-items: end;
  justify-content: flex-end;
  justify-self: end;
  white-space: nowrap;
}

.ad-data-top-actions .button {
  min-width: 82px;
}

.stacked-form {
  display: grid;
  gap: 14px;
}

.stacked-form .form-error {
  min-height: 0;
  margin: 0;
}

.ad-campaign-store-summary {
  display: grid;
  gap: 2px;
  padding: 11px 13px;
}

.ad-campaign-store-summary strong {
  margin: 0;
}

.ad-campaign-store-summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ad-campaign-utm-details {
  overflow: hidden;
  border: 1px solid #dbe4f1;
  border-radius: 10px;
  background: #f8fbff;
}

.ad-campaign-utm-details summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #1e3a5f;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.ad-campaign-utm-details summary::-webkit-details-marker {
  display: none;
}

.ad-campaign-utm-details summary::after {
  content: '⌄';
  margin-left: auto;
  color: #2563eb;
  font-size: 18px;
  line-height: 1;
  transition: transform .15s ease;
}

.ad-campaign-utm-details[open] summary::after {
  transform: rotate(180deg);
}

.ad-campaign-utm-details summary small {
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
}

.ad-campaign-utm-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
  border-top: 1px solid #e6edf7;
}

.ad-campaign-utm-fields label {
  padding-top: 10px;
  font-size: 11px;
}

.ad-campaign-utm-fields input {
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.ad-campaign-utm-fields p {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.35;
}

.ad-data-panel {
  flex: 1 1 46%;
  min-height: 0;
}

.ad-data-mode-head {
  min-height: 62px;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
}

.ad-data-shared-mode-head {
  min-height: 44px;
  padding: 4px 16px;
}

.ad-data-shared-mode-head .ad-data-mode-switch {
  padding: 2px;
}

.ad-data-shared-mode-head .ad-data-mode-switch button {
  height: 28px;
}

.ad-data-mode-head > div:first-child {
  min-width: 0;
}

.ad-data-mode-head p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.ad-data-mode-switch {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #dbe2ec;
  border-radius: 9px;
  background: #f4f6f9;
}

.ad-data-mode-switch button {
  min-width: 92px;
  height: 31px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5d6b82;
  font-size: 13px;
  font-weight: 800;
}

.ad-data-mode-switch button:hover {
  color: #1d4ed8;
  background: #ffffff;
}

.ad-data-mode-switch button.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, .22);
}

.ad-data-mode-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #667085;
  font-size: 12px;
  white-space: nowrap;
}

.ad-data-mode-summary span {
  padding: 5px 9px;
  border: 1px solid #e4e9f1;
  border-radius: 7px;
  background: #fbfcfe;
}

.ad-data-mode-summary strong {
  margin-left: 3px;
  color: #172034;
  font-size: 14px;
}

.ad-data-report-mode-head {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.ad-data-report-top-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 10px;
}

.ad-data-report-primary-actions {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.ad-data-report-primary-actions .button {
  min-width: 52px;
  min-height: 34px;
  height: 34px;
  padding-inline: 11px;
  border-color: #d6dde8;
  background: #ffffff;
  color: #31415e;
  box-shadow: none;
}

.ad-data-report-primary-actions .button:hover {
  border-color: #9db9ed;
  background: #f5f8ff;
  color: #1d4ed8;
}

.ad-data-report-primary-actions .button,
.ad-data-report-top-controls .ad-data-top-actions .button {
  width: 60px;
  min-width: 60px;
  min-height: 34px;
  height: 34px;
  padding-inline: 4px;
}

.ad-data-report-top-controls .ad-data-schedule-control {
  width: auto;
  min-width: 420px;
  height: 34px;
  min-height: 34px;
  display: flex;
  align-items: center;
  align-self: center;
  gap: 0;
  padding: 2px 7px;
  border-color: #dfe6f0;
  border-radius: 8px;
  background: #f8fafc;
  overflow: visible;
}

.ad-data-report-top-controls .ad-data-schedule-row {
  display: flex;
  grid-template-columns: none;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.ad-data-report-top-controls .ad-data-schedule-row > label:not(.ad-data-schedule-switch) {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 4px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  font-size: 10px;
  line-height: 28px;
  white-space: nowrap;
}

.ad-data-report-top-controls .ad-data-schedule-row .ad-data-schedule-number {
  box-sizing: border-box;
  flex: 0 0 56px !important;
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  align-self: center;
  margin: 0 !important;
  padding: 0 2px !important;
  border-radius: 5px;
  line-height: 26px;
  text-align: center;
}

.ad-data-report-top-controls .ad-data-schedule-switch {
  height: 26px;
  display: inline-flex;
  gap: 6px;
}

.ad-data-report-top-controls .ad-data-schedule-switch span {
  width: 32px;
  height: 18px;
}

.ad-data-report-top-controls .ad-data-schedule-switch span::after {
  top: 3px;
  width: 12px;
  height: 12px;
}

.ad-data-report-top-controls .ad-data-schedule-next {
  height: 26px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding-left: 6px;
  border-left: 1px solid #dfe6f0;
  color: #64748b;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.ad-data-report-top-controls .ad-data-schedule-next strong {
  color: #334155;
  font-size: 10px;
}

.ad-data-report-top-controls .ad-data-top-actions {
  min-height: 34px;
}

.ad-data-head-filters {
  min-width: 0;
  width: max-content;
  max-width: 100%;
  flex: 0 0 auto;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  gap: 10px;
}

.ad-data-head-filters > label,
.ad-data-head-filters .ad-data-choice-control,
.ad-data-head-filters .ad-data-date-picker {
  position: relative;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin: 0;
}

.ad-data-head-filters > label,
.ad-data-head-filters .filter-label {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.ad-data-head-filters .filter-label {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: center;
  padding: 0;
  line-height: 34px;
}

.ad-data-head-filters .ad-data-status-filter {
  width: 230px;
  min-width: 230px;
  max-width: 230px;
  flex: 0 0 230px;
  grid-template-columns: 42px 182px;
}
.ad-data-head-filters .ad-data-status-filter select {
  width: 182px;
  min-width: 182px;
  max-width: 182px;
  flex: 0 0 182px;
}
.ad-data-head-filters .ad-data-status-filter .custom-select-wrap,
.ad-data-head-filters .ad-data-status-filter .custom-select-trigger {
  width: 100%;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
}
.ad-data-head-filters .ad-data-member-filter { width: 220px; flex: 0 0 220px; grid-template-columns: 32px minmax(0, 1fr); }
.ad-data-head-filters .ad-data-date-picker { width: 210px; }
.ad-data-head-filters .ad-data-search-field { width: min(300px, 24vw); }

.ad-data-head-filters select,
.ad-data-head-filters input,
.ad-data-head-filters .store-choice-trigger,
.ad-data-head-filters .date-picker-trigger {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  height: 34px;
  max-height: 34px;
  margin: 0;
  align-self: center;
  padding-inline: 10px;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.ad-data-head-filters .store-choice-menu {
  min-width: 0;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
}
.ad-data-head-filters .store-choice-trigger strong,
.ad-data-head-filters .date-picker-trigger strong { font-size: 12px; font-weight: 700; }
.ad-data-head-filters .ad-data-member-choice-popover {
  right: 0;
  left: auto;
  width: min(460px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}
.ad-data-head-filters .ad-data-member-choice-popover .store-choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1540px) {
  .ad-data-head-filters { gap: 7px; }
  .ad-data-head-filters .ad-data-member-filter { width: 180px; flex-basis: 180px; }
  .ad-data-head-filters .ad-data-status-filter { width: 190px; min-width: 190px; max-width: 190px; flex-basis: 190px; grid-template-columns: 42px 142px; }
  .ad-data-head-filters .ad-data-status-filter select { width: 142px; min-width: 142px; max-width: 142px; flex-basis: 142px; }
  .ad-data-report-top-controls .ad-data-schedule-control { min-width: 360px; }
}

@media (max-width: 1240px) {
  .ad-data-report-mode-head { grid-template-columns: max-content minmax(0, 1fr); }
  .ad-data-report-top-controls { grid-column: 1 / -1; }
  .ad-data-head-filters { justify-content: flex-start; }
}

.ad-data-overview-summary-head {
  min-height: 36px;
  align-items: center;
  padding: 4px 16px;
}

.ad-data-overview-summary-head > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.ad-data-overview-summary-head > div:first-child::-webkit-scrollbar { display: none; }

.ad-data-overview-summary {
  flex: 0 0 auto;
  min-width: max-content;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  color: #09090b;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.ad-data-overview-summary span,
.ad-data-overview-summary strong {
  font-size: 15px;
  font-weight: 800;
}

.ad-data-overview-summary strong {
  color: #09090b !important;
  font-size: 15px;
  font-weight: 850;
}

.ad-data-overview-summary-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: max-content;
  padding: 4px 9px;
  border: 1px solid #d8e2f0;
  border-radius: 7px;
  background: #f8fbff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  white-space: nowrap;
}

.ad-data-overview-summary-item span {
  color: #68758f !important;
  font-size: 13px;
  font-weight: 680;
}

.ad-data-overview-summary-item strong {
  font-size: 16px;
  font-weight: 900;
}

.ad-data-overview-summary-item.is-highlight strong {
  color: #0b63f6 !important;
}

.ad-data-overview-summary-head .ad-data-batch-actions {
  margin-left: 14px;
  margin-top: 0;
}

.ad-data-report-tabs-shell {
  flex: 0 0 auto;
  min-height: 34px;
  display: block;
  padding: 3px 8px;
  border-top: 1px solid #e6ebf2;
  border-bottom: 0;
  background: #f8fafc;
}

.ad-data-report-tabs-pagination {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
}

.ad-data-report-tabs {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  scrollbar-width: none;
  contain: layout paint;
}

.ad-data-report-tabs.is-tab-dragging {
  scroll-behavior: auto;
  cursor: grabbing;
}

.ad-data-report-tabs::-webkit-scrollbar { display: none; }

.ad-data-report-tab-end {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ad-data-report-tab {
  flex: 0 0 auto;
  width: max-content;
  min-width: 58px;
  max-width: none;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid #dce3ec;
  border-radius: 6px;
  background: var(--ad-tab-background, #f1f4f8);
  color: var(--ad-tab-color, #09090b);
  font-size: 10.5px;
  font-weight: 760;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.ad-data-report-tab span {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.ad-data-report-tab-owner {
  flex: 0 0 auto;
  margin-left: 4px;
  color: #64748b;
  font-size: 9px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.ad-data-report-tab:hover {
  border-color: var(--ad-tab-border, #93b4f5);
  background: var(--ad-tab-background, #ffffff);
  color: var(--ad-tab-color, #09090b);
}

.ad-data-report-tab.active {
  position: relative;
  height: 26px;
  border-color: var(--ad-tab-border, #8eb2f8);
  background: var(--ad-tab-background, #eef4ff);
  color: var(--ad-tab-color, #09090b);
  font-weight: 850;
  box-shadow: inset 0 2px 0 var(--ad-tab-accent, #2563eb);
}

.ad-data-report-tab.is-dragging { opacity: .45; cursor: grabbing; }

.ad-data-report-tab-drop-slot {
  flex: 0 0 auto;
  height: 26px;
  box-sizing: border-box;
  border: 1px dashed #2563eb;
  border-radius: 6px;
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .12);
  pointer-events: none;
}

.ad-data-report-tab-drag-ghost {
  position: fixed;
  z-index: 180;
  pointer-events: none;
  margin: 0;
  opacity: .96;
  cursor: grabbing;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .22);
}

.ad-data-report-tab-color-popover {
  position: fixed;
  z-index: 220;
  width: max-content;
  min-width: 196px;
  display: grid;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
}

.ad-data-report-tab-color-popover > strong {
  color: #09090b;
  font-size: 11px;
  font-weight: 800;
}

.ad-data-report-tab-color-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ad-data-report-tab-color-swatch {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--swatch-border);
  border-radius: 5px;
  background: var(--swatch-color);
  box-shadow: none;
}

.ad-data-report-tab-color-swatch:hover,
.ad-data-report-tab-color-swatch.active,
.ad-data-report-tab-color-reset:hover,
.ad-data-report-tab-color-reset.active {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.ad-data-report-tab-color-reset {
  height: 22px;
  padding: 0 7px;
  border: 1px solid #cfd8e6;
  border-radius: 5px;
  background: #ffffff;
  color: #09090b;
  font-size: 10px;
  font-weight: 700;
}

.ad-data-report-tab.active::after {
  content: none;
}

.ad-data-report-tab-nav {
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background: #ffffff;
  color: #536179;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.ad-data-report-tab-nav:hover:not(:disabled) {
  border-color: #93b4f5;
  color: #1d4ed8;
}

.ad-data-report-tab-nav:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.ad-data-report-tab-page {
  min-width: 36px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 7px;
  border: 1px solid #e1e7ef;
  border-radius: 999px;
  background: #ffffff;
  color: #6b778c;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.ad-data-report-tabs-shell.is-bottom {
  align-items: center;
  padding: 3px 8px;
  border-top: 1px solid #d9e0ea;
  border-bottom: 0;
}

.ad-data-report-tabs-shell.is-bottom .ad-data-report-tabs {
  align-items: center;
}

.ad-data-report-tabs-shell.is-bottom .ad-data-report-tab {
  border: 1px solid #dce3ec;
  border-radius: 6px;
}

.ad-data-report-tabs-shell.is-bottom .ad-data-report-tab.active::after {
  content: none;
}

.ad-data-report-tabs-shell.is-bottom .ad-data-report-tab-nav {
  margin: 0;
}

.ad-data-report-tabs-shell.is-bottom .ad-data-report-tab-page {
  margin: 0;
}

.ad-data-report-sheet-head {
  flex: 0 0 auto;
  display: block;
  min-width: 0;
  padding: 2px 16px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid #e4e9f1;
  background: #ffffff;
}

.ad-data-report-inline-meta {
  min-width: 1000px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #09090b;
}

.ad-data-report-inline-meta .ad-report-title {
  min-width: 0;
  margin: 0;
  padding-right: 8px;
  overflow: hidden;
  color: #09090b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: clip;
  white-space: nowrap;
}

.ad-data-report-inline-field {
  flex: 0 1 max-content;
  min-width: 0;
  width: max-content;
  height: 22px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border-left: 1px solid #e6ebf2;
}

.ad-data-report-inline-field > span:first-child {
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.ad-data-report-inline-field .ad-report-fulltext,
.ad-data-report-inline-field > strong {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: clip;
  white-space: nowrap;
}

.ad-data-report-product-field .ad-report-fulltext {
  cursor: help;
}

.ad-data-report-product-field {
  max-width: 46%;
  padding-left: 0;
  border-left: 0;
}

.ad-data-report-account-field {
  max-width: 16%;
}

.ad-data-report-store-field {
  max-width: 28%;
}

.ad-data-report-suffix-field {
  max-width: 12%;
}

.ad-data-report-post-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.ad-data-report-inline-meta .ad-data-report-inline-copy {
  flex: 0 0 86px;
  width: 86px;
  min-width: 86px;
  height: 26px;
  min-height: 26px;
  margin-left: 0;
  padding-inline: 7px;
  font-size: 10px;
  white-space: nowrap;
}

.ad-data-report-tab-end .ad-data-report-zoom {
  align-self: center;
  width: 86px;
  height: 26px;
  grid-template-columns: 24px 38px 24px;
  margin: 0;
}

.ad-data-report-tab-end .ad-data-report-zoom button {
  height: 24px;
  font-size: 14px;
}

.ad-data-report-tab-end .ad-data-report-zoom .ad-data-report-zoom-value {
  font-size: 10px;
  font-weight: 700;
}

.ad-data-report-sheet-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ad-data-report-title-row {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 0;
}

.ad-data-report-title-row .ad-report-title {
  margin: 0;
  font-size: 14px;
}

.ad-data-report-title-row > span {
  padding: 2px 7px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 10px;
  font-weight: 850;
}

.ad-data-report-title-row > small {
  color: #667085;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.ad-data-report-title-context {
  flex: 1 1 420px;
  min-width: 360px;
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(240px, 1.2fr);
  overflow: hidden;
  border: 1px solid #e5ebf4;
  border-radius: 8px;
  background: #fff;
}

.ad-data-report-title-context > div {
  min-width: 0;
  min-height: 32px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-right: 1px solid #edf2f7;
}

.ad-data-report-title-context > div:last-child { border-right: 0; }
.ad-data-report-title-context span { color: #64748b; font-size: 11px; font-weight: 850; white-space: nowrap; }
.ad-data-report-title-context strong,
.ad-data-report-title-context .ad-report-fulltext { min-width: 0; overflow: hidden; font-size: 11px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

.ad-data-report-meta-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.ad-data-report-sheet-head .ad-report-info-grid {
  grid-template-columns: repeat(4, minmax(110px, 1fr));
}

.ad-data-report-sheet-head .ad-report-info-grid > div {
  min-height: 42px;
  padding: 6px 10px;
}

.ad-data-report-sheet-head .ad-report-post-link {
  min-height: 38px;
  margin-top: 6px;
  padding: 5px 10px;
}

.ad-data-report-meta-layout .ad-report-local-time {
  min-width: 206px;
}

.ad-data-report-sheet-tools {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ad-data-report-sheet-tools .table-actions {
  flex-wrap: nowrap;
}

.ad-data-report-sheet-tools .ad-data-schedule-control {
  width: auto;
  min-width: 420px;
  height: 34px;
  min-height: 34px;
  display: flex;
  align-items: center;
  align-self: center;
  gap: 0;
  padding: 2px 7px;
  border-color: #dfe6f0;
  border-radius: 8px;
  background: #f8fafc;
  overflow: visible;
}

.ad-data-report-sheet-tools .ad-data-schedule-row {
  display: flex;
  grid-template-columns: none;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.ad-data-report-sheet-tools .ad-data-schedule-row > label:not(.ad-data-schedule-switch) {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 3px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  font-size: 10px;
  line-height: 28px;
  white-space: nowrap;
}

.ad-data-report-sheet-tools .ad-data-schedule-row .ad-data-schedule-number {
  box-sizing: border-box;
  flex: 0 0 56px !important;
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  align-self: center;
  margin: 0 !important;
  padding: 0 2px !important;
  border-radius: 5px;
  line-height: 26px;
  text-align: center;
}

.ad-data-report-sheet-tools .ad-data-schedule-switch {
  height: 26px;
  display: inline-flex;
  gap: 6px;
}

.ad-data-report-sheet-tools .ad-data-schedule-switch span {
  width: 32px;
  height: 18px;
}

.ad-data-report-sheet-tools .ad-data-schedule-switch span::after {
  top: 3px;
  width: 12px;
  height: 12px;
}

.ad-data-report-sheet-tools .ad-data-schedule-next {
  height: 26px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding-left: 6px;
  border-left: 1px solid #dfe6f0;
  color: #64748b;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.ad-data-report-sheet-tools .ad-data-schedule-next strong {
  color: #334155;
  font-size: 10px;
}

.ad-data-report-sheet-tools .ad-report-local-time {
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ad-data-report-sheet-tools .ad-report-local-time em {
  height: 32px;
  display: flex;
  align-items: center;
  color: #475569;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.ad-data-report-sheet-tools .ad-report-local-time div {
  display: flex;
  gap: 5px;
}

.ad-data-report-sheet-tools .ad-report-local-time span {
  min-width: 168px;
  width: auto;
  height: 32px;
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(32px, auto) auto;
  align-items: center;
  justify-content: stretch;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 7px;
  white-space: nowrap;
}

.ad-data-report-sheet-tools .ad-report-local-time small {
  font-size: 10px;
  line-height: 1;
}

.ad-data-report-sheet-tools .ad-report-local-time strong {
  line-height: 1;
  white-space: nowrap;
}

.ad-data-report-sheet-tools .ad-report-local-time strong {
  font-size: 12px;
  white-space: nowrap;
}

.ad-data-report-compact-details {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: stretch;
}

.ad-data-report-compact-details .ad-report-info-grid {
  max-width: none;
  grid-template-columns: minmax(0, 3fr) minmax(150px, 1fr);
}

.ad-data-report-compact-details .ad-report-detail-copy {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.ad-data-report-compact-details .ad-report-info-grid > div {
  min-height: 32px;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-bottom: 1px solid #edf2f7;
}

.ad-data-report-title-context,
.ad-data-report-compact-details .ad-report-info-grid {
  border-color: #e5ebf4;
  border-radius: 8px;
  background: #fff;
}

.ad-data-report-title-context > div,
.ad-data-report-compact-details .ad-report-info-grid > div {
  min-height: 32px;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
}

.ad-data-report-title-context span,
.ad-data-report-compact-details .ad-report-info-grid span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.ad-data-report-title-context strong,
.ad-data-report-title-context .ad-report-fulltext,
.ad-data-report-compact-details .ad-report-info-grid strong,
.ad-data-report-compact-details .ad-report-fulltext {
  min-width: 0;
  overflow: hidden;
  color: #09090b;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-data-report-compact-details .ad-report-info-grid span,
.ad-data-report-compact-details .ad-report-info-grid strong,
.ad-data-report-compact-details .ad-report-fulltext {
  line-height: 1.2;
}

.ad-data-report-compact-details .ad-report-info-grid > div:nth-child(2n) {
  border-right: 0;
}

.ad-data-report-compact-details .ad-report-info-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.ad-data-report-compact-details .ad-report-post-link {
  min-width: 0;
  max-width: none;
  min-height: 32px;
  margin: 0;
  padding: 0 9px;
  grid-template-columns: 58px minmax(0, 1fr);
  border: 1px solid #e5ebf4;
  border-radius: 8px;
}

.ad-data-report-compact-details .ad-report-post-copy-only {
  width: max-content;
  min-height: 32px;
  display: flex;
  align-items: stretch;
  padding: 0;
  border: 0;
}

.ad-data-report-compact-details .ad-report-post-copy-only .button {
  min-width: 104px;
  height: 100%;
  min-height: 32px;
  padding-inline: 10px;
}

.ad-data-report-compact-details .ad-report-link-copy a {
  max-width: none;
}

.ad-data-panel .ad-data-latest-table table {
  width: 100%;
}

.ad-data-detail-panel {
  flex: 1 1 42%;
  min-height: 0;
}

.ad-data-latest-table table {
  width: auto;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.ad-data-latest-table th,
.ad-data-latest-table td {
  height: 40px;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
  padding-block: 0;
  padding-inline: 6px;
  font-size: 12px;
  border-right: 1px solid #e8edf5;
}

.ad-data-latest-table th {
  height: 36px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fafbfe;
  box-shadow: inset 0 -1px 0 #dfe6f1;
}

.ad-data-latest-table th:last-child,
.ad-data-latest-table td:last-child {
  border-right: 0;
}

.ad-data-latest-table th[data-ad-column-key="campaignName"],
.ad-data-latest-table th[data-ad-column-key="reportCampaignName"],
.ad-data-latest-table td.ad-campaign-name-cell,
.ad-data-latest-table td.ad-report-campaign-cell {
  text-align: left;
}

.ad-data-latest-table td.ad-refresh-time-cell {
  color: #09090b;
  white-space: nowrap;
}

.ad-data-panel .ad-data-latest-table tbody tr,
.ad-data-panel .ad-data-latest-table tbody td {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
}

.ad-campaign-name-line {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
}

.ad-campaign-name-line > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.facebook-name-hierarchy-trigger {
  flex: 0 0 auto;
  padding: 1px 5px;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  line-height: 16px;
  cursor: pointer;
}

.ad-campaign-owner-inline {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
}

.ad-data-latest-table th.ad-select-column,
.ad-data-latest-table td.ad-select-cell {
  padding-inline: 8px;
  overflow: visible;
  text-align: center;
}

.ad-data-latest-table th.ad-select-column input,
.ad-data-latest-table td.ad-select-cell input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.ad-data-latest-table tr.is-selected td {
  background: #f8fbff;
}

.ad-data-latest-table .sort-header {
  width: 100%;
  justify-content: center;
  min-width: 0;
  padding-inline: 0;
}

.ad-data-latest-table th[data-ad-column-key="campaignName"] .sort-header,
.ad-data-latest-table th[data-ad-column-key="reportCampaignName"] .sort-header {
  justify-content: flex-start;
}

.ad-data-latest-table .sort-header span {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.ad-data-latest-table td:last-child {
  overflow: visible;
  text-align: center;
}

.ad-data-latest-table td:last-child .table-actions {
  justify-content: center;
  flex-wrap: nowrap;
  min-width: max-content;
}

.ad-data-latest-table td:last-child .button {
  min-height: 28px;
  padding-inline: 8px;
  white-space: nowrap;
}

.ad-data-latest-table .number {
  text-align: center !important;
}

.ad-data-latest-table .status-pill {
  max-width: none;
}

.ad-report-status-stack {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.ad-followup-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
}

.ad-campaign-followup-text {
  flex: 0 0 auto;
  color: #2563eb;
  font-size: 10px;
  font-weight: 850;
}

.ad-data-report-table tbody tr,
.ad-data-report-table tbody td {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
}

#ad-data-content.is-switching .ad-data-report-table-shell,
#ad-data-content.is-switching .ad-data-panel {
  opacity: .72;
  pointer-events: none;
  transition: opacity .12s ease;
}

.ad-data-report-tab.is-pending {
  box-shadow: inset 0 0 0 2px #2563eb;
}

.ad-data-report-table .status-pill,
.ad-data-report-table .ad-followup-badge {
  min-height: 20px;
  padding: 1px 5px;
  font-size: 10px;
  line-height: 1;
}

.ad-report-budget-cell {
  position: relative;
  overflow: visible !important;
  white-space: nowrap;
  cursor: pointer;
}

.ad-report-budget-cell.is-editing {
  z-index: 9;
}

.ad-report-budget-cell > span {
  vertical-align: middle;
}

.ad-report-budget-editor {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: auto 74px 24px 24px;
  gap: 3px;
  align-items: center;
  padding: 4px 5px;
  border: 1px solid #93c5fd;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .18);
  transform: translate(-50%, -50%);
}

.ad-report-budget-editor input {
  width: 74px;
  height: 28px;
  min-height: 28px;
  padding: 3px 5px;
  text-align: right;
}

.ad-report-budget-editor button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 900;
  cursor: pointer;
}

.ad-report-budget-editor .cancel {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #64748b;
}

.ad-followup-summary {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e5eaf3;
  border-radius: 8px;
  background: #f8fafc;
}

.ad-followup-summary div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.ad-followup-summary span {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.ad-followup-summary strong {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-data-resizable-table col {
  min-width: 44px;
}

.ad-data-header-cell {
  position: static;
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-data-header-cell.static > span:first-child {
  overflow: visible;
  color: #09090b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ad-data-header-label-stack {
  height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
}

.ad-data-header-label-stack > span {
  font-size: 10px;
  line-height: 12px;
}

.ad-data-header-label-stack > small {
  color: #64748b;
  font-size: 8px;
  font-weight: 650;
  line-height: 9px;
  white-space: nowrap;
}

.ad-data-report-table th.ad-data-accent-header .ad-data-header-label-stack > small {
  color: #5b78a8;
}

.ad-data-latest-table th[data-ad-column-key="campaignName"] .ad-data-header-cell,
.ad-data-latest-table th[data-ad-column-key="reportCampaignName"] .ad-data-header-cell {
  justify-content: flex-start;
}

.ad-column-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  z-index: 4;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
}

.ad-column-resizer::after {
  content: none;
}

body.ad-column-resizing {
  cursor: col-resize;
  user-select: none;
}

.ad-data-warning {
  display: none;
}

.ad-data-detail-table {
  table-layout: fixed;
}

.ad-data-detail-table th,
.ad-data-detail-table td {
  padding-inline: 6px;
  text-align: center;
  vertical-align: middle;
}

.ad-data-detail-table .number {
  text-align: center !important;
}

.ad-data-report-table-wrap {
  flex: 1 1 auto !important;
  height: auto;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.ad-data-report-table-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}

.ad-data-report-table-shell .ad-data-report-table-wrap {
  min-width: 0;
}

.ad-data-report-table-shell .ad-data-report-table {
  zoom: var(--ad-data-report-scale, .9);
}

.ad-data-report-sheet-blank {
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.ad-data-report-sheet-blank .ad-data-report-virtual-table {
  border-collapse: separate;
  border-spacing: 0;
  pointer-events: none;
  user-select: none;
}

.ad-data-report-virtual-table tbody tr,
.ad-data-report-virtual-table tbody td {
  height: var(--ad-data-report-virtual-row-height, 38px);
  min-height: var(--ad-data-report-virtual-row-height, 38px);
  max-height: var(--ad-data-report-virtual-row-height, 38px);
}

.ad-data-report-virtual-table tbody td {
  border-color: #edf1f5 !important;
  background: #ffffff !important;
}

.ad-data-report-zoom {
  position: static;
  z-index: auto;
  align-self: stretch;
  justify-self: end;
  width: 124px;
  height: 32px;
  display: grid;
  grid-template-columns: 34px 56px 34px;
  overflow: hidden;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.ad-data-report-zoom button {
  min-width: 0;
  height: 30px;
  padding: 0;
  border: 0;
  border-right: 1px solid #e1e7ef;
  border-radius: 0;
  background: #ffffff;
  color: #31415e;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.ad-data-report-zoom button:last-child {
  border-right: 0;
}

.ad-data-report-zoom button:hover:not(:disabled) {
  background: #eef4ff;
  color: #1d4ed8;
}

.ad-data-report-zoom button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}

.ad-data-report-zoom button:disabled {
  color: #a7b0bf;
  cursor: not-allowed;
}

.ad-data-report-zoom .ad-data-report-zoom-value {
  color: #174ea6;
  font-size: 11px;
}

.ad-data-latest-table {
  scrollbar-gutter: auto;
}

.ad-data-latest-table > table {
  width: 100%;
}

.ad-data-report-table tr.is-selected td {
  background: #f8fbff;
}

.ad-data-report-table th {
  border-color: #e5e7eb;
  background: #f7f7f8;
}

.ad-data-report-table tbody td {
  border-color: #e5e7eb;
  background: #ffffff;
}

.ad-data-report-table tbody tr.ad-data-report-load-more-row,
.ad-data-report-table tbody tr.ad-data-report-load-more-row td {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
}

.ad-data-report-table tbody tr.ad-data-report-load-more-row td {
  padding: 4px 8px !important;
  border-bottom: 1px solid #dbe4ef;
  background: #f8fafc !important;
  text-align: center;
}

.ad-data-report-table tbody tr.ad-data-report-load-more-row.is-archive-history td {
  position: sticky;
  top: 38px;
  z-index: 3;
  box-shadow: 0 1px 0 #dbe4ef;
}

.ad-data-report-table tbody tr.is-archive-latest-row td {
  position: sticky;
  top: 74px;
  z-index: 2;
  box-shadow: 0 1px 0 #e5e7eb;
}

.ad-data-report-table tbody tr.ad-data-report-load-more-row.is-archive-sticky-spacer td {
  padding: 0 !important;
  border: 0;
  background: #ffffff !important;
}

.ad-data-report-load-more-row .button {
  min-width: 88px;
  height: 26px;
  min-height: 26px;
  padding-inline: 14px;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.ad-data-report-load-more-row span {
  margin-left: 8px;
  color: #64748b;
  font-size: 10px;
}

.ad-data-report-table tr.is-selected td {
  background: #f4f4f5;
}

.ad-data-report-table th.ad-data-accent-header {
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  box-shadow: inset 0 -2px 0 #2563eb;
}

.ad-data-report-table th.ad-data-accent-header .ad-data-header-cell.static > span:first-child {
  color: #1d4ed8 !important;
}

.ad-data-report-table tr.is-manual-record td {
  background: #fafafa;
}

.ad-data-report-table tbody tr.has-row-highlight td {
  border-top-color: color-mix(in srgb, var(--ad-row-highlight-border) 30%, #e5e7eb) !important;
  border-bottom-color: color-mix(in srgb, var(--ad-row-highlight-border) 30%, #e5e7eb) !important;
  background: var(--ad-row-highlight) !important;
  color: var(--ad-row-highlight-foreground) !important;
}

.ad-data-report-table tbody tr.has-row-highlight td .status-pill,
.ad-data-report-table tbody tr.has-row-highlight td .ad-report-source-cell span {
  color: inherit;
}

.ad-data-report-table tbody tr.has-row-highlight td:first-child {
  box-shadow: inset 3px 0 0 var(--ad-row-highlight-border);
}

.ad-data-report-table tbody tr.has-row-highlight.is-selected td {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ad-row-highlight-border) 55%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--ad-row-highlight-border) 55%, transparent);
}

.ad-data-report-table tbody tr.has-row-highlight.is-selected td:first-child {
  box-shadow: inset 3px 0 0 var(--ad-row-highlight-border), inset 0 1px 0 color-mix(in srgb, var(--ad-row-highlight-border) 55%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--ad-row-highlight-border) 55%, transparent);
}

.ad-report-source-cell span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border: 1px solid #d6dbe3;
  border-radius: 999px;
  background: #f7f7f8;
  color: #4b5563;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.ad-report-source-cell span.automatic {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.ad-report-source-cell span.action {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1d4ed8;
}

.ad-report-source-cell span.rollover {
  border-color: #a5b4fc;
  background: #eef2ff;
  color: #4338ca;
}

.ad-report-source-cell span.manual {
  border-color: #d6dbe3;
  background: #f7f7f8;
  color: #4b5563;
}

.ad-report-source-cell .ad-followup-badge {
  margin-left: 3px;
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
}

.ad-report-inline-edit-cell,
.ad-report-metrics-cell {
  position: relative;
  overflow: visible !important;
  cursor: pointer;
}

.ad-report-inline-edit-cell:hover {
  z-index: 4;
  background: #eff6ff !important;
  box-shadow: inset 0 0 0 1px #3b82f6;
}

.ad-report-inline-edit-cell:hover::after,
.ad-data-report-table tr.metrics-edit-hover .ad-report-metrics-cell.is-first::after {
  content: '双击编辑';
  position: absolute;
  z-index: 12;
  left: 4px;
  top: -18px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #2563eb;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
}

.ad-data-report-table tr.metrics-edit-hover .ad-report-metrics-cell {
  z-index: 3;
  background: #eff6ff !important;
  box-shadow: inset 0 1px 0 #3b82f6, inset 0 -1px 0 #3b82f6;
}

.ad-data-report-table tr.metrics-edit-hover .ad-report-metrics-cell.is-first {
  box-shadow: inset 1px 1px 0 #3b82f6, inset 0 -1px 0 #3b82f6;
  border-radius: 6px 0 0 6px;
}

.ad-data-report-table tr.metrics-edit-hover .ad-report-metrics-cell.is-last {
  box-shadow: inset -1px 1px 0 #3b82f6, inset 0 -1px 0 #3b82f6;
  border-radius: 0 6px 6px 0;
}

.ad-data-manual-add-row td {
  height: 40px;
  border-bottom: 0 !important;
  background: #ffffff;
}

.ad-data-manual-add-row td:first-child {
  padding: 4px;
}

.ad-data-manual-add-row .ad-data-manual-add-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.ad-data-manual-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.ad-data-manual-add-button:hover {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.manual-ad-data-form {
  display: grid;
  gap: 16px;
}

.manual-ad-data-modal {
  width: min(760px, calc(100vw - 40px));
  max-width: 1000px;
  transition: width 160ms ease;
}

.manual-ad-data-modal.has-multiple-series {
  width: min(1000px, calc(100vw - 40px));
}

.manual-ad-data-modal .modal-title {
  align-items: center;
  gap: 18px;
}

.manual-ad-data-modal .modal-title h3 {
  flex: 0 0 auto;
}

.manual-ad-data-modal .modal-close {
  margin-left: auto;
}

.manual-ad-paste-panel {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #f8fbff;
}

.manual-ad-paste-panel label,
.manual-ad-metric-grid label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.manual-ad-paste-panel textarea {
  min-height: 132px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.55;
}

.manual-ad-paste-panel small {
  color: #64748b;
  font-size: 11px;
}

.manual-ad-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
}

.manual-ad-series-nav {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.manual-ad-series-nav .button {
  min-height: 36px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.manual-ad-series-step {
  display: grid;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 0;
  padding: 0;
  place-items: center;
  background: transparent;
  color: #2563eb;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.manual-ad-series-step:hover:not(:disabled) {
  background: #eff6ff;
}

.manual-ad-series-step:disabled {
  color: #b8c3d4;
  cursor: default;
}

.manual-ad-series-selector-wrap {
  position: relative;
  width: 240px;
}

.manual-ad-series-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 38px;
  border: 1px solid #93b4ff;
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
}

.manual-ad-series-selector strong {
  font-size: 13px;
}

.manual-ad-series-selector-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.manual-ad-series-state {
  border-radius: 999px;
  padding: 3px 8px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.manual-ad-series-state.complete {
  background: #dcfce7;
  color: #15803d;
}

.manual-ad-series-chevron {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  transition: transform 140ms ease;
}

.manual-ad-series-selector[aria-expanded="true"] .manual-ad-series-chevron {
  transform: rotate(180deg);
}

.manual-ad-series-pager {
  display: inline-flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  background: #ffffff;
}

.manual-ad-series-count {
  min-width: 58px;
  border-right: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  text-align: center;
}

.manual-ad-series-add {
  border-color: #bfdbfe !important;
  color: #2563eb !important;
}

.manual-ad-series-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 12;
  display: grid;
  width: 100%;
  max-height: 230px;
  overflow-y: auto;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 6px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
}

.manual-ad-series-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  border-radius: 7px;
}

.manual-ad-series-menu-item:hover,
.manual-ad-series-menu-item.active {
  background: #eff6ff;
}

.manual-ad-series-menu [data-manual-ad-series-index] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  background: transparent;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.manual-ad-series-menu-item.active [data-manual-ad-series-index] {
  color: #2563eb;
}

.manual-ad-series-delete {
  display: grid;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 0;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.manual-ad-series-delete:hover:not(:disabled) {
  background: #fee2e2;
}

.manual-ad-series-delete:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.manual-ad-series-delete img {
  width: 14px;
  height: 14px;
}

.manual-ad-series-menu em {
  color: #94a3b8;
  font-size: 11px;
  font-style: normal;
}

.manual-ad-series-menu-item.active em {
  color: #2563eb;
}

.manual-ad-series-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.manual-ad-series-layout.has-summary {
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
}

.manual-ad-series-editor {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.manual-ad-series-editor .manual-ad-paste-panel textarea {
  min-height: 178px;
}

.manual-ad-series-layout.has-summary .manual-ad-series-editor .manual-ad-paste-panel textarea {
  min-height: 200px;
}

.manual-ad-recognition {
  border: 1px solid #dce4ef;
  border-radius: 9px;
  padding: 11px 14px 12px;
  background: #f8fafc;
}

.manual-ad-recognition > strong {
  display: block;
  margin-bottom: 9px;
  color: #334155;
  font-size: 12px;
}

.manual-ad-recognition-values {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.manual-ad-recognition-values span {
  display: grid;
  gap: 5px;
  min-width: 0;
  border-right: 1px solid #e2e8f0;
  padding: 0 12px;
  color: #0f172a;
  font-size: 14px;
}

.manual-ad-recognition-values span:first-child {
  padding-left: 0;
}

.manual-ad-recognition-values span:last-child {
  border-right: 0;
  padding-right: 0;
}

.manual-ad-recognition-values b {
  overflow: hidden;
  color: #475569;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-ad-series-summary {
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 16px 15px;
  background: linear-gradient(180deg, #f2f8ff 0%, #eef6ff 100%);
}

.manual-ad-series-summary h4 {
  margin: 0 0 10px;
  color: #1e293b;
  font-size: 16px;
}

.manual-ad-series-summary dl {
  margin: 0;
}

.manual-ad-series-summary dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid #dbeafe;
}

.manual-ad-series-summary dl > div:last-child {
  border-bottom: 0;
}

.manual-ad-series-summary dt {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.manual-ad-series-summary dd {
  margin: 0;
  color: #2563eb;
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

@media (max-width: 820px) {
  .manual-ad-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-ad-data-modal .modal-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .manual-ad-series-nav {
    flex-wrap: wrap;
  }

  .manual-ad-series-selector-wrap {
    width: min(240px, calc(100% - 140px));
  }

  .manual-ad-series-layout.has-summary {
    grid-template-columns: 1fr;
  }

  .manual-ad-recognition-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 0;
  }
}

.ad-data-latest-refresh {
  color: #09090b;
  font-size: 15px !important;
  font-weight: 850;
}

.ad-data-panel-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

.ad-data-panel-title em {
  color: #09090b;
  font-size: 15px;
  font-style: normal;
  font-weight: 850;
}

.ad-data-batch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.ad-data-batch-actions span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.ad-data-progress-shell {
  flex: 0 0 auto;
  display: grid;
  justify-items: stretch;
  gap: 4px;
  border-top: 0;
  border-bottom: 1px solid #eef2f7;
  padding: 0 16px;
}

.ad-data-progress-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 36px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #174bc4;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.ad-data-progress-toggle span {
  display: inline-grid;
  place-items: center;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #174bc4;
  font-size: 14px;
  line-height: 1;
}

.ad-data-progress-shell.open {
  padding-bottom: 8px;
}

.ad-data-progress-shell:not(.open) {
  position: relative;
  z-index: 2;
  height: 0;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border-bottom: 0;
}

.ad-data-progress-shell:not(.open) .ad-data-progress-toggle {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
}

#ad-data-progress-shell:not(.open) .ad-data-progress-toggle {
  display: none;
}

#ad-data-progress-shell.open .ad-data-progress-toggle {
  justify-self: end;
  width: auto;
  height: 22px;
  gap: 3px;
  margin-top: 3px;
  padding: 0 6px;
  border: 1px solid #dbe7ff;
  border-radius: 5px;
  background: #ffffff;
  color: #475569;
  font-size: 10px;
}

#ad-data-progress-shell.open .ad-data-progress-toggle span {
  color: #2563eb;
  font-size: 11px;
}

#ad-data-progress-shell.open .ad-data-progress-toggle em {
  color: inherit;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

#ad-data-progress-shell.open .ad-data-progress-toggle:hover {
  border-color: #93b4f8;
  background: #f8fbff;
  color: #1d4ed8;
}

.ad-data-progress-slot[hidden] {
  display: none;
}

.ad-data-progress-slot {
  width: 100%;
}

.plugin-progress-card {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid #d8e4f2;
  border-radius: 10px;
  background: #f7fbff;
  padding: 12px 16px;
  color: #0f2747;
  box-shadow: 0 6px 18px rgba(34, 84, 128, 0.06);
}

.plugin-progress-card.running {
  border-color: #9ec3e4;
  background: #f3f9ff;
}

.plugin-progress-card.failed {
  border-color: #f3b7bf;
  background: #fff7f8;
  color: #7f1d2d;
}

.plugin-progress-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.plugin-progress-main > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.plugin-progress-main strong {
  font-size: 14px;
  font-weight: 850;
}

.plugin-progress-main span,
.plugin-progress-main p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.plugin-progress-current {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plugin-progress-metrics {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.plugin-progress-metrics span {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  border: 1px solid #d8e4f2;
  border-radius: 999px;
  background: #ffffff;
  padding: 5px 9px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.plugin-progress-metrics strong {
  color: #174bc4;
  font-size: 14px;
}

.plugin-progress-failures {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(180, 35, 58, 0.18);
  padding-top: 8px;
  color: #b4233a;
  font-size: 12px;
  line-height: 1.5;
}

.plugin-progress-failures strong {
  margin-right: 8px;
}

.selected-row {
  background: #f8fbff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #d4d4d8;
  border-radius: 999px;
  background: #ffffff;
  color: #18181b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.success {
  border-color: #9bd7c4 !important;
  background: #f0fbf6 !important;
  color: #06765f !important;
}

.status-pill.info {
  border-color: #9fc5ff !important;
  background: #eff6ff !important;
  color: #175cd3 !important;
}

.status-pill.danger {
  border-color: #f3b7bf !important;
  background: #fff1f3 !important;
  color: #b4233a !important;
}

.status-pill.muted {
  border-color: #d4d4d8 !important;
  background: #f8fafc !important;
  color: #667085 !important;
}

@media (min-width: 981px) and (max-width: 1280px) {
  .ad-data-toolbar:not(.has-date) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ad-data-toolbar:not(.has-date) .ad-data-schedule-control {
    grid-column: 1 / span 2;
  }

  .ad-data-toolbar:not(.has-date) .ad-data-top-actions {
    grid-column: 3;
    grid-row: 2;
  }
}

@media (max-width: 980px) {
  .ad-data-toolbar {
    grid-template-columns: 1fr;
  }

  .ad-data-top-actions {
    justify-content: flex-start;
    justify-self: start;
  }

  .ad-data-mode-head,
  .ad-data-report-sheet-head {
    grid-template-columns: 1fr;
  }

  .ad-data-mode-summary {
    justify-content: flex-start;
  }

  .ad-data-report-top-controls,
  .ad-data-report-sheet-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ad-data-report-top-display-tools {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ad-data-report-primary-actions {
    align-self: flex-start;
  }

  .ad-data-report-top-controls .ad-data-schedule-control {
    width: 100%;
  }

  .ad-data-report-tabs-shell {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .ad-data-report-tabs-pagination {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .ad-data-report-tab-page {
    display: none;
  }

  .ad-data-report-sheet-head .ad-report-info-grid {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }

  .ad-data-report-compact-details {
    grid-template-columns: 1fr;
  }

  .ad-data-report-meta-layout {
    grid-template-columns: 1fr;
  }

  .ad-data-report-sheet-tools {
    min-width: 0;
    justify-content: space-between;
  }

  .ad-data-report-sheet-tools .ad-data-schedule-control {
    width: 100%;
  }

  .plugin-progress-card {
    grid-template-columns: 1fr;
  }

  .plugin-progress-metrics {
    justify-content: flex-start;
  }
}

/* Shopify-inspired shop workspace: compact neutral surfaces and clearer hierarchy. */
.shopify-shop-page { gap: 10px; }
.shopify-shop-page .panel,
.shopify-shop-page .filters {
  border-color: #dedede;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .04);
}

.dashboard-fixed-page .store-directory-shell {
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}
.shopify-directory-panel { overflow: hidden; border-color: #dedede !important; border-radius: 12px !important; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .04) !important; }
.shopify-directory-head { min-height: 55px; padding: 11px 16px; }
.shopify-directory-head h3 { color: #202223; font-size: 16px; font-weight: 700; }
.shopify-directory-head p { margin-top: 3px; color: #6d7175; font-size: 11px; }
.shopify-directory-tools {
  grid-template-columns: minmax(118px, 145px) minmax(118px, 145px) minmax(260px, 1fr) auto;
  gap: 10px;
  padding: 4px 16px 8px;
  border-bottom: 0;
  border-radius: 0 !important;
  background: #fff;
}
.shopify-directory-tools label,
.shopify-store-data-filters .filter-label { gap: 5px; color: #616161; font-size: 11px; font-weight: 650; }
.shopify-directory-tools input,
.shopify-directory-tools select,
.shopify-directory-tools .button { min-height: 36px; height: 36px; border-radius: 8px; }
.shopify-directory-tools .button { min-width: 76px; box-shadow: none !important; }
.shopify-directory-panel .workbench-store-list { padding: 0; border-top: 1px solid #dedede; }
.shopify-directory-panel .workbench-store-header { min-height: 38px; padding: 0 22px; border-bottom-color: #dedede; background: #f7f7f8; }
.shopify-directory-panel .workbench-store-header { position: sticky; top: 0; z-index: 4; }
.shopify-directory-panel .workbench-store-header > span { padding-left: 0; }
.shopify-directory-panel .workbench-store-card { min-height: 50px; padding: 10px 22px; border-top-color: #ebebeb; }
.shopify-directory-panel .store-card-name { display: flex; align-items: center; gap: 6px; padding-left: 0; }
.shopify-directory-panel .store-card-name strong { min-width: 0; }
.shopify-directory-panel .workbench-store-card strong { color: #202223; font-size: 13px; font-weight: 680; }
.store-name-copy {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6d7175;
  cursor: pointer;
}
.store-name-copy .nav-svg { width: 14px; height: 14px; }
.store-name-copy:hover { background: #eef4ff; color: #2563eb; }
.store-directory-name-cell { display: flex; align-items: center; gap: 6px; }
.shopify-directory-panel .store-chip {
  min-height: 22px;
  padding: 0 8px;
  border: 0 !important;
  background: #f1f1f1 !important;
  color: #303030 !important;
  font-size: 10.5px;
  font-weight: 650;
}
.shopify-directory-panel .member-count-button {
  min-height: 28px;
  border-color: #c9cccf !important;
  border-radius: 8px;
  background: #fff !important;
  color: #303030 !important;
  font-weight: 650;
}
.shopify-directory-panel .pagination { background: #fff; }

.ad-data-filter-panel {
  position: relative;
  z-index: 20;
  overflow: visible;
  border-radius: 12px !important;
}
.ad-data-detail-panel { overflow: hidden; border-radius: 12px !important; }
.ad-data-panel { position: relative; z-index: 1; }
.ad-data-filter-panel > .ad-data-shared-mode-head,
.ad-data-detail-panel > .ad-data-shared-mode-head { border-radius: 11px 11px 0 0; }

.shopify-store-data-filters {
  display: grid;
  align-items: end;
  gap: 12px;
  padding: 12px 16px;
}
.shopify-store-data-page { gap: 12px; }
.shopify-store-data-page .store-data-shell-panel { flex: 1 1 auto; height: auto; border-color: #dedede; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .04); }
.shopify-store-data-page .shopify-store-data-filters { border: 0; border-bottom: 1px solid #dedede; border-radius: 0; box-shadow: none; }
.shopify-store-data-page .shopify-store-data-panel { border: 0 !important; border-radius: 0; box-shadow: none !important; }
.shopify-store-data-filters.is-admin { grid-template-columns: minmax(190px, 240px) minmax(320px, 440px) minmax(160px, 210px) minmax(320px, 1fr); }
.shopify-store-data-filters.is-member { grid-template-columns: minmax(190px, 240px) minmax(320px, 440px) minmax(320px, 1fr); }
.shopify-store-data-filters .date-picker,
.shopify-store-data-filters .store-choice-control { width: auto; min-width: 0; gap: 5px; flex: none; }
.shopify-store-data-filters .filter-label { min-height: 13px; display: flex; align-items: flex-end; line-height: 1; white-space: nowrap; }
.shopify-store-data-filters .date-picker-trigger,
.shopify-store-data-filters .store-choice-trigger { min-height: 36px; height: 36px; border-color: #c9cccf; border-radius: 8px; box-shadow: none; }
.shopify-store-data-filters .store-data-toolbar-actions {
  min-width: 260px;
  height: 36px;
  align-self: end;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 7px;
}
.shopify-store-data-filters .store-data-mode-switch { gap: 3px; padding: 2px; border-color: #c9cccf; border-radius: 9px; background: #f1f1f1; }
.shopify-store-data-filters .store-data-mode-switch .button { min-height: 32px; height: 32px; border-radius: 7px; padding-inline: 11px; box-shadow: none !important; }
.shopify-store-data-filters .store-data-export-button { min-height: 36px; height: 36px; padding: 0 13px; border-color: #c9cccf !important; border-radius: 8px; color: #303030 !important; box-shadow: none !important; }
.shopify-store-data-panel table th { height: 38px; background: #f7f7f8; color: #616161; font-size: 11px; font-weight: 650; }
.shopify-store-data-panel table td { border-bottom-color: #ebebeb; }
.shopify-store-data-panel .cell-sub { margin-top: 3px; color: #8c9196; font-size: 10px; }
.shopify-store-data-panel .pagination { background: #fff; }

@media (max-width: 1180px) {
  .shopify-store-data-filters.is-admin,
  .shopify-store-data-filters.is-member { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shopify-store-data-filters .store-data-toolbar-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .shopify-directory-tools { grid-template-columns: 1fr; }
  .shopify-store-data-filters.is-admin,
  .shopify-store-data-filters.is-member { grid-template-columns: 1fr; }
  .shopify-store-data-filters .store-data-toolbar-actions { min-width: 0; height: auto; flex-wrap: wrap; }
}

.nav .nav-group-button {
  color: #09090b !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.nav-child {
  font-size: 13px !important;
  font-weight: 650 !important;
}

/* Full-bleed business workspace: keep control padding, remove page-frame whitespace. */
.view {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.view.fixed-view {
  height: calc(100vh - 68px);
  padding: 0;
}

.fixed-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

.fixed-page .panel,
.fixed-page .fixed-list-panel,
.fixed-page .overview-directory-panel,
.fixed-page .store-data-shell-panel,
.fixed-page .ad-data-filter-panel,
.fixed-page .ad-data-detail-panel {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.dashboard-fixed-page .store-directory-shell,
.dashboard-fixed-page .store-overview-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.shopify-directory-panel,
.ad-data-filter-panel,
.ad-data-detail-panel,
.ad-data-filter-panel > .ad-data-shared-mode-head,
.ad-data-detail-panel > .ad-data-shared-mode-head {
  border-radius: 0 !important;
}

.ad-data-report-primary-actions .button,
.ad-data-report-top-controls .ad-data-top-actions .button {
  width: auto;
  min-width: 52px;
  max-width: none;
  flex: 0 0 auto;
  padding-inline: 11px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.ad-data-latest-table th,
.ad-data-latest-table th .sort-header,
.ad-data-latest-table th .sort-header span,
.ad-data-latest-table th .sort-header i,
.ad-data-latest-table .ad-data-header-cell.static > span:first-child {
  color: #09090b !important;
  font-size: 12px;
  font-weight: 800;
}

.ad-data-report-table th.ad-data-accent-header .ad-data-header-cell.static > span:first-child {
  color: #1d4ed8 !important;
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 760px) {
  .view,
  .view.fixed-view {
    padding: 0;
  }
}

/* Unified ADS header and Shopify-like floating live summaries. */
:root {
  --ads-shell-header: #f3f4f6;
  --ads-shell-header-ink: #12284a;
  --ads-shell-header-accent: #2f67ed;
}

.sidebar {
  inset: 58px auto 0 0;
  height: calc(100vh - 58px);
  padding: 8px 12px 16px;
}

.topbar {
  width: calc(100% + 238px);
  height: 58px;
  min-height: 58px;
  margin-left: -238px;
  padding: 0 20px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: var(--ads-shell-header);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
  color: var(--ads-shell-header-ink);
}

.topbar-brand {
  min-width: 210px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  color: var(--ads-shell-header-ink);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-brand:hover { color: var(--ads-shell-header-accent); }

.topbar-brand .brand-mark,
.topbar-brand .brand-mark.small {
  background: var(--ads-shell-header-accent) !important;
  color: #fff;
  box-shadow: 0 2px 6px rgba(47, 103, 237, .22) !important;
}

.topbar .account-menu,
.topbar .account-menu strong { color: #162033; }
.topbar .account-menu span { color: #64748b; }
.topbar .account-menu .account-action-stack { border-left-color: #c9d8f5; }
.topbar .account-menu .quiet-button { color: #52637d !important; }
.topbar .account-menu .quiet-button:hover { color: var(--ads-shell-header-accent) !important; }
.topbar .account-menu .vendor-code-copy {
  border-color: #c7d8f8;
  background: rgba(255, 255, 255, .72);
}
.topbar .account-menu .vendor-code-copy:hover {
  border-color: #8fb0ef;
  background: #fff !important;
}
.topbar .account-menu .vendor-code-copy strong { color: #123e84; }
.topbar .account-menu .vendor-code-copy i { color: var(--ads-shell-header-accent); }
.topbar .avatar { background: var(--ads-shell-header-accent); color: #fff; }

.view.fixed-view { height: calc(100vh - 58px); }

.fixed-page {
  padding: 0;
  gap: 0;
}

.orders-fixed-page,
.shopify-store-data-page {
  padding-top: 6px;
}

.orders-fixed-page > .order-management-pulse,
.shopify-store-data-page > .order-management-pulse {
  width: 100%;
  margin: 0 0 6px;
}

.orders-fixed-page > .order-management-pulse .order-pulse-summary,
.shopify-store-data-page > .order-management-pulse .order-pulse-summary {
  border-color: #d8dadd;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(26, 26, 26, .1), 0 1px 2px rgba(26, 26, 26, .06);
}

@media (max-width: 760px) {
  .sidebar {
    inset: 56px auto 0 0;
    height: calc(100vh - 56px);
  }

  .topbar {
    width: 100%;
    height: 56px;
    min-height: 56px;
    margin-left: 0;
    padding: 0 12px;
  }

  .topbar-brand {
    min-width: 0;
    height: 56px;
    gap: 8px;
    font-size: 14px;
  }

  .topbar-brand .brand-mark.small {
    width: 39px;
    height: 32px;
    font-size: 13px;
  }

  .topbar .icon-button { color: var(--ads-shell-header-accent); }
  .view.fixed-view { height: calc(100vh - 56px); }
}

html,
body,
body * {
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif !important;
}

/* Global form and action controls: appearance only; page layouts stay unchanged. */
:root {
  --ads-control-height: 36px;
  --ads-control-small-height: 32px;
  --ads-control-radius: 8px;
  --ads-control-border: #d4d4d8;
  --ads-control-border-hover: #a1a1aa;
  --ads-control-font-size: 12px;
  --ads-control-primary: #2563eb;
  --ads-control-primary-hover: #1d4ed8;
  --ads-control-focus-ring: rgba(37, 99, 235, .16);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea,
.custom-select-trigger,
.date-picker-trigger,
.store-choice-trigger,
.month-choice-control,
.fake-file-input {
  border-color: var(--ads-control-border) !important;
  border-radius: var(--ads-control-radius) !important;
  background: #ffffff;
  color: #18181b;
  font-size: var(--ads-control-font-size) !important;
  box-shadow: none !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
.custom-select-trigger,
.date-picker-trigger,
.store-choice-trigger,
.month-choice-control,
.fake-file-input {
  min-height: var(--ads-control-height) !important;
  height: var(--ads-control-height) !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):hover,
select:hover,
textarea:hover,
.custom-select-trigger:hover,
.date-picker-trigger:hover,
.store-choice-trigger:hover,
.month-choice-control:hover,
.fake-file-input:hover {
  border-color: var(--ads-control-border-hover) !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
select:focus,
textarea:focus,
.custom-select-trigger:focus,
.date-picker-trigger:focus,
.store-choice-trigger:focus,
.month-choice-control:focus-within {
  border-color: var(--ads-control-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px var(--ads-control-focus-ring) !important;
}

.button {
  min-height: var(--ads-control-height) !important;
  height: var(--ads-control-height) !important;
  border-radius: var(--ads-control-radius) !important;
  padding-inline: 12px;
  font-size: var(--ads-control-font-size) !important;
  font-weight: 700;
  box-shadow: none !important;
}

.button.small {
  min-height: var(--ads-control-small-height) !important;
  height: var(--ads-control-small-height) !important;
  border-radius: var(--ads-control-radius) !important;
  padding-inline: 10px;
  font-size: var(--ads-control-font-size) !important;
}

.users-fixed-page .admin-form-panel .button.primary {
  min-height: var(--ads-control-height) !important;
  height: var(--ads-control-height) !important;
}

.button.primary,
.button.primary.small {
  border-color: var(--ads-control-primary) !important;
  background: var(--ads-control-primary) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.button.primary:hover,
.button.primary.small:hover {
  border-color: var(--ads-control-primary-hover) !important;
  background: var(--ads-control-primary-hover) !important;
  color: #ffffff !important;
}

.button.primary:focus-visible,
.button.secondary:focus-visible,
.button.danger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ads-control-focus-ring) !important;
}

.button.primary:disabled,
.button.primary.small:disabled {
  border-color: #93b4f9 !important;
  background: #93b4f9 !important;
  color: #ffffff !important;
  opacity: .72;
}

.button.secondary,
.button.secondary.small {
  border-color: var(--ads-control-border) !important;
  border-radius: var(--ads-control-radius) !important;
  background: #ffffff !important;
  color: #18181b !important;
  box-shadow: none !important;
}

/* Keep the compact schedule values visibly inside the 34px gray container.
   This exception must stay after the global 36px form-control rules above. */
.ad-data-report-top-controls .ad-data-schedule-row input.ad-data-schedule-number,
.ad-data-report-sheet-tools .ad-data-schedule-row input.ad-data-schedule-number {
  box-sizing: border-box !important;
  flex: 0 0 56px !important;
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border-radius: 5px !important;
  font-size: 11px !important;
  line-height: 26px !important;
  text-align: center;
}

/* Mobile-only responsive workspace (v3.1.82).
   Keep every desktop rule above untouched; these overrides only apply to phones. */
@media (max-width: 760px) {
  html,
  body,
  .app-shell,
  .workspace {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    min-width: 0;
  }

  .workspace,
  .view,
  .view.fixed-view,
  .fixed-page,
  .fixed-page > *,
  .panel,
  .fixed-list-panel {
    min-width: 0;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 110;
  }

  .sidebar {
    z-index: 109;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .view,
  .view.fixed-view {
    height: auto;
    min-height: calc(100dvh - 56px);
    overflow-x: hidden;
    overflow-y: visible;
  }

  .fixed-page {
    height: auto;
    min-height: calc(100dvh - 56px);
    overflow: visible;
  }

  .orders-fixed-page,
  .shopify-store-data-page {
    padding-top: 0;
  }

  .panel-head,
  .page-head,
  .table-status-bar,
  .store-data-head,
  .plugin-management-head,
  .shopify-test-panel-head,
  .orders-selection-summary,
  .store-settings-bulkbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .panel-head,
  .plugin-management-head,
  .shopify-test-panel-head {
    padding: 13px 12px;
  }

  .page-toolbar,
  .table-actions,
  .store-data-actions,
  .shopify-row-actions,
  .modal-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .page-toolbar .button,
  .store-data-actions .button,
  .shopify-row-actions .button {
    flex: 1 1 120px;
  }

  .filters,
  .dashboard-filters,
  .calendar-filter,
  .workbench-directory-tools,
  .shopify-directory-tools,
  .shopify-store-data-filters,
  .orders-toolbar,
  .orders-toolbar.with-members,
  .ad-report-filter-toolbar,
  .ad-report-filter-toolbar.has-member,
  .ad-report-filter-toolbar.no-member,
  .shopify-preview-toolbar,
  .shopify-credentials-panel {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
  }

  .filters,
  .dashboard-filters,
  .calendar-filter,
  .orders-toolbar,
  .ad-report-filter-toolbar,
  .shopify-store-data-filters {
    padding: 12px;
  }

  .filters label,
  .calendar-filter > label,
  .date-filter > label,
  .date-picker,
  .date-picker-trigger,
  .store-choice-control,
  .store-choice-menu,
  .store-choice-trigger,
  .orders-toolbar .orders-date-field,
  .orders-toolbar .orders-choice-field,
  .orders-toolbar .orders-keyword,
  .ad-report-filter-toolbar > *,
  .shopify-store-data-filters .date-picker,
  .shopify-store-data-filters .store-choice-control {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
  }

  .orders-toolbar,
  .orders-toolbar.with-members {
    min-height: 0;
  }

  .orders-report-switch,
  .store-data-mode-switch {
    width: 100%;
    justify-self: stretch;
  }

  .shopify-store-data-filters .store-data-toolbar-actions {
    width: 100%;
    min-width: 0;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .shopify-store-data-filters .store-data-mode-switch,
  .shopify-store-data-filters .store-data-export-button {
    width: 100%;
  }

  .date-picker-popover,
  .orders-date-picker,
  .store-data-fixed-page .date-picker-popover,
  .overview-date-control .date-picker-popover,
  .ad-data-date-popover,
  .ad-report-date-popover {
    position: fixed;
    inset: 64px 8px auto 8px;
    z-index: 125;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 72px);
    grid-template-columns: minmax(0, 1fr);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 12px;
  }

  .quick-ranges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .quick-ranges button {
    min-width: 0;
    text-align: center;
  }

  .picker-main {
    min-width: 0;
    padding: 12px 10px 10px;
  }

  .picker-selected span {
    min-width: 0;
    flex: 1 1 120px;
  }

  .picker-toolbar {
    gap: 6px;
  }

  .picker-toolbar > span {
    min-width: 0;
    text-align: center;
  }

  .picker-calendars {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .picker-month + .picker-month {
    display: none;
  }

  .calendar-week,
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
  }

  .store-choice-popover,
  .orders-toolbar .orders-choice-popover,
  .orders-toolbar .orders-member-choice-popover,
  .ad-data-head-filters .ad-data-member-choice-popover,
  .ad-report-member-popover {
    position: fixed;
    inset: 64px 8px auto 8px;
    z-index: 125;
    box-sizing: border-box;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 72px);
    overflow: hidden;
  }

  .store-choice-list,
  .orders-toolbar .orders-choice-list,
  .orders-toolbar .orders-member-choice-popover .orders-choice-list,
  .ad-data-head-filters .ad-data-member-choice-popover .store-choice-list {
    grid-template-columns: minmax(0, 1fr);
    max-height: calc(100dvh - 180px);
    overflow-y: auto;
  }

  .store-choice-actions .button {
    flex: 1 1 0;
  }

  .filter-interaction-blocker {
    z-index: 120;
    background: rgba(15, 23, 42, .18);
  }

  .table-wrap,
  .fixed-table-scroll,
  .upload-history-table,
  .shopify-preview-orders,
  .shopify-analytics-preview-table,
  .ad-data-report-table-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: auto;
  }

  .fixed-table-scroll {
    flex: none;
    max-height: 62dvh;
    overflow-y: auto;
  }

  .table-wrap table,
  .fixed-table-scroll table,
  .shopify-preview-block table {
    width: max-content;
    min-width: 720px;
  }

  .ad-data-report-table-wrap table,
  .orders-table,
  .orders-report-table,
  .store-settings-table,
  .shopify-v2-table {
    min-width: 980px;
  }

  .pagination {
    width: 100%;
    min-height: 0 !important;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px !important;
  }

  .pagination-summary {
    width: 100%;
    text-align: center;
  }

  .pagination-pages {
    max-width: calc(100vw - 120px);
    overflow-x: auto;
  }

  .pagination-size,
  .pagination-jump {
    margin-top: 2px;
  }

  .order-pulse-summary,
  .order-pulse-summary.store-data-pulse-summary {
    width: 100%;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-pulse-metric,
  .order-pulse-window {
    min-height: 58px;
    border-right: 1px solid #e7e9ec;
    border-bottom: 1px solid #e7e9ec;
  }

  .order-pulse-window {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .ad-data-fixed-page {
    gap: 0;
  }

  .ad-data-mode-head,
  .ad-data-report-mode-head,
  .ad-data-shared-mode-head {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    padding: 10px;
  }

  .ad-data-mode-switch {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-data-mode-switch button {
    width: 100%;
    min-width: 0;
    padding-inline: 6px;
  }

  .ad-data-mode-summary {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .ad-data-head-filters,
  .ad-data-head-filters.has-archive-fields {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .ad-data-head-filters > label,
  .ad-data-head-filters .ad-data-choice-control,
  .ad-data-head-filters .ad-data-date-picker,
  .ad-data-head-filters .ad-data-status-filter,
  .ad-data-head-filters .ad-data-member-filter,
  .ad-data-head-filters .ad-data-search-field {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 34px;
    flex: none;
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .ad-data-head-filters .ad-data-status-filter select {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
  }

  .ad-data-report-top-controls,
  .ad-data-report-sheet-toolbar,
  .ad-data-report-sheet-tools {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    justify-self: stretch;
    gap: 8px;
  }

  .ad-data-report-top-controls .ad-data-schedule-control,
  .ad-data-report-sheet-tools .ad-data-schedule-control {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 34px;
    display: grid;
    gap: 5px;
    padding: 6px 7px;
    overflow-x: auto;
  }

  .ad-data-report-top-controls .ad-data-schedule-row,
  .ad-data-report-sheet-tools .ad-data-schedule-row {
    width: max-content;
    min-width: 100%;
  }

  .ad-data-report-top-controls .ad-data-schedule-next,
  .ad-data-report-sheet-tools .ad-data-schedule-next {
    height: auto;
    min-height: 20px;
    margin-left: 0;
    padding: 3px 0 0;
    border-left: 0;
  }

  .ad-data-report-primary-actions,
  .ad-data-report-top-controls .ad-data-top-actions,
  .ad-data-report-sheet-tools .table-actions {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-self: stretch;
  }

  .ad-data-report-primary-actions .button,
  .ad-data-report-top-controls .ad-data-top-actions .button,
  .ad-data-report-sheet-tools .table-actions .button {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .ad-data-overview-summary-head {
    align-items: stretch;
  }

  .ad-data-overview-summary-head > div:first-child,
  .ad-data-overview-summary {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .ad-data-overview-summary {
    min-width: max-content;
  }

  .ad-data-report-tabs-shell,
  .ad-data-report-tabs-pagination {
    width: 100%;
    min-width: 0;
  }

  .ad-data-report-tabs-shell.is-bottom {
    padding: 5px 6px;
  }

  .ad-data-report-tabs-pagination {
    grid-template-columns: 40px minmax(0, 1fr) 136px;
    gap: 6px;
  }

  .ad-data-report-tabs-shell.is-bottom .ad-data-report-tab-nav {
    width: 40px;
    height: 34px;
    border-radius: 8px;
    font-size: 21px;
  }

  .ad-data-report-tab-end {
    width: 136px;
    min-width: 136px;
    display: grid;
    grid-template-columns: 40px 90px;
    gap: 6px;
  }

  .ad-data-report-tab-end .ad-data-report-zoom {
    width: 90px;
    min-width: 90px;
    height: 34px;
    grid-template-columns: 30px 30px 30px;
  }

  .ad-data-report-tab-end .ad-data-report-zoom button {
    height: 32px;
    font-size: 16px;
  }

  .ad-data-report-tab-end .ad-data-report-zoom .ad-data-report-zoom-value {
    font-size: 9px;
  }

  .ad-data-report-tabs {
    min-width: 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .ad-data-report-tab {
    scroll-snap-align: start;
  }

  .ad-data-report-sheet-head .ad-report-info-grid,
  .ad-data-report-compact-details .ad-report-info-grid,
  .ad-data-report-title-context,
  .ad-data-report-meta-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ad-data-report-tab-color-popover {
    position: fixed;
    right: 8px;
    bottom: 10px;
    left: 8px;
    width: auto;
    max-width: none;
  }

  .ad-data-header-cell .ad-data-column-resizer,
  .ad-data-column-resizer {
    display: none;
  }

  .upload-grid,
  .upload-fixed-page .upload-grid,
  .upload-file-grid,
  .admin-grid,
  .admin-fixed-page .admin-grid,
  .store-settings-layout,
  .users-layout,
  .plugin-management-grid,
  .shopify-summary-grid,
  .shopify-preview-metrics,
  .shopify-safety-strip {
    height: auto;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .admin-form-panel,
  .stores-fixed-page .admin-form-panel,
  .users-fixed-page .admin-form-panel,
  .plugin-management-grid,
  .form-panel,
  .upload-import-panel {
    padding: 14px !important;
    overflow: visible;
  }

  .stores-fixed-page #new-store-form,
  .stores-fixed-page #new-store-panel,
  .stores-fixed-page .member-selector-field,
  .stores-fixed-page .fixed-checkbox-list,
  .plugin-management-panel,
  .plugin-management-main {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .users-fixed-page .fixed-list-panel {
    height: auto;
  }

  .user-account-list {
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .user-account-row,
  .users-fixed-page .user-account-row {
    width: max-content;
    min-width: 1120px;
  }

  .shopify-test-hero {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 14px;
  }

  .shopify-test-hero h2 {
    font-size: 22px;
  }

  .shopify-safety-badge {
    width: 100%;
    min-width: 0;
  }

  .shopify-test-list {
    max-height: none;
    overflow: visible;
  }

  .shopify-test-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px 12px;
  }

  .modal-backdrop,
  .modal-backdrop.side-backdrop {
    place-items: end stretch;
    padding: 8px;
  }

  .modal,
  .modal-wide,
  .modal-side,
  .modal-side.modal-wide {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100dvh - 16px);
    padding: 18px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 16px 16px 10px 10px;
  }

  .modal-actions .button {
    flex: 1 1 110px;
  }

  .reimport-preview-row,
  .ad-data-delete-preview > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .toast {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .topbar-brand > span:last-child {
    display: none;
  }

  .account-menu {
    gap: 5px;
  }

  .topbar .avatar {
    min-width: 38px;
    padding-inline: 7px;
  }

  .pagination-jump {
    display: none;
  }

  .stat-grid,
  .compass-summary,
  .store-data-total,
  .result-metrics,
  .manual-ad-metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ad-data-report-primary-actions,
  .ad-data-report-top-controls .ad-data-top-actions,
  .ad-data-report-sheet-tools .table-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

.facebook-accounts-fixed-page {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: contain;
}

.facebook-accounts-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 8px 14px 8px;
}

.facebook-accounts-head {
  flex: 0 0 auto;
  align-items: center;
  min-height: 24px;
  margin-bottom: 4px;
}

.facebook-accounts-head h3,
.facebook-section-head h4,
.facebook-auth-card h4 {
  margin: 0;
}

.facebook-accounts-head-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.facebook-accounts-head p,
.facebook-section-head p,
.facebook-auth-card p {
  margin: 5px 0 0;
  color: var(--muted);
}

.facebook-quota-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 0 0 auto;
  gap: 6px;
  margin: 0 0 6px;
}

.facebook-quota-grid.member-account-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.facebook-quota-grid article {
  display: grid;
  align-content: center;
  gap: 1px;
  min-width: 0;
  min-height: 48px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
}

.facebook-quota-grid article > span,
.facebook-quota-grid small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.facebook-quota-grid strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.windsor-settings-form small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 500;
}

.windsor-settings-form [hidden] {
  display: none !important;
}

.windsor-settings-form .form-grid.three-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.windsor-settings-form .form-grid.three-columns label,
.windsor-settings-form .form-grid.three-columns input {
  min-width: 0;
}

.windsor-schedule-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--muted);
  font-size: 12px;
}

.windsor-schedule-preview strong {
  color: #1d4ed8;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .windsor-settings-form .form-grid.three-columns {
    grid-template-columns: 1fr;
  }
}

.facebook-setting-switch {
  display: flex !important;
  align-items: center;
  gap: 9px;
}

.facebook-setting-switch input {
  position: absolute;
  opacity: 0;
}

.facebook-setting-switch > span {
  width: 38px;
  height: 22px;
  padding: 2px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .15s ease;
}

.facebook-setting-switch > span::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
  transition: transform .15s ease;
}

.facebook-setting-switch input:checked + span { background: #2563eb; }
.facebook-setting-switch input:checked + span::after { transform: translateX(16px); }

.windsor-setting-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.windsor-setting-status span {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
}

.facebook-auth-card {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 12px;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
}

.facebook-auth-card > strong {
  font-size: 13px;
}

.facebook-auth-card > .form-error {
  position: absolute;
  right: 230px;
  margin: 0;
  font-size: 11px;
}

.facebook-read-failure-table {
  margin-top: 14px;
  max-height: 320px;
  overflow: auto;
}

.facebook-read-failure-table td {
  white-space: normal;
  vertical-align: top;
  line-height: 1.55;
}

.facebook-read-failure-table th:first-child,
.facebook-read-failure-table td:first-child {
  width: 150px;
}

.facebook-auth-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.facebook-auth-action-divider {
  width: 1px;
  height: 20px;
  margin: 0 2px;
  background: #bfdbfe;
}

.facebook-account-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  margin-top: 5px;
  border-bottom: 1px solid var(--line);
}

.facebook-account-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.facebook-account-tabs button.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.facebook-account-toolbar {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  padding: 6px 0;
}

.facebook-account-search {
  display: flex;
  align-items: center;
  flex: 0 1 560px;
  gap: 6px;
  width: min(560px, 100%);
  min-width: 360px;
}

.facebook-account-search input {
  flex: 1 1 auto;
  min-width: 300px;
  height: 32px;
}

.facebook-account-search-button {
  flex: 0 0 64px;
  min-width: 64px;
  white-space: nowrap;
}

.facebook-account-toolbar select,
.facebook-account-toolbar > .custom-select-wrap,
.facebook-account-member-filter {
  flex: 0 0 150px;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.facebook-account-toolbar select,
.facebook-account-toolbar > .custom-select-wrap .custom-select-trigger,
.facebook-account-member-filter .store-choice-trigger {
  height: 32px;
  min-height: 32px;
}

.facebook-account-member-filter {
  display: block;
}

.facebook-account-member-filter .store-choice-trigger {
  border-radius: 8px;
}

.facebook-account-member-filter .store-choice-trigger strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facebook-account-member-choice-popover {
  right: 0;
  left: auto;
  width: min(460px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}

.facebook-account-member-choice-list {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.facebook-account-toolbar-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  margin-left: auto;
}

.facebook-account-toolbar-actions .button {
  min-height: 32px;
  white-space: nowrap;
}

.facebook-toolbar-error {
  max-width: 260px;
  overflow: hidden;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facebook-account-bulkbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.facebook-account-bulkbar strong {
  color: #1e3a8a;
  font-size: 12px;
}

.facebook-account-bulkbar > div {
  display: flex;
  gap: 6px;
}

.facebook-account-select-cell {
  width: 38px;
  min-width: 38px;
  padding-inline: 8px !important;
  text-align: center;
}

.facebook-account-select-cell input {
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
}

.facebook-account-select-cell input:disabled {
  cursor: not-allowed;
}

.facebook-account-owner-cell {
  overflow: visible;
  min-width: 150px;
}

.facebook-account-owner {
  display: grid;
  gap: 1px;
}

.facebook-account-owner > small {
  color: var(--muted);
  font-size: 10px;
}

.facebook-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 10px;
}

.facebook-account-table strong,
.facebook-account-table small {
  display: block;
}

.facebook-account-table {
  flex: 1 1 auto;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.facebook-account-table th,
.facebook-account-table td {
  height: 46px;
  padding: 6px 10px;
  vertical-align: middle;
}

.facebook-account-table th {
  height: 36px;
  padding-block: 6px;
}

.facebook-account-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.facebook-account-actions .button,
.facebook-account-actions a.button {
  min-height: 26px;
  padding: 0 7px;
  font-size: 11px;
}

.facebook-account-pending-action {
  color: #a76403;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.facebook-sync-cell {
  display: grid;
  gap: 2px;
  min-width: 150px;
}

.facebook-sync-cell small {
  margin-top: 0;
  line-height: 1.25;
}

.facebook-sync-retry {
  color: #b45309 !important;
  font-weight: 700;
}

.facebook-account-confirm-text {
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}

.facebook-account-table small {
  margin-top: 4px;
  color: var(--muted);
}

.facebook-audit-table {
  min-width: 1080px;
}

.facebook-audit-result {
  display: grid;
  align-items: start;
  gap: 2px;
}

.facebook-audit-result small {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facebook-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
}

.ad-data-latest-table .status-pill {
  min-height: 20px;
  padding: 0 5px;
  font-size: 10px;
  line-height: 18px;
}

.facebook-status.connected {
  background: #dcfce7;
  color: #166534;
}

.facebook-status.pending {
  background: #dbeafe;
  color: #1d4ed8;
}

.facebook-status.warning {
  background: #fef3c7;
  color: #92400e;
}

.facebook-status.error {
  background: #fee2e2;
  color: #b91c1c;
}

.ad-report-fetch-status.fetched {
  background: #dcfce7;
  color: #166534;
}

.ad-report-fetch-status.missing {
  background: #f1f5f9;
  color: #475569;
}

.danger-text {
  color: #b91c1c !important;
}

@media (max-width: 900px) {
  .facebook-accounts-fixed-page {
    overflow-y: auto;
  }

  .facebook-accounts-panel {
    height: auto;
    min-height: 100%;
  }

  .facebook-quota-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facebook-account-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .facebook-account-search,
  .facebook-account-search input,
  .facebook-account-toolbar select,
  .facebook-account-toolbar > .custom-select-wrap,
  .facebook-account-member-filter {
    width: 100%;
    min-width: 0;
  }

  .facebook-account-toolbar select,
  .facebook-account-toolbar > .custom-select-wrap,
  .facebook-account-member-filter {
    max-width: none;
  }

  .facebook-account-member-choice-popover {
    position: fixed;
    inset: 64px 8px auto 8px;
    width: auto;
    max-width: none;
  }

  .facebook-account-member-choice-list {
    grid-template-columns: minmax(0, 1fr);
    max-height: calc(100dvh - 180px);
    overflow-y: auto;
  }

  .facebook-account-toolbar-actions {
    flex-wrap: wrap;
    margin-left: 0;
  }

  .facebook-account-bulkbar {
    align-items: stretch;
    flex-direction: column;
  }

  .facebook-auth-card {
    align-items: stretch;
    flex-direction: column;
  }

  .facebook-accounts-head {
    align-items: stretch;
    flex-direction: column;
  }

  .facebook-accounts-head-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .facebook-quota-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .facebook-auth-actions {
    flex-direction: column;
  }

  .facebook-accounts-head-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.facebook-mode-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.facebook-mode-picker legend {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.facebook-mode-picker label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.facebook-mode-picker label:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px #2563eb inset;
}

.facebook-mode-picker input {
  width: auto;
  margin-top: 3px;
}

.facebook-mode-picker span,
.facebook-mode-picker small {
  display: block;
}

.facebook-mode-picker small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 400;
}

.facebook-utm-parameter-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.facebook-utm-parameter-copy {
  min-width: 0;
}

.facebook-utm-parameter-copy code {
  display: block;
  color: #244a91;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: normal;
}

.facebook-utm-copy-button {
  flex: 0 0 auto;
  display: inline-grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid #9ec2ff;
  border-radius: 7px;
  background: #fff;
  color: #1d4ed8;
  cursor: pointer;
}

.facebook-utm-copy-button:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.facebook-utm-copy-button.is-copied {
  display: inline-flex;
  width: auto;
  min-width: 58px;
  padding: 0 8px;
  justify-content: center;
  border-color: #86efac;
  background: #ecfdf3;
  color: #067647;
  font-size: 12px;
  font-weight: 700;
}

.facebook-utm-copy-button.is-copied:disabled {
  cursor: default;
  opacity: 1;
}

.facebook-utm-copy-button svg {
  width: 15px;
  height: 15px;
}

.facebook-selection-details {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #bfd5fe;
}

.facebook-hierarchy-trigger-cell button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 46px;
  padding: 3px 6px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  font: inherit;
  cursor: pointer;
}

.facebook-hierarchy-trigger-cell small {
  font-size: 9px;
}

.facebook-hierarchy-detail-row > td {
  padding: 0 !important;
  background: #f8fafc;
}

.facebook-hierarchy-panel {
  min-width: 950px;
  padding: 12px 14px 16px 58px;
  text-align: left;
}

.facebook-hierarchy-loading,
.facebook-hierarchy-error {
  display: flex;
  gap: 8px;
  padding: 16px 20px 16px 58px;
  color: var(--muted);
}

.facebook-hierarchy-error {
  color: #b91c1c;
}

.facebook-hierarchy-note {
  display: flex;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
}

.facebook-hierarchy-campaign,
.facebook-hierarchy-adset,
.facebook-hierarchy-ad {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(230px, 1fr) minmax(150px, .7fr) 70px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
}

.facebook-hierarchy-campaign {
  border-radius: 10px;
  background: #eff6ff;
  border-color: #93c5fd;
}

.facebook-adset-block {
  margin-top: 8px;
  margin-left: 22px;
}

.facebook-hierarchy-adset {
  border-radius: 9px 9px 0 0;
  background: #f8fafc;
}

.facebook-adset-block:not(.is-expanded) .facebook-hierarchy-adset {
  border-radius: 9px;
}

.facebook-adset-expand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.facebook-adset-expand > i {
  color: #64748b;
  font-size: 22px;
  font-style: normal;
  transition: transform .15s ease;
}

.facebook-adset-block.is-expanded .facebook-adset-expand > i { transform: rotate(90deg); }

.facebook-adset-expand > span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3px 8px;
}

.facebook-adset-expand small { grid-column: 2; }

.facebook-hierarchy-ad {
  margin-left: 22px;
  border-top: 0;
  border-color: #e2e8f0;
}

.facebook-hierarchy-ad:last-child {
  border-radius: 0 0 9px 9px;
}

.facebook-hierarchy-campaign > div:first-child,
.facebook-hierarchy-ad > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3px 8px;
}

.facebook-hierarchy-campaign small,
.facebook-hierarchy-adset small,
.facebook-hierarchy-ad small {
  grid-column: 2;
  color: var(--muted);
}

.facebook-level-tag {
  grid-row: span 2;
  align-self: center;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}

.facebook-level-tag.campaign { background: #dbeafe; color: #1d4ed8; }
.facebook-level-tag.adset { background: #ede9fe; color: #6d28d9; }
.facebook-level-tag.ad { background: #dcfce7; color: #15803d; }

.facebook-hierarchy-status {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.facebook-budget-button {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: right;
  white-space: nowrap;
  cursor: text;
}

.facebook-budget-button span,
.facebook-budget-inherited,
.facebook-ad-no-budget {
  color: var(--muted);
  font-size: 11px;
}

.facebook-budget-button strong {
  font-size: 12px;
}

.facebook-no-ads {
  padding: 10px 12px;
}

.facebook-live-switch {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.facebook-live-switch > span {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: #cbd5e1;
}

.facebook-live-switch > span::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .25);
  transition: transform .15s ease;
}

.facebook-live-switch.is-on { color: #166534; }
.facebook-live-switch.is-on > span { background: #1877f2; }
.facebook-live-switch.is-on > span::after { transform: translateX(15px); }
.facebook-live-switch:disabled { opacity: .55; cursor: wait; }
.facebook-live-switch strong { font-size: 10px; }

.ad-data-resizable-table col[data-ad-column-col="liveSwitch"],
.ad-data-resizable-table th[data-ad-column-key="liveSwitch"],
.ad-data-resizable-table td.facebook-switch-cell {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
}

.facebook-switch-cell {
  overflow: visible !important;
  padding-inline: 4px !important;
  text-align: center;
}

.facebook-overview-budget {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: text;
}

.facebook-inline-budget {
  position: relative;
  overflow: visible;
}

.facebook-inline-budget.is-editing {
  min-width: 126px;
  min-height: 28px;
  z-index: 9;
}

.facebook-inline-budget .facebook-inline-budget-editor {
  left: 50%;
  right: auto;
}

.facebook-budget-modal-title-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.facebook-adset-budget-form {
  gap: 12px !important;
}

.facebook-adset-budget-single-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
}

.facebook-adset-budget-single-card > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.facebook-adset-budget-single-card > div:last-child {
  justify-items: end;
}

.facebook-adset-budget-single-card strong {
  color: #0f172a;
}

.facebook-adset-budget-single-card small,
.facebook-adset-budget-single-card span,
.facebook-adset-budget-note {
  color: #64748b;
  font-size: 12px;
}

.facebook-adset-budget-single-input {
  display: grid !important;
  gap: 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.facebook-adset-budget-single-input > span,
.facebook-adset-budget-row > label {
  min-height: 38px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.facebook-adset-budget-single-input b,
.facebook-adset-budget-row > label > span {
  padding: 0 10px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.facebook-adset-budget-single-input input,
.facebook-adset-budget-row input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid #e2e8f0;
  border-radius: 0;
  outline: none;
}

.facebook-adset-budget-single-input input:focus,
.facebook-adset-budget-row input:focus {
  box-shadow: inset 0 0 0 2px #93c5fd;
}

.facebook-adset-budget-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
  color: #475569;
  font-size: 12px;
}

.facebook-adset-budget-total strong {
  color: #1d4ed8;
  font-size: 17px;
}

.facebook-adset-budget-table {
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
}

.facebook-adset-budget-head,
.facebook-adset-budget-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) minmax(76px, .6fr) minmax(100px, .75fr) minmax(150px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.facebook-adset-budget-head {
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.facebook-adset-budget-row {
  min-height: 64px;
  border-top: 1px solid #eef2f7;
}

.facebook-adset-budget-row.is-success {
  background: #f0fdf4;
}

.facebook-adset-budget-name {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.facebook-adset-budget-name strong,
.facebook-adset-budget-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facebook-adset-budget-name small {
  color: #64748b;
  font-size: 11px;
}

.facebook-adset-budget-status {
  width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.facebook-adset-budget-status.active {
  background: #dcfce7;
  color: #047857;
}

.facebook-adset-budget-status.paused {
  background: #f1f5f9;
  color: #64748b;
}

.facebook-adset-budget-note {
  margin: 0;
  line-height: 1.6;
}

.ad-data-live-controls {
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) max-content max-content max-content;
  align-items: center;
  gap: 7px;
  padding: 2px 12px;
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
  background: #f8fbff;
}

.ad-data-live-controls.is-single { grid-template-columns: minmax(200px, 1fr) max-content max-content; }

.ad-data-live-control-title {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
}

.ad-data-live-control-title small { grid-column: 2; color: var(--muted); }

.ad-data-live-budget {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  white-space: nowrap;
}

.ad-data-live-budget > span:first-child {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.ad-data-live-budget > strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 850;
}

.ad-data-live-budget.is-muted {
  border-color: #dbe3ef;
  background: #f8fafc;
}

.ad-data-live-budget.facebook-inline-budget {
  cursor: text;
}

.facebook-report-level-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.facebook-report-level-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 1px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #fff;
  white-space: nowrap;
}

.facebook-report-level-tabs button {
  min-width: 44px;
  height: 26px;
  padding: 2px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #475569;
  font-size: 12px;
  cursor: pointer;
}

.facebook-report-level-tabs button.active {
  background: #2563eb;
  color: #fff;
  font-weight: 700;
}

.facebook-report-entity-select {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
}

.facebook-report-entity-label {
  display: inline-block;
  flex: 0 0 auto;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.facebook-report-entity-select > .custom-select-wrap {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  flex: 0 0 120px;
  display: block;
}

.facebook-report-entity-select.is-ad > .custom-select-wrap {
  width: 108px;
  min-width: 108px;
  max-width: 108px;
  flex-basis: 108px;
}

.facebook-report-entity-select .custom-select-trigger {
  width: 100%;
  min-height: 27px !important;
  height: 27px !important;
  gap: 4px;
  padding: 0 5px 0 7px;
  border-radius: 6px !important;
  font-size: 11px !important;
}

.facebook-report-entity-select .custom-select-chevron {
  width: 13px;
  height: 13px;
}

.facebook-report-entity-select .custom-select-menu {
  top: calc(100% + 3px);
  min-width: 100%;
  padding: 3px;
  border-radius: 7px;
}

.facebook-report-entity-select .custom-select-option {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 11px;
}

.facebook-report-toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.facebook-report-toggle-control > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.facebook-report-hierarchy-message {
  padding: 8px 16px;
  border-bottom: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
}

.facebook-report-hierarchy-message.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.ad-data-report-facebook-hierarchy {
  max-height: 360px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.ad-data-windsor-clock {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #475569;
  font-size: 10px;
  white-space: nowrap;
}

.ad-data-windsor-clock span { display: grid; gap: 0; }
.ad-data-windsor-clock span:first-child { display: block; }
.ad-data-windsor-clock b { color: #1d4ed8; }
.ad-data-windsor-clock strong { color: #0f172a; }
.ad-data-windsor-clock.is-running { border-color: #fcd34d; background: #fffbeb; }
.ad-data-windsor-clock .ad-data-windsor-running strong { color: #b45309; font-size: 11px; }

@media (max-width: 720px) {
  .facebook-mode-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .facebook-adset-budget-head {
    display: none;
  }

  .facebook-adset-budget-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .facebook-adset-budget-row > strong,
  .facebook-adset-budget-row > label {
    grid-column: span 1;
  }

  .facebook-adset-budget-single-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .facebook-adset-budget-single-card > div:last-child {
    justify-items: start;
  }
}

/* User management: leader-first direct assignment with an internal scroll area. */
.team-assignment-button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.team-assignment-button:hover {
  border-color: #93c5fd;
  background: #dbeafe;
}

.team-assignment-button small {
  color: #64748b;
  font-size: 10px;
  font-weight: 650;
}

.modal form.team-assignment-form {
  box-sizing: border-box;
  height: calc(100vh - 90px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.team-assignment-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.team-assignment-toolbar > div:first-child {
  display: grid;
  gap: 2px;
}

.team-assignment-toolbar strong {
  color: #0f172a;
  font-size: 14px;
}

.team-assignment-toolbar small {
  color: #64748b;
  font-size: 11px;
}

.team-assignment-scroll {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: hidden;
}

.team-assignment-group {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
}

.team-assignment-group-title {
  flex: 0 0 34px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid #eef2f7;
  background: #f8fafc;
}

.team-assignment-group-title strong {
  color: #334155;
  font-size: 12px;
}

.team-assignment-group-title span {
  color: #64748b;
  font-size: 10px;
}

.team-assignment-group-options {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: #94a3b8 #f1f5f9;
  scrollbar-width: thin;
}

.team-assignment-group-options::-webkit-scrollbar {
  width: 8px;
}

.team-assignment-group-options::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.team-assignment-group-options::-webkit-scrollbar-thumb {
  border: 2px solid #f1f5f9;
  border-radius: 999px;
  background: #94a3b8;
}

.team-assignment-empty {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 14px;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

.team-assignment-option {
  min-height: 52px;
  display: grid;
  grid-template-columns: 16px 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.team-assignment-option:last-child {
  border-bottom: 0;
}

.team-assignment-option:hover {
  background: #f8fbff;
}

.team-assignment-avatar {
  box-sizing: border-box;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #eaf2ff;
  color: #1d4ed8;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.35px;
  white-space: nowrap;
}

.team-assignment-person {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.team-assignment-person strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-assignment-person small {
  color: #64748b;
  font-size: 10px;
}

.member-role-label {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.team-assignment-form > .modal-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.team-assignment-form > .form-error {
  flex: 0 0 auto;
  margin: 0;
}

.team-assignment-form > .form-error:empty {
  display: none;
}

/* AI budget automation */
.automation-fixed-page {
  display: grid;
  gap: 14px;
  align-content: start;
  padding-bottom: 28px;
}

.automation-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid #dbe6f4;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 12%, rgba(59, 130, 246, .16), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  box-shadow: 0 12px 34px rgba(35, 72, 128, .08);
}

.automation-hero h2 {
  margin: 5px 0 4px;
  color: #172b4d;
  font-size: clamp(22px, 2.2vw, 30px);
}

.automation-hero p {
  margin: 0;
  color: #62728b;
  font-size: 13px;
}

.automation-global-warning {
  margin: 0;
}

.automation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.automation-summary article {
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid #e1e8f2;
  border-radius: 14px;
  background: #fff;
}

.automation-summary span {
  display: block;
  margin-bottom: 5px;
  color: #7a879c;
  font-size: 12px;
}

.automation-summary strong {
  display: block;
  overflow: hidden;
  color: #1f3150;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-table {
  min-width: 1050px;
}

.automation-table td {
  vertical-align: top;
}

.automation-table td strong,
.automation-table td small {
  display: block;
}

.automation-table td small {
  max-width: 300px;
  margin-top: 4px;
  color: #7b8799;
  font-size: 11px;
  line-height: 1.4;
}

.automation-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 210px;
}

.automation-form-grid,
.system-ai-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.automation-form-grid label,
.system-ai-settings-form > label {
  min-width: 0;
}

.system-ai-settings-form {
  padding: 20px;
}

.system-ai-settings-form .system-ai-toggle,
.system-ai-actions,
.system-ai-settings-form .form-error {
  grid-column: 1 / -1;
}

.system-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.decision-table td:last-child {
  min-width: 280px;
  white-space: normal;
}

@media (max-width: 900px) {
  .automation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .automation-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .automation-summary,
  .automation-form-grid,
  .system-ai-settings-form {
    grid-template-columns: 1fr;
  }

  .system-ai-settings-form .system-ai-toggle,
  .system-ai-actions,
  .system-ai-settings-form .form-error {
    grid-column: 1;
  }

  .system-ai-actions .button {
    width: 100%;
  }
}

.checkbox-line > span:not(.member-role-label) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stores-fixed-page .member-selector-field .fixed-checkbox-list {
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

@media (max-width: 760px) {
  .modal form.team-assignment-form {
    height: calc(100dvh - 96px);
  }
}

/* AI automation cockpit v2 */
.automation-v2 {
  --automation-ink: #13213a;
  --automation-muted: #65738a;
  --automation-border: #e1e7f0;
  --automation-blue: #245eea;
  --automation-navy: #0f2b5b;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 14px 16px 32px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: #f5f7fb;
}

.automation-v2 > * {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 0;
}

.automation-pagebar,
.automation-detail-header {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--automation-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(32, 57, 101, .05);
}

.automation-pagebar > div:first-child,
.automation-detail-title {
  min-width: 0;
  flex: 1;
}

.automation-pagebar h2,
.automation-detail-title h2 {
  margin: 1px 0 3px;
  color: var(--automation-ink);
  font-size: 22px;
  letter-spacing: -.02em;
}

.automation-pagebar p,
.automation-detail-title p {
  overflow: hidden;
  margin: 0;
  color: var(--automation-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-eyebrow {
  color: var(--automation-blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.automation-pagebar-status,
.automation-detail-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.automation-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f2f5fa;
  color: #637189;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.automation-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.automation-pill.live,
.automation-pill.ready {
  border-color: #bfe8d4;
  background: #ebfbf3;
  color: #087c4d;
}

.automation-pill.paused,
.automation-pill.warning {
  border-color: #f3dbab;
  background: #fff8e9;
  color: #a76403;
}

.automation-pill.blocked {
  border-color: #f0c5c9;
  background: #fff1f2;
  color: #ba3340;
}

.automation-inline-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #f1d5a4;
  border-radius: 10px;
  background: #fffaf0;
  color: #735019;
  font-size: 12px;
}

.automation-inline-alert span {
  color: #8c6a36;
}

.automation-compact-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--automation-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(32, 57, 101, .04);
}

.automation-compact-summary article,
.automation-admin-summary article {
  min-width: 0;
  padding: 12px 15px;
  border-right: 1px solid var(--automation-border);
}

.automation-compact-summary article:last-child,
.automation-admin-summary article:last-child {
  border-right: 0;
}

.automation-compact-summary span,
.automation-admin-summary span {
  display: block;
  margin-bottom: 2px;
  color: #79869b;
  font-size: 10px;
}

.automation-compact-summary strong,
.automation-admin-summary strong {
  display: block;
  overflow: hidden;
  color: var(--automation-ink);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--automation-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(32, 57, 101, .045);
}

.automation-card-head {
  display: flex;
  align-items: center;
  min-height: 57px;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 15px;
  border-bottom: 1px solid #edf0f5;
}

.automation-card-head h3 {
  margin: 0 0 3px;
  color: var(--automation-ink);
  font-size: 14px;
}

.automation-card-head p {
  margin: 0;
  color: #7b8799;
  font-size: 10px;
}

.automation-data-count {
  color: #718097;
  font-size: 11px;
  white-space: nowrap;
}

.automation-list-card .table-wrap {
  max-height: calc(100vh - 370px);
}

.automation-list-card .pagination {
  min-height: 38px;
  flex: 0 0 auto;
  background: #fff;
}

.automation-list-table {
  width: 100%;
  min-width: 1180px;
  table-layout: fixed;
}

.automation-list-table thead {
  position: sticky;
  z-index: 2;
  top: 0;
}

.automation-list-table tr.managed {
  background: #fbfdff;
}

.automation-list-table td {
  vertical-align: middle;
}

.automation-list-table td:first-child {
  width: 31%;
  min-width: 300px;
}

.automation-list-table th:nth-child(2),
.automation-list-table td:nth-child(2) {
  width: 7%;
}

.automation-list-table th:nth-child(3),
.automation-list-table td:nth-child(3),
.automation-list-table th:nth-child(4),
.automation-list-table td:nth-child(4),
.automation-list-table th:nth-child(6),
.automation-list-table td:nth-child(6),
.automation-list-table th:nth-child(7),
.automation-list-table td:nth-child(7) {
  width: 8%;
}

.automation-list-table th:nth-child(5),
.automation-list-table td:nth-child(5) {
  width: 6%;
}

.automation-list-table th:nth-child(8),
.automation-list-table td:nth-child(8) {
  width: 8%;
}

.automation-list-table th:nth-child(9),
.automation-list-table td:nth-child(9) {
  width: 16%;
}

.automation-campaign-name {
  display: block;
  overflow: hidden;
  color: #152b4d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-campaign-link,
.automation-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #174fc4;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.automation-campaign-link:hover,
.automation-link-button:hover {
  text-decoration: underline;
}

.automation-link-button {
  font-size: 11px;
}

.automation-row-actions.compact {
  min-width: 122px;
  flex-wrap: nowrap;
  align-items: center;
}

.automation-plan-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  min-width: 62px;
  gap: 5px;
  padding: 3px 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.automation-plan-toggle > span {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .15s ease;
}

.automation-plan-toggle > span::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .25);
  transition: transform .15s ease;
}

.automation-plan-toggle.is-on {
  color: #087c4d;
}

.automation-plan-toggle.is-on > span {
  background: #2563eb;
}

.automation-plan-toggle.is-on > span::after {
  transform: translateX(15px);
}

.automation-plan-toggle strong {
  font-size: 10px;
}

.automation-plan-toggle:hover > span {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.automation-plan-toggle:focus-visible {
  outline: 2px solid #7da5f7;
  outline-offset: 1px;
}

.automation-plan-toggle:disabled {
  opacity: .55;
  cursor: wait;
}

.automation-modal-section {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #e7ebf2;
}

.automation-modal-section > div:first-child {
  display: grid;
  gap: 3px;
}

.automation-modal-section small {
  color: #768399;
}

.automation-detail-header {
  min-height: 82px;
}

.automation-back-button {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dce3ee;
  border-radius: 9px;
  background: #fff;
  color: #33445f;
  font-size: 18px;
  cursor: pointer;
}

.automation-back-button:hover {
  border-color: #9fb6e4;
  background: #f5f8ff;
}

.automation-breadcrumb {
  color: #8490a2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.automation-breadcrumb span {
  margin: 0 4px;
  color: #c0c7d2;
}

.automation-detail-title > div:nth-child(2) {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.automation-detail-title h2 {
  overflow: hidden;
  max-width: min(52vw, 760px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-detail-strip {
  display: flex;
  align-items: center;
  min-height: 34px;
  flex-wrap: wrap;
  gap: 9px 22px;
  padding: 7px 14px;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  background: #fff;
  color: #66748a;
  font-size: 10px;
}

.automation-detail-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.automation-detail-strip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.automation-detail-strip i.ok {
  background: #14a867;
  box-shadow: 0 0 0 3px #e5f8ef;
}

.automation-detail-strip i.warn {
  background: #e39a1d;
  box-shadow: 0 0 0 3px #fff4dd;
}

.automation-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.automation-kpi-grid article {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--automation-border);
  border-radius: 11px;
  background: #fff;
}

.automation-kpi-grid article.profit.positive {
  border-color: #b8e3ce;
  background: linear-gradient(135deg, #fff, #f0fbf6);
}

.automation-kpi-grid article.profit.negative {
  border-color: #f0c9cd;
  background: linear-gradient(135deg, #fff, #fff3f4);
}

.automation-kpi-grid article > span {
  display: block;
  margin-bottom: 5px;
  color: #748198;
  font-size: 10px;
}

.automation-kpi-grid article > strong {
  display: block;
  overflow: hidden;
  color: var(--automation-ink);
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-kpi-delta,
.automation-kpi-note {
  display: block;
  margin-top: 5px;
  color: #8490a3;
  font-size: 9px;
}

.automation-kpi-delta.up {
  color: #078457;
}

.automation-kpi-delta.down {
  color: #ce4653;
}

.automation-funnel-strip {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(5, minmax(112px, 1fr));
  overflow: hidden;
  border: 1px solid var(--automation-border);
  border-radius: 11px;
  background: #fff;
}

.automation-funnel-strip article {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid #edf0f5;
}

.automation-funnel-strip article:last-child {
  border-right: 0;
}

.automation-funnel-strip article.stage {
  background: linear-gradient(135deg, #f7faff, #eef4ff);
}

.automation-funnel-strip span,
.automation-funnel-strip strong,
.automation-funnel-strip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-funnel-strip span {
  margin-bottom: 4px;
  color: #748198;
  font-size: 9px;
}

.automation-funnel-strip strong {
  color: var(--automation-ink);
  font-size: 14px;
}

.automation-funnel-strip small {
  margin-top: 4px;
  color: #8490a3;
  font-size: 8px;
}

.automation-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, .9fr);
  gap: 10px;
}

.automation-chart-card {
  min-height: 385px;
}

.automation-range-tabs {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  background: #f5f7fa;
}

.automation-range-tabs button {
  padding: 4px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #69778d;
  font-size: 10px;
  cursor: pointer;
}

.automation-range-tabs button.active {
  background: #fff;
  color: #174fc4;
  font-weight: 750;
  box-shadow: 0 1px 4px rgba(30, 61, 115, .12);
}

.automation-chart-legend {
  display: flex;
  gap: 16px;
  padding: 10px 18px 0;
  color: #67758a;
  font-size: 10px;
}

.automation-chart-legend span::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.automation-chart-legend .spend {
  color: #2563eb;
}

.automation-chart-legend .sales {
  color: #10b981;
}

.automation-chart-legend .roas {
  color: #f59e0b;
}

.automation-chart-wrap {
  position: relative;
  min-height: 300px;
  padding: 0 10px 8px;
}

#automation-trend-canvas {
  display: block;
  width: 100%;
  cursor: crosshair;
}

.automation-chart-tooltip {
  position: absolute;
  z-index: 3;
  display: grid;
  width: max-content;
  max-width: 230px;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 24px rgba(31, 51, 85, .15);
  color: #526078;
  font-size: 9px;
  pointer-events: none;
}

.automation-chart-tooltip strong {
  color: #172b4d;
  font-size: 10px;
}

.automation-chart-empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  color: #8793a5;
  font-size: 12px;
}

.automation-ai-card {
  min-height: 385px;
}

.automation-ai-card .automation-card-head {
  align-items: flex-start;
}

.automation-ai-action {
  margin: 13px;
  padding: 15px;
  border: 1px solid #dfe7f4;
  border-radius: 11px;
  background: #f6f9ff;
}

.automation-ai-action.increase {
  border-color: #bfd9ff;
  background: #eff6ff;
}

.automation-ai-action.decrease,
.automation-ai-action.blocked {
  border-color: #f0c9cd;
  background: #fff4f5;
}

.automation-ai-action.hold {
  border-color: #d9e1ec;
  background: #f7f9fc;
}

.automation-ai-action > span {
  display: block;
  color: #5d6c82;
  font-size: 10px;
  font-weight: 700;
}

.automation-ai-action > strong {
  display: block;
  margin-top: 5px;
  color: var(--automation-navy);
  font-size: 21px;
}

.automation-ai-action p {
  margin: 9px 0 0;
  color: #66748a;
  font-size: 10px;
  line-height: 1.6;
}

.automation-confidence {
  display: grid;
  gap: 6px;
  padding: 2px 15px 13px;
}

.automation-confidence > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 10px;
}

.automation-confidence > div:first-child strong {
  color: #182943;
  font-size: 13px;
}

.automation-confidence-track {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: #edf1f6;
}

.automation-confidence-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #14b8a6);
}

.automation-confidence small {
  color: #8a95a5;
  font-size: 8px;
}

.automation-guardrails {
  display: grid;
  margin: 0;
  padding: 0 15px 15px;
}

.automation-guardrails div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid #edf1f5;
  font-size: 9px;
}

.automation-guardrails dt {
  color: #7b8799;
}

.automation-guardrails dd {
  margin: 0;
  color: #2f405a;
  font-weight: 700;
  text-align: right;
}

.automation-profit-card {
  overflow: visible;
}

.automation-profit-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(360px, .9fr);
  gap: 0;
}

.automation-profit-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-right: 1px solid #edf0f5;
}

.automation-profit-live-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e3e9f1;
  border-radius: 10px;
  background: #f8fafc;
}

.automation-profit-live-inputs span {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 9px 10px;
  border-right: 1px solid #e3e9f1;
}

.automation-profit-live-inputs span:last-child {
  border-right: 0;
}

.automation-profit-live-inputs small,
.automation-profit-live-inputs em {
  overflow: hidden;
  color: #7d899b;
  font-size: 8px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-profit-live-inputs strong {
  overflow: hidden;
  color: #1c2e49;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-profit-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.automation-profit-inputs label,
.automation-admin-fields label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: #56657b;
  font-size: 10px;
  font-weight: 700;
}

.automation-profit-inputs label small {
  color: #8a95a5;
  font-size: 8px;
  font-weight: 500;
}

.automation-profit-inputs input {
  min-width: 0;
}

.automation-profit-inputs.primary-inputs input {
  border-color: #e5d293;
  background: #fffdf3;
}

.automation-box-detection {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #bfe8d4;
  border-radius: 9px;
  background: #effbf5;
}

.automation-box-detection strong {
  overflow: hidden;
  color: #087c4d;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-box-detection small {
  overflow: hidden;
  color: #6b877a;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-profit-formula {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #dce6f5;
  border-radius: 9px;
  background: #f5f8fd;
  color: #66758b;
  font-size: 9px;
  line-height: 1.5;
}

.automation-profit-formula strong {
  flex: 0 0 auto;
  color: #274d83;
  font-size: 9px;
}

.automation-profit-advanced {
  border-top: 1px solid #edf0f5;
}

.automation-profit-advanced summary {
  padding: 11px 0 2px;
  color: #65738a;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.automation-profit-advanced[open] .automation-profit-inputs {
  padding-top: 9px;
}

.automation-profit-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.automation-profit-actions .form-error {
  margin: 0;
}

.automation-profit-results {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 16px;
  background: #fbfcfe;
}

.automation-profit-results.positive {
  background: linear-gradient(135deg, #fbfffd, #f2fbf7);
}

.automation-profit-results.negative {
  background: linear-gradient(135deg, #fffdfd, #fff4f5);
}

.automation-profit-hero {
  display: grid;
  gap: 2px;
}

.automation-profit-hero span {
  color: #69778b;
  font-size: 10px;
}

.automation-profit-hero strong {
  color: #0b7d50;
  font-size: 26px;
  letter-spacing: -.03em;
}

.automation-profit-results.negative .automation-profit-hero strong {
  color: #c53d49;
}

.automation-profit-hero small {
  color: #718096;
  font-size: 9px;
}

.automation-profit-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.automation-profit-result-grid article {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e9ef;
  border-radius: 9px;
  background: rgba(255, 255, 255, .72);
}

.automation-profit-result-grid span,
.automation-profit-result-grid small {
  display: block;
  color: #7d899b;
  font-size: 8px;
}

.automation-profit-result-grid strong {
  display: block;
  overflow: hidden;
  margin: 3px 0;
  color: #1b2d48;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-profit-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-top: 10px;
  border-top: 1px solid #e5ebe9;
  color: #6f7c8f;
  font-size: 8px;
}

.automation-profit-empty {
  display: grid;
  align-content: center;
  min-height: 190px;
  gap: 7px;
}

.automation-profit-empty strong {
  color: #273a58;
  font-size: 17px;
}

.automation-profit-empty p {
  max-width: 460px;
  margin: 0;
  color: #738096;
  font-size: 10px;
  line-height: 1.65;
}

.automation-history-card .table-wrap {
  max-height: 360px;
}

.automation-confidence-number {
  color: #294a7a;
  font-weight: 750;
}

.automation-admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--automation-border);
  border-radius: 12px;
  background: #fff;
}

.automation-admin-summary article small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #8490a2;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.automation-admin-form > .automation-card {
  overflow: visible;
}

.automation-section-index {
  color: #d3d9e3;
  font-size: 20px;
  font-weight: 800;
}

.automation-admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 15px;
}

.automation-admin-fields .span-2 {
  grid-column: 1 / -1;
}

.automation-admin-switch {
  margin: 0 15px 15px;
  padding: 11px 12px;
  border: 1px solid #dfe6f0;
  border-radius: 9px;
  background: #f7f9fc;
}

.automation-admin-switch .checkbox-line {
  margin: 0;
}

.automation-admin-switch .checkbox-line > span {
  display: grid;
  overflow: visible;
  gap: 2px;
  text-overflow: clip;
  white-space: normal;
}

.automation-admin-switch small {
  color: #7f8a9b;
  font-size: 9px;
  font-weight: 400;
}

.automation-admin-operations {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  overflow: hidden !important;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
}

.automation-admin-operations h3 {
  margin: 0 0 3px;
  color: var(--automation-ink);
  font-size: 13px;
}

.automation-admin-operations p {
  margin: 0;
  color: #788499;
  font-size: 10px;
}

.automation-admin-operations .form-error {
  flex: 0 0 100%;
}

@media (max-width: 1280px) {
  .automation-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .automation-main-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
  }

  .automation-funnel-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .automation-funnel-strip article:nth-child(3n) {
    border-right: 0;
  }

  .automation-funnel-strip article:nth-child(-n + 3) {
    border-bottom: 1px solid #edf0f5;
  }

  .automation-profit-layout {
    grid-template-columns: 1fr;
  }

  .automation-profit-form {
    border-right: 0;
    border-bottom: 1px solid #edf0f5;
  }
}

@media (max-width: 980px) {
  .automation-compact-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .automation-compact-summary article:nth-child(3) {
    border-right: 0;
  }

  .automation-main-grid,
  .automation-admin-form {
    grid-template-columns: 1fr;
  }

  .automation-detail-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .automation-detail-actions {
    width: 100%;
    padding-left: 0;
  }

  .automation-admin-operations {
    grid-column: 1;
  }
}

@media (max-width: 700px) {
  .automation-v2 {
    padding: 10px 9px 24px;
  }

  .automation-mode-switch {
    width: 100%;
  }

  .automation-mode-switch button {
    min-width: 0;
    flex: 1;
  }

  .automation-detail-layout {
    height: auto;
    grid-template-rows: auto auto;
    overflow: visible;
  }

  .automation-pagebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .automation-pagebar-status {
    width: 100%;
  }

  .automation-list-summary-head {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .automation-list-summary-title,
  .automation-list-summary-head .automation-overview-metrics,
  .automation-list-summary-head .automation-pagebar-status {
    width: 100%;
    flex-basis: 100%;
  }

  .automation-list-summary-head .automation-overview-metrics {
    overflow-x: auto;
  }

  .automation-compact-summary,
  .automation-admin-summary,
  .automation-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automation-funnel-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automation-funnel-strip article,
  .automation-funnel-strip article:nth-child(3n) {
    border-right: 1px solid #edf0f5;
    border-bottom: 1px solid #edf0f5;
  }

  .automation-funnel-strip article:nth-child(2n) {
    border-right: 0;
  }

  .automation-funnel-strip article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .automation-compact-summary article,
  .automation-admin-summary article {
    border-bottom: 1px solid var(--automation-border);
  }

  .automation-detail-title h2 {
    max-width: calc(100vw - 160px);
  }

  .automation-detail-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-left: 0;
  }

  .automation-profit-inputs,
  .automation-profit-live-inputs,
  .automation-admin-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automation-profit-live-inputs span:nth-child(2) {
    border-right: 0;
  }

  .automation-profit-live-inputs span:nth-child(-n + 2) {
    border-bottom: 1px solid #e3e9f1;
  }

  .automation-admin-fields .span-2 {
    grid-column: 1 / -1;
  }

  .automation-admin-operations {
    align-items: stretch;
    flex-direction: column;
  }

  .automation-admin-operations .system-ai-actions {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .automation-profit-inputs,
  .automation-profit-live-inputs,
  .automation-profit-result-grid,
  .automation-admin-fields {
    grid-template-columns: 1fr;
  }

  .automation-profit-live-inputs span {
    border-right: 0;
    border-bottom: 1px solid #e3e9f1;
  }

  .automation-profit-live-inputs span:last-child {
    border-bottom: 0;
  }

  .automation-profit-formula {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .automation-admin-fields .span-2 {
    grid-column: 1;
  }

  .automation-detail-actions {
    grid-template-columns: 1fr;
  }

  .automation-detail-actions .button {
    width: 100%;
  }
}

/* Compact automation overview and one-screen managed-plan cockpit */
.automation-trigger-note,
.automation-static-field {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid #dce5f2;
  border-radius: 9px;
  background: #f6f9fd;
}

.automation-trigger-note > span,
.automation-static-field > span {
  color: #738198;
  font-size: 9px;
  font-weight: 700;
}

.automation-trigger-note > strong,
.automation-static-field > strong {
  overflow: hidden;
  color: #203b65;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-trigger-note > small,
.automation-static-field > small {
  overflow: hidden;
  color: #8491a4;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-mode-toolbar {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  height: 46px;
  min-height: 46px;
  padding: 2px 8px;
  border: 1px solid var(--automation-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(32, 57, 101, .04);
}

.automation-mode-switch {
  flex: 0 0 auto;
}

.automation-mode-switch button:disabled {
  background: transparent;
  color: #a7b0bf;
  cursor: not-allowed;
}

.automation-detail-layout {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: 46px minmax(0, 1fr);
  gap: 5px;
  overflow: hidden;
}

.automation-overview-title {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  padding-right: 14px;
  border-right: 1px solid #e7ebf2;
}

.automation-overview-title strong {
  color: var(--automation-ink);
  font-size: 15px;
}

.automation-overview-title small {
  color: #7a879b;
  font-size: 8px;
}

.automation-overview-metrics {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  gap: 6px;
  overflow: hidden;
}

.automation-overview-metrics > span {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid #e3e9f2;
  border-radius: 7px;
  background: #f9fbfe;
  color: #748299;
  font-size: 9px;
  white-space: nowrap;
}

.automation-overview-metrics strong {
  color: #173766;
  font-size: 12px;
}

.automation-list-summary-head {
  gap: 12px;
}

.automation-list-summary-title {
  min-width: 165px;
  flex: 0 0 auto;
}

.automation-list-summary-head .automation-overview-metrics {
  justify-content: flex-start;
}

.automation-list-summary-head .automation-pagebar-status {
  margin-left: auto;
}

.automation-decision-log-table {
  min-width: 1180px;
  font-size: 10px;
}

.automation-decision-log-table thead {
  position: sticky;
  z-index: 2;
  top: 0;
}

.automation-decision-log-table th {
  padding: 7px 10px;
  font-size: 9px;
}

.automation-decision-log-table td {
  padding: 7px 10px;
  vertical-align: middle;
}

.automation-decision-log-table td:nth-child(5) {
  width: 30%;
  min-width: 280px;
  white-space: normal;
}

.automation-decision-log-table td:last-child {
  min-width: 105px;
  white-space: nowrap;
}

.automation-decision-log-table td small {
  max-width: 320px;
  margin-top: 2px;
  font-size: 8px;
  line-height: 1.3;
}

.automation-decision-action {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid #dce3ed;
  border-radius: 999px;
  background: #f6f8fb;
  color: #5f6d82;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.automation-decision-action.increase {
  border-color: #b9e2cd;
  background: #eefaf4;
  color: #087c4d;
}

.automation-decision-action.decrease {
  border-color: #f1c8cd;
  background: #fff3f4;
  color: #c23d49;
}

.automation-log-confidence {
  display: grid;
  width: 86px;
  gap: 4px;
}

.automation-log-confidence > strong {
  color: #274d83;
  font-size: 10px;
}

.automation-log-confidence > span {
  overflow: hidden;
  height: 4px;
  border-radius: 999px;
  background: #e9eef5;
}

.automation-log-confidence i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6df5, #14b8a6);
}

.automation-sync-state {
  display: block;
  font-size: 9px;
}

.automation-sync-state.waiting {
  color: #a16509;
}

.automation-sync-state.confirmed {
  color: #087c4d;
}

.automation-sync-state.mismatch {
  color: #c23d49;
}

.automation-sync-state.neutral {
  color: #65738a;
}

.automation-plan-switcher {
  display: flex;
  align-items: stretch;
  min-width: 0;
  height: 38px;
  border: 1px solid #dce3ed;
  border-radius: 9px;
  background: #fff;
}

.automation-plan-switch-arrow {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  border: 0;
  border-right: 1px solid #e3e8f0;
  border-radius: 8px 0 0 8px;
  background: #f8fafc;
  color: #4b607f;
  font-size: 18px;
  cursor: pointer;
}

.automation-plan-switch-track {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 4px;
  padding: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.automation-plan-switch-track > button {
  display: flex;
  align-items: center;
  min-width: max-content;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid #dfe5ee;
  border-radius: 6px;
  background: #f8fafc;
  color: #30425f;
  cursor: pointer;
}

.automation-plan-switch-track > button.active {
  border-color: #2b68ee;
  background: #eef4ff;
  color: #174fc4;
  box-shadow: inset 0 0 0 1px #2b68ee;
}

.automation-plan-switch-track strong {
  font-size: 9px;
}

.automation-plan-switch-track small {
  color: #8290a5;
  font-size: 8px;
}

.automation-plan-switch-count {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 10px;
  border-left: 1px solid #e3e8f0;
  color: #758298;
  font-size: 8px;
  white-space: nowrap;
}

@media (min-width: 761px) {
  #ad-automation-content.automation-v2:not(.automation-detail-mode) {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 5px;
    padding: 8px 12px;
    overflow: hidden;
  }

  #ad-automation-content.automation-v2:not(.automation-detail-mode) .automation-list-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  #ad-automation-content.automation-v2:not(.automation-detail-mode) .automation-list-card .automation-card-head {
    min-height: 56px;
    padding-block: 7px;
  }

  #ad-automation-content.automation-v2:not(.automation-detail-mode) .automation-list-card .table-wrap {
    min-height: 0;
    max-height: none;
    flex: 1;
    overflow: auto;
  }

  #ad-automation-content.automation-detail-mode {
    display: block;
    padding: 8px 12px;
    overflow: hidden;
  }

  #ad-automation-content.automation-detail-mode .automation-detail-layout {
    height: 100%;
  }

  .automation-cockpit-page {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-rows: 55px 28px 62px 52px minmax(170px, 1.25fr) minmax(90px, .52fr) 34px;
    gap: 5px;
    overflow: hidden;
  }

  .automation-cockpit-page .automation-detail-header {
    min-height: 0;
    height: 55px;
    gap: 11px;
    padding: 7px 12px;
  }

  .automation-cockpit-page .automation-detail-title h2 {
    margin-block: 0 2px;
    font-size: 18px;
  }

  .automation-cockpit-page .automation-detail-title p {
    font-size: 9px;
  }

  .automation-cockpit-page .automation-detail-strip {
    min-height: 0;
    height: 28px;
    padding: 4px 11px;
  }

  .automation-cockpit-page .automation-kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
  }

  .automation-cockpit-page .automation-kpi-grid article {
    padding: 8px 11px;
  }

  .automation-cockpit-page .automation-kpi-grid article > span {
    margin-bottom: 2px;
    font-size: 8px;
  }

  .automation-cockpit-page .automation-kpi-grid article > strong {
    font-size: 16px;
  }

  .automation-cockpit-page .automation-kpi-delta,
  .automation-cockpit-page .automation-kpi-note {
    margin-top: 2px;
    font-size: 8px;
  }

  .automation-cockpit-page .automation-funnel-strip {
    grid-template-columns: minmax(210px, 1.45fr) repeat(5, minmax(90px, 1fr));
  }

  .automation-cockpit-page .automation-funnel-strip article {
    padding: 7px 10px;
    border-right: 1px solid #edf0f5;
    border-bottom: 0;
  }

  .automation-cockpit-page .automation-funnel-strip article:last-child {
    border-right: 0;
  }

  .automation-cockpit-page .automation-funnel-strip span {
    margin-bottom: 2px;
    font-size: 8px;
  }

  .automation-cockpit-page .automation-funnel-strip strong {
    font-size: 12px;
  }

  .automation-cockpit-page .automation-funnel-strip small {
    margin-top: 2px;
  }

  .automation-cockpit-page .automation-main-grid,
  .automation-cockpit-page .automation-chart-card,
  .automation-cockpit-page .automation-ai-card {
    height: 100%;
    min-height: 0;
  }

  .automation-cockpit-page .automation-main-grid {
    grid-template-columns: minmax(0, 2fr) minmax(300px, .88fr);
  }

  .automation-cockpit-page .automation-chart-card,
  .automation-cockpit-page .automation-ai-card {
    overflow: hidden;
  }

  .automation-cockpit-page .automation-card-head {
    min-height: 38px;
    padding: 5px 12px;
  }

  .automation-cockpit-page .automation-card-head h3 {
    margin-bottom: 1px;
    font-size: 12px;
  }

  .automation-cockpit-page .automation-card-head p {
    font-size: 8px;
  }

  .automation-cockpit-page .automation-chart-legend {
    padding: 6px 14px 0;
  }

  .automation-cockpit-page .automation-chart-wrap {
    height: calc(100% - 60px);
    min-height: 0;
    padding-bottom: 2px;
  }

  .automation-cockpit-page .automation-ai-action {
    margin: 8px 10px;
    padding: 9px 11px;
  }

  .automation-cockpit-page .automation-ai-action > strong {
    margin-top: 2px;
    font-size: 17px;
  }

  .automation-cockpit-page .automation-ai-action p {
    overflow: hidden;
    margin-top: 4px;
    font-size: 8px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .automation-cockpit-page .automation-confidence {
    gap: 4px;
    padding: 0 11px 7px;
  }

  .automation-cockpit-page .automation-guardrails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 11px 7px;
  }

  .automation-cockpit-page .automation-guardrails div {
    min-width: 0;
    padding: 4px 0;
    font-size: 8px;
  }

  .automation-cockpit-page .automation-guardrails div:nth-child(odd) {
    padding-right: 10px;
  }

  .automation-cockpit-page .automation-guardrails dd {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .automation-cockpit-page .automation-history-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .automation-cockpit-page .automation-history-card .table-wrap {
    min-height: 0;
    max-height: none;
    flex: 1;
    overflow: auto;
  }

  .automation-cockpit-page .automation-plan-switcher {
    height: 34px;
  }
}

/* Windsor settings: keep status, configuration and actions on separate levels. */
.windsor-settings-modal {
  width: min(760px, calc(100vw - 44px));
  padding: 24px;
}

.windsor-settings-modal .modal-title {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.windsor-settings-modal .modal-title h3 {
  font-size: 20px;
  line-height: 1.2;
}

.windsor-settings-modal .windsor-settings-form {
  display: grid;
  gap: 18px;
  margin: 0;
}

.windsor-settings-modal .windsor-setting-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.windsor-settings-modal .windsor-setting-status article {
  min-width: 0;
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
}

.windsor-settings-modal .windsor-setting-status article > span {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
}

.windsor-settings-modal .windsor-setting-status article > strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.windsor-settings-modal .windsor-setting-status article > strong.is-success {
  color: #15803d;
}

.windsor-settings-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 11px;
  background: #ffffff;
}

.windsor-settings-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.windsor-settings-section-title h4 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.4;
}

.windsor-settings-section-title > span {
  color: #64748b;
  font-size: 12px;
}

.windsor-settings-modal .windsor-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.windsor-settings-modal .windsor-settings-grid label,
.windsor-settings-modal .windsor-settings-grid input {
  min-width: 0;
}

.windsor-settings-modal .windsor-settings-grid label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.windsor-settings-modal .windsor-settings-grid input {
  width: 100%;
}

.windsor-settings-modal .windsor-schedule-preview {
  min-height: 38px;
  padding: 8px 11px;
  border-color: #dbeafe;
  background: #f8fbff;
}

.windsor-settings-modal .windsor-settings-error {
  margin: 0;
}

.windsor-advanced-settings {
  padding: 0 2px;
  color: #475569;
}

.windsor-advanced-settings summary {
  width: fit-content;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.windsor-advanced-settings[open] {
  display: grid;
  gap: 10px;
}

.windsor-settings-modal .windsor-settings-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.windsor-settings-modal .windsor-settings-actions .button {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
  white-space: nowrap;
}

.facebook-account-toolbar-actions .facebook-windsor-release-link,
.facebook-account-toolbar-actions #windsor-settings {
  width: 96px;
  min-width: 96px;
}

@media (max-width: 720px) {
  .windsor-settings-modal .windsor-setting-status,
  .windsor-settings-modal .windsor-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .windsor-settings-modal .windsor-settings-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .windsor-settings-modal .windsor-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .windsor-settings-modal .windsor-schedule-preview {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .windsor-settings-modal .windsor-setting-status,
  .windsor-settings-modal .windsor-settings-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
