:root {
  --bg: #f4f7fc;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --line: #e6edf8;
  --line-soft: #edf2fb;
  --text: #334155;
  --title: #1e293b;
  --muted: #64748b;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --ops-blue: #2563eb;
  --ops-blue-hover: #1d4ed8;
  --green: #0b9568;
  --red: #d83b4b;
  --amber: #c47a16;
  --shadow: 0 4px 24px rgba(15, 23, 42, .04);
  --shadow-strong: 0 16px 44px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  overflow-x: hidden;
}
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 420px at -8% -10%, rgba(93, 137, 255, .18) 0%, transparent 58%),
    radial-gradient(760px 420px at 102% -4%, rgba(13, 181, 162, .13) 0%, transparent 54%),
    linear-gradient(180deg, #eef4f9 0%, #e9eff5 56%, #edf1f5 100%);
  font-family: "Noto Sans SC", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
button { font: inherit; }
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 14px 16px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(260px 240px at 20% 0%, rgba(37, 99, 235, .07), transparent 72%),
    rgba(255, 255, 255, .92);
  backdrop-filter: blur(20px);
  overflow-y: auto;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 6px 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  background: linear-gradient(135deg, #2563eb, #18b6a4);
  box-shadow: 0 14px 26px rgba(37, 99, 235, .18);
}
.brand strong { display: block; color: var(--title); font-size: 18px; letter-spacing: -.03em; }
.brand span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 600; }
nav { display: grid; gap: 6px; }
nav button,
nav a {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: #475569;
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
nav button svg,
nav a svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 12px;
  color: #3157b8;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: #f8faff;
  border: 1px solid #dce9ff;
}
nav button span,
nav a span {
  min-width: 0;
}
nav button.active, nav button:hover,
nav a.active, nav a:hover {
  color: var(--blue-2);
  border-color: #c9dcff;
  background: #eaf2ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .08);
}
nav button.active,
nav a.active {
  transform: translateX(2px);
}
nav button.active svg {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #18b6a4);
  box-shadow: 0 12px 24px rgba(37, 99, 235, .16);
}
.side-note {
  position: static;
  margin-top: auto;
  padding: 12px 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
main { min-width: 0; padding: 22px 28px 34px; }
.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.eyebrow {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
h1 { margin: 0; font-size: 34px; letter-spacing: -.05em; }
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.store-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
}
.store-switch span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.store-switch select {
  min-width: 150px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}
.sync-chip {
  min-width: 230px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 9px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
}
.sync-chip span {
  grid-row: 1 / 3;
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(196, 122, 22, .10);
}
.sync-chip.ok span {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(11, 149, 104, .10);
}
.sync-chip.danger span {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(216, 59, 75, .10);
}
.sync-chip strong {
  font-size: 13px;
  line-height: 1;
}
.sync-chip em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}
.ghost {
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  padding: 11px 16px;
  background: #fff;
  color: var(--blue-2);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.account-chip {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status, .content {
  display: grid;
  gap: 14px;
}
.status {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  padding: 18px;
}
.auth-layout {
  min-height: calc(100vh - 170px);
  display: grid;
  place-items: center;
}
.app-boot-root {
  min-height: 100vh;
  padding: 24px;
}
.app-boot-root {
  min-height: calc(100vh - 48px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
}
.app-boot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 8px;
}
.app-boot-brand strong {
  display: block;
  color: var(--title);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.app-boot-brand span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.app-boot-card {
  width: min(520px, 100%);
  display: grid;
  gap: 12px;
  padding: 28px 30px;
  text-align: center;
}
.app-boot-card h1 {
  font-size: 40px;
  line-height: 1.08;
}
.app-boot-card p {
  margin: 0;
}
.auth-card {
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
}
.auth-card h2 {
  margin: 0;
  color: var(--title);
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-card label,
.user-create-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.auth-card input,
.user-create-card input,
.user-create-card select {
  width: 100%;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--title);
  background: #fff;
  font: inherit;
  font-weight: 800;
}
.auth-error {
  border: 1px solid #ffd0d5;
  border-radius: 12px;
  padding: 10px 12px;
  color: #9f1d2e;
  background: #fff4f5;
  font-size: 13px;
  font-weight: 800;
}
.primary {
  border: 0;
  border-radius: 13px;
  padding: 11px 16px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0b9568);
  font-weight: 900;
  cursor: pointer;
}
.primary:disabled {
  cursor: progress;
  opacity: .72;
}
.user-management-hero {
  align-items: center;
}
.user-form-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.user-module-block {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding: 14px 16px 16px;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(247, 250, 255, .96), rgba(240, 248, 255, .88));
}
.user-module-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}
.user-module-head strong {
  color: var(--title);
  font-size: 14px;
  font-weight: 900;
}
.user-module-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.user-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.user-module-pill {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #dbe7f8;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  color: var(--title) !important;
  cursor: pointer;
}
.user-module-pill input {
  width: 16px !important;
  height: 16px;
  margin: 0;
  accent-color: #2563eb;
}
.user-module-pill span {
  color: var(--title);
  font-size: 13px;
  font-weight: 850;
}
.user-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.user-table {
  display: grid;
  gap: 8px;
}
.user-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 92px 72px 130px auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel-soft);
}
.user-row strong,
.user-row small {
  display: block;
}
.user-row small {
  color: var(--muted);
}
.user-row-permissions {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px dashed #dbe7f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.user-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.ok-text { color: var(--green); font-weight: 900; }
.bad-text { color: var(--red); font-weight: 900; }
.danger-link { color: var(--red) !important; }
.auth-result {
  display: grid;
  gap: 8px;
  border-color: #bfe8d7;
  background: #f4fff9;
}
.auth-result code {
  overflow-wrap: anywhere;
  color: var(--title);
  font-weight: 900;
}
.metric-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 96px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .94)),
    radial-gradient(160px 80px at 100% 0%, rgba(37, 99, 235, .06), transparent 70%);
}
.metric-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}
.metric-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .95), rgba(18, 170, 144, .9));
  box-shadow: 0 14px 28px rgba(37, 99, 235, .14);
  position: relative;
}
.metric-mark::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, .85);
  border-top-color: transparent;
}
.metric-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.metric-value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -.04em;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.03em; }
.list { display: grid; gap: 10px; }
.module-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}
.item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #dbe7f8;
  background: var(--panel-soft);
}
.item-title { font-weight: 950; }
.item-meta { color: var(--muted); font-size: 14px; line-height: 1.55; }
.tag {
  width: max-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: #edf4ff;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 950;
}
.tag.high { background: #fff1f2; color: var(--red); }
.tag.medium { background: #fff8e8; color: var(--amber); }
.tag.warn { background: #fff8e8; color: var(--amber); }
.tag.block { background: #fff1f2; color: var(--red); }
.tag.ok { background: #e9fbf4; color: var(--green); }
.readiness-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #eef7ff);
  margin-bottom: 12px;
}
.item.compact { padding: 11px 12px; }
.wide-list { margin-top: 14px; }
.readiness-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}
.readiness-row > div,
.readiness-row .item-title,
.readiness-row .item-meta {
  min-width: 0;
  overflow-wrap: anywhere;
}
.readiness-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid rgba(207, 224, 255, .88);
  border-radius: 28px;
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(37, 99, 235, .11), transparent 72%),
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(247, 251, 255, .92));
  box-shadow: var(--shadow);
}
.readiness-hero h2 {
  margin: 0 0 8px;
  color: var(--title);
  font-size: 30px;
  letter-spacing: -.04em;
}
.readiness-hero p:last-child {
  max-width: 980px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 650;
}
.delivery-metrics {
  margin-top: 14px;
}
.module-readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.module-readiness-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 164px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 72, 132, .04);
}
.module-readiness-card.ok {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #fff, #f0fdf4);
}
.module-readiness-card.warn {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fff, #fffbeb);
}
.module-readiness-card.block {
  border-color: #fecdd3;
  background: linear-gradient(135deg, #fff, #fff7f8);
}
.module-readiness-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.module-readiness-card strong {
  color: var(--title);
  font-size: 17px;
  line-height: 1.25;
  text-align: right;
}
.module-readiness-card p {
  margin: 0;
  color: #465f86;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}
.module-readiness-card small {
  display: block;
  margin-top: auto;
  color: var(--amber);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 750;
}
.ops-maturity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ops-maturity-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 178px;
  padding: 14px;
  border: 1px solid #fde68a;
  border-radius: 16px;
  background: #fffbeb;
}
.ops-maturity-card.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.ops-maturity-card.block {
  border-color: #fecdd3;
  background: #fff7f8;
}
.ops-maturity-card > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
}
.ops-maturity-card strong {
  color: var(--title);
  font-size: 15px;
  line-height: 1.25;
}
.ops-maturity-card b {
  color: var(--title);
  font-size: 18px;
  line-height: 1;
}
.ops-maturity-card p,
.ops-maturity-card small,
.ops-maturity-card li {
  margin: 0;
  color: #526985;
  font-size: 12px;
  line-height: 1.48;
  font-weight: 720;
}
.ops-maturity-card ul {
  margin: 0;
  padding-left: 18px;
}
.delivery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 14px;
}
.delivery-callout {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #dbe7f8;
  background: #f8fbff;
}
.delivery-callout strong {
  color: var(--title);
  font-size: 17px;
}
.delivery-callout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 650;
}
.delivery-callout.danger {
  border-color: #fecdd3;
  background: #fff7f8;
}
.delivery-callout.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.delivery-callout.warn {
  border-color: #fde68a;
  background: #fffbeb;
}
.delivery-callout code {
  display: block;
  overflow-x: auto;
  padding: 9px 10px;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  background: rgba(255, 255, 255, .86);
  color: #10284e;
  font-size: 12px;
  line-height: 1.45;
}
.data-gate-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #cfe0ff;
  border-left: 4px solid #2563eb;
  border-radius: 16px;
  background: linear-gradient(90deg, #f7fbff 0%, #ffffff 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .07);
}
.data-gate-banner span {
  display: block;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}
.data-gate-banner strong {
  display: block;
  margin-top: 3px;
  color: #102040;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}
.data-gate-banner p {
  margin: 5px 0 0;
  color: #526888;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.data-gate-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 520px;
}
.gate-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #dbe7f8;
  background: #fff;
  color: #526888;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}
.gate-chip.ok,
.gate-chip.safe {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #0b9568;
}
.gate-chip.warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #a46510;
}
.gate-chip.neutral {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.timeline-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.timeline-item span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #18b6a4);
  font-size: 13px;
  font-weight: 850;
}
.timeline-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  font-weight: 650;
}
.repair-plan-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.repair-plan-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.repair-plan-card.required {
  border-color: #fde68a;
  background: #fffbeb;
}
.repair-plan-card.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.repair-plan-card > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
}
.repair-plan-card span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.repair-plan-card strong {
  color: var(--title);
  font-size: 14px;
  line-height: 1.3;
}
.repair-plan-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}
.repair-plan-card p {
  margin: 0;
  color: #526985;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 720;
}
.repair-plan-card code {
  display: block;
  overflow-x: auto;
  padding: 9px 10px;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  color: #10284e;
  font-size: 12px;
  line-height: 1.45;
}
.repair-plan-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 750;
}
.acceptance-plan-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.acceptance-plan-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.acceptance-plan-card.required,
.acceptance-plan-card.recommended {
  border-color: #fde68a;
  background: #fffbeb;
}
.acceptance-plan-card.completed,
.acceptance-plan-card.ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.acceptance-plan-card > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
}
.acceptance-plan-card span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.acceptance-plan-card strong {
  color: var(--title);
  font-size: 14px;
  line-height: 1.3;
}
.acceptance-plan-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}
.acceptance-plan-card p {
  margin: 0;
  color: #526985;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 720;
}
.acceptance-plan-card code {
  display: block;
  overflow-x: auto;
  padding: 9px 10px;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  color: #10284e;
  font-size: 12px;
  line-height: 1.45;
}
.acceptance-plan-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 750;
}
.api-closure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.closure-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbff;
}
.closure-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.closure-card strong {
  color: var(--title);
  font-size: 19px;
}
.closure-card small {
  color: var(--muted);
  line-height: 1.45;
  font-weight: 650;
}
.closure-card.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.closure-card.warn {
  border-color: #fde68a;
  background: #fffbeb;
}
.closure-card.medium {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.closure-card.high {
  border-color: #fecdd3;
  background: #fff7f8;
}
.quality-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
}
.quality-mini-grid span {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.quality-mini-grid strong {
  color: var(--title);
  font-size: 21px;
  line-height: 1;
}
.quality-mini-grid small {
  color: var(--muted);
  font-size: 12px;
}
.quality-diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
}
.quality-diagnostic-card {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.quality-diagnostic-card.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.quality-diagnostic-card.warn {
  border-color: #fde68a;
  background: #fffbeb;
}
.quality-diagnostic-card.block {
  border-color: #fecdd3;
  background: #fff7f8;
}
.quality-diagnostic-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.quality-diagnostic-card strong {
  color: var(--title);
  font-size: 15px;
  line-height: 1.25;
  text-align: right;
}
.quality-diagnostic-card b {
  color: var(--title);
  font-size: 24px;
  line-height: 1;
}
.quality-diagnostic-card p,
.quality-diagnostic-card small {
  margin: 0;
  color: #526985;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 720;
}
.quality-diagnostic-card small {
  color: var(--amber);
}
.ads-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
}
.ads-preset-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #fde68a;
  border-radius: 16px;
  background: #fffbeb;
}
.ads-preset-card.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.ads-preset-card > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ads-preset-card strong {
  color: var(--title);
  font-size: 14px;
  line-height: 1.3;
  text-align: right;
}
.ads-preset-card p,
.ads-preset-card small {
  margin: 0;
  color: #526985;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 720;
}
.ads-preset-card code {
  display: block;
  overflow-x: auto;
  padding: 8px 9px;
  border: 1px solid #dbe7f8;
  border-radius: 11px;
  background: rgba(255, 255, 255, .82);
  color: #10284e;
  font-size: 11px;
  line-height: 1.4;
}
.compact-list {
  margin-top: 10px;
}
.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(207, 224, 255, .9);
  border-radius: 28px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(19, 168, 141, .22), transparent 70%),
    linear-gradient(135deg, #10254b, #1d56d6);
  color: #fff;
  box-shadow: var(--shadow-strong);
}
.overview-hero h2 {
  margin: 0 0 12px;
  font-size: 32px;
  color: #fff;
}
.overview-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 780;
}
.hero-score {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 22px;
  background: rgba(255, 255, 255, .10);
}
.hero-score span,
.hero-score em {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}
.hero-score strong {
  font-size: 44px;
  letter-spacing: -.06em;
  line-height: 1;
}
.overview-pulse {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pulse-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}
.pulse-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.pulse-card strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.05em;
}
.pulse-card small {
  display: block;
  margin-top: 9px;
  color: #3c557d;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}
.overview-command {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 14px;
  align-items: stretch;
}
.command-panel {
  display: grid;
  gap: 14px;
}
.command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.command-tile {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 15px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background:
    radial-gradient(140px 70px at 100% 0%, rgba(37, 99, 235, .08), transparent 72%),
    #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(32, 72, 132, .05);
}
.command-tile:hover {
  border-color: #9fc0ff;
  transform: translateY(-1px);
}
.command-tile span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.command-tile strong {
  color: var(--title);
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.command-tile small {
  color: #49658e;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}
.sync-closure-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.sync-closure-strip span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #49658e;
  background: #f5f8ff;
  border: 1px solid #dbe7f8;
  font-size: 13px;
  font-weight: 850;
}
.sync-closure-strip span.ok {
  color: var(--green);
  background: #ecfdf5;
  border-color: #bbf7d0;
}
.sync-closure-strip span.warn {
  color: var(--amber);
  background: #fffbeb;
  border-color: #fde68a;
}
.handoff-list {
  display: grid;
  gap: 8px;
}
.handoff-list p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  color: #38527d;
  background: #f8fbff;
  border: 1px solid var(--line);
  line-height: 1.5;
  font-weight: 700;
}
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 14px;
  align-items: start;
}
.module-board {
  display: grid;
  gap: 14px;
}
.module-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.module-tile {
  min-height: 138px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 16px;
  border: 1px solid #dbe7f8;
  border-radius: 20px;
  background:
    radial-gradient(180px 90px at 100% 0%, rgba(36, 91, 232, .08), transparent 72%),
    #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(32, 72, 132, .06);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.module-tile:hover {
  transform: translateY(-2px);
  border-color: #9fc0ff;
  box-shadow: var(--shadow-strong);
}
.module-tile strong {
  font-size: 18px;
  letter-spacing: -.03em;
}
.module-tile small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 800;
}
.overview-side-stack {
  display: grid;
  gap: 14px;
}
.alert-line {
  grid-template-columns: auto 1fr;
  align-items: start;
}
.overview-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.overview-focus-grid h3,
.ad-risk-mini h3 {
  margin: 0 0 8px;
  color: var(--title);
  font-size: 15px;
}
.focus-row {
  width: 100%;
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.focus-row:hover {
  border-color: #9fc0ff;
  background: #f8fbff;
}
.focus-row strong {
  color: var(--title);
  font-size: 14px;
}
.focus-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.ad-risk-mini {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.ops-section {
  display: grid;
  gap: 14px;
}
.ops-section h3 {
  margin: 2px 0 0;
  font-size: 18px;
  letter-spacing: -.03em;
}
.orders-layout {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr);
  gap: 14px;
  align-items: start;
}
.store-row,
.asin-row,
.inventory-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.store-row .tag {
  justify-self: end;
}
.asin-row strong {
  font-size: 21px;
  letter-spacing: -.03em;
}
.order-trend {
  min-height: 164px;
}
.orders-board {
  display: grid;
  gap: 14px;
}
.orders-ops-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 4px 0 2px;
}
.orders-ops-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.05em;
}
.orders-meta {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}
.orders-meta.accent {
  color: #ea580c;
}
.orders-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.orders-filter-row button,
.orders-filter-row span,
.orders-filter-row strong {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  border: 0;
  color: #64748b;
  background: #eef3fb;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.orders-filter-row button:hover,
.ops-orders-tabs button:hover {
  color: #1d4ed8;
  background: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .10);
}
.orders-filter-row button.active,
.orders-filter-row span.active,
.orders-filter-row strong {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
}
.orders-search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 18px 0 20px;
  padding: 16px 18px;
  border: 1px solid rgba(191, 219, 254, .86);
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 30px rgba(30, 64, 175, .06);
}
.orders-search-bar label {
  display: block;
  color: #10284e;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -.01em;
}
.orders-search-bar p {
  margin: 4px 0 0;
  color: #647799;
  font-size: 13px;
  line-height: 1.45;
}
.orders-search-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 min(560px, 52%);
}
.orders-search-controls input {
  flex: 1;
  min-width: 220px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(191, 219, 254, .96);
  border-radius: 14px;
  background: #fff;
  color: #13223c;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.orders-search-controls input:focus {
  border-color: rgba(37, 99, 235, .86);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}
.orders-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(420px, 5fr);
  gap: 18px;
  align-items: start;
}
.orders-left,
.orders-right {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.orders-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.metric-tile {
  min-width: 0;
  display: grid;
  gap: 7px;
  align-content: center;
  min-height: 122px;
  padding: 19px 20px;
  border: 1px solid rgba(226, 232, 240, .72);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .04);
}
.metric-tile span {
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
}
.metric-tile strong {
  color: #0f172a;
  font-size: 28px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.04em;
}
.metric-tile small {
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}
.metric-tile.ok {
  background: #effaf5;
  border-color: rgba(187, 247, 208, .72);
}
.metric-tile.ok small,
.store-rank-row span.ok {
  color: #07936a;
}
.metric-tile.bad {
  background: #fff1f2;
  border-color: rgba(254, 202, 202, .72);
}
.metric-tile.bad small,
.store-rank-row span.bad {
  color: #d83b4b;
}
.metric-tile.green {
  background: #f0fdf4;
  border-color: rgba(187, 247, 208, .72);
}
.metric-tile.amber {
  background: #fffbeb;
  border-color: rgba(253, 230, 138, .86);
}
.metric-tile.amber small {
  color: var(--amber);
}
.metric-tile.red {
  background: #fff1f2;
  border-color: rgba(254, 202, 202, .82);
}
.metric-tile.red small {
  color: var(--red);
}
.metric-tile.purple {
  background: #faf5ff;
  border-color: rgba(233, 213, 255, .72);
}
.metric-tile.teal {
  background: #ecfeff;
  border-color: rgba(153, 246, 228, .78);
}
.metric-tile.neutral small,
.store-rank-row span.neutral {
  color: #667996;
}
.orders-asin-panel,
.orders-side-card,
.campaign-review-card,
.product-ads-table-wrap {
  border: 1px solid rgba(226, 232, 240, .74);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .04);
}
.orders-asin-panel {
  overflow: hidden;
}
.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-title-row h3,
.orders-side-card h3,
.product-ads-toolbar h3,
.campaign-review-head h3 {
  margin: 0;
  color: #0f172a;
  font-weight: 750;
  letter-spacing: -.025em;
}
.panel-title-row span {
  color: #647799;
  font-size: 13px;
  font-weight: 560;
}
.orders-asin-panel > .panel-title-row,
.orders-side-card {
  padding: 18px 20px;
}
.asin-table {
  width: 100%;
}
.asin-table-head,
.asin-table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) .52fr .58fr .56fr .5fr;
  gap: 14px;
  align-items: center;
}
.asin-table-head {
  padding: 11px 18px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.asin-table-row {
  padding: 13px 18px;
  border-bottom: 1px solid #f1f5f9;
}
.asin-table-row:nth-child(odd) {
  background: rgba(239, 246, 255, .54);
}
.asin-table-row strong,
.asin-table-row b {
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
}
.asin-table-row small,
.asin-table-row span small {
  display: block;
  margin-top: 3px;
  color: #70819b;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 440;
}
.asin-table-row span,
.asin-table-row em {
  color: #243b60;
  font-style: normal;
  font-size: 15px;
  font-weight: 570;
}
.asin-table-row em.risk {
  color: #c47a16;
}
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  border: 0;
  background: transparent;
  color: var(--blue-2);
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
  padding: 0;
}
.order-detail-panel {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(191, 219, 254, .78);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .04);
}
.order-detail-panel .panel-title-row p {
  margin: 6px 0 0;
  color: #647799;
  font-size: 13px;
  line-height: 1.45;
}
.order-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.order-detail-stats .metric-tile {
  min-height: 104px;
  padding: 15px 16px;
}
.order-detail-stats .metric-tile strong {
  font-size: 24px;
}
.order-detail-insights {
  display: grid;
  gap: 8px;
}
.order-detail-insights p {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #dbe7f8;
  border-radius: 14px;
  background: #fff;
  color: #2b4165;
  font-size: 13px;
  line-height: 1.5;
}
.order-item-table {
  overflow: hidden;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  background: #fff;
}
.order-item-head,
.order-item-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) .55fr .7fr .72fr auto;
  gap: 12px;
  align-items: center;
}
.order-item-head {
  padding: 10px 14px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 760;
  border-bottom: 1px solid #edf2f7;
}
.order-item-row {
  padding: 13px 14px;
  border-bottom: 1px solid #edf2f7;
}
.order-item-row:last-child {
  border-bottom: 0;
}
.order-item-row strong,
.order-item-row b {
  color: #0f172a;
  font-weight: 820;
}
.order-item-row b.risk {
  color: #c47a16;
}
.order-item-row small {
  display: block;
  margin-top: 4px;
  color: #70819b;
  font-size: 12px;
  line-height: 1.35;
}
.empty-note {
  padding: 16px 18px;
  color: #647799;
  font-size: 14px;
  line-height: 1.55;
}
.trend-strip.polished {
  min-height: 286px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.trend-strip.polished .trend-day {
  min-width: 32px;
}
.trend-strip.polished .trend-day span {
  width: 18px;
  background: linear-gradient(180deg, #6ea8ff, #2563eb);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .14);
}
.trend-strip.compact-bars {
  min-height: 130px;
}
.trend-day.cyan span {
  background: linear-gradient(180deg, #43d2e9, #1ebbd7);
  box-shadow: 0 8px 18px rgba(30, 187, 215, .16);
}
.orders-side-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.orders-side-mini-grid .metric-tile {
  min-height: 104px;
}
.orders-side-mini-grid .metric-tile strong {
  font-size: 25px;
}
.store-rank-card {
  display: grid;
  gap: 10px;
}
.store-rank-row,
.product-ad-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid #edf2fa;
}
.store-rank-row:first-of-type,
.product-ad-mini:first-of-type {
  border-top: 0;
}
.store-rank-row strong,
.product-ad-mini strong {
  color: #102040;
  font-size: 15px;
  font-weight: 650;
}
.store-rank-row small,
.product-ad-mini small {
  display: block;
  margin-top: 4px;
  color: #647799;
  font-size: 12px;
  font-weight: 430;
}
.store-rank-row span,
.product-ad-mini b {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 680;
}
.product-ad-mini b {
  color: #245be8;
}
.product-ads-compact {
  display: grid;
  gap: 4px;
}
.mini-metrics {
  min-width: 86px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: end;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.mini-metrics strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}
.ops-page {
  display: grid;
  gap: 16px;
}
.inventory-hero-grid,
.product-center-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.product-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.product-overview-card {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 15px 16px;
  border: 1px solid #d9e6f8;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .95)),
    radial-gradient(220px 120px at 100% 0%, rgba(36, 91, 232, .10), transparent 70%);
}
.product-overview-card.risk {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 248, 249, .95)),
    radial-gradient(220px 120px at 100% 0%, rgba(216, 59, 75, .11), transparent 70%);
}
.product-overview-card.warn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 251, 242, .95)),
    radial-gradient(220px 120px at 100% 0%, rgba(196, 122, 22, .12), transparent 70%);
}
.product-overview-card.action {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(245, 253, 250, .95)),
    radial-gradient(220px 120px at 100% 0%, rgba(11, 149, 104, .12), transparent 70%);
}
.product-overview-card span {
  color: #60718f;
  font-size: 12px;
  font-weight: 720;
}
.product-overview-card strong {
  color: #12223d;
  font-size: 28px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: -.035em;
}
.product-overview-card small {
  color: #657997;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 460;
}
.product-insight-grid,
.inventory-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.product-insight-card,
.inventory-insight-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 92px;
  padding: 14px 15px;
  border: 1px solid #d9e6f8;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(247, 251, 255, .94)),
    radial-gradient(220px 120px at 100% 0%, rgba(15, 157, 118, .12), transparent 70%);
}
.product-insight-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(247, 251, 255, .94)),
    radial-gradient(220px 120px at 100% 0%, rgba(36, 91, 232, .10), transparent 70%);
}
.product-insight-card span,
.inventory-insight-card span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #0b7f62;
  background: #e9fbf4;
  font-size: 12px;
  font-weight: 760;
}
.product-insight-card span {
  color: #245be8;
  background: #edf4ff;
}
.product-insight-card p,
.inventory-insight-card p {
  margin: 0;
  color: #334c72;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 520;
}
.inventory-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .42fr);
  gap: 16px;
  align-items: start;
}
.inventory-main-panel,
.inventory-side-panel,
.ads-risk-panel,
.ads-section-panel {
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, .74);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .04);
}
.inventory-main-panel {
  overflow: hidden;
}
.inventory-main-panel > .panel-title-row,
.ads-risk-panel > .panel-title-row,
.ads-section-panel > .panel-title-row {
  padding: 18px 20px;
  border-bottom: 1px solid #edf2fa;
}
.inventory-side-panel {
  display: grid;
  gap: 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.inventory-bucket-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-top: 1px solid #edf2fa;
}
.inventory-bucket-row:first-of-type {
  border-top: 0;
}
.inventory-bucket-row strong {
  color: #12223d;
  font-size: 14px;
  font-weight: 720;
}
.inventory-bucket-row small {
  display: block;
  margin-top: 3px;
  color: #657997;
  font-size: 12px;
}
.inventory-bucket-row > span {
  color: #0b7f62;
  font-size: 18px;
  font-weight: 760;
}
.inventory-priority-table,
.inventory-all-table {
  min-width: 0;
  overflow: auto;
}
.inventory-table-head,
.inventory-table-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) 90px minmax(110px, .54fr) minmax(140px, .76fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: center;
}
.inventory-table-head {
  min-width: 880px;
  padding: 11px 20px;
  color: #8090a8;
  font-size: 12px;
  font-weight: 700;
  background: #f8fafc;
  border-bottom: 1px solid #edf2fa;
}
.inventory-table-row {
  min-width: 880px;
  padding: 15px 20px;
  border-bottom: 1px solid #edf2fa;
}
.inventory-table-row:nth-child(even) {
  background: #fbfdff;
}
.inventory-table-row strong,
.inventory-table-row b {
  color: #12223d;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 720;
}
.inventory-table-row small {
  display: block;
  margin-top: 4px;
  color: #657997;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 430;
}
.inventory-table-row p {
  margin: 0;
  color: #405878;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 460;
}
.inventory-all-head,
.inventory-all-row {
  grid-template-columns: minmax(280px, 1.3fr) 90px .55fr .55fr .55fr .7fr;
  min-width: 940px;
}
.product-center {
  padding: 20px;
  display: grid;
  gap: 16px;
}
.product-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.product-list {
  display: grid;
  gap: 10px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}
.product-list-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 26px rgba(32, 72, 132, .05);
  backdrop-filter: blur(10px);
}
.product-list-head strong {
  color: #12223d;
  font-size: 15px;
  font-weight: 760;
}
.product-list-head span {
  color: #657997;
  font-size: 12px;
  font-weight: 620;
}
.product-row {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(32, 72, 132, .05);
}
.product-row.active {
  border-color: #9fc0ff;
  background: linear-gradient(135deg, #f5f9ff, #ecf5ff);
  box-shadow: 0 16px 36px rgba(36, 91, 232, .13);
}
.product-row strong {
  font-size: 15px;
  line-height: 1.35;
}
.product-row span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.product-row small {
  display: block;
  color: #5d7190;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}
.product-asin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 760;
}
.product-asin em {
  color: #64748b;
  font-style: normal;
  font-size: 11px;
  font-weight: 620;
  padding: 3px 7px;
  border: 1px solid #dbe7f8;
  border-radius: 999px;
  background: #f8fbff;
}
.product-asin em.high {
  color: #be2537;
  border-color: #facbd1;
  background: #fff1f2;
}
.product-asin em.medium {
  color: #9b5f12;
  border-color: #f5dfac;
  background: #fff8e8;
}
.product-detail {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.product-management {
  display: grid;
  gap: 16px;
}
.product-mgmt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 16px;
  align-items: start;
}
.product-listing-workbench,
.product-current-panel {
  min-width: 0;
}
.product-listing-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}
.product-listing-list button {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #dbe7f8;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.product-listing-list button.active,
.product-listing-list button:hover {
  border-color: #9fc0ff;
  background: #f6faff;
}
.product-listing-list strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #102040;
  font-size: 14px;
  font-weight: 900;
}
.product-listing-list small,
.product-listing-list em {
  color: #6b7f9c;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.product-listing-list span {
  overflow: hidden;
  color: #294369;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-current-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 0 12px;
}
.product-current-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe7f8;
  border-radius: 14px;
  background: #fbfdff;
}
.product-current-grid small {
  display: block;
  color: #6b7f9c;
  font-size: 12px;
  font-weight: 820;
}
.product-current-grid strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #102040;
  font-size: 16px;
  font-weight: 920;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-form {
  margin-top: 12px;
}
.product-draft-row {
  border-left: 4px solid #9fc0ff;
}
.diff-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.diff-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  background: #fff;
}
.diff-row strong {
  color: var(--blue-2);
  font-size: 13px;
}
.diff-row span {
  min-width: 0;
  color: #294369;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.diff-row i {
  color: var(--muted);
  font-style: normal;
  font-weight: 950;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dbe7f8;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f3f8ff);
}
.listing-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  gap: 12px;
}
.listing-kv {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px 10px;
  margin-top: 6px;
}
.listing-kv span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.listing-kv strong {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}
.mini-draft {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #dbe7f8;
  border-radius: 13px;
  background: #f8fbff;
  margin-top: 8px;
}
.mini-draft strong {
  font-size: 14px;
}
.mini-draft small {
  color: var(--muted);
  line-height: 1.45;
  font-weight: 800;
}
.detail-head h3,
.analysis-panel h3 {
  margin: 8px 0 6px;
  font-size: 21px;
  line-height: 1.28;
  letter-spacing: -.03em;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.metric-grid .card {
  padding: 14px;
  border-radius: 18px;
  box-shadow: none;
}
.metric-grid .metric-value {
  font-size: 22px;
}
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.analysis-panel {
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  padding: 15px;
  background: #fff;
}
.analysis-panel p {
  margin: 8px 0 0;
  color: #294369;
  line-height: 1.65;
}
.product-intel-page {
  padding: 0;
  gap: 16px;
}
.product-intel-hero {
  min-height: 250px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: end;
  padding: 28px;
  border: 1px solid rgba(134, 170, 235, .34);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(720px 320px at 100% 0%, rgba(20, 184, 166, .34), transparent 62%),
    linear-gradient(135deg, #10233f, #173c7c 54%, #215bd8);
  box-shadow: 0 24px 68px rgba(11, 29, 66, .18);
  overflow: hidden;
}
.product-intel-hero span {
  color: #8ff5dd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
}
.product-intel-hero h2 {
  margin: 10px 0 14px;
  color: #fff;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -.045em;
}
.product-intel-hero p {
  max-width: 900px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 720;
}
.product-intel-meta {
  display: grid;
  gap: 8px;
  align-self: end;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: rgba(5, 17, 38, .24);
  backdrop-filter: blur(10px);
}
.product-intel-meta p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.45;
}
.product-intel-layout {
  grid-template-columns: 318px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.product-intel-layout .product-list {
  max-height: calc(100vh - 116px);
  padding: 14px;
  border: 1px solid rgba(216, 226, 241, .94);
  border-radius: 24px;
  background: rgba(255, 255, 255, .90);
  box-shadow: 0 18px 44px rgba(19, 39, 78, .06);
}
.product-intel-layout .product-list-head {
  position: static;
  display: grid;
  justify-content: stretch;
  gap: 4px;
  padding: 0 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.product-intel-layout .product-list-head span {
  color: #0b9568;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.product-intel-layout .product-list-head strong {
  color: #0f172a;
  font-size: 23px;
  line-height: 1.08;
  font-weight: 850;
}
.product-intel-layout .product-list-head small {
  color: #647799;
  font-size: 12px;
  font-weight: 700;
}
.product-rail-search {
  display: grid;
  gap: 8px;
  padding-bottom: 4px;
}
.product-rail-search div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.product-intel-layout .product-row {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
}
.product-intel-layout .product-row::before {
  content: "";
  grid-row: 1 / span 4;
  width: 38px;
  height: 38px;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  background:
    linear-gradient(90deg, #dbeafe 0 44%, transparent 44%),
    linear-gradient(180deg, #fff, #f3f8ff);
}
.product-intel-layout .product-row.active::before {
  border-color: #9fc0ff;
  background:
    linear-gradient(90deg, #2563eb 0 44%, transparent 44%),
    linear-gradient(180deg, #fff, #edf4ff);
}
.product-intel-layout .product-detail {
  gap: 14px;
}
.product-workbench-head {
  justify-content: flex-start;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(340px 160px at 100% 0%, rgba(37, 99, 235, .10), transparent 72%),
    rgba(255, 255, 255, .92);
  box-shadow: 0 18px 44px rgba(19, 39, 78, .06);
}
.product-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #edf4ff);
}
.product-thumb span {
  width: 36px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #2563eb 0 44%, transparent 44%),
    linear-gradient(180deg, #dbeafe, #fff);
  box-shadow: 12px -5px 0 -7px #18b6a4;
}
.product-workbench-head h3 {
  margin-top: 8px;
  font-size: 25px;
  line-height: 1.15;
}
.product-workbench-insights {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.trend-strip {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  overflow-x: auto;
}
.trend-day {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-width: 34px;
}
.trend-day span {
  display: block;
  width: 16px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #245be8, #14b89a);
}
.trend-day em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.ads-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.ops-reference-page {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.ops-reference-page > *,
.ads-workspace,
.generic-ads-analysis,
.product-ads-table-wrap {
  min-width: 0;
}
.ops-report-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(216, 226, 241, .92);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(251, 253, 255, .88)),
    radial-gradient(900px 260px at 12% 0%, rgba(37, 99, 235, .08), transparent 60%);
  box-shadow: 0 18px 44px rgba(19, 39, 78, .08);
}
.ops-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.ops-report-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 820;
  letter-spacing: 0;
}
.ops-report-head p {
  margin: 9px 0 0;
  color: #465f86;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 720;
}
.ops-tabs {
  flex-shrink: 0;
  align-self: flex-start;
}
.ops-filter-grid.ads-filterbar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 138px 190px minmax(0, 1fr) 118px;
  gap: 12px;
  align-items: end;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.ops-filter-grid .ad-filter-search {
  min-width: 0;
}
.ops-filter-grid .ad-filter-risk {
  align-self: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dbe7f8;
  border-radius: 13px;
  background: rgba(248, 251, 255, .92);
}
.ops-filter-grid .ad-filter-apply {
  width: 100%;
  min-height: 42px;
}
.filter-block {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.filter-block label {
  color: #526888;
  font-size: 12px;
  font-weight: 850;
}
.filter-block.wide {
  min-width: 0;
}
.seg-control {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: #edf2f8;
}
.seg-control span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  color: #385173;
  font-size: 13px;
  font-weight: 850;
}
.seg-control span.active {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .18);
}
.ops-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.ops-kpi-grid .metric-tile {
  min-height: 116px;
  padding: 16px;
  border-radius: 18px;
}
.ops-kpi-grid .metric-tile span {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ops-kpi-grid .metric-tile strong {
  font-size: 28px;
}
.ads-advice-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .42fr);
  gap: 14px;
}
.ads-advice-card {
  padding: 18px;
  border: 1px solid rgba(216, 226, 241, .92);
  border-radius: 22px;
  background: rgba(255, 255, 255, .90);
  box-shadow: 0 14px 34px rgba(30, 64, 175, .05);
}
.ads-advice-card.compact {
  display: grid;
  align-content: start;
  gap: 12px;
}
.ads-advice-card.compact p {
  margin: 0;
  color: #465f86;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
}
.ads-advice-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.ads-advice-columns > div {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #e4ecf7;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.ads-advice-columns strong {
  color: #13223c;
  font-size: 14px;
  font-weight: 850;
}
.ads-advice-columns p {
  margin: 0;
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid #edf2fa;
}
.ads-advice-columns p:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.ads-advice-columns b {
  color: #102040;
  font-size: 13px;
}
.ads-advice-columns span {
  color: #5e7190;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 620;
}
.ads-page-status-row {
  display: grid;
  gap: 8px;
}
.ads-page-status-row span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #dbe7f8;
  border-radius: 13px;
  background: #f8fbff;
  color: #385173;
  font-size: 12px;
  font-weight: 760;
}
.ads-page-status-row b {
  color: var(--blue-2);
}
.ads-pages {
  margin: 14px 0;
}
.ads-workspace {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.ads-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: #f7fbff;
}
.ads-tabs button {
  border: 1px solid #dbe7f8;
  border-radius: 14px;
  padding: 10px 14px;
  background: #fff;
  color: #385077;
  font-weight: 900;
  cursor: pointer;
}
.ads-tabs button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #245be8, #14b89a);
  box-shadow: 0 12px 24px rgba(36, 91, 232, .18);
}
.ads-filterbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) 130px 130px 120px auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: #fff;
}
.inventory-filterbar,
.product-filterbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 26px rgba(32, 72, 132, .04);
}
.inventory-filterbar span,
.product-filterbar span {
  color: #657997;
  font-size: 12px;
  font-weight: 680;
  text-align: right;
}
.checkline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #385077;
  font-weight: 900;
  white-space: nowrap;
}
.checkline input {
  width: auto;
}
.primary.slim {
  padding: 11px 14px;
  white-space: nowrap;
}
.ads-analysis-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid #dbe7f8;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f3f8ff);
}
.ads-analysis-head h3 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -.03em;
}
.product-ads-analysis {
  display: grid;
  gap: 16px;
}
.product-ads-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}
.product-ads-toolbar h3 {
  font-size: 18px;
}
.product-ads-toolbar p {
  margin: 6px 0 0;
  color: #5b6f8c;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 420;
}
.product-ads-toolbar select {
  max-width: 360px;
  height: 46px;
  color: #102040;
  font-size: 15px;
  font-weight: 620;
  background: #fff;
}
.campaign-review-card {
  padding: 18px;
  overflow: hidden;
}
.campaign-review-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}
.campaign-review-head > div {
  min-width: 0;
}
.campaign-review-head h3 {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 8px;
  font-size: 22px;
}
.campaign-review-head p {
  margin: 8px 0 0;
  color: #5b6f8c;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 430;
}
.campaign-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #245be8;
  box-shadow: 0 0 0 6px rgba(36, 91, 232, .12);
}

/* OPS reference-aligned full-page mode for pages that already exist in the mature OPS console. */
body.ops-focus-view {
  background:
    radial-gradient(900px 420px at -8% -10%, rgba(93, 137, 255, .18) 0%, transparent 58%),
    radial-gradient(760px 420px at 102% -4%, rgba(13, 181, 162, .13) 0%, transparent 54%),
    linear-gradient(180deg, #eef4f9 0%, #e9eff5 56%, #edf1f5 100%);
}
body.ops-focus-view .shell {
  display: block;
  min-height: 100vh;
}
body.ops-focus-view .side,
body.ops-focus-view .top,
body.ops-focus-view #status {
  display: none;
}
body.ops-focus-view main {
  padding: 0;
}
body.ops-focus-view .content {
  display: block;
  width: 100%;
  max-width: none;
}
.ops-shadow-mount {
  display: block;
  width: 100%;
  min-height: 100vh;
}
.ops-focus-page {
  min-height: 100vh;
  color: #10223d;
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
}
.ops-focus-shell {
  width: min(100%, 1880px);
  margin: 0 auto;
  padding: 26px 34px 42px;
}
.ops-clone-frame {
  color: #081936;
}
.ops-clone-frame .dash-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
}
.ops-clone-frame .dash-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
  border-right: 1px solid #e0e8f5;
  box-shadow: 12px 0 34px rgba(24, 52, 98, .05);
}
.ops-clone-frame .dash-brand {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  margin-bottom: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #081936;
  text-align: left;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.025em;
  cursor: pointer;
  text-decoration: none;
}
.ops-clone-frame .dash-brand:hover strong {
  color: #1769f4;
}
.ops-clone-frame .brand-cube {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 42% 42%, #fff 0 18%, transparent 19%),
    linear-gradient(145deg, #0f6cff, #24a4ff 52%, #0a4ee4);
  box-shadow: 0 13px 24px rgba(22, 105, 244, .28);
  transform: rotate(30deg);
}
.ops-clone-frame .dash-nav {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 294px);
  overflow-y: auto;
  padding-right: 2px;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.ops-clone-frame .dash-nav::-webkit-scrollbar {
  width: 6px;
}
.ops-clone-frame .dash-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d5e1f2;
}
.ops-clone-frame .dash-nav-group {
  display: grid;
  gap: 4px;
}
.ops-clone-frame .dash-nav-item {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 16px;
  border-radius: 9px;
  color: #42567d;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.ops-clone-frame .dash-nav-item:hover {
  background: rgba(234, 243, 255, .72);
}
.ops-clone-frame .dash-nav-item.active {
  color: #1769f4;
  background: #eef5ff;
  box-shadow: inset 4px 0 0 #1769f4;
}
.ops-clone-frame .dash-nav-item.disabled {
  opacity: .5;
  cursor: not-allowed;
}
.ops-clone-frame .dash-nav-item span[data-icon] {
  width: 18px;
  height: 18px;
  color: currentColor;
}
.ops-clone-frame .dash-nav-item em {
  min-width: 24px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  border-radius: 7px;
  background: #e7f1ff;
  color: #1769f4;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
.ops-clone-frame .dash-nav-children {
  display: grid;
  gap: 4px;
  padding: 0 0 2px 16px;
}
.ops-clone-frame .dash-nav-child {
  min-height: 36px;
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #627598;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.ops-clone-frame .dash-nav-child:hover {
  background: rgba(234, 243, 255, .6);
}
.ops-clone-frame .dash-nav-child i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #b8c7dc;
}
.ops-clone-frame .dash-nav-child.active {
  color: #1769f4;
  background: #f4f8ff;
}
.ops-clone-frame .dash-nav-child.active i {
  background: #1769f4;
}
.ops-clone-frame .dash-nav-child.disabled {
  opacity: .56;
  cursor: default;
}
.ops-clone-frame .store-quota,
.ops-clone-frame .team-card {
  position: absolute;
  left: 18px;
  right: 18px;
  border: 1px solid #dce6f5;
  border-radius: 13px;
  background: #fff;
}
.ops-clone-frame .store-quota {
  bottom: 118px;
  padding: 15px 16px 16px;
}
.ops-clone-frame .store-quota span {
  color: #627598;
  font-size: 13px;
}
.ops-clone-frame .store-quota strong {
  display: block;
  margin: 8px 0 9px;
  color: #1769f4;
  font-size: 15px;
  font-weight: 600;
}
.ops-clone-frame .store-quota i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1769f4 0%, #1769f4 100%);
}
.ops-clone-frame .team-card {
  bottom: 32px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  text-align: left;
  cursor: pointer;
}
.ops-clone-frame .team-card.team-card-actionable {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ops-clone-frame .team-card.team-card-actionable:hover {
  border-color: rgba(23,105,244,.22);
  box-shadow: 0 14px 28px rgba(22, 62, 126, .10);
  transform: translateY(-1px);
}
.ops-clone-frame .team-card .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #0f1c38 0 18%, transparent 19%),
    radial-gradient(circle at 50% 78%, #0f1c38 0 28%, transparent 29%),
    #eef4ff;
}
.ops-clone-frame .team-card strong {
  color: #081936;
  font-size: 14px;
  font-weight: 600;
}
.ops-clone-frame .team-card p {
  margin: 3px 0 0;
  color: #627598;
  font-size: 12px;
}
.ops-clone-frame .team-card b {
  margin-left: auto;
  color: #294062;
}
.ops-clone-frame .dash-main {
  min-width: 0;
  padding: 24px 26px 34px;
}
.ops-auth-page .dash-main {
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding: 38px;
}
.ops-auth-page .dash-nav-item,
.ops-auth-page .dash-nav-child,
.ops-auth-page .store-quota,
.ops-auth-page .team-card {
  pointer-events: none;
}
.ops-auth-page .store-quota,
.ops-auth-page .team-card {
  display: none;
}
.ops-auth-page .auth-layout {
  min-height: 0;
}
.ops-auth-page .auth-card {
  width: min(420px, 100%);
  margin: 0 auto;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 44px rgba(35, 64, 120, .08);
}
.ops-auth-page .auth-card h2 {
  font-size: 22px;
  line-height: 1.2;
}
.ops-auth-page .primary {
  background: #1769f4;
}
.ops-clone-frame .ops-focus-shell {
  width: min(100%, 1720px);
  margin: 0 auto;
}
.ops-products-unified-page .ops-focus-shell {
  width: min(100%, 2064px);
}
.ops-admin-shell {
  display: grid;
  gap: 18px;
  padding: 0 4px 42px;
}
.ops-refresh,
.ops-secondary,
.ops-plain,
.ops-apply,
.ops-save {
  border: 0;
  font: inherit;
  cursor: pointer;
}
.ops-refresh,
.ops-apply,
.ops-save {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 13px;
  color: #fff;
  background: #2563eb;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
}
.ops-secondary {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #cfe0ff;
  border-radius: 13px;
  color: #1d4ed8;
  background: #fff;
  font-size: 14px;
  font-weight: 850;
}
.ops-plain {
  color: #526888;
  background: transparent;
  font-size: 14px;
  font-weight: 850;
}
.ops-sparkline {
  width: 100%;
  min-height: 168px;
  display: block;
}
.ops-sparkline .area {
  fill: rgba(37, 99, 235, .05);
}
.ops-sparkline .line {
  fill: none;
  stroke: #2f49ff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ops-sparkline .point {
  fill: currentColor;
  stroke: #fff;
  stroke-width: 2;
}
.ops-sparkline.purple .area { fill: rgba(111, 66, 255, .09); }
.ops-sparkline.purple .line { stroke: #5b40ff; }
.ops-sparkline.orange .area { fill: rgba(236, 106, 60, .10); }
.ops-sparkline.orange .line { stroke: #fb6f43; }
.ops-sparkline.teal .area { fill: rgba(14, 159, 136, .10); }
.ops-sparkline.teal .line { stroke: #0e9f88; }
.ops-sparkline.red .line { stroke: #d74b4b; }
.ops-sparkline.mini {
  width: 156px;
  min-height: 52px;
  height: 52px;
}
.ops-sparkline.mini .line {
  stroke-width: 2.35;
}
.ops-sparkline.mini .point {
  stroke-width: 1.5;
}
.ops-ads-trend-cell {
  display: flex;
  align-items: center;
  min-width: 120px;
  min-height: 42px;
}
.ops-ads-trend-cell .ops-sparkline.ads-trend-spark {
  width: 138px;
  min-height: 42px;
  height: 42px;
}
.ops-ads-trend-cell .ops-sparkline.ads-trend-spark .line {
  stroke-width: 2.25;
}
.ops-ads-trend-cell .ops-sparkline.ads-trend-spark .point {
  stroke-width: 1.4;
}
.ops-ads-trend-cell.empty {
  display: flex;
  min-width: 108px;
  min-height: 42px;
  align-items: center;
}
.ops-empty-chart {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 13px;
}
.ops-chart-frame {
  width: 100%;
  min-height: 0;
  position: relative;
}
.chart-frame {
  position: relative;
}
.global-chart-tooltip {
  position: fixed;
  z-index: 9999;
  min-width: 132px;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 30, 54, .96);
  color: #f8fbff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .22);
  pointer-events: none;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .01em;
}
.global-chart-tooltip strong,
.global-chart-tooltip span {
  display: block;
}
.global-chart-tooltip strong {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 860;
  color: #ffffff;
}
.global-chart-tooltip span {
  color: rgba(238, 245, 255, .92);
}
.ops-chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ops-chart-hover-slot,
.combo-chart-hover-slot {
  cursor: crosshair;
  pointer-events: all;
}
.ops-chart-hover-overlay,
.chart-hover-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ops-chart-hover-guide,
.chart-hover-guide {
  position: absolute;
  width: 1px;
  transform: translateX(-0.5px);
  background: linear-gradient(180deg, rgba(45, 105, 245, 0), rgba(45, 105, 245, .42), rgba(45, 105, 245, 0));
}
.ops-chart-hover-dot,
.chart-hover-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #2f49ff;
  border: 2px solid #fff;
  box-shadow: 0 10px 22px rgba(47, 73, 255, .22);
}
.ops-chart-hover-dot.secondary,
.chart-hover-dot.secondary {
  background: #f97316;
  box-shadow: 0 10px 22px rgba(249, 115, 22, .22);
}
.ops-chart-hover-bar,
.chart-hover-bar {
  position: absolute;
  border-radius: 8px 8px 6px 6px;
  background: rgba(56, 199, 217, .18);
  border: 1px solid rgba(56, 199, 217, .30);
  box-shadow: 0 8px 18px rgba(56, 199, 217, .18);
}
.ops-chart-hover-bubble,
.chart-hover-bubble {
  position: absolute;
  z-index: 2;
  min-width: 136px;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 30, 54, .96);
  color: #f8fbff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .22);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .01em;
}
.ops-chart-hover-bubble strong,
.ops-chart-hover-bubble span,
.chart-hover-bubble strong,
.chart-hover-bubble span {
  display: block;
}
.ops-chart-hover-bubble strong,
.chart-hover-bubble strong {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 860;
  color: #ffffff;
}
.ops-chart-hover-bubble span,
.chart-hover-bubble span {
  color: rgba(238, 245, 255, .92);
}
.ops-chart-grid {
  stroke: rgba(189, 205, 228, .58);
  stroke-width: 1;
}
.ops-chart-grid.base {
  stroke: rgba(167, 184, 209, .72);
}
.ops-chart-axis {
  fill: #8ea1bb;
  font-size: 10px;
  font-weight: 820;
}
.ops-chart-axis.y {
  text-anchor: end;
}
.ops-chart-axis.x {
  text-anchor: middle;
}
.ops-chart-area {
  fill: rgba(47, 73, 255, .035);
}
.ops-chart-line {
  fill: none;
  stroke: #2f49ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ops-chart-point {
  fill: #2f49ff;
  stroke: #fff;
  stroke-width: 2.2;
}
.ops-chart-svg.blue .ops-chart-line {
  stroke: #2f49ff;
}
.ops-chart-svg.blue .ops-chart-area {
  fill: rgba(47, 73, 255, .04);
}
.ops-compare-chart-wrap {
  display: grid;
  gap: 8px;
}
.ops-compare-chart-legend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: #667995;
  font-size: 12px;
  font-weight: 780;
}
.ops-compare-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ops-compare-chart-legend span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.ops-compare-chart-legend .today::before {
  background: #0ea5e9;
}
.ops-compare-chart-legend .yesterday::before {
  background: #f97316;
}
.ops-compare-line {
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ops-compare-line.today {
  stroke: #0ea5e9;
}
.ops-compare-line.yesterday {
  stroke: #f97316;
}
.ops-compare-chart-wrap .ops-chart-hover-dot {
  background: #0ea5e9;
  box-shadow: 0 10px 22px rgba(14, 165, 233, .22);
}
.ops-chart-bar {
  fill: #4cc4f0;
}
.ops-chart-svg.cyan .ops-chart-bar {
  fill: #38c7d9;
}
.ops-bar-chart {
  min-height: 166px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 10px 6px 0;
}
.ops-bar-day {
  flex: 1;
  min-width: 26px;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.ops-bar-day span {
  width: min(16px, 72%);
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(180deg, #2563eb, #14b8a6);
  box-shadow: 0 10px 20px rgba(20, 184, 166, .14);
}
.ops-bar-chart.cyan .ops-bar-day span {
  background: linear-gradient(180deg, #38c7d9, #0fb9d4);
}
.ops-bar-day em {
  color: #607493;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.ops-orders-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.ops-orders-titlebar h1,
.ops-ads-page-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: 34px;
  line-height: 1.04;
  font-weight: 850;
  letter-spacing: 0;
}
.ops-orders-titlebar p,
.ops-ads-page-title p {
  margin: 7px 0 0;
  color: #5f7191;
  font-size: 13px;
  line-height: 1.42;
  font-weight: 650;
}
.ops-orders-titlebar .ops-orange {
  color: #f97316;
  font-weight: 800;
}
.ops-orders-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.ops-orders-filter-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.ops-orders-filter-stack .ops-orders-tabs {
  margin-bottom: 0;
}
.ops-orders-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.ops-orders-tabs button,
.ops-orders-tabs span,
.ops-orders-tabs strong {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #64748b;
  background: rgba(238, 243, 251, .86);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}
.ops-orders-store-select {
  min-height: 40px;
  display: inline-grid;
  grid-template-columns: auto minmax(120px, 170px);
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.ops-orders-store-select span {
  padding: 0;
  color: #64748b;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}
.ops-orders-store-select select {
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: #0f172a;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  outline: none;
}
.ops-orders-tabs .active {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.ops-orders-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ops-kpi-card {
  min-height: 128px;
  display: grid;
  align-content: center;
  padding: 20px 22px;
  border: 1px solid rgba(216, 226, 241, .72);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(24, 43, 76, .05);
}
.ops-kpi-card.magenta {
  background: linear-gradient(135deg, rgba(255, 237, 246, .96), rgba(255, 247, 252, .92));
}
.ops-kpi-card.amber {
  background: linear-gradient(135deg, rgba(255, 246, 232, .98), rgba(255, 251, 245, .92));
}
.ops-kpi-card.green {
  min-height: 226px;
  background: linear-gradient(135deg, rgba(237, 252, 242, .98), rgba(244, 255, 250, .92));
}
.ops-kpi-card.purple {
  min-height: 226px;
  background: linear-gradient(135deg, rgba(249, 242, 255, .98), rgba(250, 247, 255, .92));
}
.ops-kpi-card span {
  color: #6c7f9c;
  font-size: 13px;
  font-weight: 850;
}
.ops-kpi-card strong {
  margin-top: 8px;
  color: #102040;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.02em;
}
.ops-kpi-card.magenta strong { color: #8a174b; }
.ops-kpi-card.green strong { color: #08754f; }
.ops-kpi-card.purple strong { color: #6d42d8; }
.ops-kpi-card small {
  margin-top: 9px;
  color: #607493;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}
.ops-kpi-card .ops-sparkline {
  min-height: 82px;
  height: 82px;
  margin: 8px 0 2px;
}
.ops-orders-method-note {
  margin: 16px 2px 18px;
  color: #617492;
  font-size: 13px;
  font-weight: 700;
}
.ops-data-coverage-card {
  margin-bottom: 18px;
}
.ops-coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 16px;
}
.ops-coverage-grid div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid #e4ecf7;
  border-radius: 14px;
  background: #fbfdff;
}
.ops-coverage-grid span {
  color: #657996;
  font-size: 12px;
  font-weight: 850;
}
.ops-coverage-grid strong {
  display: block;
  margin-top: 7px;
  color: #102040;
  font-size: 27px;
  line-height: 1;
  font-weight: 950;
}
.ops-coverage-grid small {
  display: block;
  margin-top: 6px;
  color: #7a8da8;
  font-size: 12px;
  font-weight: 700;
}
.ops-sync-run-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 18px;
}
.ops-sync-run-strip span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  background: #eef5ff;
  color: #31527d;
  font-size: 12px;
  font-weight: 850;
}
.ops-sync-run-strip span.ok {
  background: #ecfdf3;
  color: #08754f;
}
.ops-sync-run-strip span.warn {
  background: #fff7ed;
  color: #a44b00;
}
.ops-sync-run-strip span.bad {
  background: #fff1f2;
  color: #be123c;
}
.ops-order-management-card {
  margin-bottom: 18px;
}
.ops-order-manager-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 10px;
  padding: 0 20px 16px;
}
.ops-order-manager-search input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid #d8e2f1;
  border-radius: 12px;
  background: #fff;
  color: #15243c;
  padding: 0 13px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.ops-order-line-table {
  display: grid;
  max-width: 100%;
  overflow-x: auto;
}
.ops-order-line-table > div,
.ops-order-line-table > button {
  display: grid;
  grid-template-columns: minmax(170px, .95fr) minmax(260px, 1.45fr) minmax(120px, .72fr) .42fr .55fr .52fr;
  gap: 12px;
  align-items: center;
  min-width: 820px;
  padding: 12px 20px;
  border: 0;
  border-top: 1px solid #edf2fa;
  background: transparent;
  text-align: left;
  font: inherit;
}
.ops-order-line-table > div:first-child {
  color: #8ca0bc;
  font-size: 12px;
  font-weight: 900;
  background: #fbfdff;
}
.ops-order-line-table > button {
  cursor: pointer;
}
.ops-order-line-table > button:hover {
  background: #f7fbff;
}
.ops-order-line-table strong,
.ops-order-line-table b {
  color: #102040;
  font-size: 14px;
  font-weight: 850;
}
.ops-order-line-table span,
.ops-order-line-table em {
  min-width: 0;
  color: #294369;
  font-size: 13px;
  font-style: normal;
  font-weight: 680;
}
.ops-order-line-table small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #7a8da8;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ops-orders-hero {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(360px, 1.05fr) minmax(380px, .92fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.ops-orders-stat-column {
  display: grid;
  gap: 18px;
  align-content: center;
}
.ops-naked-stat {
  min-height: 130px;
  display: grid;
  align-content: center;
}
.ops-naked-stat span {
  color: #667996;
  font-size: 13px;
  font-weight: 850;
}
.ops-naked-stat strong {
  margin-top: 8px;
  color: #0f172a;
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.04em;
}
.ops-naked-stat.magenta strong { color: #8a174b; }
.ops-naked-stat.green strong { color: #08754f; }
.ops-naked-stat small {
  margin-top: 7px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}
.ops-orders-glass-card,
.ops-orders-chart-panel,
.ops-table-card,
.ops-side-chart,
.ops-compare-card,
.ops-note-card {
  border: 1px solid rgba(216, 226, 241, .82);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 44px rgba(19, 39, 78, .07);
}
.ops-orders-glass-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(248,243,255,.72));
}
.ops-orders-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ops-orders-mini-stats span {
  color: #8b5cf6;
  font-size: 12px;
  font-weight: 900;
}
.ops-orders-mini-stats strong {
  display: block;
  margin-top: 6px;
  color: #3b0764;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}
.ops-orders-mini-stats small {
  display: block;
  margin-top: 5px;
  color: #667996;
  font-size: 12px;
  font-weight: 700;
}
.ops-orders-glass-card p {
  margin: 0;
  color: #6d54d9;
  font-size: 13px;
  font-weight: 760;
}
.ops-orders-chart-panel,
.ops-side-chart,
.ops-note-card {
  padding: 18px;
}
.ops-orders-chart-panel h3,
.ops-side-chart h3,
.ops-note-card h3 {
  margin: 0 0 12px;
  color: #1e293b;
  font-size: 18px;
  font-weight: 850;
}
.ops-side-chart .ops-bar-chart {
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
  padding-bottom: 16px;
}
.ops-side-chart .ops-bar-day {
  min-width: 0;
}
.ops-side-chart .ops-bar-day em {
  display: none;
  font-size: 10px;
  white-space: nowrap;
}
.ops-side-chart .ops-bar-day:first-child em,
.ops-side-chart .ops-bar-day:nth-child(10n) em,
.ops-side-chart .ops-bar-day:last-child em {
  display: none;
}
.ops-orders-search {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(340px, .74fr) auto auto auto;
  gap: 12px;
  align-items: center;
  margin: 22px 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(191, 219, 254, .86);
  border-radius: 20px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 34px rgba(30, 64, 175, .07);
}
.ops-orders-search label {
  display: block;
  color: #10284e;
  font-size: 15px;
  font-weight: 850;
}
.ops-orders-search p {
  margin: 4px 0 0;
  color: #647799;
  font-size: 13px;
  line-height: 1.45;
}
.ops-orders-search input,
.ops-ads-searchline,
.ops-ads-filters input,
.ops-ads-filters select,
.ops-product-rail input,
.ops-product-rail select {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid #d8e2f1;
  border-radius: 14px;
  background: #fff;
  color: #15243c;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.ops-orders-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 20px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
.ops-orders-main-column,
.ops-orders-side-column {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}
.ops-orders-main-column > *,
.ops-orders-side-column > * {
  min-width: 0;
  max-width: 100%;
}
.ops-table-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.ops-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px;
}
.ops-card-head h2,
.ops-card-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.16;
  font-weight: 850;
}
.ops-card-head p {
  margin: 6px 0 0;
  color: #607493;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}
.ops-card-head span {
  color: #647799;
  font-size: 13px;
  font-weight: 760;
}
.ops-asin-table .asin-table-head,
.ops-asin-table .asin-table-row {
  grid-template-columns: minmax(260px, 1.3fr) .58fr .7fr .58fr .48fr;
}
.ops-asin-table .asin-table-head {
  padding: 12px 20px;
  background: #fbfdff;
}
.ops-asin-table .asin-table-row {
  padding: 14px 20px;
}
.ops-order-product-cell {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.ops-product-icon {
  width: 46px;
  height: 46px;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  background:
    linear-gradient(90deg, #dbeafe 0 44%, transparent 44%),
    linear-gradient(180deg, #fff, #f3f8ff);
}
.ops-replenish-table {
  display: grid;
  max-width: 100%;
  overflow-x: auto;
}
.ops-replenish-table > div {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) .7fr .7fr minmax(160px, 1fr) .7fr .6fr;
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid #edf2fa;
  min-width: 920px;
}
.ops-replenish-table > div:first-child {
  color: #8ca0bc;
  font-size: 12px;
  font-weight: 900;
  background: #fbfdff;
}
.ops-replenish-table strong,
.ops-replenish-table b {
  color: #102040;
  font-size: 15px;
}
.ops-replenish-table small {
  display: block;
  margin-top: 3px;
  color: #7a8da8;
  font-size: 12px;
}
.ops-replenish-table em {
  color: #0b9568;
  font-style: normal;
  font-weight: 900;
}
.ops-orders-small-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ops-compare-card {
  min-height: 116px;
  padding: 18px;
}
.ops-compare-card span {
  color: #647799;
  font-size: 13px;
  font-weight: 850;
}
.ops-compare-card strong {
  display: block;
  margin: 9px 0 6px;
  color: #0f172a;
  font-size: 27px;
  line-height: 1;
  font-weight: 950;
}
.ops-compare-card small {
  color: #647799;
  font-size: 13px;
  font-weight: 650;
}
.ops-note-card {
  display: grid;
  gap: 12px;
}
.ops-note-card .ops-card-head {
  padding: 0;
}
.ops-note-card p {
  margin: 0;
  color: #526888;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
}
.ops-note-card textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border: 1px solid #d8e2f1;
  border-radius: 16px;
  padding: 14px;
  color: #15243c;
  background: #f8fbff;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.ops-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid #edf2fa;
}
.ops-mini-row strong {
  color: #102040;
  font-size: 14px;
}
.ops-mini-row span {
  grid-column: 1;
  color: #607493;
  font-size: 12px;
}
.ops-mini-row b {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #2563eb;
}
.ops-order-page-mark {
  display: inline-flex;
  margin-bottom: 8px;
  color: #245be8;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 2px;
}
.ops-orders-focus .data-gate-banner {
  margin-bottom: 14px;
}
.ops-orders-kpi-grid .ops-kpi-card {
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 14px;
}
.ops-kpi-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #245be8;
  background: rgba(255,255,255,.74);
  box-shadow: inset 0 0 0 1px rgba(216, 226, 241, .88);
  font-size: 11px;
  font-weight: 950;
}
.ops-kpi-card.amber .ops-kpi-icon { color: #b45309; }
.ops-kpi-card.green .ops-kpi-icon { color: #08754f; }
.ops-kpi-card.purple .ops-kpi-icon { color: #6d42d8; }
.ops-kpi-card strong {
  letter-spacing: 0;
}
.ops-asin-table .asin-table-head,
.ops-asin-table .asin-table-row {
  grid-template-columns: minmax(340px, 1.7fr) minmax(92px, .52fr) minmax(106px, .55fr) minmax(110px, .62fr) minmax(92px, .5fr) minmax(128px, .58fr) minmax(86px, .42fr) minmax(92px, .46fr);
  min-width: 1160px;
}
.ops-order-product-cell {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
}
.ops-order-product-cell strong {
  color: #102040;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 950;
}
.ops-order-product-cell .asin-compact-title {
  max-width: 520px;
  line-height: 1.35;
}
.ops-order-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.ops-order-row-actions .link-button {
  padding: 0;
  color: #2563eb;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
}
.ops-asin-table .ops-sparkline.mini {
  width: 126px;
  height: 36px;
  min-height: 36px;
}
.ops-asin-table .ops-sparkline.mini .line {
  stroke-width: 4;
}
.ops-asin-table b,
.ops-asin-table em {
  color: #102040;
  font-size: 14px;
  font-weight: 900;
}
.ops-asin-table em {
  font-style: normal;
}
.ops-asin-table em.risk {
  color: #be123c;
}
.ops-order-workbench,
.ops-replenish-card,
.ops-data-coverage-card {
  margin-top: 18px;
}
.ops-order-workbench {
  border: 1px solid rgba(216, 226, 241, .82);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 44px rgba(19, 39, 78, .07);
  overflow: hidden;
}
.ops-workbench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid #edf2fa;
}
.ops-workbench-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 900;
}
.ops-workbench-head p {
  margin: 8px 0 0;
  color: #607493;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}
.ops-workbench-head > span {
  flex: 0 0 auto;
  border: 1px solid #b7f0d1;
  border-radius: 999px;
  padding: 8px 12px;
  color: #08754f;
  background: #ecfdf3;
  font-size: 12px;
  font-weight: 950;
}
.ops-order-workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 16px;
  align-items: start;
  padding: 16px;
}
.ops-order-workbench .ops-order-management-card {
  margin: 0;
  box-shadow: none;
}
.ops-order-workbench-rail {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.ops-rail-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}
.ops-rail-card h3 {
  margin: 0;
  color: #102040;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}
.ops-status-donut {
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  position: relative;
}
.ops-status-donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: inherit;
  background: #fff;
}
.ops-status-donut span {
  position: relative;
  z-index: 1;
  color: #102040;
  font-size: 28px;
  font-weight: 950;
}
.ops-status-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ops-status-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #607493;
  font-size: 12px;
  font-weight: 800;
}
.ops-status-list i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d8e2f1;
}
.ops-status-list i.blue { background: #2563eb; }
.ops-status-list i.amber { background: #f59e0b; }
.ops-status-list i.red { background: #ef4444; }
.ops-risk-gauge {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2fa;
}
.ops-risk-gauge span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
}
.ops-rail-card p {
  margin: 0;
  color: #607493;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}
.ops-rail-card textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border: 1px solid #d8e2f1;
  border-radius: 14px;
  padding: 12px;
  color: #15243c;
  background: #f8fbff;
  font: inherit;
  font-size: 13px;
  outline: none;
}
@media (max-width: 900px) {
  .ops-orders-kpi-grid .ops-kpi-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }
  .ops-kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 10px;
  }
  .ops-order-workbench-grid,
  .ops-workbench-head {
    grid-template-columns: 1fr;
    display: grid;
  }
  .ops-workbench-head > span {
    justify-self: start;
  }
  .ops-order-manager-search {
    grid-template-columns: 1fr;
  }
  .ops-status-list {
    grid-template-columns: 1fr;
  }
}

.ops-ads-shell {
  width: min(100%, 2048px);
  padding-top: 10px;
}
.ops-ads-page-title {
  margin-bottom: 12px;
}
.ops-ads-analysis-title {
  display: grid;
  grid-template-columns: minmax(336px, .92fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.ops-ads-title-main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.ops-ad-app-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #67d7f5, #2867f0);
  box-shadow: 0 12px 24px rgba(37, 99, 235, .18);
  font-size: 12px;
  font-weight: 950;
}
.ops-ads-page-title h1 {
  letter-spacing: 0;
}
.ops-ads-title-tools {
  display: grid;
  grid-template-columns: minmax(210px, .66fr) minmax(272px, 1fr);
  gap: 6px 8px;
  align-items: center;
}
.ops-ads-title-tools .ops-ads-switch {
  min-width: 0;
}
.ops-ads-title-tools .ops-ads-searchline {
  margin: 0;
}
.ops-ads-title-tools .ops-date-row {
  grid-column: 1 / -1;
}
.ops-date-row.compact {
  grid-template-columns: minmax(114px, 1fr) minmax(114px, 1fr) auto auto;
}
.ops-sp-title-tools {
  grid-template-columns: minmax(238px, auto) minmax(208px, 1fr);
  align-items: start;
}
.ops-st-title-tools {
  grid-template-columns: minmax(238px, auto) minmax(220px, 260px);
}
.ops-sp-title-tools .ops-date-row {
  grid-column: 1 / -1;
}
.ops-sp-window-switch {
  justify-self: start;
}
.ops-ads-storeline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #d8e2f1;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
}
.ops-ads-storeline span {
  color: #607493;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.ops-ads-storeline select {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #10223d;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}
.ops-sp-top-kpis {
  margin-top: 8px;
}
.ops-sp-workspace {
  margin-top: 12px;
}
.ops-sp-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.29fr);
  gap: 14px;
  align-items: start;
}
.ops-sp-main-card,
.ops-sp-side-card {
  border: 1px solid #d8e2f1;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.94));
  box-shadow: 0 20px 46px rgba(19, 39, 78, .08);
}
.ops-sp-main-card {
  padding: 16px;
}
.ops-sp-side {
  display: grid;
  gap: 10px;
}
.ops-sp-side-card {
  padding: 12px 12px 11px;
}
.ops-sp-card-head {
  padding: 0 0 12px;
}
.ops-sp-card-head h2 {
  margin: 0;
  color: #10223d;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 950;
}
.ops-sp-card-head p {
  margin: 8px 0 0;
  color: #607493;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}
.ops-sp-focus-card {
  padding: 14px 14px 12px;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f6faff);
}
.ops-sp-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ops-sp-focus-head select {
  min-width: 208px;
  max-width: 328px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d8e2f1;
  border-radius: 14px;
  background: #fff;
  color: #10223d;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}
.ops-sp-focus-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.ops-sp-focus-title h3 {
  margin: 0;
  color: #10223d;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 950;
}
.ops-sp-focus-title p {
  margin: 6px 0 0;
  color: #607493;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}
.ops-sp-focus-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.ops-sp-focus-metric {
  min-height: 88px;
  padding: 10px 11px;
  border: 1px solid #dbe7f8;
  border-radius: 14px;
  background: #fff;
}
.ops-sp-focus-metric span {
  display: block;
  color: #607493;
  font-size: 12px;
  font-weight: 900;
}
.ops-sp-focus-metric strong {
  display: block;
  margin-top: 9px;
  color: #10223d;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
}
.ops-sp-focus-metric small {
  display: block;
  margin-top: 7px;
  color: #667a97;
  font-size: 11px;
  line-height: 1.55;
  font-weight: 800;
}
.ops-sp-focus-metric.bad small {
  color: #d3473e;
}
.ops-sp-focus-metric.ok small {
  color: #0b9568;
}
.ops-sp-diagnostic-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}
.ops-sp-diagnostic-strip article {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  background: rgba(255,255,255,.84);
}
.ops-sp-diagnostic-strip span,
.ops-sp-diagnosis-list span {
  display: block;
  color: #607493;
  font-size: 12px;
  font-weight: 900;
}
.ops-sp-diagnostic-strip strong {
  display: block;
  margin-top: 7px;
  color: #10223d;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 950;
}
.ops-sp-diagnostic-strip small {
  display: block;
  min-height: 38px;
  margin-top: 7px;
  color: #607493;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}
.ops-sp-diagnostic-strip i {
  display: block;
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: #edf3fb;
  overflow: hidden;
}
.ops-sp-diagnostic-strip b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #24b6c8);
}
.ops-sp-diagnostic-strip article.bad b {
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}
.ops-sp-diagnostic-strip article.ok b {
  background: linear-gradient(90deg, #10b981, #24b6c8);
}
.ops-sp-filter-row {
  display: grid;
  grid-template-columns: 206px 206px minmax(210px, 1fr) 128px 118px auto auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  background: #fbfdff;
}
.ops-sp-filter-row .ops-sp-inline-select {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ops-sp-filter-row .ops-sp-inline-select span {
  color: #607493;
  font-size: 13px;
  font-weight: 850;
}
.ops-sp-filter-row input,
.ops-sp-filter-row select {
  min-width: 0;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #d8e2f1;
  border-radius: 11px;
  background: #fff;
  color: #10223d;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.ops-sp-filter-row button {
  min-height: 36px;
  font-size: 12px;
  font-weight: 700;
}
.ops-sp-filter-row .ops-plain {
  padding-inline: 14px;
}
.ops-sp-filter-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #526888;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}
.ops-sp-table-wrap {
  margin-top: 12px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
}
.ops-sp-summary-list,
.ops-sp-top-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}
.ops-sp-summary-item,
.ops-sp-top-item {
  display: grid;
  gap: 6px;
  padding: 10px 11px 10px;
  border: 1px solid #e3ebf8;
  border-radius: 14px;
  background: #fff;
}
.ops-sp-summary-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.ops-sp-summary-item strong,
.ops-sp-top-copy strong {
  color: #10223d;
  font-size: 15px;
  font-weight: 900;
}
.ops-sp-summary-item p,
.ops-sp-top-copy p {
  margin: 5px 0 0;
  color: #607493;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}
.ops-sp-summary-item b {
  color: #10223d;
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
}
.ops-sp-summary-item.stop {
  border-color: #f6d5d9;
  background: #fff6f7;
}
.ops-sp-summary-item.lower {
  border-color: #f3dfb4;
  background: #fff9ef;
}
.ops-sp-summary-item.raise {
  border-color: #c9ebdc;
  background: #effcf6;
}
.ops-sp-summary-item.watch {
  border-color: #d9e6ff;
  background: #f5f8ff;
}
.ops-sp-top-item {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
}
.ops-sp-top-rank {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #edf4ff;
  color: #245be8;
  font-size: 13px;
  font-weight: 950;
}
.ops-sp-top-item > b {
  color: #c74636;
  font-size: 18px;
  font-weight: 950;
}
.ops-brand-empty-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 110px;
}
.ops-brand-empty-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #7656ec, #4f46e5);
  box-shadow: 0 18px 40px rgba(98, 78, 216, .22);
  font-size: 30px;
  font-weight: 950;
}
.ops-brand-empty-copy h3 {
  margin: 0;
  color: #10223d;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 950;
}
.ops-brand-empty-copy p {
  margin: 10px 0 0;
  color: #607493;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}
.ops-brand-zero-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.ops-brand-zero-dashboard article {
  padding: 16px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: #fff;
}
.ops-brand-zero-dashboard span,
.ops-brand-lifecycle span {
  display: block;
  color: #607493;
  font-size: 12px;
  font-weight: 850;
}
.ops-brand-zero-dashboard strong {
  display: block;
  margin-top: 8px;
  color: #10223d;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 950;
}
.ops-brand-zero-dashboard small {
  display: block;
  margin-top: 8px;
  color: #607493;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}
.ops-brand-empty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.ops-brand-empty-grid article,
.ops-brand-status-list div,
.ops-brand-next-list article {
  padding: 16px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: #fbfdff;
}
.ops-brand-empty-grid span,
.ops-brand-status-list span {
  display: block;
  color: #607493;
  font-size: 12px;
  font-weight: 900;
}
.ops-brand-empty-grid strong,
.ops-brand-status-list strong,
.ops-brand-next-list strong {
  display: block;
  margin-top: 8px;
  color: #10223d;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 900;
}
.ops-brand-empty-grid small,
.ops-brand-next-list p {
  display: block;
  margin-top: 8px;
  color: #607493;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}
.ops-brand-status-list,
.ops-brand-next-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.ops-brand-lifecycle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.ops-brand-lifecycle article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 15px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: #fbfdff;
}
.ops-brand-lifecycle b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  grid-row: span 2;
  border-radius: 999px;
  color: #607493;
  background: #edf3fb;
  font-weight: 950;
}
.ops-brand-lifecycle article.done b {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #10b981);
}
.ops-brand-analysis-simple {
  grid-template-columns: minmax(0, 1fr);
}
.ops-brand-note-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 250, 255, .98), rgba(255, 255, 255, .95));
}
.ops-brand-note-card strong {
  display: block;
  color: #10223d;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 900;
}
.ops-brand-note-card p {
  margin: 8px 0 0;
  color: #607493;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}
.ops-brand-lifecycle strong {
  color: #10223d;
  font-size: 15px;
  font-weight: 950;
}
.ops-sp-diagnosis-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.ops-sp-diagnosis-list article {
  padding: 15px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: #fbfdff;
}
.ops-sp-diagnosis-list strong {
  display: block;
  color: #10223d;
  font-size: 15px;
  font-weight: 950;
}
.ops-sp-diagnosis-list p {
  margin: 8px 0 0;
  color: #607493;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}
.ops-ads-report {
  border: 1px solid #d8e2f1;
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 44px rgba(19, 39, 78, .08);
  padding: 20px;
}
.ops-ads-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.ops-ads-report-head h2 {
  margin: 0;
  color: #101d33;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.03em;
}
.ops-ads-report-head p {
  margin: 8px 0 0;
  color: #5f7191;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}
.ops-ads-switch {
  flex-shrink: 0;
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid #d9e4f5;
  border-radius: 14px;
  background: #f5f8fd;
}
.ops-ads-switch button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #385173;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}
.ops-ads-switch button.active {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 10px 20px rgba(37, 99, 235, .22);
}
.ops-ads-filters {
  display: grid;
  grid-template-columns: 260px 270px minmax(420px, 1fr) 300px;
  gap: 14px;
  align-items: end;
  margin: 8px 0 16px;
}
.ops-ads-filters .filter-block label {
  display: block;
  margin-bottom: 7px;
  color: #526888;
  font-size: 13px;
  font-weight: 900;
}
.ops-seg {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0;
  padding: 4px;
  border-radius: 13px;
  background: #edf2f8;
}
.ops-seg button {
  min-width: 54px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #3d506c;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}
.ops-seg button.active {
  color: #fff;
  background: #4f46e5;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .22);
}
.ops-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.ops-ads-searchline {
  margin-bottom: 14px;
}
.ops-ads-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  align-items: stretch;
}
.ops-ads-top-kpis {
  margin: 12px 0 16px;
}
.ops-ads-kpis .metric-tile {
  min-width: 0;
  overflow: hidden;
  min-height: 100px;
  padding: 16px 16px 14px;
  border-color: #d8e2f1;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(30, 64, 175, .06);
  background: linear-gradient(180deg, #fff, #f9fbff);
}
.ops-ads-kpis .metric-tile span {
  color: #627493;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.ops-ads-kpis .metric-tile strong {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  margin-top: 8px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: clamp(18px, 1.18vw, 26px);
  line-height: 1.1;
}
.ops-ads-kpis .metric-tile small {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #bfe8da;
  background: #e9fbf4;
  color: #0b8b65;
  line-height: 1.22;
  font-weight: 900;
}
.ops-ads-kpis .metric-tile.bad small {
  border-color: #facbd1;
  background: #fff1f3;
  color: #c74636;
}
@media (max-width: 1680px) {
  .ops-ads-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ops-ads-paper-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, .98fr);
  gap: 16px;
  margin-top: 16px;
}
.ops-ads-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .25fr);
  gap: 22px;
  align-items: start;
}
.ops-ads-empty-shell {
  display: grid;
}
.ops-ads-empty-card {
  display: grid;
  gap: 14px;
  padding: 26px 28px;
  border: 1px solid #d8e2f1;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.94));
  box-shadow: 0 18px 44px rgba(19, 39, 78, .07);
}
.ops-ads-empty-card h3 {
  margin: 0;
  color: #10223d;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 900;
}
.ops-ads-empty-card p {
  margin: 0;
  color: #526888;
  font-size: 15px;
  line-height: 1.7;
}
.ops-ads-empty-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.ops-ads-empty-meta span {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #e6edf7;
  border-radius: 16px;
  background: #f8fbff;
}
.ops-ads-empty-meta small {
  color: #607493;
  font-size: 12px;
  font-weight: 800;
}
.ops-ads-empty-meta b {
  color: #10223d;
  font-size: 14px;
  font-weight: 900;
}
@media (max-width: 1280px) {
  .ops-ads-empty-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .ops-ads-empty-meta {
    grid-template-columns: 1fr;
  }
}
.ops-ads-reference-side {
  display: grid;
  gap: 18px;
}
.ops-ads-paper-card {
  min-height: 0;
  border: 1px solid #d8e2f1;
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(19, 39, 78, .07);
  padding: 18px;
  overflow: hidden;
}
.ops-ads-paper-card h3,
.ops-ads-table-card h3 {
  margin: 0;
  color: #101d33;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}
.ops-ads-oauth-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.ops-ads-oauth-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ads-oauth-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ads-oauth-grid label {
  display: grid;
  gap: 7px;
  color: #526888;
  font-size: 13px;
  font-weight: 900;
}
.ads-oauth-grid input,
.ads-oauth-grid select {
  min-width: 0;
}
.ops-ads-summary-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
.ops-suggest {
  min-height: 126px;
  padding: 14px;
  border: 1px solid #d8e2f1;
  border-radius: 14px;
  background: #f8fbff;
}
.ops-suggest.deny {
  border-color: #f2c9cf;
  background: #fff6f7;
}
.ops-suggest.raise {
  border-color: #c5e7db;
  background: #effaf6;
}
.ops-suggest.review {
  border-color: #bfd5ff;
  background: #f2f6ff;
}
.ops-suggest .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #e5d6c3;
  color: #8a560e;
  background: #fff8e8;
  font-size: 13px;
  font-weight: 950;
}
.ops-suggest .pill.red {
  color: #b91c1c;
  background: #fff1f3;
  border-color: #efc5cc;
}
.ops-suggest .pill.green {
  color: #047857;
  background: #ecfdf5;
  border-color: #bde8d4;
}
.ops-suggest .pill.blue {
  color: #245be8;
  background: #edf4ff;
  border-color: #bfd5ff;
}
.ops-suggest > b {
  float: right;
  font-size: 26px;
  font-weight: 950;
}
.ops-suggest strong {
  display: block;
  margin-top: 14px;
  color: #13223c;
  font-size: 16px;
  line-height: 1.24;
}
.ops-suggest p {
  margin: 7px 0 0;
  color: #626b78;
  font-size: 14px;
  line-height: 1.55;
}
.ops-spend-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.ops-spend-item {
  padding: 12px;
  border: 1px solid #e5d6c3;
  border-radius: 12px;
  background: rgba(255,255,255,.64);
  cursor: pointer;
}
.ops-spend-top {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 100px;
  gap: 8px;
  align-items: center;
  font-weight: 900;
}
.ops-spend-top span { color: #737373; }
.ops-spend-top b:last-child {
  color: #c74636;
  text-align: right;
}
.ops-spend-sub {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #5d636d;
  font-size: 14px;
}
.ops-spend-item i {
  display: block;
  height: 7px;
  margin-top: 8px;
  border-radius: 999px;
  background: #c74636;
}
.ops-ads-table-card {
  border: 1px solid #d8e2f1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(19, 39, 78, .07);
  padding: 18px;
  overflow: hidden;
}
.ops-ads-activity-card {
  min-height: 760px;
}
.ops-ads-table-card .ops-card-head {
  padding: 0 0 12px;
}
.ops-ads-subfilter-row {
  display: grid;
  grid-template-columns: 250px minmax(240px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #d8e2f1;
  border-radius: 16px;
  background: #fbfdff;
}
.ops-sp-analysis-grid .ops-ads-subfilter-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ops-sp-analysis-grid .ops-ads-subfilter-row button,
.ops-sp-analysis-grid .ops-ads-subfilter-row label {
  width: 100%;
  justify-content: center;
}
.ops-ads-subfilter-row input,
.ops-ads-subfilter-row select {
  min-width: 0;
  height: 42px;
  border: 1px solid #d8e2f1;
  border-radius: 12px;
  background: #fff;
  color: #15243c;
  padding: 0 12px;
  font: inherit;
  outline: none;
}
.ops-ads-subfilter-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #526888;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}
.ops-ads-table-wrap {
  overflow: auto;
  border: 1px solid #e6edf7;
  border-radius: 12px;
  max-height: 650px;
}
.ops-ads-table-wrap table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font-size: 14px;
}
.ops-ads-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 12px 13px;
  background: #f6f8fb;
  color: #607493;
  border-bottom: 1px solid #d8e2f1;
  white-space: nowrap;
  font-weight: 950;
}
.ops-ads-table-wrap td {
  padding: 13px;
  border-bottom: 1px solid #edf2fa;
  color: #15243c;
  white-space: nowrap;
}
.ops-ads-table-wrap tr.active td {
  background: #eaf2ff;
  border-bottom-color: #d7e5ff;
}
.ops-ads-table-wrap td strong,
.ops-ads-table-wrap td b {
  color: #101d33;
  font-weight: 950;
}
.ops-ads-table-wrap td small {
  display: block;
  margin-top: 4px;
  color: #607493;
  font-size: 12px;
}
.ops-table-action {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 950;
}
.ops-table-action.red {
  background: #fff1f3;
  color: #b91c1c;
}

.ops-product-shell {
  max-width: 1980px;
  margin: 0 auto;
  padding: 18px 18px 28px;
}
.ops-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr);
  gap: 18px;
  align-items: end;
  padding: 24px 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 34px;
  color: #eef5ff;
  background: linear-gradient(135deg, rgba(13,31,58,.98) 0%, rgba(24,60,110,.95) 54%, rgba(12,131,114,.9) 100%);
  box-shadow: 0 24px 56px rgba(13, 31, 58, .12);
}
.ops-product-hero > div > span,
.ops-product-section-head span,
.ops-product-chart-head span {
  display: inline-flex;
  color: rgba(114, 214, 199, .92);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 850;
}
.ops-product-hero h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 42px;
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -.04em;
}
.ops-product-hero p {
  margin: 12px 0 0;
  max-width: 900px;
  color: rgba(232,241,255,.82);
  font-size: 15px;
  line-height: 1.6;
}
.ops-product-hero-meta {
  justify-self: end;
  width: min(360px, 100%);
  min-height: 116px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(6,15,32,.24);
  color: rgba(238,245,255,.92);
  font-size: 13px;
  line-height: 1.7;
}
.ops-product-hero-meta p {
  margin: 0;
  color: inherit;
  font-size: 13px;
}
.ops-product-workspace {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 18px;
  margin-top: 16px;
}
.ops-product-rail,
.ops-product-detail-card,
.ops-product-chart-card,
.ops-product-side-card {
  border: 1px solid rgba(20,43,76,.11);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(249,252,255,.92) 100%);
  box-shadow: 0 12px 28px rgba(13,31,58,.08);
  backdrop-filter: blur(18px);
}
.ops-product-rail {
  position: sticky;
  top: 62px;
  height: calc(100vh - 84px);
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.ops-product-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ops-product-section-head h2 {
  margin: 4px 0 0;
  color: #10223d;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: -.03em;
}
.ops-product-section-head small {
  color: #62738e;
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
  font-weight: 700;
}
.ops-product-filter-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}
.ops-product-list {
  min-height: 0;
  flex: 1;
  overflow: auto;
  display: grid;
  gap: 7px;
  padding-right: 4px;
}
.ops-product-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 74px;
  padding: 8px;
  border: 1px solid rgba(18,41,74,.08);
  border-radius: 14px;
  background: rgba(248,251,255,.86);
  color: #10223d;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.ops-product-item.active {
  border-color: rgba(45,105,245,.32);
  background: linear-gradient(135deg, rgba(45,105,245,.12) 0%, rgba(255,255,255,.98) 48%, rgba(16,159,136,.08) 100%);
  box-shadow: 0 12px 24px rgba(18,44,84,.10);
}
.ops-product-thumb,
.ops-product-detail-image {
  border: 1px solid rgba(18,41,74,.10);
  background:
    linear-gradient(90deg, #2d69f5 0 42%, transparent 42%),
    linear-gradient(135deg, #f4f8ff 0%, #dfe8f8 100%);
}
.ops-product-thumb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.ops-product-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.ops-product-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ops-product-inline b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #10223d;
  font-size: 14px;
  font-weight: 900;
}
.ops-product-inline em {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid rgba(18,41,74,.10);
  border-radius: 999px;
  color: #4e607b;
  background: rgba(244,248,255,.92);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}
.ops-product-inline em.high {
  color: #d74b4b;
  background: rgba(215,75,75,.11);
  border-color: rgba(215,75,75,.16);
}
.ops-product-inline em.medium {
  color: #ba5a24;
  background: rgba(236,106,60,.11);
  border-color: rgba(236,106,60,.18);
}
.ops-product-info strong {
  color: #10223d;
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.32;
  font-weight: 850;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.ops-product-info small {
  color: #62738e;
  font-size: 12px;
  line-height: 1.35;
}
.ops-product-content-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1.28fr) minmax(278px, .58fr);
  gap: 18px;
  align-items: start;
}
.ops-product-main,
.ops-product-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.ops-product-detail-card,
.ops-product-chart-card,
.ops-product-side-card {
  padding: 14px 16px 15px;
}
.ops-product-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: 14px;
  align-items: start;
}
.ops-product-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.ops-product-detail-image {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex: 0 0 auto;
}
.ops-product-identity-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ops-product-identity-line span {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(18,41,74,.11);
  border-radius: 999px;
  color: #4e607b;
  background: rgba(244,248,255,.92);
  font-size: 11px;
  font-weight: 800;
}
.ops-product-detail-card h2 {
  margin: 8px 0 0;
  color: #10223d;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: -.03em;
}
.ops-product-detail-card p {
  margin: 6px 0 0;
  color: #62738e;
  font-size: 13px;
  line-height: 1.55;
}
.ops-product-date-tools {
  display: grid;
  gap: 10px;
  justify-items: end;
}
.ops-product-date-tools-static {
  align-content: start;
}
.ops-product-date-tools > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.ops-product-date-tools button,
.ops-product-date-tools input {
  border: 1px solid rgba(18,41,74,.10);
  border-radius: 999px;
  background: rgba(248,251,255,.88);
  color: #4e607b;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.ops-product-date-tools button.active {
  border-color: rgba(45,105,245,.26);
  background: linear-gradient(135deg, rgba(45,105,245,.14) 0%, rgba(15,159,136,.10) 100%);
  color: #1e4fbf;
}
.ops-product-date-tools label {
  display: grid;
  gap: 5px;
  color: #62738e;
  font-size: 11px;
  font-weight: 800;
}
.ops-product-date-tools label input {
  width: 146px;
  border-radius: 12px;
}
.ops-product-date-tools-static label input {
  background: #f7faff;
  color: #294062;
  cursor: default;
}
.ops-product-window-note {
  max-width: 320px;
  padding: 10px 12px;
  border: 1px dashed rgba(23,105,244,.20);
  border-radius: 12px;
  color: #62738e;
  background: rgba(244,248,255,.92);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
  text-align: right;
}
.ops-product-footnote {
  margin-top: 10px;
}
.ops-product-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ops-product-chart-head h3 {
  margin: 4px 0 0;
  color: #10223d;
  font-size: 22px;
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: -.03em;
}
.ops-product-chart-head small {
  color: #62738e;
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
  font-weight: 700;
}
.ops-product-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.ops-product-summary-strip span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(18,41,74,.08);
  border-radius: 18px;
  background: rgba(246,250,255,.90);
}
.ops-product-summary-strip small {
  display: block;
  color: #62738e;
  font-size: 11px;
}
.ops-product-summary-strip b {
  display: block;
  margin-top: 4px;
  color: #10223d;
  font-size: 21px;
  line-height: 1;
  font-weight: 850;
}
.ops-product-summary-strip em {
  display: block;
  margin-top: 5px;
  color: #4e607b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.ops-product-summary-strip em.ok { color: #0f8f63; }
.ops-product-summary-strip em.bad { color: #d74b4b; }
.ops-product-chart-card .ops-sparkline.product {
  margin-top: 10px;
}
.ops-ai-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.ops-ai-panel p,
.ops-product-side-card p {
  margin: 0;
  color: #294369;
  font-size: 13px;
  line-height: 1.65;
}
.ops-ai-block {
  padding: 11px 12px;
  border: 1px solid rgba(18,41,74,.08);
  border-radius: 16px;
  background: rgba(246,250,255,.90);
}
.ops-ai-block span {
  display: block;
  color: #62738e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}
.ops-ai-block p {
  margin-top: 6px;
}
.ops-ai-panel b {
  margin-right: 8px;
  color: #62738e;
}
.ops-product-signal-grid {
  display: grid;
  gap: 12px;
}
.ops-product-signal-card {
  padding-bottom: 12px;
}
.ops-product-signal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.ops-product-signal-head span {
  color: #62738e;
  font-size: 12px;
  font-weight: 850;
}
.ops-product-signal-head strong {
  color: #10223d;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}
.ops-product-signal-card small {
  display: block;
  margin-top: 6px;
  color: #607493;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}
.ops-product-signal-chart .ops-sparkline.product {
  margin-top: 8px;
}
.ops-product-signal-card.teal .ops-product-signal-head strong {
  color: #0f8f63;
}
.ops-product-signal-card.orange .ops-product-signal-head strong {
  color: #d77426;
}
.ops-product-related-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.ops-product-related-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid rgba(18,41,74,.08);
  border-radius: 16px;
  background: rgba(248,251,255,.88);
}
.ops-product-related-row strong {
  display: block;
  color: #10223d;
  font-size: 13px;
  font-weight: 900;
}
.ops-product-related-row p {
  margin-top: 5px;
  color: #607493;
  font-size: 12px;
  line-height: 1.5;
}
.ops-product-related-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(16,185,129,.10);
  color: #0f8f63;
  font-size: 11px;
  font-weight: 900;
}
.ops-product-snapshot-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.ops-product-snapshot-grid div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(222, 231, 244, .9);
}
.ops-product-snapshot-grid div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.ops-product-snapshot-grid span {
  color: #62738e;
  font-size: 13px;
  font-weight: 700;
}
.ops-product-snapshot-grid strong {
  color: #10223d;
  font-size: 14px;
  font-weight: 850;
  text-align: right;
}
.ops-product-source-card {
  margin-top: 16px;
  padding: 18px 20px 16px;
  border: 1px solid rgba(20,43,76,.11);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,252,255,.94));
  box-shadow: 0 12px 28px rgba(13,31,58,.07);
}
.ops-product-source-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.ops-product-source-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(222, 231, 244, .9);
}
.ops-product-source-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.ops-product-source-row strong {
  color: #10223d;
  font-size: 13px;
  font-weight: 900;
}
.ops-product-source-row p {
  margin: 0;
  color: #607493;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}
.ops-listing-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 14px;
  margin: 12px 0;
}
.ops-listing-kv span {
  color: #62738e;
  font-size: 13px;
}
.ops-listing-kv b {
  color: #10223d;
  font-size: 13px;
}
.ops-mini-draft {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid rgba(18,41,74,.09);
  border-radius: 16px;
  background: rgba(246,250,255,.90);
}
.ops-mini-draft span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #d74b4b;
  background: rgba(215,75,75,.11);
  font-size: 11px;
  font-weight: 850;
}
.ops-mini-draft strong {
  color: #10223d;
  font-size: 13px;
}
.ops-mini-draft small {
  color: #62738e;
  font-size: 12px;
}
.campaign-metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid #dbe7f8;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.campaign-metric-strip .metric-tile {
  min-height: 112px;
  border: 0;
  border-right: 1px solid #e2ebf7;
  border-radius: 0;
  box-shadow: none;
}
.campaign-metric-strip .metric-tile:last-child {
  border-right: 0;
}
.campaign-metric-strip .metric-tile strong {
  font-size: 22px;
}
.campaign-metric-strip .change-summary strong {
  font-size: 17px;
  line-height: 1.28;
}
.product-ads-table-wrap {
  overflow: auto;
}
.product-ads-table {
  width: 100%;
  min-width: 1480px;
  border-collapse: collapse;
  color: #1b2b45;
  font-size: 14px;
}
.product-ads-table th {
  padding: 13px 12px;
  color: #4d6484;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
  white-space: nowrap;
  background: #f7faff;
  border-bottom: 1px solid #dbe7f8;
}
.product-ads-table td {
  padding: 18px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #e8edf5;
  font-weight: 500;
}
.product-ads-table tr:hover td {
  background: #f7fbff;
}
.product-ads-table tr.active td {
  background: #f4f8ff;
}
.product-ads-table td strong {
  display: block;
  color: #12223d;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 660;
}
.product-ads-table td small {
  display: block;
  margin-top: 5px;
  color: #657997;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}
.mini-spark {
  width: 86px;
  height: 34px;
}
.mini-spark polyline {
  fill: none;
  stroke: #245be8;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mini-spark.green polyline { stroke: #087a70; }
.mini-spark.red polyline { stroke: #d3473e; }
.mini-spark.blue polyline { stroke: #2563eb; }
.ad-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 7px 10px;
  border: 1px solid #dbe7f8;
  border-radius: 999px;
  color: #49617f;
  background: #f7fbff;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.ad-action-pill.warn {
  color: #a76000;
  border-color: #f1cf95;
  background: #fff8e8;
}
.ad-action-pill.good {
  color: #087a70;
  border-color: #bde5d8;
  background: #ecfbf6;
}
.generic-ads-analysis {
  display: grid;
  gap: 16px;
}
.ads-insight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ads-insight-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 92px;
  padding: 14px 15px;
  border: 1px solid #d9e6f8;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 251, 255, .92)),
    radial-gradient(220px 120px at 100% 0%, rgba(42, 111, 246, .12), transparent 70%);
}
.ads-insight-card span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #1b55d9;
  background: #eaf2ff;
  font-size: 12px;
  font-weight: 760;
}
.ads-insight-card p {
  margin: 0;
  color: #334c72;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 520;
}
.generic-metric-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.ads-ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .52fr);
  gap: 16px;
  align-items: stretch;
}
.ads-detail-panel-polished {
  min-height: 190px;
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(37, 99, 235, .08), transparent 66%),
    #fff;
}
.ads-risk-panel {
  display: grid;
  align-content: start;
  overflow: hidden;
}
.ads-side-stack {
  display: grid;
  gap: 16px;
}
.ads-opportunity-panel {
  border-color: #bdebd9;
  background: linear-gradient(180deg, #ffffff, #f4fffb);
}
.ads-risk-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #edf2fa;
}
.ads-risk-line:first-of-type {
  border-top: 0;
}
.ads-risk-line strong {
  color: #12223d;
  font-size: 14px;
  line-height: 1.32;
  font-weight: 700;
}
.ads-risk-line small {
  display: block;
  margin-top: 3px;
  color: #657997;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 430;
}
.ads-risk-line b {
  color: #12223d;
  font-size: 15px;
  font-weight: 760;
}
.ads-compact-table-wrap {
  border-radius: 22px;
}
.ads-compact-table tr {
  cursor: pointer;
}
.ads-compact-table tr.active td {
  background: #edf4ff;
}
.ads-section-panel {
  padding-bottom: 6px;
}
.ads-section-panel .product-ad-mini {
  padding: 12px 20px;
}

@media (min-width: 1540px) {
  .orders-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ads-signal {
  grid-template-columns: 1fr auto;
  align-items: center;
}
.ads-row-button {
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.ads-row-button.active {
  border-color: #9fc0ff;
  background: linear-gradient(135deg, #f5f9ff, #ecf5ff);
}
.ads-signal strong {
  font-size: 22px;
  letter-spacing: -.03em;
}
.ads-detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid #dbe7f8;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f6fbff);
}
.ads-detail-panel h3 {
  margin: 8px 0 6px;
  font-size: 22px;
  letter-spacing: -.03em;
}
.ads-detail-panel p {
  margin: 8px 0 0;
  color: #294369;
  line-height: 1.65;
}
.mini-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mini-stat-grid span {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  background: #f8fbff;
}
.mini-stat-grid strong {
  color: var(--text);
  font-size: 20px;
  letter-spacing: -.03em;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
input, textarea, select {
  width: 100%;
  border: 1px solid #dbe5f3;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  color: var(--text);
  outline: none;
  font: inherit;
}
textarea { min-height: 110px; resize: vertical; grid-column: 1 / -1; }
.primary {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: #2563eb;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .18);
}
.secondary {
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  padding: 10px 13px;
  background: #fff;
  color: var(--blue-2);
  font-weight: 750;
  cursor: pointer;
}
.secondary.slim {
  white-space: nowrap;
}
.agent-bridge {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f3f8ff);
}
.agent-bridge strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.04em;
}
.agent-bridge span,
.agent-bridge p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}
.agent-alert {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.agent-center {
  display: grid;
  gap: 16px;
}
.agent-alert-board {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 16px;
  align-items: start;
}
.agent-alert-list {
  display: grid;
  gap: 10px;
}
.agent-alert-main {
  display: grid;
  gap: 6px;
}
.agent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.draft-result {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: #fff;
}
.management-outcome {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f6faff);
}
.management-outcome .item-title {
  margin-bottom: 3px;
}
.readable-result {
  display: grid;
  gap: 12px;
  margin-top: 0;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.result-grid span {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid #dbe7f8;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  background: #fff;
}
.result-grid strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.inbox-center {
  display: grid;
  gap: 14px;
}
.inbox-list {
  display: grid;
  gap: 10px;
}
.inbox-row {
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  border-left: 4px solid #e8505b;
  background:
    radial-gradient(180px 90px at 100% 0%, rgba(232, 80, 91, .08), transparent 72%),
    #fff;
}
.inbox-row.read {
  border-left-color: #9db1d0;
  background: #f8fbff;
  opacity: .78;
}
.inbox-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

/* OPS-level workbench pages for inventory, Ads Agent and alert inbox. */
.ops-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .58fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 24px 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 30px;
  color: #edf6ff;
  background: linear-gradient(135deg, rgba(13,31,58,.98) 0%, rgba(28,67,122,.95) 56%, rgba(11,137,122,.92) 100%);
  box-shadow: 0 24px 56px rgba(13, 31, 58, .12);
}
.ops-command-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1.06;
  font-weight: 860;
  letter-spacing: -.04em;
}
.ops-command-hero p {
  max-width: 980px;
  margin: 10px 0 0;
  color: rgba(233,242,255,.84);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 650;
}
.ops-hero-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
.ops-hero-inline span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: rgba(241,247,255,.92);
  background: rgba(6,15,32,.22);
  font-size: 12px;
  font-weight: 850;
}
.ops-command-meta,
.ops-agent-control,
.ops-inbox-actions {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(6,15,32,.24);
}
.ops-command-meta p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: rgba(231,241,255,.82);
  font-size: 13px;
  line-height: 1.45;
}
.ops-command-meta span {
  color: rgba(174,201,231,.82);
}
.ops-command-meta b,
.ops-agent-control small {
  color: #fff;
  font-weight: 900;
}
.ops-inventory-kpis,
.ops-agent-kpis,
.ops-inbox-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.ops-inv-kpi,
.ops-agent-kpis article,
.ops-inbox-kpis article {
  min-height: 126px;
  display: grid;
  align-content: center;
  padding: 18px 20px;
  border: 1px solid rgba(216,226,241,.82);
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 44px rgba(19,39,78,.07);
}
.ops-inv-kpi span,
.ops-agent-kpis span,
.ops-inbox-kpis span {
  color: #647799;
  font-size: 13px;
  font-weight: 900;
}
.ops-inv-kpi strong,
.ops-agent-kpis strong,
.ops-inbox-kpis strong {
  margin-top: 8px;
  color: #102040;
  font-size: 32px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.04em;
}
.ops-inv-kpi small,
.ops-agent-kpis small,
.ops-inbox-kpis small {
  margin-top: 8px;
  color: #607493;
  font-size: 13px;
  font-weight: 700;
}
.ops-inv-kpi.red,
.ops-agent-kpis article.bad,
.ops-inbox-kpis article.bad {
  background: linear-gradient(135deg, #fff5f7, #fff);
}
.ops-inv-kpi.red strong,
.ops-agent-kpis article.bad strong,
.ops-inbox-kpis article.bad strong {
  color: #be3144;
}
.ops-inv-kpi.green strong { color: #08754f; }
.ops-inv-kpi.blue strong { color: #245be8; }
.ops-inv-kpi.teal strong { color: #0b8f7d; }
.ops-inventory-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(191,219,254,.86);
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 34px rgba(30,64,175,.07);
}
.ops-inventory-toolbar label {
  display: block;
  margin-bottom: 7px;
  color: #526888;
  font-size: 13px;
  font-weight: 900;
}
.ops-inventory-toolbar input,
.ops-inventory-toolbar select {
  height: 44px;
  border-radius: 13px;
}
.ops-inventory-layout,
.ops-agent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .42fr);
  gap: 18px;
  align-items: start;
}
.ops-agent-layout.ops-agent-stack {
  grid-template-columns: minmax(0, 1fr);
}
.ops-inventory-main,
.ops-inventory-side,
.ops-agent-main,
.ops-agent-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.ops-inventory-panel,
.ops-agent-panel,
.ops-inbox-rail,
.ops-inbox-list-panel,
.ops-inbox-detail {
  border: 1px solid rgba(216,226,241,.82);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 44px rgba(19,39,78,.07);
  overflow: hidden;
}
.ops-inventory-priority {
  display: grid;
  gap: 0;
}
.ops-inventory-action {
  display: grid;
  grid-template-columns: 44px minmax(210px, 1fr) minmax(110px, .36fr) minmax(140px, .44fr) minmax(230px, .76fr);
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid #edf2fa;
}
.ops-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #245be8, #15b59a);
  font-weight: 950;
}
.ops-inventory-product {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.ops-inventory-product strong,
.ops-inventory-numbers b,
.ops-inventory-table strong,
.ops-agent-alert-body strong,
.ops-inbox-message-body strong,
.ops-inbox-detail-body strong {
  color: #102040;
  font-weight: 950;
}
.ops-inventory-product small,
.ops-inventory-product em,
.ops-inventory-numbers small,
.ops-inventory-command p {
  color: #607493;
  font-size: 12px;
  line-height: 1.45;
  font-style: normal;
  font-weight: 700;
}
.ops-risk-meter {
  height: 9px;
  border-radius: 999px;
  background: #edf2fa;
  overflow: hidden;
}
.ops-risk-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.ops-risk-meter .red { background: #e8505b; }
.ops-risk-meter .amber { background: #f59e0b; }
.ops-risk-meter .green { background: #0e9f88; }
.ops-inventory-command {
  display: grid;
  gap: 6px;
}
.ops-inventory-command p {
  margin: 0;
}
.ops-inventory-table-wrap {
  max-width: 100%;
  overflow: auto;
  border-top: 1px solid #edf2fa;
}
.ops-inventory-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 13px;
}
.ops-inventory-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  text-align: left;
  color: #607493;
  background: #fbfdff;
  border-bottom: 1px solid #d8e2f1;
  font-weight: 950;
}
.ops-inventory-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf2fa;
  color: #223556;
  white-space: nowrap;
}
.ops-inventory-table small {
  display: block;
  margin-top: 4px;
  color: #607493;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-inventory-chart .ops-sparkline {
  min-height: 180px;
  padding: 0 18px 18px;
}
.ops-risk-buckets {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}
.ops-risk-buckets > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  align-items: center;
}
.ops-risk-buckets strong {
  color: #102040;
  font-size: 14px;
}
.ops-risk-buckets span {
  color: #102040;
  font-weight: 950;
}
.ops-risk-buckets i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: #edf2fa;
  overflow: hidden;
}
.ops-risk-buckets b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #245be8, #13b394);
}
.ops-risk-buckets small {
  grid-column: 1 / -1;
  color: #607493;
  font-size: 12px;
  font-weight: 700;
}
.ops-agent-control {
  justify-items: stretch;
}
.ops-agent-control .ops-refresh {
  width: 100%;
}
.ops-agent-hero {
  min-height: 188px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .5fr);
  align-items: end;
  padding: 34px 36px 28px;
  background: linear-gradient(112deg, #102849 0%, #1d4f9f 58%, #2769f4 100%);
}
.ops-agent-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #7ee7d8;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .18em;
}
.ops-agent-hero h1 {
  font-size: 56px;
  letter-spacing: 0;
}
.ops-agent-hero-actions {
  display: grid;
  gap: 70px;
  justify-items: end;
  align-self: stretch;
}
.ops-agent-hero-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.ops-agent-hero .ops-secondary {
  color: #eef5ff;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.14);
}
.ops-agent-hero .ops-refresh {
  color: #102040;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .16);
}
.ops-agent-alert-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 12px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  color: #102040;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
  font-weight: 900;
}
.ops-agent-alert-pill strong {
  min-width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #ef4560;
}
.ops-agent-status-band {
  display: grid;
  grid-template-columns: minmax(360px, 1.3fr) repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid rgba(216,226,241,.82);
  border-radius: 28px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 44px rgba(19,39,78,.07);
}
.ops-agent-status-band article {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #d8e2f1;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f9fbff);
}
.ops-agent-status-band article.wide {
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  align-content: center;
}
.ops-agent-status-band article.wide > span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #16a995;
  box-shadow: 0 0 0 8px rgba(22,169,149,.12);
}
.ops-agent-status-band article.wide > span.running {
  background: #2563eb;
  box-shadow: 0 0 0 8px rgba(37,99,235,.12);
}
.ops-agent-status-band small {
  color: #647799;
  font-size: 13px;
  font-weight: 850;
}
.ops-agent-status-band strong {
  color: #102040;
  font-size: 18px;
  font-weight: 950;
}
.ops-agent-kpi-band {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 14px;
  border: 1px solid rgba(216,226,241,.82);
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 40px rgba(19,39,78,.06);
}
.ops-agent-kpi-band article {
  min-height: 104px;
  border-left: 4px solid #2563eb;
}
.ops-agent-kpi-band article:nth-child(1) { border-left-color: #ef4560; }
.ops-agent-kpi-band article:nth-child(2) { border-left-color: #f59e0b; }
.ops-agent-kpi-band article:nth-child(3) { border-left-color: #14a991; }
.ops-agent-recommendation-panel {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid rgba(216,226,241,.82);
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 20px 48px rgba(19,39,78,.08);
}
.ops-agent-section-head,
.ops-agent-list-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.ops-agent-section-head span {
  color: #2e6ef7;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .16em;
}
.ops-agent-section-head h2,
.ops-agent-list-head h3 {
  margin: 3px 0 0;
  color: #102040;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 950;
}
.ops-agent-section-head strong,
.ops-agent-list-head span {
  color: #607493;
  font-size: 14px;
  font-weight: 850;
}
.ops-agent-recommendation-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.ops-agent-recommendation-stats article {
  min-height: 88px;
  padding: 14px;
  border: 1px solid #d8e2f1;
  border-left: 4px solid #2563eb;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f9fbff);
}
.ops-agent-recommendation-stats article.bad { border-left-color: #ef4560; }
.ops-agent-recommendation-stats article.good { border-left-color: #14a991; }
.ops-agent-recommendation-stats article.warn { border-left-color: #f59e0b; }
.ops-agent-recommendation-stats span {
  color: #647799;
  font-size: 13px;
  font-weight: 900;
}
.ops-agent-recommendation-stats strong {
  display: block;
  margin-top: 8px;
  color: #102040;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}
.ops-agent-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .68fr);
  gap: 18px;
}
.ops-agent-rec-list {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}
.ops-agent-rec-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .46fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d8e2f1;
  border-left: 4px solid #2563eb;
  border-radius: 16px;
  background: #fff;
}
.ops-agent-rec-card.high { border-left-color: #ef4560; background: linear-gradient(90deg, #fff7f8, #fff); }
.ops-agent-rec-card.medium { border-left-color: #f59e0b; background: linear-gradient(90deg, #fffaf0, #fff); }
.ops-agent-rec-card.has-draft {
  box-shadow: inset 0 0 0 1px rgba(20, 169, 145, .22);
}
.ops-agent-rec-body {
  min-width: 0;
}
.ops-agent-rec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}
.ops-agent-rec-tags span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #385173;
  background: #edf4ff;
  font-size: 12px;
  font-weight: 900;
}
.ops-agent-rec-tags .confidence-high,
.ops-agent-rec-tags .drafted {
  color: #08795e;
  background: #e7f8f2;
  border: 1px solid #bfeadc;
}
.ops-agent-rec-tags .confidence-medium {
  color: #9a6412;
  background: #fff7df;
  border: 1px solid #f2dc9b;
}
.ops-agent-rec-tags .confidence-low,
.ops-agent-rec-tags .confidence-unknown {
  color: #a33543;
  background: #fff0f3;
  border: 1px solid #f4c5cc;
}
.ops-agent-rec-body strong {
  color: #102040;
  font-size: 16px;
  font-weight: 950;
}
.ops-agent-rec-context {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: #607493;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 750;
}
.ops-agent-rec-context span {
  min-width: 0;
}
.ops-agent-rec-context b {
  color: #26466e;
  font-weight: 900;
}
.ops-agent-rec-body p {
  margin: 8px 0 0;
  color: #607493;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}
.ops-agent-rec-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 8px;
}
.ops-agent-rec-metrics span {
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid #d8e2f1;
  border-radius: 12px;
  background: #f8fbff;
}
.ops-agent-rec-metrics small {
  display: block;
  color: #647799;
  font-size: 12px;
  font-weight: 850;
}
.ops-agent-rec-metrics b {
  display: block;
  margin-top: 4px;
  color: #102040;
  font-size: 17px;
  font-weight: 950;
}
.ops-agent-rec-card.search {
  grid-template-columns: minmax(0, 1fr) minmax(210px, .72fr);
  align-items: start;
}
.ops-agent-rec-card.search .ops-agent-actions {
  grid-column: 2;
  justify-content: flex-start;
}
.ops-agent-kpis article,
.ops-inbox-kpis article {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.94));
}
.ops-agent-decision {
  padding-bottom: 16px;
}
.ops-agent-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 14px;
}
.ops-agent-pipeline span {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 13px;
  border: 1px solid #d8e2f1;
  border-radius: 16px;
  background: #f8fbff;
}
.ops-agent-pipeline span.done {
  background: #effaf6;
  border-color: #c6efdf;
}
.ops-agent-pipeline span.active {
  background: #fff8e8;
  border-color: #f5dfac;
}
.ops-agent-pipeline b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #245be8;
}
.ops-agent-pipeline strong {
  color: #102040;
  font-size: 15px;
}
.ops-agent-pipeline small,
.ops-guard-list small {
  color: #607493;
  line-height: 1.4;
  font-weight: 700;
}
.ops-agent-chart {
  padding: 0 18px;
}
.ops-agent-chart .ops-sparkline {
  min-height: 154px;
}
.ops-agent-alert-list {
  display: grid;
}
.ops-agent-alert {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border-top: 1px solid #edf2fa;
}
.ops-agent-severity {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0b8b65;
  background: #e9fbf4;
  font-size: 13px;
  font-weight: 950;
}
.ops-agent-severity.high { color: #be3144; background: #fff1f3; }
.ops-agent-severity.medium { color: #a46512; background: #fff8e8; }
.ops-agent-alert-body {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.ops-agent-alert-body p,
.ops-inbox-message-body p,
.ops-inbox-detail-body p {
  margin: 0;
  color: #526888;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
}
.ops-agent-alert-body > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ops-agent-alert-body > div span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #385173;
  background: #edf4ff;
  font-size: 12px;
  font-weight: 850;
}
.ops-agent-actions,
.ops-inbox-message-actions,
.ops-inbox-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ops-guard-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}
.ops-guard-list span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d8e2f1;
  border-radius: 14px;
  background: #f8fbff;
}
.ops-guard-list b {
  color: #102040;
  font-weight: 950;
}
.ops-agent-history {
  display: grid;
  gap: 0;
}
.ops-agent-history > span {
  display: grid;
  grid-template-columns: minmax(120px, .35fr) minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 13px 18px;
  border-top: 1px solid #edf2fa;
}
.ops-agent-history b,
.ops-agent-history strong {
  color: #102040;
}
.ops-agent-history em {
  color: #08795e;
  font-style: normal;
  font-weight: 850;
}
.ops-agent-history small {
  color: #607493;
  font-weight: 700;
}
.ops-agent-panel .draft-result {
  margin: 0;
  border: 0;
  box-shadow: none;
}
.ops-inbox-actions {
  grid-template-columns: 1fr;
}
.ops-inbox-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) minmax(330px, .42fr);
  gap: 16px;
  align-items: start;
}
.ops-inbox-categories {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}
.ops-inbox-categories span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #d8e2f1;
  border-radius: 14px;
  color: #385173;
  background: #f8fbff;
}
.ops-inbox-categories span.active {
  color: #102040;
  background: #edf4ff;
  border-color: #cfe0ff;
}
.ops-inbox-categories b {
  font-size: 13px;
  font-weight: 950;
}
.ops-inbox-categories strong {
  color: #245be8;
  font-size: 18px;
  font-weight: 950;
}
.ops-inbox-help {
  margin: 0 14px 14px;
  padding: 13px;
  border: 1px solid #d8e2f1;
  border-radius: 14px;
  background: #fff;
}
.ops-inbox-help strong {
  color: #102040;
}
.ops-inbox-help p {
  margin: 6px 0 0;
  color: #607493;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}
.ops-inbox-list {
  display: grid;
}
.ops-inbox-message {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border-top: 1px solid #edf2fa;
  background: #fff;
}
.ops-inbox-message.read {
  background: #f8fbff;
  opacity: .78;
}
.ops-inbox-dot {
  width: 10px;
  height: 54px;
  border-radius: 999px;
  background: #0e9f88;
}
.ops-inbox-dot.high { background: #e8505b; }
.ops-inbox-dot.medium { background: #f59e0b; }
.ops-inbox-message-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.ops-inbox-message-body > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ops-inbox-message-body small {
  color: #607493;
  font-size: 12px;
  font-weight: 700;
}
.ops-inbox-message-body strong,
.ops-inbox-detail-body strong {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 840;
  letter-spacing: -.02em;
  color: #17325c;
}
.ops-inbox-message-body small,
.ops-inbox-detail-body small {
  color: #6a7d99;
  font-size: 12px;
  line-height: 1.52;
  font-weight: 760;
}
.ops-inbox-detail {
  position: sticky;
  top: 18px;
}
.ops-inbox-detail-body {
  display: grid;
  gap: 13px;
  padding: 0 18px 18px;
}
.ops-inbox-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ops-inbox-detail-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #d8e2f1;
  border-radius: 13px;
  color: #607493;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 850;
}
.ops-inbox-detail-grid b {
  min-width: 0;
  color: #102040;
  overflow-wrap: anywhere;
}
.ops-inbox-detail-grid span {
  line-height: 1.4;
}
button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.precheck-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dbe7f8;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}
.precheck-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.precheck-source-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  background: #f8fbff;
}
.precheck-source-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.precheck-source-strip strong {
  margin-left: 5px;
  color: var(--text);
}
.entity-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.entity-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.entity-card.missing {
  background: #fffaf2;
  border-color: #f3d7ad;
}
.entity-card-title {
  margin-bottom: 9px;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 950;
}
.entity-card p {
  margin: 0;
  color: var(--amber);
  line-height: 1.55;
  font-size: 13px;
  font-weight: 850;
}
.entity-kv {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 7px 8px;
  align-items: start;
}
.entity-kv span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.entity-kv strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.scenario-list {
  display: grid;
  gap: 10px;
}
.scenario-row {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: #fff;
}
.scenario-row h3 {
  margin: 8px 0 4px;
}
.scenario-row p {
  margin: 0;
  color: #294369;
  line-height: 1.55;
}
.scenario-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.scenario-metrics span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #dbe7f8;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  background: #f8fbff;
}
.scenario-metrics strong {
  color: var(--text);
  font-size: 16px;
}
.management-console,
.ad-management {
  display: grid;
  gap: 16px;
}
.management-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .44fr);
  gap: 20px;
  align-items: end;
  min-height: 218px;
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 30px;
  color: #eef6ff;
  background:
    radial-gradient(560px 240px at 88% 0%, rgba(32, 183, 168, .28), transparent 68%),
    linear-gradient(135deg, #0f2440 0%, #174579 54%, #1f63e6 100%);
  box-shadow: 0 24px 56px rgba(13, 31, 58, .13);
}
.management-command-hero.ads-mode {
  background:
    radial-gradient(520px 240px at 88% 0%, rgba(20, 184, 166, .26), transparent 68%),
    linear-gradient(135deg, #132544 0%, #1f4c86 54%, #2563eb 100%);
}
.management-command-hero span {
  color: rgba(126, 232, 255, .92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}
.management-command-hero h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}
.management-command-hero p {
  margin: 14px 0 0;
  max-width: 760px;
  color: rgba(232, 241, 255, .82);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 680;
}
.management-command-meta {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px;
  background: rgba(6, 15, 32, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.management-command-meta p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: rgba(226, 236, 252, .78);
  font-size: 13px;
  line-height: 1.45;
}
.management-command-meta strong {
  color: rgba(226, 236, 252, .70);
  font-weight: 720;
}
.management-command-meta b {
  color: #fff;
  text-align: right;
  font-weight: 850;
}
.management-headline {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(216, 226, 241, .92);
  border-radius: 22px;
  background: rgba(255, 255, 255, .90);
  box-shadow: 0 14px 34px rgba(30, 64, 175, .05);
}
.management-headline h2 {
  margin: 0 0 8px;
  color: #10223d;
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: 0;
}
.management-headline p {
  margin: 0;
}
.management-console .management-hero-grid .metric-tile {
  min-height: 108px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .92));
  box-shadow: 0 10px 26px rgba(32, 72, 132, .04);
}
.ad-management-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, .84fr);
  gap: 16px;
  align-items: start;
}
.management-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.management-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.flow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num text";
  gap: 4px 11px;
  align-items: start;
  padding: 15px;
  border: 1px solid #dbe7f8;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.flow-step span {
  grid-area: num;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #5f7393;
  background: #eef3fb;
  font-size: 14px;
  font-weight: 760;
}
.flow-step strong {
  grid-area: title;
  color: #12223d;
  font-size: 15px;
  font-weight: 760;
}
.flow-step small {
  grid-area: text;
  color: #5f7393;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 470;
}
.flow-step.active {
  border-color: #bfd4ff;
  background: linear-gradient(180deg, #fff, #f2f7ff);
}
.flow-step.active span {
  color: #fff;
  background: linear-gradient(135deg, #245be8, #1aa7d9);
}
.flow-step.safe {
  border-color: #bdebd9;
  background: linear-gradient(180deg, #fff, #f4fffb);
}
.flow-step.safe span {
  color: #fff;
  background: linear-gradient(135deg, #0d9b72, #20b7a8);
}
.management-safety-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.safety-card {
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid #e2ebf8;
  border-radius: 14px;
  background: #fbfdff;
  display: grid;
  align-content: center;
  gap: 5px;
}
.safety-card strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}
.safety-card span {
  color: #5f728d;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}
.safety-card.safe {
  border-color: #bfe7d4;
  background: #f5fff9;
}
.safety-card.warn {
  border-color: #f4d69a;
  background: #fffaf0;
}
.management-compose-panel,
.management-rule-panel {
  min-width: 0;
  border-color: rgba(226, 232, 240, .82);
  border-radius: 24px;
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(37, 99, 235, .06), transparent 66%),
    #fff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, .04);
}
.management-compose-panel > p,
.management-rule-panel > p {
  color: #405878;
  line-height: 1.65;
}
.rule-line {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid #edf2fa;
}
.rule-line:first-of-type {
  margin-top: 8px;
}
.rule-line strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #dbe7f8;
  border-radius: 999px;
  color: #1d4ed8;
  background: #f7f4ff;
  font-size: 13px;
  font-weight: 720;
}
.rule-line span {
  color: #405878;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 460;
}
.queue-title-row {
  padding: 4px 2px 0;
}
.management-queue-title {
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(216, 226, 241, .92);
  border-radius: 22px;
  background: rgba(255, 255, 255, .90);
  box-shadow: 0 14px 34px rgba(30, 64, 175, .05);
}
.management-queue-title div {
  display: grid;
  gap: 4px;
}
.management-queue-title div span {
  color: #0b8b65;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
}
.management-queue-title h3 {
  margin: 0;
  color: #10223d;
  font-size: 22px;
}
.am-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .54fr);
  gap: 16px;
  align-items: start;
}
.am-composer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: 16px;
  align-items: start;
}
.am-control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.am-control-grid article {
  padding: 16px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(30, 64, 175, .04);
}
.am-control-grid span,
.am-review-matrix span {
  display: block;
  color: #607493;
  font-size: 12px;
  font-weight: 850;
}
.am-control-grid strong,
.am-review-matrix strong {
  display: block;
  margin-top: 8px;
  color: #10223d;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 950;
}
.am-control-grid p,
.am-review-matrix small {
  display: block;
  margin-top: 8px;
  color: #607493;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}
.am-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(216, 226, 241, .92);
  border-radius: 24px;
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(37, 99, 235, .05), transparent 66%),
    rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(30, 64, 175, .05);
}
.am-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.am-card-head h3 {
  margin: 0;
  color: #10223d;
  font-size: 24px;
  line-height: 1.15;
}
.am-card-head p {
  margin: 8px 0 0;
  color: #607493;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 650;
}
.am-card-head > span {
  color: #5f7393;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}
.am-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.am-tab-row button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #dbe7f8;
  border-radius: 999px;
  background: #fff;
  color: #4a6181;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}
.am-tab-row button.active {
  color: #fff;
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #1aa7d9);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
}
.am-draft-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.am-draft-row {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #dbe7f8;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  text-align: left;
  cursor: pointer;
}
.am-draft-row.selected {
  border-color: #b9d3ff;
  box-shadow: 0 16px 32px rgba(37, 99, 235, .10);
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
}
.am-draft-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.am-draft-row-head > span {
  color: #7a8ca8;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.am-draft-row-title {
  margin-top: 10px;
  color: #10223d;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}
.am-draft-row-meta {
  margin-top: 6px;
  color: #607493;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}
.am-draft-row-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.am-draft-row-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #e2ebf8;
  border-radius: 999px;
  color: #607493;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}
.am-draft-row-stats b {
  color: #10223d;
  font-size: 13px;
}
.am-empty-block,
.am-empty-inline {
  padding: 18px;
  border: 1px dashed #cfe0f8;
  border-radius: 18px;
  background: #fbfdff;
  color: #607493;
  font-size: 14px;
  line-height: 1.7;
}
.am-empty-block strong {
  display: block;
  margin-bottom: 8px;
  color: #10223d;
  font-size: 18px;
}
.am-card-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e7eef8;
  color: #5f7393;
  font-size: 13px;
  font-weight: 850;
}
.am-card-subhead strong {
  color: #10223d;
  font-size: 16px;
}
.am-catalog-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.am-catalog-grid article {
  padding: 14px 16px;
  border: 1px solid #e3ebf8;
  border-radius: 16px;
  background: #fff;
}
.am-catalog-grid strong {
  display: block;
  color: #10223d;
  font-size: 15px;
  font-weight: 900;
}
.am-catalog-grid p,
.am-catalog-grid small {
  display: block;
  margin-top: 6px;
  color: #607493;
  line-height: 1.55;
}
.am-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.am-detail-grid div,
.am-precheck-mini div,
.am-quick-grid article {
  padding: 14px;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  background: #fbfdff;
}
.am-detail-grid span,
.am-precheck-mini span,
.am-quick-grid span {
  display: block;
  color: #607493;
  font-size: 12px;
  font-weight: 850;
}
.am-detail-grid b,
.am-precheck-mini strong,
.am-quick-grid strong {
  display: block;
  margin-top: 7px;
  color: #10223d;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}
.am-detail-note {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.am-detail-note strong {
  display: block;
  color: #10223d;
  font-size: 15px;
  font-weight: 900;
}
.am-detail-note p {
  margin: 8px 0 0;
  color: #607493;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}
.am-action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.am-precheck-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.am-guide-list,
.am-rule-list,
.ops-brand-next-list {
  display: grid;
  gap: 12px;
}
.am-review-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.am-review-matrix article {
  padding: 14px;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  background: #fbfdff;
}
.am-guide-list article,
.am-rule-list article {
  padding: 16px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: #fbfdff;
}
.am-guide-list strong,
.am-rule-list strong {
  display: block;
  color: #10223d;
  font-size: 15px;
  font-weight: 900;
}
.am-guide-list p,
.am-rule-list p,
.am-quick-grid small {
  margin: 8px 0 0;
  color: #607493;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}
.am-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.am-form-grid label {
  display: grid;
  gap: 8px;
}
.am-form-grid label.wide {
  grid-column: 1 / -1;
}
.am-form-grid span {
  color: #526888;
  font-size: 12px;
  font-weight: 900;
}
.am-form-grid input,
.am-form-grid textarea,
.am-form-grid select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d8e2f1;
  border-radius: 14px;
  background: #fff;
  color: #10223d;
  font: inherit;
  font-size: 14px;
}
.am-form-grid textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}
.am-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.am-submit-row small {
  color: #607493;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}
.am-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.ad-form {
  margin-top: 12px;
}
.draft-summary {
  margin-bottom: 2px;
}
.draft-list {
  margin-top: 0;
}
.draft-row {
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 251, 255, .92)),
    radial-gradient(360px 160px at 100% 0%, rgba(37, 99, 235, .07), transparent 72%);
}
.draft-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.draft-action-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  padding: 12px;
  border: 1px solid #e1eaf7;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.draft-action-meta strong {
  color: var(--text);
  font-size: 15px;
}
.execution-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e2ebf8;
  border-radius: 14px;
  background: #fbfdff;
}
.execution-state div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.execution-state strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}
.execution-state span {
  color: #5f728d;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}
.execution-state em {
  padding: 3px 8px;
  border: 1px solid #d5e3f7;
  border-radius: 999px;
  color: #2455b8;
  background: #f2f7ff;
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.execution-state time {
  color: #7a8ca8;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.execution-state.safe {
  border-color: #bfe7d4;
  background: #f5fff9;
}
.execution-state.warn {
  border-color: #f4d69a;
  background: #fffaf0;
}
.execution-state.idle {
  background: #f8fbff;
}
.audit-trail {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e3ecfa;
  border-radius: 15px;
  background: linear-gradient(135deg, #fbfdff, #f5f9ff);
}
.audit-trail.empty {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: #7083a1;
  font-size: 12px;
  font-weight: 650;
}
.audit-log-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #516986;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}
.audit-log-line strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.audit-log-line em {
  padding: 2px 7px;
  border: 1px solid #d5e3f7;
  border-radius: 999px;
  color: #2455b8;
  background: #f2f7ff;
  font-style: normal;
  font-weight: 800;
}
.audit-log-line time {
  margin-left: auto;
  color: #7a8ca8;
  white-space: nowrap;
}
.audit-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #2f73ff;
  box-shadow: 0 0 0 4px rgba(47, 115, 255, .12);
}
.warning-text {
  color: var(--amber);
  font-weight: 850;
}
.muted { color: var(--muted); line-height: 1.7; }
pre {
  overflow: auto;
  padding: 14px;
  border-radius: 16px;
  background: #0d1c36;
  color: #d8e7ff;
}

@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: relative; height: auto; }
  .side-note { position: static; margin-top: 16px; }
  main { padding: 16px; }
  .top { align-items: start; flex-direction: column; }
  .top-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .sync-chip { min-width: 0; }
  .status, .grid-2, .grid-3, .form, .overview-hero, .overview-pulse, .overview-command, .command-grid, .overview-layout, .module-tile-grid, .module-readiness-grid, .ops-maturity-grid, .acceptance-plan-list, .overview-focus-grid, .product-layout, .product-center-hero, .product-overview-grid, .product-insight-grid, .product-filterbar, .product-mgmt-layout, .management-hero-grid, .management-flow, .management-safety-grid, .listing-workbench, .metric-grid, .analysis-grid, .orders-layout, .orders-board-grid, .orders-kpi-grid, .order-detail-stats, .inventory-hero-grid, .inventory-insight-grid, .inventory-filterbar, .inventory-workspace, .campaign-metric-strip, .generic-metric-strip, .ads-insight-strip, .ads-ops-grid, .ads-filterbar, .ads-detail-panel, .agent-alert-board, .agent-alert, .inbox-row, .draft-row, .precheck-grid, .scenario-row, .scenario-metrics, .entity-context-grid, .diff-row, .ad-management-workbench, .result-grid, .delivery-layout, .api-closure-grid, .quality-mini-grid, .quality-diagnostic-grid, .ads-preset-grid, .ops-coverage-grid, .am-dashboard-grid, .am-composer-grid, .am-form-grid, .am-quick-grid, .ops-brand-empty-grid, .ops-brand-zero-dashboard, .ops-brand-lifecycle, .ops-sp-diagnostic-strip, .ops-sp-diagnosis-list, .am-control-grid, .am-review-matrix, .am-detail-grid, .am-precheck-mini { grid-template-columns: 1fr; }
  .execution-state { grid-template-columns: 1fr; }
  .readiness-hero { flex-direction: column; }
  .readiness-hero,
  .readiness-head,
  .delivery-layout,
  .delivery-callout,
  .repair-plan-card,
  .acceptance-plan-card,
  .module-readiness-card,
  .ops-maturity-card,
  .quality-diagnostic-card {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .delivery-layout,
  .readiness-hero {
    overflow-x: hidden;
  }
  .delivery-callout code,
  .repair-plan-card code,
  .acceptance-plan-card code {
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
  }
  .orders-ops-head,
  .orders-search-bar,
  .product-ads-toolbar,
  .campaign-review-head {
    align-items: start;
    flex-direction: column;
  }
  .orders-search-controls {
    width: 100%;
    flex: none;
  }
  .product-ads-toolbar select {
    width: 100%;
    max-width: none;
  }
  .ops-report-card {
    padding: 14px;
    border-radius: 20px;
  }
  .ops-report-head {
    display: grid;
    gap: 12px;
  }
  .ops-report-head h2 {
    font-size: 26px;
    line-height: 1.12;
    word-break: keep-all;
  }
  .ops-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .ops-tabs button {
    flex: 0 0 auto;
  }
  .ops-filter-grid.ads-filterbar {
    grid-template-columns: 1fr;
  }
  .ops-filter-grid .ad-filter-risk {
    justify-content: flex-start;
  }
  .ops-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-orders-kpi-grid,
  .ops-orders-small-grid {
    grid-template-columns: 1fr;
  }
  .ads-advice-board,
  .ads-advice-columns {
    grid-template-columns: 1fr;
  }
  .management-command-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px;
    border-radius: 24px;
  }
  .management-command-hero h2 {
    font-size: 33px;
  }
  .management-command-meta p {
    display: grid;
    gap: 3px;
  }
  .management-headline,
  .management-queue-title {
    align-items: start;
    flex-direction: column;
  }
  .am-submit-row,
  .am-draft-row-head,
  .am-card-head,
  .am-card-subhead,
  .ops-brand-empty-card {
    align-items: start;
    flex-direction: column;
  }
  .asin-table {
    overflow: auto;
  }
  .order-item-table {
    overflow: auto;
  }
  .asin-table-head,
  .asin-table-row,
  .order-item-head,
  .order-item-row {
    min-width: 760px;
  }
  .hero-score { justify-items: start; }
  .agent-bridge { align-items: start; flex-direction: column; }
  .agent-actions { justify-content: flex-start; }
  .draft-action-meta { justify-items: start; }
}

@media (max-width: 900px) {
  body.ops-focus-view {
    overflow-x: hidden;
  }
  body.ops-focus-view .shell,
  body.ops-focus-view main,
  body.ops-focus-view .content,
  .ops-focus-page,
  .ops-focus-shell,
  .ops-product-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  .content > *,
  .status > *,
  .card,
  .overview-hero,
  .overview-pulse,
  .overview-command,
  .overview-layout,
  .overview-side-stack,
  .readiness-hero,
  .delivery-metrics,
  .delivery-layout {
    min-width: 0;
    max-width: 100%;
  }
  .module-head,
  .readiness-head {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .command-panel {
    overflow-x: hidden;
  }
  .module-head > div,
  .module-head > *,
  .readiness-head > div {
    min-width: 0;
    max-width: 100%;
  }
  .module-head .secondary,
  .module-head button {
    justify-self: start;
    max-width: 100%;
  }
  .handoff-list p,
  .sync-closure-strip span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  nav {
    overflow-x: hidden;
  }
  nav button.active {
    transform: none;
  }
  .tag {
    max-width: 100%;
    white-space: normal;
  }
  .timeline-list,
  .timeline-item {
    min-width: 0;
    max-width: 100%;
  }
  .timeline-item {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .timeline-item p,
  .delivery-callout code,
  .acceptance-plan-card code,
  .repair-plan-card code {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
  }
  .ops-focus-shell,
  .ops-product-shell {
    padding: 16px 14px 28px;
  }
	  .ops-orders-titlebar,
	  .ops-ads-analysis-title,
	  .ops-ads-report-head,
	  .ops-card-head,
	  .ops-product-chart-head {
	    display: grid;
	    gap: 10px;
  }
  .ops-orders-titlebar h1,
  .ops-ads-page-title h1,
  .ops-product-hero h1,
  .ops-command-hero h1 {
    font-size: 32px;
    line-height: 1.12;
    word-break: keep-all;
  }
  .ops-orders-titlebar .ops-refresh {
    width: fit-content;
  }
	  .ops-orders-hero,
	  .ops-orders-main-grid,
	  .ops-ads-filters,
	  .ops-ads-paper-layout,
	  .ops-ads-dashboard-grid,
	  .ops-sp-analysis-grid,
	  .ops-ads-title-tools,
	  .ops-sp-focus-metrics,
	  .ops-ads-subfilter-row,
	  .ops-sp-filter-row,
	  .ops-ads-empty-meta,
	  .ops-ads-summary-cols,
	  .ops-command-hero,
	  .ops-inventory-kpis,
	  .ops-agent-kpis,
	  .ops-agent-status-band,
	  .ops-agent-kpi-band,
	  .ops-agent-recommendation-stats,
	  .ops-agent-two-col,
	  .ops-agent-rec-card,
  .data-gate-banner,
	  .ops-inbox-kpis,
	  .ops-inventory-toolbar,
	  .ops-inventory-layout,
	  .ops-agent-layout,
  .ops-agent-pipeline,
  .ops-inbox-layout,
  .ops-inbox-detail-grid,
  .ops-product-workspace,
  .ops-product-content-grid,
  .ops-product-detail-top,
  .ops-product-summary-strip,
  .ops-orders-search {
    grid-template-columns: 1fr;
  }
  .ops-orders-search {
    align-items: stretch;
  }
  .data-gate-chips {
    justify-content: flex-start;
    max-width: none;
  }
  .gate-chip {
    white-space: normal;
  }
	  .ops-ads-switch {
	    overflow-x: auto;
	    flex-wrap: nowrap;
	    justify-content: flex-start;
	    padding-bottom: 2px;
	  }
	  .ops-ads-title-tools .ops-date-row,
	  .ops-ads-title-tools .ops-ads-switch {
	    grid-column: auto;
	  }
	  .ops-orders-tabs {
	    overflow: visible;
	    flex-wrap: wrap;
	  }
  .ops-orders-tabs button,
  .ops-orders-tabs span,
  .ops-orders-tabs strong,
  .ops-ads-switch button {
    flex: 0 0 auto;
  }
  .ops-orders-mini-stats,
  .ops-orders-small-grid,
  .ops-ads-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-ads-kpis .metric-tile strong {
    font-size: 24px;
  }
  .ops-ads-kpis .metric-tile {
    min-height: 116px;
  }
  .ops-sp-focus-head {
    flex-direction: column;
  }
  .ops-sp-focus-head select {
    width: 100%;
    max-width: none;
  }
	  .ops-date-row {
	    grid-template-columns: 1fr;
	  }
	  .ops-agent-hero {
	    min-height: 0;
	  }
	  .ops-agent-hero h1 {
	    font-size: 40px;
	  }
	  .ops-agent-hero-actions {
	    gap: 16px;
	    justify-items: start;
	  }
	  .ops-agent-hero-actions > div {
	    justify-content: flex-start;
	  }
	  .ops-agent-rec-metrics {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }
	  .ops-agent-rec-card.search {
	    grid-template-columns: 1fr;
	  }
	  .ops-agent-rec-card.search .ops-agent-actions {
	    grid-column: auto;
	  }
	  .ops-ads-table-wrap {
	    max-width: 100%;
	    overflow-x: auto;
	  }
  .ops-ads-table-wrap table {
    min-width: 760px;
  }
  .ops-product-hero {
    grid-template-columns: 1fr;
    border-radius: 24px;
    padding: 22px;
  }
  .ops-product-hero-meta {
    justify-self: stretch;
  }
  .ops-product-rail {
    position: static;
    height: auto;
    max-height: none;
  }
  .ops-product-list {
    max-height: 420px;
    align-content: start;
  }
  .ops-product-filter-actions {
    grid-template-columns: 1fr;
  }
  .ops-product-date-tools {
    justify-items: start;
  }
  .ops-product-date-tools > div {
    justify-content: flex-start;
  }
  .ops-product-date-tools label input {
    width: 100%;
  }
  .ops-sparkline {
    min-height: 128px;
  }
  .ops-bar-chart {
    overflow-x: auto;
  }
  .ops-bar-day {
    flex: 0 0 38px;
  }
  .ops-command-hero {
    padding: 22px;
    border-radius: 24px;
  }
  .ops-command-meta,
  .ops-agent-control,
  .ops-inbox-actions {
    align-content: start;
  }
  .ops-inventory-action,
  .ops-agent-alert,
  .ops-inbox-message {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .ops-inventory-action {
    gap: 10px;
  }
  .ops-risk-meter {
    width: 100%;
  }
  .ops-agent-actions,
  .ops-inbox-message-actions,
  .ops-inbox-detail-actions {
    justify-content: flex-start;
  }
  .ops-inbox-dot {
    width: 100%;
    height: 6px;
  }
  .ops-inbox-detail {
    position: static;
  }
  .ops-inventory-table-wrap,
  .ops-inventory-table {
    max-width: 100%;
  }
}

@media (min-width: 901px) {
  .ops-product-list {
    align-content: start;
  }
}

.product-thumb img,
.ops-product-thumb img,
.ops-product-detail-image img,
.ops-order-thumb img,
.ops-inventory-thumb img,
.ops-inventory-detail-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.product-thumb-art svg,
.ops-order-thumb svg,
.ops-inventory-thumb svg,
.ops-inventory-detail-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ops-order-thumb {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f3f8ff);
}
.ops-order-thumb-pending {
  color: #92400e;
  background: #fff7ed;
  font-size: 14px;
  font-weight: 950;
}

/* Customer order dashboard reference redesign. */
.orders-ref-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7fbff 0%, #f2f7fc 52%, #f7fbff 100%);
}
.orders-ref-layout {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  min-height: 100vh;
}
.orders-ref-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-right: 1px solid #e8eef7;
  background: rgba(255, 255, 255, .96);
  box-shadow: 18px 0 48px rgba(15, 23, 42, .035);
  padding: 22px 10px;
}
.orders-ref-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 22px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
}
.orders-ref-brand span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1769f4, #2446ff);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .25);
  position: relative;
}
.orders-ref-brand span::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 999px;
}
.orders-ref-sidebar nav {
  display: grid;
  gap: 6px;
  align-content: start;
}
.orders-ref-sidebar button {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5f7190;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 780;
  text-align: left;
  cursor: pointer;
}
.orders-ref-sidebar button.child {
  padding-left: 42px;
  grid-template-columns: 0 1fr auto;
}
.orders-ref-sidebar button.active {
  color: #1455d9;
  background: #eaf2ff;
  box-shadow: inset 3px 0 0 #2467ff;
}
.orders-ref-sidebar button b {
  color: #7b8aa4;
  font-size: 12px;
}
.orders-ref-sidebar i {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: #6b7c99;
  border: 1px solid #d8e4f5;
  border-radius: 6px;
  background: #fff;
}
.orders-ref-sidebar i::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
}
.orders-ref-team {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-top: 14px;
  border: 1px solid #dfe9f8;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  appearance: none;
}
.orders-ref-team > span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
}
.orders-ref-team strong {
  display: block;
  color: #102040;
  font-size: 13px;
  font-weight: 900;
}
.orders-ref-team small {
  color: #6b7c99;
  font-size: 12px;
  font-weight: 700;
}
.orders-ref-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 30px 36px 58px;
}
.orders-ref-page .ops-orders-titlebar {
  margin-bottom: 24px;
}
.orders-ref-page .ops-orders-titlebar h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #101a2f;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 920;
}
.ops-title-star {
  color: #7b8aa4;
  font-size: 19px;
  font-weight: 800;
}
.ops-order-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 9px;
  color: #536984;
  font-size: 13px;
  font-weight: 760;
}
.ops-order-meta-line.muted {
  margin-top: 6px;
  color: #64758d;
}
.orders-ref-page .ops-refresh {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  background: linear-gradient(180deg, #2467ff, #1554e8);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .23);
}
.orders-ref-page .ops-orders-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}
.orders-ref-page .ops-orders-tabs button {
  min-width: 76px;
  min-height: 46px;
  border-radius: 0;
  background: #f2f6fb;
  color: #62738c;
  box-shadow: none;
}
.orders-ref-page .ops-orders-tabs button:first-child {
  border-radius: 14px 0 0 14px;
}
.orders-ref-page .ops-orders-tabs button:nth-child(5) {
  border-radius: 0 14px 14px 0;
}
.orders-ref-page .ops-orders-tabs button.active {
  color: #fff;
  background: #2467ff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}
.orders-ref-page .ops-orders-store-select {
  min-height: 46px;
  min-width: 190px;
  margin-left: 18px;
  border: 1px solid #dce7f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}
.orders-ref-page .ops-orders-main-grid {
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 18px;
}
.orders-ref-page .ops-orders-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.orders-ref-page .ops-orders-kpi-grid .ops-kpi-card {
  min-height: 230px;
  align-content: start;
  border-radius: 8px;
  padding: 22px 20px;
  box-shadow: 0 18px 48px rgba(23, 43, 77, .06);
}
.orders-ref-page .ops-kpi-card strong {
  font-size: 26px;
}
.orders-ref-page .ops-kpi-card.amber strong {
  font-size: 23px;
  white-space: nowrap;
}
.orders-ref-page .ops-kpi-card .ops-sparkline {
  min-height: 72px;
  height: 72px;
}
.orders-ref-page .ops-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
}
.orders-ref-page .ops-table-card,
.orders-ref-page .ops-side-chart,
.orders-ref-page .ops-note-card,
.orders-ref-page .ops-compare-card,
.orders-ref-page .ops-order-workbench {
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 20px 44px rgba(23, 43, 77, .06);
}
.orders-ref-page .ops-side-chart {
  min-height: 214px;
}
.orders-ref-page .ops-note-card textarea,
.orders-ref-page .ops-note-card .ops-save {
  display: none;
}
.orders-ref-page .ops-note-card {
  min-height: 144px;
}
.orders-ref-page .ops-note-card p {
  min-height: 74px;
  display: flex;
  align-items: center;
}
.orders-ref-page .ops-orders-small-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.orders-ref-page .ops-compare-card {
  min-height: 120px;
  padding: 20px;
}
.orders-ref-page .ops-card-head {
  padding: 18px 20px;
}
.orders-ref-page .ops-card-head h2,
.orders-ref-page .ops-card-head h3 {
  font-size: 20px;
}
.orders-ref-page .ops-asin-table .asin-table-head,
.orders-ref-page .ops-asin-table .asin-table-row {
  grid-template-columns: minmax(300px, 1.35fr) minmax(95px, .45fr) minmax(110px, .48fr) minmax(110px, .48fr) minmax(90px, .4fr) minmax(124px, .48fr) minmax(82px, .36fr) minmax(82px, .38fr);
  min-width: 1120px;
}
.orders-ref-page .ops-asin-table .asin-table-row {
  min-height: 118px;
}
.orders-ref-page .ops-order-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
}
.orders-ref-page .ops-order-product-cell {
  grid-template-columns: 64px minmax(0, 1fr);
}
.orders-ref-page .ops-order-product-cell strong {
  color: #102040;
  font-size: 15px;
}
.orders-ref-page .ops-order-row-actions {
  gap: 8px;
}
.ops-review-order-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
}
.order-review-button.danger,
.link-button.danger,
.secondary.danger {
  color: #be123c;
}
.ops-order-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.orders-ref-page .order-detail-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.orders-ref-page .ops-order-line-table > div,
.orders-ref-page .ops-order-line-table > .ops-order-line-row {
  grid-template-columns: minmax(168px, .9fr) minmax(230px, 1.28fr) minmax(100px, .56fr) .38fr .48fr .58fr minmax(110px, .56fr);
}
.orders-ref-page .ops-order-line-table > .ops-order-line-row {
  cursor: default;
}
.orders-ref-page .ops-order-line-table > .ops-order-line-row:hover {
  background: #f7fbff;
}
.ops-order-line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ops-order-line-actions .link-button {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}
.orders-ref-page .ops-replenish-card,
.orders-ref-page .ops-data-coverage-card {
  display: none;
}
@media (max-width: 1180px) {
  .orders-ref-layout {
    grid-template-columns: 1fr;
  }
  .orders-ref-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #e8eef7;
  }
  .orders-ref-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .orders-ref-team {
    display: none;
  }
  .orders-ref-page .ops-orders-main-grid,
  .orders-ref-page .ops-orders-kpi-grid,
  .orders-ref-page .order-detail-stats {
    grid-template-columns: 1fr;
  }
}
.ops-inventory-ops-hero {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 24px 26px;
  border: 1px solid rgba(134, 170, 235, .34);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #15365f 0%, #275fa8 58%, #236db7 100%);
  box-shadow: 0 18px 44px rgba(19, 39, 78, .10);
}
.ops-inventory-ops-hero h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: 0;
}
.ops-inventory-ops-hero p {
  margin: 0;
  color: rgba(239, 246, 255, .88);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 760;
}
.ops-inventory-focus .ops-focus-shell {
  width: min(100%, 2048px);
  padding: 20px 18px 36px;
}
.ops-inventory-ops-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, auto) minmax(260px, auto) minmax(320px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(30, 64, 175, .06);
}
.ops-inventory-store-pills,
.ops-inventory-risk-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ops-inventory-store-pills span,
.ops-inventory-risk-pills span,
.ops-inventory-ops-toolbar label {
  width: 100%;
  color: #607493;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}
.ops-inventory-store-pills button,
.ops-inventory-risk-pills button {
  min-height: 38px;
  border: 1px solid #cfe0fb;
  border-radius: 999px;
  padding: 0 14px;
  color: #334c72;
  background: #f8fbff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.ops-inventory-store-pills button.active,
.ops-inventory-risk-pills button.active,
.ops-inventory-store-pills button:hover,
.ops-inventory-risk-pills button:hover {
  color: #fff;
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: 0 10px 20px rgba(37, 99, 235, .16);
}
.ops-inventory-ops-toolbar input {
  width: 100%;
  height: 42px;
  border: 1px solid #cfe0fb;
  border-radius: 12px;
  padding: 0 14px;
  color: #102040;
  background: #fff;
  font: inherit;
  font-size: 14px;
  outline: 0;
}
.ops-inventory-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.ops-inventory-summary-grid article {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 28px rgba(30, 64, 175, .05);
}
.ops-inventory-summary-grid span,
.ops-inventory-detail-grid span,
.ops-risk-compact span {
  color: #647799;
  font-size: 12px;
  font-weight: 900;
}
.ops-inventory-summary-grid strong {
  color: #102040;
  font-size: 29px;
  line-height: 1;
  font-weight: 950;
}
.ops-inventory-summary-grid small {
  color: #607493;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}
.ops-inventory-ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(304px, 346px);
  gap: 16px;
  align-items: start;
}
.ops-inventory-table-card,
.ops-inventory-detail-card article {
  min-width: 0;
  border: 1px solid #dbe7f8;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 34px rgba(30, 64, 175, .06);
  overflow: hidden;
}
.ops-inventory-table-card .ops-card-head {
  padding: 18px 20px;
  border-bottom: 1px solid #edf2fa;
}
.ops-inventory-table-card .ops-card-head h2 {
  margin: 0;
  color: #102040;
  font-size: 20px;
}
.ops-inventory-table-card .ops-card-head p,
.ops-inventory-table-card .ops-card-head span {
  margin: 6px 0 0;
  color: #607493;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}
.ops-inventory-master-table {
  max-width: 100%;
  overflow: auto;
}
.ops-inventory-master-head,
.ops-inventory-master-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.32fr) 66px 52px 70px 74px 74px 54px 70px 74px 72px 78px 84px 80px 56px;
  gap: 6px;
  align-items: center;
  min-width: 1236px;
}
.ops-inventory-master-head {
  padding: 12px 14px;
  color: #8393ad;
  background: #f8fbff;
  border-bottom: 1px solid #edf2fa;
  font-size: 11.5px;
  font-weight: 950;
}
.ops-inventory-master-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf2fa;
  padding: 12px 14px;
  color: #263a5a;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.ops-inventory-master-row:nth-child(even) {
  background: #fbfdff;
}
.ops-inventory-master-row.active,
.ops-inventory-master-row:hover {
  background: #eef5ff;
}
.ops-inventory-master-row span {
  min-width: 0;
  font-size: 12.5px;
  font-weight: 760;
}
.ops-inventory-master-row em {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 7px;
  color: #3157b8;
  background: #edf4ff;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 950;
}
.ops-inventory-master-row b.ok {
  color: #0b9568;
}
.ops-inventory-master-row b.warn {
  color: #b45309;
}
.ops-inventory-master-row i,
.ops-inventory-selected-head em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}
.ops-inventory-master-row i.critical,
.ops-inventory-selected-head em.critical {
  color: #be3144;
  background: #fff1f2;
}
.ops-inventory-master-row i.warning,
.ops-inventory-selected-head em.warning {
  color: #a16207;
  background: #fff8e1;
}
.ops-inventory-master-row i.normal,
.ops-inventory-selected-head em.normal {
  color: #0b9568;
  background: #e9fbf4;
}
.ops-inventory-product-cell {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.ops-inventory-product-cell strong {
  min-width: 0;
  color: #102040;
  font-size: 13px;
  font-weight: 950;
}
.ops-inventory-product-cell small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #607493;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ops-inventory-thumb,
.ops-inventory-detail-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #edf4ff);
}
.ops-inventory-thumb {
  width: 46px;
  height: 46px;
}
.ops-inventory-detail-card {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.ops-inventory-detail-card article {
  padding: 18px;
  border: 1px solid #dfe9f6;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 38px rgba(35, 74, 125, .08);
}
.ops-inventory-detail-card h3 {
  margin: 0 0 10px;
  color: #102040;
  font-size: 17px;
}
.ops-inventory-chart-note {
  margin: -2px 0 12px;
  color: #607493;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 750;
}
.ops-inventory-selected-head {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.ops-inventory-detail-thumb {
  width: 82px;
  height: 82px;
  border-radius: 14px;
}
.ops-inventory-selected-head h2 {
  margin: 0;
  color: #102040;
  font-size: 21px;
}
.ops-inventory-selected-head p,
.ops-inventory-selected-head span {
  display: block;
  margin: 5px 0 0;
  color: #607493;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 700;
}
.ops-inventory-selected-head em {
  margin-top: 8px;
}
.ops-inventory-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.ops-inventory-detail-grid div,
.ops-risk-compact div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #d8e4f5;
  border-radius: 15px;
  background: #fbfdff;
}
.ops-inventory-detail-grid span,
.ops-risk-compact span {
  color: #6d7f99;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}
.ops-inventory-detail-grid strong,
.ops-risk-compact strong {
  color: #102040;
  font-size: 19px;
  line-height: 1;
  font-weight: 950;
}
.ops-inventory-action-note {
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid #d9f4ea;
  border-radius: 14px;
  color: #0f513f;
  background: #effaf5;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 800;
}
.ops-inventory-source-list {
  display: grid;
  gap: 7px;
}
.ops-inventory-source-card {
  margin-top: 18px;
  padding: 0 18px 18px;
  border-top: 1px solid #e7eef8;
}
.ops-inventory-source-card .ops-card-head {
  padding: 18px 0 14px;
}
.ops-inventory-source-card .ops-card-head h3 {
  margin: 0;
  color: #102040;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 920;
}
.ops-inventory-source-card .ops-card-head p {
  margin: 6px 0 0;
  color: #607493;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 760;
}
.ops-inventory-source-card .ops-inventory-source-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ops-inventory-source-list div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  background: #fbfdff;
}
.ops-inventory-source-list strong {
  color: #102040;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 900;
}
.ops-inventory-source-list span {
  color: #3157b8;
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .02em;
}
.ops-inventory-source-list small {
  color: #607493;
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 700;
}
.ops-risk-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ops-inventory-trend-card {
  min-height: 336px;
}
.ops-inventory-risk-card {
  min-height: 164px;
}
.ops-inventory-trend-card .ops-empty-chart {
  min-height: 240px;
}
.inventory-dual-axis-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px;
  color: #607493;
  font-size: 12px;
  line-height: 1;
  font-weight: 820;
}
.inventory-dual-axis-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.inventory-dual-axis-legend i {
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: #2f49ff;
}
.inventory-dual-axis-legend i.sales {
  background: #2f49ff;
}
.inventory-dual-axis-legend i.stock {
  background: #10b981;
}
.ops-chart-svg.inventory-dual-axis .ops-chart-axis.y.right {
  text-anchor: start;
}
.ops-chart-svg.inventory-dual-axis .inventory-sales-line,
.ops-chart-svg.inventory-dual-axis .inventory-sales-point {
  stroke: #2f49ff;
  fill: #2f49ff;
}
.ops-chart-svg.inventory-dual-axis .inventory-stock-line,
.ops-chart-svg.inventory-dual-axis .inventory-stock-point {
  stroke: #10b981;
  fill: #10b981;
}
.ops-chart-svg.inventory-dual-axis .inventory-stock-line {
  stroke-width: 2.05;
}
.ops-chart-svg.inventory-dual-axis .inventory-sales-line {
  stroke-width: 1.8;
}

@media (max-width: 1100px) {
  .ops-inventory-ops-toolbar,
  .ops-inventory-ops-layout {
    grid-template-columns: 1fr;
  }
  .ops-inventory-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-inventory-detail-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .ops-inventory-summary-grid {
    grid-template-columns: 1fr;
  }
  .ops-inventory-ops-hero {
    padding: 20px;
  }
  .ops-inventory-selected-head {
    grid-template-columns: 1fr;
  }
}

/* Product management audit and edit screens aligned to the customer reference. */
.pm-audit-shell {
  --pm-bg: #f5f9ff;
  --pm-panel: rgba(255, 255, 255, .94);
  --pm-ink: #0f2444;
  --pm-muted: #7384a0;
  --pm-line: #dce8f7;
  --pm-blue: #1f66ff;
  --pm-green: #16a37a;
  --pm-orange: #e88b1d;
  --pm-red: #ee4f4a;
  --pm-purple: #7656ec;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  color: var(--pm-ink);
  background:
    radial-gradient(760px 360px at 82% 0%, rgba(72, 132, 255, .11), transparent 55%),
    linear-gradient(180deg, #f9fcff 0%, #eef5ff 100%);
}
.pm-audit-shell *,
.pm-audit-shell *::before,
.pm-audit-shell *::after {
  box-sizing: border-box;
}
.pm-audit-shell button,
.pm-audit-shell input,
.pm-audit-shell textarea,
.pm-audit-shell select {
  font: inherit;
}
.pm-side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px;
  border-right: 1px solid var(--pm-line);
  background: rgba(255, 255, 255, .93);
  box-shadow: 10px 0 32px rgba(31, 70, 130, .04);
}
.pm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  margin-bottom: 18px;
}
.pm-brand span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #0f75ff, #7aa9ff);
  box-shadow: 0 10px 20px rgba(31, 102, 255, .22);
  font-size: 12px;
  font-weight: 950;
}
.pm-brand strong {
  font-size: 19px;
  line-height: 1;
  font-weight: 920;
  letter-spacing: 0;
}
.pm-side nav {
  display: grid;
  gap: 4px;
}
.pm-side button {
  width: 100%;
  min-width: 0;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  color: #405572;
  background: transparent;
  text-align: left;
  font-weight: 760;
  cursor: pointer;
}
.pm-side button:hover {
  background: #f2f7ff;
}
.pm-side button.active {
  color: var(--pm-blue);
  background: linear-gradient(90deg, #eaf2ff, #f6fbff);
  box-shadow: inset 4px 0 0 var(--pm-blue);
}
.pm-side button i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #d6e4f7;
  border-radius: 8px;
  color: #506987;
  background: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
}
.pm-side button.active i {
  color: #fff;
  border-color: var(--pm-blue);
  background: var(--pm-blue);
}
.pm-side-footer {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--pm-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f7fbff);
}
.pm-side-footer strong {
  font-size: 14px;
}
.pm-side-footer span {
  color: #687d99;
  font-size: 13px;
  font-weight: 720;
}
.pm-audit-main {
  min-width: 0;
  padding: 0 28px 30px;
}
.pm-topbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(213, 227, 246, .86);
}
.pm-topbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7a8aa5;
  font-size: 14px;
  font-weight: 760;
}
.pm-topbar b {
  color: #263b5b;
}
.pm-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #526781;
  font-size: 14px;
  font-weight: 760;
}
.pm-top-actions button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #cfe0fb;
  border-radius: 10px;
  color: #1f66ff;
  background: #fff;
  font-weight: 850;
}
.pm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(640px, 820px);
  gap: 18px;
  align-items: center;
  padding: 22px 0 12px;
}
.pm-hero h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 31px;
  line-height: 1.16;
  letter-spacing: 0;
}
.pm-hero h1 button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: #1d66f1;
  background: #e9f1ff;
  font-size: 13px;
  font-weight: 850;
}
.pm-hero p {
  max-width: 850px;
  margin: 11px 0 0;
  color: #59708e;
  line-height: 1.6;
  font-weight: 740;
}
.pm-store-health {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1.06fr .78fr .72fr .72fr 1.02fr;
  overflow: hidden;
  border: 1px solid var(--pm-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .87);
  box-shadow: 0 18px 45px rgba(30, 70, 130, .08);
}
.pm-store-health > div {
  min-width: 0;
  padding: 16px 18px;
  border-left: 1px solid var(--pm-line);
}
.pm-store-health > div:first-child {
  border-left: 0;
}
.pm-store-health small {
  display: block;
  margin-bottom: 8px;
  color: #7a8ba5;
  font-size: 12px;
  font-weight: 850;
}
.pm-store-health strong {
  display: block;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 930;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-store-health span {
  display: block;
  margin-top: 5px;
  color: var(--pm-green);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 850;
}
.pm-store-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-store-switch select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  color: #102040;
  background: transparent;
  font-size: 18px;
  font-weight: 930;
}
.pm-stat-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.pm-mini-stat {
  min-width: 0;
  height: 108px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--pm-line);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(255, 255, 255, .8));
  box-shadow: 0 8px 22px rgba(30, 70, 130, .08);
}
.pm-mini-stat > span {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #eaf2ff;
}
.pm-mini-stat.purple > span { background: #f2eaff; }
.pm-mini-stat.orange > span { background: #fff3df; }
.pm-mini-stat.red > span { background: #fff0ee; }
.pm-mini-stat.green > span { background: #eafbf4; }
.pm-mini-stat small,
.pm-mini-stat em {
  display: block;
  color: #7485a0;
  font-size: 13px;
  font-style: normal;
  font-weight: 820;
}
.pm-mini-stat strong {
  display: block;
  overflow: hidden;
  margin: 5px 0;
  color: #102040;
  font-size: 25px;
  line-height: 1.05;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}
.pm-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.pm-flow-step {
  min-width: 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 1px solid var(--pm-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .87);
  box-shadow: 0 8px 22px rgba(30, 70, 130, .08);
}
.pm-flow-step b:first-child {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #1d66ff, #6ca2ff);
  font-weight: 920;
}
.pm-flow-step.current b:first-child { background: #7767ff; }
.pm-flow-step.done {
  border-color: #bee9dc;
  background: #f6fffb;
}
.pm-flow-step.done b:first-child { background: #18aa7b; }
.pm-flow-step strong {
  display: block;
  font-weight: 920;
}
.pm-flow-step span {
  display: block;
  color: #657894;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 720;
}
.pm-flow-step em {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 8px;
  color: #2467ea;
  background: #e9f1ff;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.pm-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pm-line);
  border-radius: 18px;
  background: var(--pm-panel);
  box-shadow: 0 18px 45px rgba(30, 70, 130, .08);
}
.pm-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(420px, 520px);
  gap: 14px;
  align-items: start;
}
.pm-section-head {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid #e5eef9;
}
.pm-section-head h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 930;
  letter-spacing: 0;
}
.pm-section-head span {
  color: #54709a;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}
.pm-tabs {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  border-bottom: 1px solid #eaf1fa;
  overflow-x: auto;
}
.pm-tabs button {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  color: #6f809a;
  background: transparent;
  font-weight: 850;
}
.pm-tabs button.active {
  color: var(--pm-blue);
}
.pm-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 3px;
  border-radius: 999px;
  background: var(--pm-blue);
}
.pm-filter-row {
  display: flex;
  gap: 7px;
  padding: 10px 16px;
  border-bottom: 1px solid #e8f0fa;
}
.pm-filter-row div,
.pm-filter-row button {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--pm-line);
  border-radius: 10px;
  color: #536984;
  background: #fff;
  font-weight: 800;
  white-space: nowrap;
}
.pm-filter-row div {
  flex: 1 1 280px;
  color: #98a6b7;
}
.pm-listing-list {
  display: grid;
}
.pm-listing-row {
  display: grid;
  grid-template-columns: 30px 56px minmax(208px, 1.48fr) minmax(96px, .66fr) 74px 88px 104px 90px;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #e8f0fa;
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.pm-listing-row.selected {
  margin: 10px;
  border: 1px solid #3e7dff;
  border-radius: 12px;
  background: linear-gradient(90deg, #f6faff, #fff);
  box-shadow: inset 0 0 0 1px #3e7dff;
}
.pm-listing-row:hover {
  background: #f8fbff;
}
.pm-radio {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #bdd0e8;
  border-radius: 50%;
  color: #fff;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}
.pm-listing-row.selected .pm-radio {
  border-color: var(--pm-blue);
  background: var(--pm-blue);
}
.pm-product-thumb,
.pm-detail-thumb,
.pm-edit-thumb,
.pm-preview-thumb {
  display: block;
  overflow: hidden;
  border: 1px solid #dbe7f8;
  border-radius: 10px;
  background: #f8fbff;
}
.pm-product-thumb {
  width: 52px;
  height: 52px;
}
.pm-detail-thumb,
.pm-edit-thumb {
  width: 72px;
  height: 72px;
}
.pm-preview-thumb {
  width: 96px;
  height: 96px;
  margin: 18px auto 12px;
}
.pm-product-thumb img,
.pm-detail-thumb img,
.pm-edit-thumb img,
.pm-preview-thumb img,
.pm-product-thumb svg,
.pm-detail-thumb svg,
.pm-edit-thumb svg,
.pm-preview-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.pm-listing-copy small,
.pm-listing-row div > small {
  display: block;
  color: #8091ab;
  font-size: 11px;
  font-weight: 850;
}
.pm-listing-copy strong,
.pm-listing-row div > strong {
  display: block;
  overflow: hidden;
  color: #102040;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-listing-copy p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: #365173;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 720;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.pm-row-tags {
  display: grid;
  gap: 5px;
  justify-items: end;
  align-content: center;
}
.pm-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
  font-weight: 920;
  white-space: nowrap;
}
.pm-status-badge.danger {
  color: #e73f38;
  border: 1px solid #ffcbc5;
  background: #fff0ef;
}
.pm-status-badge.warning {
  color: #b87312;
  border: 1px solid #ffdf9c;
  background: #fff5df;
}
.pm-status-badge.success {
  color: #0f9b6e;
  border: 1px solid #b8ead8;
  background: #eafbf4;
}
.pm-status-badge.draft {
  color: #2372f4;
  border: 1px solid #c6dcff;
  background: #eaf2ff;
}
.pm-status-badge.neutral {
  color: #536984;
  border: 1px solid #dce8f7;
  background: #f7fbff;
}
.pm-inline-badge {
  align-self: center;
}
.pm-product-detail-card {
  padding: 16px;
}
.pm-product-top {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.pm-product-top h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.pm-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}
.pm-detail-meta span {
  min-width: 0;
  color: #72839c;
  font-size: 12px;
  font-weight: 720;
}
.pm-detail-meta b {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #19304f;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-status-live {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
}
.pm-status-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a37a;
  box-shadow: 0 0 0 3px rgba(22, 163, 122, .12);
}
.pm-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid #e1eafa;
  border-radius: 13px;
}
.pm-detail-grid div {
  min-height: 64px;
  padding: 12px;
  border-right: 1px solid #e1eafa;
  border-bottom: 1px solid #e1eafa;
}
.pm-detail-grid div:nth-child(4n) {
  border-right: 0;
}
.pm-detail-grid div:nth-child(n+5) {
  border-bottom: 0;
}
.pm-detail-grid span,
.pm-current-title span {
  display: block;
  color: #7890ae;
  font-size: 12px;
  font-weight: 850;
}
.pm-detail-grid b {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-current-title {
  margin-top: 16px;
  color: #45617e;
}
.pm-current-title p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.pm-suggestion-box {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.pm-suggestion-box > div:first-child {
  display: flex;
  justify-content: space-between;
  color: #405675;
  font-size: 13px;
  font-weight: 850;
}
.pm-suggestion-box article {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e1eafa;
  border-radius: 11px;
  background: #fbfdff;
}
.pm-suggestion-box article b,
.pm-suggestion-box article span {
  font-size: 12px;
}
.pm-suggestion-box article b {
  display: grid;
  gap: 4px;
}
.pm-suggestion-box article b small {
  color: #7b8da8;
  font-size: 11px;
  font-weight: 760;
}
.pm-suggestion-box article span {
  display: block;
  color: #243b5d;
  font-weight: 860;
}
.pm-suggestion-box article small {
  display: block;
  grid-column: 2 / 3;
  margin-top: -2px;
  color: #6f84a5;
  font-size: 11px;
  line-height: 1.5;
}
.pm-history-panel {
  margin-top: 16px;
}
.pm-history-list {
  display: grid;
  padding: 0 18px 16px;
}
.pm-history-list article {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(150px, .7fr) minmax(0, 1.9fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #e8f0fa;
}
.pm-history-list article:last-child {
  border-bottom: 0;
}
.pm-history-list article div {
  display: grid;
  gap: 4px;
}
.pm-history-list article small,
.pm-history-list article span {
  color: #6f84a5;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 750;
}
.pm-history-list article strong,
.pm-history-list article b {
  color: #1c3557;
  font-size: 13px;
  font-weight: 900;
}
.pm-risk-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #ffcac5;
  border-radius: 11px;
  color: #ec4c45;
  background: #fff6f5;
  font-size: 13px;
  font-weight: 760;
}
.pm-risk-note.pm-risk-note-ok {
  border-color: #b8ead8;
  color: #0f9b6e;
  background: #effcf6;
}
.pm-risk-note span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pm-detail-history {
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid #e1eafa;
  border-radius: 12px;
  background: #fbfdff;
}
.pm-detail-history span {
  display: block;
  color: #7890ae;
  font-size: 12px;
  font-weight: 850;
}
.pm-detail-history p {
  margin: 6px 0 0;
  color: #506984;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 760;
}
.pm-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.pm-detail-actions button,
.pm-edit-actions button {
  height: 36px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--pm-line);
  border-radius: 10px;
  color: #526984;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}
.pm-detail-actions .primary,
.pm-edit-actions .primary {
  color: #fff;
  border-color: var(--pm-blue);
  background: linear-gradient(180deg, #2d73ff, #0d59e6);
  box-shadow: 0 10px 20px rgba(31, 102, 255, .22);
}
.pm-rules-card {
  margin-top: 16px;
}
.pm-draft-queue {
  margin-top: 16px;
}
.pm-legacy-draft-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.pm-legacy-draft-list .item {
  margin: 0;
}
.pm-rule-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}
.pm-rule-list div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2ebf8;
  border-radius: 12px;
  background: #fff;
}
.pm-rule-list div > span:last-child {
  min-width: 0;
  color: #60748f;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 750;
}

.pm-edit-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(380px, 470px);
  gap: 14px;
  align-items: center;
  margin: 12px 0;
  padding: 18px 20px;
}
.pm-edit-title-block h1 {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: #16294a;
  font-size: 24px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.pm-edit-title-block > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  color: #637892;
  font-size: 12px;
  font-weight: 760;
}
.pm-edit-title-block b {
  color: #182d4c;
}
.pm-edit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.pm-edit-actions small {
  width: 100%;
  color: #70849f;
  font-size: 12px;
  text-align: right;
  font-weight: 720;
}
.pm-edit-actions button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}
.pm-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 16px;
  align-items: start;
}
.pm-editor-card {
  padding: 0;
}
.pm-edit-tabs {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 16px;
  overflow-x: auto;
  border-bottom: 1px solid #e3edf9;
}
.pm-edit-tabs button {
  position: relative;
  flex: 0 0 auto;
  height: 50px;
  border: 0;
  color: #5d718d;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
}
.pm-edit-tabs .active {
  color: var(--pm-blue);
}
.pm-edit-tabs .active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--pm-blue);
}
.pm-form-section {
  padding: 16px 18px;
  border-bottom: 1px solid #e9f0fa;
}
.pm-form-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.25;
  color: #1c2e4d;
}
.pm-form-section h3 span {
  color: #8b9ab0;
  font-size: 12px;
  font-weight: 760;
}
.pm-identity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e2ebf8;
  border-radius: 10px;
}
.pm-identity-grid label {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid #e2ebf8;
}
.pm-identity-grid label:last-child {
  border-right: 0;
}
.pm-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pm-field-grid label.wide {
  grid-column: 1 / -1;
}
.pm-form-section label {
  display: block;
  min-width: 0;
}
.pm-form-section label span {
  display: block;
  margin-bottom: 8px;
  color: #546b88;
  font-size: 12px;
  font-weight: 900;
}
.pm-form-section input,
.pm-form-section textarea,
.pm-form-section select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #dce7f6;
  border-radius: 10px;
  color: #152a49;
  background: #fff;
  outline: none;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 760;
}
.pm-form-section input[readonly] {
  color: #6b7f9c;
  background: #f7fbff;
}
.pm-form-section textarea {
  min-height: 92px;
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}
.pm-media-form-section .pm-media-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 12px;
  align-items: center;
}
.pm-media-thumbs {
  display: grid;
  grid-template-columns: 88px repeat(3, 64px) 72px;
  gap: 8px;
  align-items: center;
}
.pm-media-thumbs button {
  width: 100%;
  height: 78px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px dashed #cfe0fb;
  border-radius: 12px;
  color: #1f66ff;
  background: #fff;
  font-weight: 860;
}
.pm-media-thumbs button small {
  color: #6f809a;
  font-size: 11px;
  font-weight: 760;
}
.pm-media-thumb {
  display: block;
  overflow: hidden;
  width: 64px;
  height: 78px;
  border: 1px solid #dbe7f8;
  border-radius: 10px;
  background: #f8fbff;
}
.pm-media-thumb img,
.pm-media-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.pm-bullets-grid {
  display: grid;
  gap: 10px;
}
.pm-bullets-grid textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid #dce7f6;
  border-radius: 10px;
  color: #152a49;
  background: #fff;
  resize: vertical;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 760;
}
.pm-info-strip {
  min-height: 52px;
  display: flex;
  align-items: center;
  margin: 10px 18px 16px;
  padding: 12px 14px;
  border: 1px solid #cde0fb;
  border-radius: 12px;
  color: #527094;
  background: #edf5ff;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 760;
}
.pm-edit-right {
  display: grid;
  gap: 10px;
  align-content: start;
}
.pm-edit-right .pm-card {
  padding-bottom: 10px;
}
.pm-edit-right .pm-card > p {
  margin: 10px 18px 0;
  color: #60748f;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 740;
}
.pm-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin: 10px 16px;
  border: 1px solid #e1eafa;
  border-radius: 12px;
}
.pm-summary-grid div {
  min-height: 60px;
  padding: 10px;
  border-right: 1px solid #e1eafa;
}
.pm-summary-grid div:last-child {
  border-right: 0;
}
.pm-summary-grid span {
  display: block;
  color: #7890ae;
  font-size: 12px;
  font-weight: 850;
}
.pm-summary-grid b {
  display: block;
  margin-top: 7px;
  font-size: 16px;
  font-weight: 930;
}
.pm-preview-card {
  text-align: center;
}
.pm-preview-card strong {
  display: -webkit-box;
  margin: 0 16px 6px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.pm-preview-card > span {
  display: block;
  color: #637892;
  font-size: 13px;
  font-weight: 760;
}
.pm-change-preview-list {
  display: grid;
  gap: 8px;
  margin: 10px 16px 4px;
  padding: 0 0 0 16px;
  color: #405675;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 760;
}
.pm-change-preview-list li {
  margin-left: 2px;
}
.pm-change-preview-list li::marker {
  color: #1f66ff;
}
.pm-submit-dialog {
  max-width: 720px;
}
.pm-submit-confirm-list {
  margin: 12px 0 0;
  padding-right: 14px;
}
.pm-current-content-card {
  text-align: left;
}
.pm-current-content-list {
  display: grid;
  gap: 12px;
  margin: 10px 16px 4px;
}
.pm-current-content-list div {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #e2ebf8;
  border-radius: 12px;
  background: #fbfdff;
}
.pm-current-content-list span {
  color: #7690af;
  font-size: 11px;
  font-weight: 900;
}
.pm-current-content-list p {
  margin: 0;
  color: #183050;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 720;
}
.pm-rule-hints {
  display: grid;
  gap: 9px;
  margin: 10px 16px 0;
  padding: 0;
  list-style: none;
  color: #344f70;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 760;
}
.pm-rule-hints li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-draft-mini-list {
  display: grid;
  gap: 8px;
  padding: 10px 16px 0;
}
.pm-draft-mini-list div {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #e1eafa;
  border-radius: 11px;
  background: #fbfdff;
}
.pm-draft-mini-list span {
  color: #60748f;
  font-size: 12px;
  font-weight: 760;
}

@media (max-width: 1120px) {
  .pm-audit-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .pm-hero {
    grid-template-columns: 1fr;
  }
  .pm-store-health {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pm-stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pm-dashboard-grid,
  .pm-edit-grid {
    grid-template-columns: 1fr;
  }
  .pm-product-detail-card,
  .pm-edit-right {
    display: none;
  }
}
@media (max-width: 900px) {
  .pm-audit-shell {
    grid-template-columns: 1fr;
  }
  .pm-side {
    position: static;
    height: auto;
  }
  .pm-side nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pm-audit-main {
    padding: 0 14px 22px;
  }
  .pm-store-health,
  .pm-stat-row,
  .pm-workflow,
  .pm-rule-list,
  .pm-edit-head,
  .pm-identity-grid,
  .pm-field-grid,
  .pm-media-form-section .pm-media-row {
    grid-template-columns: 1fr;
  }
  .pm-media-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pm-listing-row {
    grid-template-columns: 24px 52px minmax(0, 1fr);
  }
  .pm-listing-row > div:not(.pm-listing-copy),
  .pm-row-tags {
    grid-column: 3;
    justify-items: start;
  }
  .pm-history-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .pm-edit-actions {
    justify-content: flex-start;
  }
  .pm-edit-actions small {
    text-align: left;
  }
}

/* 2026-05-25 design fidelity pass: order dashboard + product audit console */
.orders-ref-page {
  background:
    radial-gradient(680px 340px at 78% 3%, rgba(82, 142, 255, .14), transparent 58%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color: #10203f;
}
.orders-ref-layout {
  grid-template-columns: 196px minmax(0, 1fr);
}
.orders-ref-sidebar {
  padding: 22px 12px;
  border-right-color: #e6eef8;
  background: rgba(255, 255, 255, .94);
}
.orders-ref-brand {
  height: 38px;
  padding: 0 8px 20px;
  gap: 12px;
  font-size: 18px;
}
.orders-ref-brand span {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.orders-ref-sidebar nav {
  gap: 5px;
}
.orders-ref-sidebar button {
  min-height: 43px;
  border-radius: 10px;
  color: #405572;
  font-size: 14px;
  font-weight: 760;
}
.orders-ref-sidebar button.parent {
  margin-top: 4px;
}
.orders-ref-sidebar button.child {
  min-height: 40px;
  padding-left: 48px;
}
.orders-ref-sidebar button.active {
  color: #145cff;
  background: linear-gradient(90deg, #eaf2ff 0%, #f7fbff 100%);
  box-shadow: inset 4px 0 0 #145cff;
}
.orders-ref-sidebar i {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border-color: #d7e5f8;
}
.orders-ref-team {
  height: 62px;
  border-radius: 12px;
}
.orders-ref-main {
  padding: 28px 28px 22px 34px;
}
.orders-ref-page .ops-orders-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 22px;
}
.orders-ref-page .ops-orders-titlebar h1 {
  margin: 0;
  font-size: 31px;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.orders-ref-page .ops-order-meta-line {
  gap: 18px;
  margin-top: 10px;
  color: #5f7190;
  font-size: 13px;
  font-weight: 760;
}
.orders-ref-page .ops-order-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.orders-ref-page .ops-order-meta-line span::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid #7f91ab;
  border-radius: 4px;
}
.orders-ref-page .ops-order-meta-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 8px 0 0;
  color: #425b80;
  font-size: 13px;
  font-weight: 820;
}
.orders-ref-page .ops-order-meta-subline span {
  display: inline-flex;
  align-items: center;
}
.orders-ref-page .ops-order-meta-line .sync-ok::before {
  border-radius: 50%;
  border-color: #16a0b5;
  background: radial-gradient(circle at center, #16a0b5 0 35%, transparent 38%);
}
.orders-ref-page .ops-order-meta-line .ops-orange::before {
  border-radius: 50%;
  border-color: #ff7a1a;
  background: radial-gradient(circle at center, #ff7a1a 0 34%, transparent 38%);
}
.orders-ref-page .ops-refresh {
  min-width: 112px;
  min-height: 46px;
  border-radius: 9px;
  padding: 0 18px;
  font-weight: 900;
}
.orders-ref-page .ops-orders-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 0;
  overflow-x: auto;
}
.orders-ref-page .ops-orders-filter-stack {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 196px;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.orders-ref-page .ops-orders-filter-row {
  display: contents;
}
.orders-ref-page .ops-orders-tabs button {
  min-width: 84px;
  min-height: 46px;
  border: 1px solid #dce6f5;
  color: #576b8d;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 18px rgba(148, 163, 184, .08);
}
.orders-ref-page .ops-orders-tabs button.active {
  color: #fff;
  background: linear-gradient(180deg, #2a72ff, #0f58e9);
  border-color: transparent;
  box-shadow: 0 16px 28px rgba(37, 99, 235, .24);
}
.orders-ref-page .ops-orders-store-select {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto minmax(124px, 1fr);
  align-items: center;
  min-width: 182px;
  min-height: 46px;
  padding: 0 16px 0 14px;
  gap: 10px;
  border: 1px solid #dce6f5;
  border-radius: 11px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 24px rgba(148, 163, 184, .10);
}
.orders-ref-page .ops-orders-date-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 10px 0 12px;
  border: 1px solid #dce6f5;
  border-radius: 11px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 24px rgba(148, 163, 184, .10);
}
.orders-ref-page .ops-orders-filter-row > .ops-orders-date-range {
  grid-column: 2;
  width: 100%;
  min-width: 0;
}
.orders-ref-page .ops-orders-filter-row > .ops-orders-store-select {
  grid-column: 3;
  width: 100%;
  min-width: 0;
  margin-left: 0;
}
.orders-ref-page .ops-orders-date-range input {
  width: 138px;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d7e4f6;
  border-radius: 8px;
  color: #102040;
  background: #fff;
  font-size: 13px;
  font-weight: 760;
}
.orders-ref-page .ops-orders-date-range span {
  color: #7184a2;
  font-size: 13px;
  font-weight: 820;
}
.orders-ref-page .ops-orders-date-range button {
  min-width: 68px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
}
.orders-ref-page .ops-orders-store-select::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b7c95;
  border-bottom: 2px solid #6b7c95;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.orders-ref-page .ops-orders-store-select strong {
  min-height: 0;
  padding: 0;
  color: #667995;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 820;
}
.orders-ref-page .ops-orders-store-select select {
  width: 100%;
  min-width: 0;
  padding: 0 22px 0 0;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  color: #102040;
  background: transparent;
  font-size: 14px;
  font-weight: 880;
  text-overflow: ellipsis;
}
.orders-ref-page .ops-orders-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}
.orders-ref-page .ops-orders-main-grid > .ops-orders-filter-stack {
  grid-column: 1 / -1;
}
.orders-ref-page .ops-orders-main-column {
  display: grid;
  gap: 18px;
}
.orders-ref-page .ops-orders-insight-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(188px, .8fr));
  gap: 12px;
  align-items: stretch;
}
.orders-ref-page .ops-orders-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.orders-ref-page .ops-orders-kpi-grid .ops-kpi-card {
  height: 230px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  border-radius: 14px;
  padding: 26px 20px 24px;
  box-shadow: 0 14px 36px rgba(35, 74, 125, .08);
}
.orders-ref-page .ops-kpi-card.magenta { background: linear-gradient(145deg, #fff, #fff1f7); }
.orders-ref-page .ops-kpi-card.amber { background: linear-gradient(145deg, #fff, #fff7ea); }
.orders-ref-page .ops-kpi-card.green { background: linear-gradient(145deg, #fff, #edfff6); }
.orders-ref-page .ops-kpi-card.purple { background: linear-gradient(145deg, #fff, #f7f0ff); }
.ops-kpi-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #73829a;
  font-size: 14px;
  font-weight: 900;
}
.ops-kpi-card-top span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.ops-kpi-card-top i {
  display: inline-grid;
  width: 15px;
  height: 15px;
  margin-left: 3px;
  place-items: center;
  border: 1px solid #aab8cb;
  border-radius: 50%;
  color: #7c8aa0;
  font-size: 10px;
  font-style: normal;
}
.orders-ref-page .ops-kpi-card .ops-kpi-card-body {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 72px;
}
.orders-ref-page .ops-kpi-card strong {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.orders-ref-page .ops-kpi-card.amber strong {
  font-size: 26px;
}
.orders-ref-page .ops-kpi-card small {
  line-height: 1.55;
}
.orders-ref-page .ops-kpi-card em {
  color: #64738c;
  font-size: 14px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.45;
}
.orders-ref-page .ops-kpi-icon {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0;
  background: rgba(255,255,255,.75);
  box-shadow: inset 0 -7px 18px rgba(37, 99, 235, .12);
}
.orders-ref-page .ops-kpi-icon::before {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}
.orders-ref-page .ops-kpi-card.magenta .ops-kpi-icon {
  color: #d91f5c;
  background: #ffe7f0;
}
.orders-ref-page .ops-kpi-card.magenta .ops-kpi-icon::before {
  content: "$";
  background: #e91e63;
}
.orders-ref-page .ops-kpi-card.amber .ops-kpi-icon {
  color: #d36b0c;
  background: #fff0db;
}
.orders-ref-page .ops-kpi-card.amber .ops-kpi-icon::before {
  content: "";
  width: 22px;
  height: 18px;
  border-radius: 4px 4px 6px 6px;
  background:
    radial-gradient(circle at 6px 17px, #fff 0 2px, transparent 2.5px),
    radial-gradient(circle at 17px 17px, #fff 0 2px, transparent 2.5px),
    linear-gradient(#dd6b20, #dd6b20);
}
.orders-ref-page .ops-kpi-card.green .ops-kpi-icon {
  color: #047857;
  background: #dff8ed;
}
.orders-ref-page .ops-kpi-card.green .ops-kpi-icon::before {
  content: "";
  border-radius: 6px;
  background:
    linear-gradient(30deg, transparent 30%, rgba(255,255,255,.35) 31% 38%, transparent 39%),
    #059669;
  transform: rotate(45deg);
}
.orders-ref-page .ops-kpi-card.purple .ops-kpi-icon {
  color: #6d3fe8;
  background: #efe7ff;
}
.orders-ref-page .ops-kpi-card.purple .ops-kpi-icon::before {
  content: "";
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 35%, #fff 0 2px, transparent 2.5px),
    linear-gradient(135deg, #8b5cf6, #6d3fe8);
  transform: rotate(-24deg);
}
.orders-ref-page .ops-orders-method-note {
  display: none;
}
.orders-ref-page .ops-orders-side-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
  padding-top: 0;
}
.orders-ref-page .ops-orders-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(322px, 356px);
  gap: 18px;
  align-items: start;
}
.orders-ref-page .ops-orders-lower-side {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}
.orders-ref-page .ops-orders-lower-side > .ops-note-card {
  min-height: 0;
}
.orders-ref-page .product-ads-compact,
.orders-ref-page .ops-orders-lower-side > .ops-note-card {
  display: flex;
  flex-direction: column;
}
.orders-ref-page .product-ads-compact {
  min-height: 266px;
}
.orders-ref-page .ops-orders-lower-side > .ops-note-card:last-child {
  min-height: 288px;
}
.orders-ref-page .ops-side-chart,
.orders-ref-page .ops-note-card,
.orders-ref-page .ops-compare-card,
.orders-ref-page .ops-table-card {
  border: 1px solid #dfe9f6;
  border-radius: 13px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 45px rgba(35,74,125,.08);
}
.orders-ref-page .ops-side-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.orders-ref-page .ops-side-chart h3,
.orders-ref-page .ops-note-card h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -.02em;
}
.orders-ref-page .ops-side-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.orders-ref-page .ops-side-chart-head span {
  color: #7487a4;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 720;
  text-align: right;
}
.orders-ref-page .ops-sales-trend-card {
  padding-bottom: 16px;
  min-height: 398px;
  height: 398px;
}
.orders-ref-page .ops-side-chart.ops-sales-trend-card .ops-chart-frame {
  display: flex;
  align-items: flex-start;
  min-height: 0;
  height: calc(100% - 30px);
}
.orders-ref-page .ops-side-chart.ops-sales-trend-card .ops-chart-svg {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.orders-ref-page .ops-volume-trend-card {
  min-height: 150px;
  padding-bottom: 8px;
}
.orders-ref-page .ops-side-chart .ops-chart-frame {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}
.orders-ref-page .ops-side-chart .ops-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}
.orders-ref-page .ops-side-chart .ops-chart-axis {
  fill: #8ea0bb;
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: .01em;
}
.orders-ref-page .ops-side-chart .ops-chart-line {
  stroke-width: 2.25;
}
.orders-ref-page .ops-side-chart .ops-chart-area {
  fill: rgba(47, 73, 255, .035);
}
.orders-ref-page .ops-side-chart .ops-chart-bar {
  filter: drop-shadow(0 8px 12px rgba(56, 199, 217, .14));
}
.orders-ref-page .ops-orders-insight-strip .ops-compare-card {
  min-height: 136px;
  padding: 16px 14px;
  overflow: hidden;
}
.orders-ref-page .ops-orders-insight-strip .ops-compare-card strong {
  margin: 8px 0 5px;
  font-size: 24px;
}
.orders-ref-page .ops-orders-insight-strip .ops-compare-card small {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}
.ops-compare-spark {
  margin-top: 10px;
  height: 36px;
}
.ops-compare-spark .ops-sparkline.mini {
  width: 100%;
  height: 36px;
  min-height: 36px;
}
.ops-compare-spark .ops-sparkline.mini .line {
  stroke-width: 2.3;
}
.orders-ref-page .ops-card-head {
  min-height: 54px;
  padding: 0 20px;
}
.orders-ref-page .ops-table-card > .ops-card-head {
  align-items: center;
  flex-wrap: wrap;
}
.orders-ref-page .ops-card-head h2,
.orders-ref-page .ops-card-head h3 {
  font-size: 20px;
  letter-spacing: -.02em;
}
.orders-ref-page .product-ads-compact {
  overflow: hidden;
}
.orders-ref-page .product-ads-compact .ops-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #e8eef8;
}
.orders-ref-page .product-ads-compact .ops-mini-row > div {
  min-width: 0;
}
.orders-ref-page .product-ads-compact .ops-mini-row strong {
  color: #183052;
  font-size: 15px;
  font-weight: 900;
}
.orders-ref-page .product-ads-compact .ops-mini-row span {
  color: #68809f;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 720;
}
.orders-ref-page .product-ads-compact .ops-mini-row b {
  color: #1f63ff;
  font-size: 14px;
  font-weight: 920;
}
.orders-asin-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  gap: 14px;
  color: #5f7190;
  font-weight: 820;
}
.orders-asin-window {
  flex: 1 1 240px;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.orders-export-top,
.orders-ad-detail,
.orders-memo-create {
  height: 40px;
  border: 1px solid #bdd3ff;
  border-radius: 12px;
  color: #0b5cff;
  background: #fff;
  font-weight: 900;
}
.orders-export-top {
  padding: 0 16px;
  flex: 0 0 auto;
}
.orders-ref-page .ops-asin-table .asin-table-head,
.orders-ref-page .ops-asin-table .asin-table-row {
  grid-template-columns: minmax(238px, 1.5fr) minmax(72px,.34fr) minmax(72px,.34fr) minmax(90px,.42fr) minmax(100px,.48fr) minmax(126px,.56fr) minmax(72px,.32fr) minmax(76px,.34fr);
  min-width: 0;
}
.orders-ref-page .ops-asin-table .asin-table-head {
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 880;
}
.orders-ref-page .ops-asin-table .asin-table-row {
  padding: 20px 20px;
  min-height: 124px;
}
.orders-ref-page .ops-order-product-cell {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.orders-ref-page .ops-order-thumb {
  width: 54px;
  height: 54px;
}
.orders-ref-page .ops-order-product-cell strong {
  font-size: 17px;
}
.orders-ref-page .ops-order-product-cell small {
  font-size: 13px;
}
.orders-ref-page .ops-order-product-cell .asin-compact-title {
  color: #5f7190;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.orders-ref-page .ops-order-row-actions {
  gap: 12px;
  margin-top: 10px;
}
.orders-ref-page .ops-order-row-actions .link-button {
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 900;
}
.orders-ref-page .ops-asin-table .asin-table-row > span,
.orders-ref-page .ops-asin-table .asin-table-row > b,
.orders-ref-page .ops-asin-table .asin-table-row > em {
  color: #102040;
  font-size: 18px;
  font-weight: 900;
}
.orders-ref-page .ops-asin-table .asin-table-row > span small,
.orders-ref-page .ops-asin-table .asin-table-row > b small,
.orders-ref-page .ops-asin-table .asin-table-row > em small {
  display: block;
  margin-top: 4px;
  color: #7a8da8;
  font-size: 13px;
  font-weight: 760;
}
.orders-ref-page .ops-asin-table .ops-sparkline.mini {
  width: 124px;
  min-height: 34px;
  height: 34px;
}
.orders-ref-page .ops-asin-table .ops-sparkline.mini .line {
  stroke-width: 2.15;
}
.orders-ref-page .ops-asin-table .asin-table-row > span.ok,
.orders-ref-page .ops-kpi-card small.ok {
  color: #0f9968;
}
.orders-ref-page .ops-asin-table .asin-table-row > span.bad,
.orders-ref-page .ops-kpi-card small.bad {
  color: #ef4444;
}
.orders-ref-page .ops-asin-table .asin-table-row > span.neutral,
.orders-ref-page .ops-kpi-card small.neutral {
  color: #64748b;
}
.orders-ref-page .ops-asin-table .ops-sparkline.mini {
  width: 124px;
  height: 34px;
  min-height: 34px;
}
.orders-ref-page .ops-asin-table .ops-sparkline.mini .line {
  stroke-width: 2.15;
}
.orders-ref-page .ops-asin-table .ops-sparkline.mini .area {
  fill: rgba(47, 73, 255, .055);
}
.orders-ref-page .ops-asin-table .ops-sparkline.orders-mini {
  display: block;
}
@media (max-width: 1540px) {
  .orders-ref-page .ops-orders-insight-strip {
    grid-template-columns: 1fr;
  }
  .orders-ref-page .ops-orders-lower-grid {
    grid-template-columns: 1fr;
  }
  .orders-ref-page .ops-orders-lower-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .orders-ref-page .ops-orders-filter-stack {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .orders-ref-page .ops-orders-filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .orders-ref-page .ops-orders-filter-row > .ops-orders-date-range,
  .orders-ref-page .ops-orders-filter-row > .ops-orders-store-select {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }
  .orders-ref-page .ops-orders-lower-side {
    grid-template-columns: 1fr;
  }
  .orders-ref-page .ops-orders-side-column {
    padding-top: 0;
  }
  .ops-risk-compact {
    grid-template-columns: 1fr;
  }
}
.orders-ad-illustration {
  position: relative;
  width: 118px;
  height: 70px;
  margin: 8px auto 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #edf5ff, #f8fbff);
}
.orders-ad-illustration span,
.orders-ad-illustration i,
.orders-ad-illustration b {
  position: absolute;
  bottom: 12px;
  display: block;
  background: #b7d2ff;
  border-radius: 4px 4px 0 0;
}
.orders-ad-illustration span { left: 22px; width: 12px; height: 30px; }
.orders-ad-illustration i { left: 44px; width: 12px; height: 40px; }
.orders-ad-illustration b { right: 14px; width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(#b7d2ff 0 72%, #d7e7ff 72%); }
.orders-ad-detail,
.orders-memo-create {
  width: calc(100% - 36px);
  margin: 0 18px 16px;
}
.orders-memo-empty {
  position: relative;
  width: 112px;
  height: 96px;
  margin: 4px auto 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f1f5fb, #f9fbff);
}
.orders-memo-empty span,
.orders-memo-empty i {
  position: absolute;
  left: 28px;
  display: block;
  width: 56px;
  height: 8px;
  border-radius: 999px;
  background: #d9e3f0;
}
.orders-memo-empty span { top: 30px; }
.orders-memo-empty i { top: 50px; width: 40px; }
.ops-orders-scroll-hint {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #5d6e87;
  font-size: 14px;
  font-weight: 840;
}

.pm-unified-page .pm-unified-shell {
  padding: 0 4px 42px;
}
.pm-audit-shell {
  grid-template-columns: 196px minmax(0, 1fr);
  background:
    radial-gradient(720px 350px at 86% 0%, rgba(72,132,255,.12), transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}
.pm-unified-page .pm-audit-shell-unified {
  display: block;
  grid-template-columns: minmax(0, 1fr);
  background:
    radial-gradient(720px 350px at 86% 0%, rgba(72,132,255,.12), transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}
.pm-side {
  padding: 22px 12px;
  border-right-color: #e6eef8;
  background: rgba(255,255,255,.94);
}
.pm-brand {
  height: 38px;
  margin-bottom: 22px;
  padding: 0 8px;
}
.pm-brand span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: transparent;
  background: #fff;
  border: 2px solid #1769f4;
  box-shadow: none;
  position: relative;
}
.pm-brand span::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 5px;
  background: #1769f4;
}
.pm-brand strong {
  font-size: 18px;
  font-weight: 950;
}
.pm-side nav {
  gap: 5px;
}
.pm-side button {
  height: 39px;
  border-radius: 9px;
  color: #405572;
  font-size: 14px;
  font-weight: 760;
}
.pm-side button.parent {
  font-weight: 900;
}
.pm-side button.active {
  background: linear-gradient(90deg, #eaf2ff, #f7fbff);
  box-shadow: inset 4px 0 0 #1f66ff;
}
.pm-side button i {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  font-size: 10px;
}
.pm-side button b {
  margin-left: auto;
  color: #7b8aa4;
  font-size: 12px;
}
.pm-side .pm-nav-child {
  height: 36px;
  padding-left: 52px;
  color: #51637f;
  background: transparent;
  box-shadow: none;
}
.pm-side .pm-nav-child i {
  display: none;
}
.pm-side .pm-nav-child.active {
  color: #1f66ff;
  background: #eaf2ff;
  box-shadow: none;
}
.pm-collapse-control {
  margin-top: auto;
  color: #536984 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.pm-collapse-control i {
  border: 0 !important;
  background: transparent !important;
}
.pm-collapse-control i::before {
  content: "☰";
  color: #536984;
}
.pm-audit-main {
  padding: 0 24px 28px;
}
.pm-unified-page .pm-audit-main {
  padding: 0 24px 28px;
}

@media (max-width: 1500px) {
  .orders-ref-page .ops-orders-main-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .orders-ref-page .ops-orders-side-column {
    grid-template-columns: 1fr;
    padding-top: 0;
  }
  .orders-ref-page .ops-sales-trend-card,
  .orders-ref-page .ops-side-chart.ops-sales-trend-card .ops-chart-frame,
  .orders-ref-page .ops-side-chart.ops-sales-trend-card .ops-chart-svg {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 1320px) {
  .ops-clone-frame .dash-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .ops-clone-frame .dash-sidebar {
    padding: 20px 14px;
  }
  .ops-clone-frame .store-quota,
  .ops-clone-frame .team-card {
    left: 14px;
    right: 14px;
  }
  .orders-ref-page .ops-orders-kpi-grid,
  .orders-ref-page .ops-orders-lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .orders-ref-page .ops-note-card,
  .orders-ref-page .ops-orders-lower-side > .ops-note-card {
    min-height: 0;
  }
  .ops-inventory-source-card .ops-inventory-source-list {
    grid-template-columns: 1fr;
  }
  .user-form-grid,
  .user-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ops-clone-frame .dash-shell {
    display: block;
    grid-template-columns: 1fr;
  }

  .ops-clone-frame .dash-sidebar {
    display: none;
  }

  .ops-clone-frame .dash-main {
    width: 100%;
    padding: 12px;
  }

  .user-form-grid,
  .user-module-grid {
    grid-template-columns: 1fr;
  }
  .user-row {
    grid-template-columns: 1fr;
  }
  .user-row-actions {
    justify-content: flex-start;
  }
}
.pm-topbar {
  height: 56px;
  border-bottom-color: #dfe8f6;
}
.pm-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7a8aa5;
  font-size: 14px;
  font-weight: 760;
}
.pm-crumb span::after {
  content: "/";
  margin-left: 10px;
  color: #a8b5c8;
}
.pm-crumb b {
  color: #263b5b;
}
.pm-top-actions {
  gap: 14px;
  color: #526781;
  font-size: 13px;
}
.pm-help-dot {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1.5px solid #71839c;
  border-radius: 50%;
  font-weight: 950;
}
.pm-bell-dot {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid #d7e3f4;
  border-radius: 50%;
}
.pm-bell-dot::before {
  content: "";
  position: absolute;
  inset: 5px 6px;
  border: 2px solid #6f809a;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.pm-bell-dot i {
  position: absolute;
  top: -7px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  color: #fff;
  background: #f04444;
  font-size: 10px;
  font-style: normal;
  text-align: center;
  line-height: 17px;
}
.pm-user-avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: linear-gradient(145deg, #6aa2ff, #d7e6ff);
}
.pm-user-name {
  display: grid;
  line-height: 1.1;
}
.pm-user-name b {
  color: #1b2f4e;
  font-size: 13px;
}
.pm-user-name small {
  color: #7b8da8;
  font-size: 12px;
}
.pm-hero {
  grid-template-columns: minmax(0, 1fr) minmax(620px, 740px);
  gap: 12px;
  padding: 10px 0 4px;
}
.pm-hero h1 {
  font-size: 24px;
  letter-spacing: -.03em;
}
.pm-hero p {
  margin-top: 7px;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.55;
}
.pm-store-health {
  min-height: 68px;
  border-radius: 11px;
}
.pm-store-health > div {
  padding: 9px 11px;
}
.pm-store-health strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}
.pm-store-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-store-switch select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  color: #1b2f4e;
  background: transparent;
  font-size: 17px;
  font-weight: 920;
}
.pm-us-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  background: repeating-linear-gradient(180deg, #d92d20 0 2px, #fff 2px 4px);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}
.pm-us-flag::before {
  content: "";
  display: block;
  width: 11px;
  height: 8px;
  background: #1d4ed8;
}
.pm-stat-row {
  gap: 8px;
  margin-bottom: 8px;
}
.pm-mini-stat {
  height: 82px;
  border-radius: 12px;
  padding: 12px 14px;
}
.pm-mini-stat > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  position: relative;
}
.pm-mini-stat > span::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #2f7cff;
}
.pm-mini-stat.purple > span::before {
  background: #8b5cf6;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.45);
}
.pm-mini-stat.orange > span::before {
  width: 23px;
  height: 20px;
  border-radius: 50% 50% 8px 8px;
  background:
    radial-gradient(circle at 50% 38%, #fff 0 3px, transparent 3.5px),
    #f59e0b;
}
.pm-mini-stat.red > span::before {
  width: 24px;
  height: 22px;
  border-radius: 7px;
  background:
    linear-gradient(60deg, transparent 0 44%, #fff 45% 54%, transparent 55%),
    #fb7185;
}
.pm-mini-stat.green > span::before {
  background:
    linear-gradient(135deg, transparent 0 42%, #fff 43% 54%, transparent 55%),
    #20b486;
}
.pm-mini-stat strong {
  font-size: 20px;
}
.pm-workflow {
  gap: 8px;
  margin-bottom: 8px;
}
.pm-flow-step {
  min-height: 56px;
  border-radius: 12px;
  padding: 8px 14px;
}
.pm-dashboard-grid {
  grid-template-columns: minmax(0, 1.24fr) minmax(352px, 452px);
  gap: 8px;
}
.pm-card {
  border-radius: 12px;
  box-shadow: 0 16px 42px rgba(30,70,130,.08);
}
.pm-section-head {
  min-height: 46px;
}
.pm-section-head h2 {
  font-size: 17px;
}
.pm-tabs {
  min-height: 42px;
  gap: 25px;
}
.pm-filter-row {
  gap: 6px;
  padding: 9px 12px;
}
.pm-filter-row div,
.pm-filter-row button {
  height: 32px;
  border-radius: 8px;
  font-size: 12px;
}
.pm-listing-row {
  grid-template-columns: 24px 48px minmax(212px, 1.5fr) minmax(90px, .64fr) 72px 84px 98px 86px;
  min-height: 66px;
  padding: 6px 12px;
  gap: 7px;
}
.pm-listing-row.selected {
  margin: 6px;
  border-radius: 9px;
}
.pm-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.pm-listing-copy p {
  font-size: 12px;
  line-height: 1.32;
}
.pm-pagination {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #60738f;
  font-size: 13px;
  font-weight: 800;
}
.pm-pagination div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pm-pagination button {
  min-width: 30px;
  height: 30px;
  border: 1px solid #dce8f7;
  border-radius: 7px;
  color: #4d6586;
  background: #fff;
  font-weight: 800;
}
.pm-pagination button.active {
  color: #fff;
  border-color: #1f66ff;
  background: #1f66ff;
}
.pm-pagination input {
  width: 42px;
  height: 28px;
  border: 1px solid #dce8f7;
  border-radius: 7px;
  background: #fff;
}
.pm-product-detail-card {
  padding: 11px;
}
.pm-detail-thumb {
  width: 54px;
  height: 54px;
}
.pm-product-top {
  grid-template-columns: 54px minmax(0, 1fr);
}
.pm-product-top h3 {
  font-size: 16px;
  -webkit-line-clamp: 3;
}
.pm-detail-grid {
  margin-top: 10px;
}
.pm-detail-grid div {
  min-height: 50px;
  padding: 7px 9px;
}
.pm-detail-grid b {
  font-size: 14px;
}
.pm-current-title {
  margin-top: 10px;
}
.pm-suggestion-box {
  margin-top: 10px;
}
.pm-suggestion-box article {
  grid-template-columns: 108px minmax(0, 1fr) auto;
  padding: 7px 8px;
}
.pm-suggestion-box article b small {
  display: block;
  margin-top: 3px;
  color: #7b8da8;
  font-size: 10px;
  font-weight: 760;
}
.pm-suggestion-box article span {
  font-weight: 860;
}
.pm-suggestion-box article small {
  grid-column: 2 / 3;
  color: #6f84a5;
  font-size: 10px;
  line-height: 1.5;
}
.pm-risk-note {
  margin-top: 7px;
  padding: 7px 8px;
}
.pm-detail-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.pm-detail-actions button {
  height: 32px;
  padding: 0 9px;
  font-size: 12px;
}
.pm-rules-card {
  margin-top: 12px;
}
.pm-draft-queue {
  display: none;
}

@media (max-width: 900px) {
  .pm-hero {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pm-store-health,
  .pm-stat-row,
  .pm-workflow,
  .pm-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .pm-product-detail-card {
    display: none;
  }
  .pm-listing-row {
    grid-template-columns: 24px 48px minmax(0, 1fr);
  }
  .pm-listing-row > div:not(.pm-listing-copy),
  .pm-row-tags {
    grid-column: 3;
    justify-items: start;
  }
  .pm-pagination {
    height: auto;
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 12px 14px;
  }
  .pm-pagination div {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .pm-topbar {
    height: auto;
    padding: 10px 0 2px;
  }
  .pm-crumb {
    font-size: 13px;
  }
  .pm-hero {
    padding: 8px 0 2px;
  }
  .pm-hero h1 {
    font-size: 22px;
    line-height: 1.14;
  }
  .pm-hero h1 button {
    margin-top: 8px;
  }
  .pm-store-health {
    gap: 0;
    overflow: hidden;
    border-radius: 14px;
  }
  .pm-store-health > div {
    min-width: 0;
    padding: 10px 12px;
  }
  .pm-store-health strong,
  .pm-store-switch select {
    font-size: 15px;
  }
  .pm-mini-stat {
    height: auto;
    min-height: 74px;
  }
  .pm-flow-step {
    min-height: 0;
  }
  .pm-section-head {
    min-height: 0;
    padding-bottom: 2px;
  }
  .pm-tabs {
    min-height: 0;
    gap: 14px;
    flex-wrap: wrap;
  }
  .pm-filter-row {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .pm-filter-row div,
  .pm-filter-row button {
    width: 100%;
  }
  .pm-listing-row {
    padding: 9px 10px;
    gap: 6px;
  }
  .pm-listing-copy strong,
  .pm-listing-row div > strong {
    white-space: normal;
  }
  .pm-listing-copy p {
    -webkit-line-clamp: 3;
  }
}

.ops-ad-management-page .dash-main {
  padding-right: 8px;
}
.ops-ad-management-page .ops-focus-shell.ops-admin-shell {
  width: 100%;
  max-width: none;
  padding: 0 0 42px 0;
}
.ad-management-v2 {
  display: grid;
  gap: 18px;
  padding-bottom: 24px;
}
.am2-header,
.am2-panel {
  border: 1px solid #dbe7f6;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(247, 251, 255, .94)),
    radial-gradient(420px 160px at 100% 0%, rgba(59, 130, 246, .08), transparent 72%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .05);
}
.am2-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 20px;
}
.am2-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.am2-title-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 19px;
  font-weight: 950;
  background: linear-gradient(135deg, #1f63ff, #26c3a8);
  box-shadow: 0 16px 28px rgba(37, 99, 235, .18);
}
.am2-title-row h2 {
  margin: 0;
  color: #10213f;
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -.03em;
}
.am2-title-row p {
  margin: 6px 0 0;
  color: #69809f;
  font-size: 13px;
  line-height: 1.56;
  font-weight: 700;
}
.am2-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.am2-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #dce7f6;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #607694;
  font-size: 12px;
  font-weight: 800;
}
.am2-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-content: flex-start;
}
.am2-toolbar label,
.am2-toolbar select,
.am2-toolbar input,
.am2-toolbar button {
  min-height: 42px;
}
.am2-toolbar label {
  min-width: 156px;
}
.am2-toolbar input[type="search"] {
  min-width: 232px;
}
.am2-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.am2-kpi-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 132px;
  padding: 18px 16px 15px;
  border: 1px solid #dde8f7;
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .04);
}
.am2-kpi-card.blue { background: linear-gradient(180deg, rgba(236, 244, 255, .96), rgba(255, 255, 255, .94)); }
.am2-kpi-card.green { background: linear-gradient(180deg, rgba(239, 251, 247, .96), rgba(255, 255, 255, .94)); }
.am2-kpi-card.amber { background: linear-gradient(180deg, rgba(255, 248, 236, .96), rgba(255, 255, 255, .94)); }
.am2-kpi-card.violet { background: linear-gradient(180deg, rgba(244, 239, 255, .96), rgba(255, 255, 255, .94)); }
.am2-kpi-card.cyan { background: linear-gradient(180deg, rgba(236, 250, 255, .96), rgba(255, 255, 255, .94)); }
.am2-kpi-card.bad { background: linear-gradient(180deg, rgba(255, 240, 242, .96), rgba(255, 255, 255, .94)); }
.am2-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .03em;
  border: 1px solid #dbe8fb;
  color: #2b5fd7;
  background: rgba(255, 255, 255, .9);
}
.am2-kpi-card.green .am2-kpi-icon { color: #118a69; }
.am2-kpi-card.amber .am2-kpi-icon { color: #c57a13; }
.am2-kpi-card.violet .am2-kpi-icon { color: #6d40eb; }
.am2-kpi-card.cyan .am2-kpi-icon { color: #1683a4; }
.am2-kpi-card.bad .am2-kpi-icon { color: #ce364b; }
.am2-kpi-card b {
  display: block;
  color: #10213f;
  font-size: 14px;
  font-weight: 850;
}
.am2-kpi-card strong {
  display: block;
  margin-top: 8px;
  color: #112548;
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.am2-kpi-card span {
  display: block;
  margin-top: 8px;
  color: #7b8fab;
  font-size: 12px;
  font-weight: 800;
}
.am2-delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 900;
}
.am2-delta.up { color: #0f996f; }
.am2-delta.down { color: #e14a52; }
.am2-delta.neutral { color: #7a8fae; }
.am2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.86fr) 320px;
  gap: 16px;
  align-items: start;
}
.am2-main,
.am2-sidebar {
  display: grid;
  gap: 18px;
}
.am2-panel {
  padding: 18px;
}
.am2-panel-head,
.am2-block-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.am2-panel-head h3,
.am2-block-head h4 {
  margin: 0;
  color: #15284a;
  font-size: 24px;
  letter-spacing: -.03em;
}
.am2-block-head h4 {
  font-size: 17px;
}
.am2-panel-head p,
.am2-block-head span,
.am2-block-head p {
  margin: 6px 0 0;
  color: #7186a3;
  font-size: 13px;
  line-height: 1.54;
  font-weight: 700;
}
.am2-panel-head > span {
  color: #7d8da6;
  font-size: 13px;
  font-weight: 800;
}
.am2-table-wrap {
  margin-top: 14px;
  overflow: auto;
  max-width: 100%;
}
.am2-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
}
.am2-table th,
.am2-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #ebf1fa;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.am2-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fbff;
  color: #7b8ea8;
  font-size: 12px;
  font-weight: 900;
}
.am2-table td {
  color: #183052;
  font-size: 14px;
  font-weight: 800;
}
.am2-table-compact th,
.am2-table-compact td {
  padding: 13px 10px;
}
.am2-table-compact td {
  font-size: 14px;
}
.am2-table-compact .am2-main-cell strong {
  font-size: 16px;
}
.am2-table-compact .am2-main-cell small {
  font-size: 12px;
}
.am2-table td small {
  display: block;
  margin-top: 4px;
  color: #8ca0bb;
  font-size: 12px;
  font-weight: 700;
}
.am2-table tbody tr {
  transition: background .16s ease, box-shadow .16s ease;
}
.am2-table tbody tr.selected,
.am2-table tbody tr:hover {
  background: rgba(238, 246, 255, .9);
}
.am2-campaign-table td:first-child,
.am2-table td:first-child {
  min-width: 220px;
}
.am2-main-cell strong {
  display: block;
  color: #173158;
  font-size: 14px;
  line-height: 1.5;
}
.am2-main-cell small {
  line-height: 1.5;
}
.am2-entity-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8eef8;
}
.am2-crumbs {
  color: #6c83a2;
  font-size: 13px;
  font-weight: 800;
}
.am2-entity-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.am2-entity-title-row h3 {
  margin: 0;
  color: #10213f;
  font-size: 32px;
  line-height: 1.06;
  letter-spacing: -.03em;
}
.am2-entity-hero p {
  margin: 10px 0 0;
  color: #6d829d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}
.am2-entity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.am2-entity-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.am2-entity-metrics > div {
  min-height: 112px;
  padding: 16px 18px;
  border: 1px solid #e2ebf8;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(251, 253, 255, .96), rgba(244, 249, 255, .92));
}
.am2-entity-metrics strong {
  display: block;
  margin-top: 12px;
  color: #112445;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.am2-chart-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e6edf8;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(252, 254, 255, .98), rgba(242, 248, 255, .95));
}
.am2-trend-chart {
  width: 100%;
  height: 240px;
}
.am2-grid line {
  stroke: #e5edf8;
  stroke-width: 1;
}
.am2-labels text {
  fill: #8da2bb;
  font-size: 11px;
  font-weight: 800;
}
.am2-trend-chart rect {
  fill: rgba(63, 132, 255, .16);
}
.am2-trend-chart .sales-line {
  fill: none;
  stroke: #1f63ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.am2-trend-chart .acos-line {
  fill: none;
  stroke: #ff8a2a;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.am2-tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e8eef8;
}
.am2-tab-strip button {
  min-width: 120px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d7e3f3;
  border-radius: 14px;
  background: #fff;
  color: #5b7396;
  font-weight: 900;
  cursor: pointer;
}
.am2-tab-strip button.active {
  border-color: #1f63ff;
  background: linear-gradient(135deg, #1f63ff, #275be9);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .16);
}
.am2-detail-block {
  margin-top: 18px;
}
.am2-inline-input {
  min-width: 96px;
  padding: 9px 10px;
  border-radius: 12px;
}
.am2-action-cell {
  vertical-align: middle;
}

.am2-action-stack {
  display: grid;
  gap: 8px;
  min-width: 132px;
}

.am2-action-stack button {
  width: 100%;
  white-space: nowrap;
}

.am2-action-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 104px;
}

.am2-action-row button {
  white-space: nowrap;
}

.am2-status-cell {
  min-width: 96px;
}

.am2-switch-cell {
  min-width: 78px;
  text-align: center;
}

.am2-switch-cell .am2-inline-switch {
  gap: 8px;
  justify-content: center;
}

.am2-switch-cell .am2-inline-switch-label {
  min-width: 24px;
  text-align: center;
}

.am2-confirm-armed {
  border-color: rgba(217, 119, 6, .55) !important;
  background: linear-gradient(180deg, rgba(255, 247, 237, .98), rgba(255, 255, 255, .95)) !important;
  color: #a85a06 !important;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .12);
}

.am2-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.am2-inline-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5f779a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.am2-inline-switch-track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d8e4f4;
  position: relative;
  transition: background .16s ease;
  flex: 0 0 auto;
}

.am2-inline-switch-track i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(23, 41, 75, .18);
  transition: transform .16s ease;
}

.am2-inline-switch.is-on .am2-inline-switch-track {
  background: linear-gradient(135deg, #2a67ff, #1f63ff);
}

.am2-inline-switch.is-on .am2-inline-switch-track i {
  transform: translateX(18px);
}

.am2-inline-switch-label {
  white-space: nowrap;
  font-size: 11px;
}
.am2-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 16px;
  margin-top: 18px;
}
.am2-settings-card {
  padding: 18px;
  border: 1px solid #e4edf9;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(245, 249, 255, .94));
}
.am2-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.am2-form-grid label {
  display: grid;
  gap: 8px;
  color: #677d9c;
  font-size: 12px;
  font-weight: 900;
}
.am2-form-grid textarea {
  min-height: 136px;
  grid-column: 1 / -1;
}
.am2-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.am2-submit-row small {
  color: #7d8fa7;
  font-size: 12px;
  font-weight: 800;
}
.am2-heatmap {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.am2-heatmap-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.am2-heatmap-row span {
  color: #7b8fa8;
  font-size: 12px;
  font-weight: 900;
}
.am2-heatmap-row div {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
}
.am2-heatmap-row i {
  display: block;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, #d6e5ff, #2563eb);
}
.am2-quick-metrics {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.am2-quick-metrics article {
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid #e5edf8;
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
}
.am2-quick-metrics span {
  display: block;
  color: #7a8ea7;
  font-size: 12px;
  font-weight: 900;
}
.am2-quick-metrics strong {
  display: block;
  margin-top: 10px;
  color: #112548;
  font-size: 24px;
  letter-spacing: -.03em;
}
.am2-score-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #e3ebf8;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(255, 255, 255, .95));
}
.am2-score-ring {
  --track: rgba(221, 230, 242, .98);
  width: 104px;
  height: 104px;
  border-radius: 999px;
  position: relative;
  display: grid;
  place-items: center;
  background: conic-gradient(#2f6cff calc(var(--score) * 1%), var(--track) 0);
}
.am2-score-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(222, 232, 246, .9);
}
.am2-score-ring strong,
.am2-score-ring span {
  position: relative;
  z-index: 1;
}
.am2-score-ring strong {
  color: #162848;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}
.am2-score-ring span {
  display: block;
  margin-top: 4px;
  color: #7387a2;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.am2-score-meta {
  display: grid;
  gap: 10px;
}
.am2-score-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(212, 222, 237, .9);
}
.am2-score-meta div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.am2-score-meta span {
  color: #6d84a5;
  font-size: 12px;
  font-weight: 800;
}
.am2-score-meta strong {
  color: #17284a;
  font-size: 16px;
  font-weight: 900;
}
.am2-side-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.am2-side-mini-card {
  border: 1px solid rgba(223, 231, 244, .92);
  border-radius: 16px;
  padding: 14px;
  background: #fbfdff;
  display: grid;
  gap: 6px;
}
.am2-side-mini-card span {
  color: #6d84a5;
  font-size: 12px;
  font-weight: 800;
}
.am2-side-mini-card strong {
  color: #162848;
  font-size: 22px;
  font-weight: 900;
}
.am2-side-mini-card small {
  color: #7d91ab;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
}
.am2-side-mini-card.ok {
  background: linear-gradient(180deg, rgba(240, 252, 247, .95), rgba(255, 255, 255, .92));
}
.am2-side-mini-card.warn {
  background: linear-gradient(180deg, rgba(255, 249, 238, .96), rgba(255, 255, 255, .92));
}
.am2-side-mini-card.danger {
  background: linear-gradient(180deg, rgba(255, 243, 245, .96), rgba(255, 255, 255, .92));
}
.am2-side-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.am2-side-list article {
  padding: 12px 14px;
  border: 1px solid rgba(223, 232, 246, .92);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  display: grid;
  gap: 6px;
}
.am2-side-list strong {
  color: #162748;
  font-size: 14px;
  font-weight: 900;
}
.am2-side-list span {
  color: #6f84a5;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}
.am2-recommend-list,
.am2-draft-list-v2,
.am2-history-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.am2-recommend-list-compact .am2-recommend-card {
  border-radius: 16px;
  padding: 14px 15px;
}
.am2-recommend-list-compact .am2-recommend-card strong {
  font-size: 14px;
}
.am2-recommend-list-compact .am2-recommend-card p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
}
.am2-recommend-list-compact .am2-recommend-card small {
  margin-top: 8px;
  font-size: 11px;
}
.am2-recommend-card,
.am2-draft-card,
.am2-history-item {
  padding: 16px 18px;
  border: 1px solid #e4edf8;
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
}
.am2-recommend-card strong,
.am2-draft-card strong {
  display: block;
  color: #112548;
  font-size: 15px;
  font-weight: 900;
}
.am2-recommend-card p,
.am2-draft-card span,
.am2-history-item p {
  margin: 8px 0 0;
  color: #6d83a1;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}
.am2-recommend-card small {
  display: block;
  margin-top: 10px;
  color: #5e7998;
  font-size: 12px;
  font-weight: 900;
}
.am2-recommend-card.warn { border-color: rgba(242, 183, 62, .35); background: linear-gradient(180deg, rgba(255, 249, 235, .95), rgba(255, 255, 255, .92)); }
.am2-recommend-card.danger { border-color: rgba(233, 76, 91, .24); background: linear-gradient(180deg, rgba(255, 242, 244, .95), rgba(255, 255, 255, .92)); }
.am2-recommend-card.ok { border-color: rgba(29, 178, 126, .22); background: linear-gradient(180deg, rgba(240, 252, 247, .95), rgba(255, 255, 255, .92)); }
.am2-draft-card.selected {
  border-color: #9ec1ff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .10);
}
.am2-draft-select {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.am2-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.am2-draft-actions button[disabled] {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}
.am2-history-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.am2-history-item-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.am2-history-item-header strong {
  color: #13284a;
  font-size: 15px;
  font-weight: 900;
}
.am2-history-item-headline {
  color: #20385b;
  font-size: 13px;
  font-weight: 800;
}
.am2-history-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f63ff, #26c3a8);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}
.am2-chart-empty,
.am2-empty-panel {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: #7990ab;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.am2-empty-panel h3 {
  margin: 0;
  color: #12274a;
  font-size: 28px;
}
.am2-empty-panel p {
  max-width: 480px;
  margin: 10px 0 0;
  line-height: 1.7;
}
.am2-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.am2-pill.ok {
  color: #117f61;
  background: rgba(20, 182, 122, .12);
}
.am2-pill.warn {
  color: #b57410;
  background: rgba(245, 181, 54, .14);
}
.am2-pill.danger,
.am2-pill.bad {
  color: #d3404b;
  background: rgba(233, 76, 91, .12);
}
.am2-pill.neutral {
  color: #5d7699;
  background: rgba(153, 174, 204, .14);
}

@media (max-width: 1600px) {
  .am2-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1360px) {
  .am2-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .am2-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .am2-header {
    grid-template-columns: minmax(0, 1fr);
  }
  .am2-toolbar {
    justify-content: flex-start;
  }
  .am2-kpi-grid,
  .am2-entity-metrics,
  .am2-settings-grid,
  .am2-form-grid,
  .am2-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ops-ad-management-page .dash-main {
    padding-right: 0;
  }
  .am2-header,
  .am2-panel {
    padding: 16px;
    border-radius: 20px;
  }
  .am2-kpi-grid,
  .am2-entity-metrics,
  .am2-settings-grid,
  .am2-form-grid,
  .am2-sidebar {
    grid-template-columns: 1fr;
  }
  .am2-title-row {
    gap: 12px;
  }
  .am2-title-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 16px;
    font-size: 18px;
  }
  .am2-title-row h2,
  .am2-entity-title-row h3 {
    font-size: 28px;
  }
  .am2-entity-hero,
  .am2-submit-row {
    grid-template-columns: 1fr;
    display: grid;
  }
  .am2-entity-actions,
  .am2-draft-actions,
  .am2-action-cell {
    width: 100%;
  }
  .am2-action-cell button,
  .am2-draft-actions button,
  .am2-entity-actions button,
  .am2-submit-row button {
    width: 100%;
  }
}

.am2-header-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: 12px;
  align-items: start;
}

.am2-header-main,
.am2-header-controls {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.am2-header-controls input,
.am2-header-controls select,
.am2-header-controls button {
  font-size: 14px;
  font-weight: 700;
}

.am2-filter-shell,
.am2-filter-presets,
.am2-filter-grid {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.am2-filter-shell {
  padding: 9px 11px;
  border: 1px solid rgba(218, 229, 246, .92);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(255, 255, 255, .95));
}

.am2-filter-presets {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.am2-filter-presets button {
  min-height: 32px;
}

.am2-filter-presets button.active {
  border-color: rgba(31, 99, 255, .52);
  background: linear-gradient(135deg, #1f63ff, #275be9);
  color: #fff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, .16);
}

.am2-filter-grid {
  grid-template-columns: minmax(0, 132px) minmax(0, 132px) minmax(0, 118px) minmax(0, 140px) minmax(0, 1fr) 94px 72px;
}

.am2-filter-shell input,
.am2-filter-grid input,
.am2-filter-grid select {
  min-height: 34px;
  padding: 0 9px;
}

.am2-filter-shell > *,
.am2-filter-grid > * {
  min-width: 0;
}

.am2-filter-shell button,
.am2-filter-grid button {
  width: 100%;
  min-height: 34px;
}

.am2-campaign-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(219, 228, 242, .92);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(245, 250, 255, .98), rgba(255, 255, 255, .96));
  box-shadow: 0 12px 28px rgba(25, 53, 102, .05);
}

.am2-campaign-entry strong {
  display: block;
  color: #16284a;
  font-size: 14px;
  font-weight: 900;
}

.am2-campaign-entry p {
  margin: 5px 0 0;
  color: #6e84a5;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.am2-create-campaign-btn {
  flex: 0 0 auto;
  min-width: 148px;
}

.am2-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .28);
  backdrop-filter: blur(10px);
}

.am2-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(219, 228, 242, .96);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(246, 250, 255, .97));
  box-shadow: 0 28px 64px rgba(15, 23, 42, .18);
}

.am2-dialog-compact {
  width: min(640px, 100%);
}

.am2-form-grid-single {
  grid-template-columns: 1fr;
}

.am2-form-grid-single textarea {
  min-height: 120px;
}

.am2-kpi-grid-tight {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.am2-kpi-grid-tight .am2-kpi-card {
  min-height: 84px;
  padding: 11px 11px 10px;
}

.am2-kpi-grid-tight .am2-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 12px;
}

.am2-kpi-grid-tight .am2-kpi-card b {
  font-size: 13px;
}

.am2-kpi-grid-tight .am2-kpi-card strong {
  margin-top: 8px;
  font-size: 17px;
}

.am2-kpi-grid-tight .am2-kpi-card span {
  margin-top: 8px;
  font-size: 12px;
}

.am2-layout-stack {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.am2-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.am2-status-tabs button {
  min-width: 108px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(192, 206, 230, .92);
  background: #f7faff;
  display: grid;
  gap: 4px;
  text-align: left;
  cursor: pointer;
}

.am2-status-tabs button strong {
  color: #1a2a49;
  font-size: 13px;
  font-weight: 800;
}

.am2-status-tabs button span {
  color: #6e84a7;
  font-size: 12px;
  font-weight: 800;
}

.am2-status-tabs button.active {
  border-color: rgba(47, 102, 255, .42);
  background: linear-gradient(180deg, rgba(239, 245, 255, .98), rgba(255, 255, 255, .96));
  box-shadow: inset 0 0 0 1px rgba(47, 102, 255, .1);
}

.am2-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(218, 229, 246, .9);
  background: linear-gradient(180deg, rgba(247, 250, 255, .95), rgba(255, 255, 255, .92));
}

.am2-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.am2-bulk-note {
  color: #647a9e;
  font-size: 14px;
  font-weight: 700;
}

.am2-layout.is-detail-page {
  grid-template-columns: minmax(0, 1fr) 332px;
}

.am2-main.is-detail-page {
  gap: 20px;
}

.am2-sidebar.is-detail-page {
  align-self: start;
  position: sticky;
  top: 18px;
}

.am2-main,
.am2-sidebar,
.am2-panel,
.am2-campaign-panel,
.am2-detail-workspace,
.am2-detail-shell,
.am2-detail-main,
.am2-detail-side {
  min-width: 0;
}

.am2-detail-workspace {
  padding: 16px 16px 14px;
}

.am2-campaign-panel.campaign-first {
  order: -2;
}

.am2-detail-workspace.detail-secondary {
  order: 1;
}

.am2-entity-metrics-tight {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.am2-entity-metrics-tight > div {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 16px;
}

.am2-entity-metrics-tight strong {
  margin-top: 8px;
  font-size: 19px;
}

.am2-entity-metrics-tight small {
  display: block;
  margin-top: 6px;
  color: #7b8ea9;
  font-size: 12px;
  font-weight: 700;
}

.am2-entity-metrics-tight .am2-pill {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.am2-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(238px, 264px);
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}

.am2-detail-chart {
  min-width: 0;
}

.am2-detail-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 14px;
}

.am2-detail-support-grid.detail-support-secondary {
  order: 2;
}

.am2-detail-main,
.am2-detail-side {
  display: grid;
  gap: 12px;
}

.am2-side-card {
  padding: 12px;
  border: 1px solid rgba(219, 228, 242, .92);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(250, 252, 255, .96), rgba(255, 255, 255, .94));
  box-shadow: 0 16px 34px rgba(25, 53, 102, .06);
  display: grid;
  gap: 8px;
}

.am2-side-card h4 {
  margin: 0;
  color: #162544;
  font-size: 17px;
  font-weight: 800;
}

.am2-side-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(207, 219, 237, .9);
}

.am2-side-stat:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.am2-side-stat span {
  color: #6780a8;
  font-size: 13px;
  font-weight: 700;
}

.am2-side-stat strong {
  color: #182b4d;
  font-size: 18px;
  font-weight: 800;
  text-align: right;
}

.am2-mini-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 6px;
}

.am2-mini-kpis article {
  border: 1px solid rgba(222, 232, 247, .9);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fbfdff;
  display: grid;
  gap: 6px;
}

.am2-mini-kpis span {
  color: #7287a8;
  font-size: 12px;
  font-weight: 700;
}

.am2-mini-kpis strong {
  color: #12213f;
  font-size: 24px;
  font-weight: 800;
}

.am2-mini-kpis small {
  color: #7a8faa;
  font-size: 12px;
  font-weight: 600;
}

.am2-detail-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.am2-detail-page-grid-wide {
  grid-template-columns: minmax(0, 1fr) 352px;
}

.am2-detail-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 18px;
  align-items: start;
}

.am2-detail-body-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.am2-detail-body-main,
.am2-detail-rail {
  min-width: 0;
}

.am2-detail-body-main {
  overflow: hidden;
}

.am2-detail-rail {
  display: grid;
  gap: 14px;
  align-self: start;
  position: static;
}

.am2-detail-body-shell-keywords {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.am2-detail-page-grid-mainonly {
  grid-template-columns: minmax(0, 1fr);
}

.am2-detail-page-main,
.am2-detail-page-side {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.am2-detail-page-main {
  overflow: hidden;
}

.am2-detail-page-side {
  align-self: start;
  position: sticky;
  top: 18px;
  z-index: 0;
}

.am2-detail-page-grid .am2-detail-block {
  margin-top: 0;
}

.am2-side-card-note {
  color: #6d82a3;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}

.am2-placement-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.am2-placement-meta em,
.am2-placement-input span {
  color: #7387a7;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.am2-placement-input {
  display: grid;
  gap: 6px;
}

.am2-opportunity-list {
  display: grid;
  gap: 10px;
}

.am2-opportunity-item {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(219, 228, 242, .92);
  background: rgba(250, 252, 255, .92);
}

.am2-opportunity-item > div {
  display: grid;
  gap: 5px;
}

.am2-opportunity-item strong {
  color: #16294a;
  font-size: 14px;
  font-weight: 800;
}

.am2-opportunity-item span,
.am2-opportunity-item small {
  color: #7086a8;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.am2-side-mini-grid-compact {
  margin-bottom: 4px;
}

.am2-side-mini-grid-compact .am2-side-mini-card {
  padding: 12px 14px;
}

.am2-side-mini-grid-compact .am2-side-mini-card strong {
  font-size: 18px;
}
.am2-campaign-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.am2-campaign-summary-strip article {
  border: 1px solid rgba(222, 232, 247, .9);
  border-radius: 18px;
  min-height: 92px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(250, 252, 255, .98), rgba(255, 255, 255, .96));
  display: grid;
  gap: 6px;
}
.am2-campaign-summary-strip span {
  color: #7489a6;
  font-size: 12px;
  font-weight: 800;
}
.am2-campaign-summary-strip strong {
  color: #162748;
  font-size: 20px;
  font-weight: 900;
}
.am2-campaign-summary-strip small {
  color: #7c90ab;
  font-size: 13px;
  font-weight: 700;
}

.am2-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(223, 232, 246, .92);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(250, 252, 255, .98), rgba(246, 250, 255, .94));
}

.am2-toolbar-meta {
  color: #5f779a;
  font-size: 13px;
  font-weight: 800;
}

.am2-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.am2-toolbar-actions .am2-toolbar-btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.am2-keyword-utility-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(218, 229, 246, .92);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(255, 255, 255, .95));
}

.am2-keyword-sort-group,
.am2-keyword-page-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.am2-keyword-sort-group label {
  display: grid;
  gap: 5px;
  min-width: 148px;
}

.am2-keyword-sort-group label span,
.am2-keyword-page-group span {
  color: #687ea0;
  font-size: 11px;
  font-weight: 800;
}

.am2-keyword-sort-group select {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.am2-keyword-page-group {
  justify-content: flex-end;
}

.am2-keyword-page-group button[disabled] {
  opacity: .42;
  cursor: not-allowed;
  box-shadow: none;
}

.am2-keyword-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.am2-keyword-table-panel {
  min-width: 0;
}

.am2-keyword-table-wrap {
  margin-top: 14px;
  overflow: visible;
}

.am2-keyword-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.am2-keyword-table th:first-child,
.am2-keyword-table td:first-child {
  width: 21%;
  min-width: 0;
}

.am2-keyword-table th:last-child,
.am2-keyword-table td:last-child {
  width: 124px;
  min-width: 124px;
  position: static;
  box-shadow: none;
}

.am2-keyword-table td:nth-child(5) {
  width: 116px;
}

.am2-keyword-table td:first-child,
.am2-keyword-table td:nth-child(12) {
  white-space: normal;
}

.am2-keyword-table .am2-main-cell strong {
  line-height: 1.4;
}

.am2-keyword-table .am2-inline-input {
  width: 100%;
  max-width: 108px;
  min-width: 0;
}

.am2-keyword-table .am2-action-row {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
}

.am2-keyword-workbench .am2-detail-rail {
  position: static;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.am2-keyword-utility-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(218, 229, 246, .92);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(255, 255, 255, .95));
}

.am2-keyword-sort-group,
.am2-keyword-page-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.am2-keyword-sort-group label {
  display: grid;
  gap: 5px;
  min-width: 148px;
}

.am2-keyword-sort-group label span,
.am2-keyword-page-group span {
  color: #687ea0;
  font-size: 12px;
  font-weight: 800;
}

.am2-keyword-sort-group select {
  min-height: 38px;
  padding: 0 12px;
  font-size: 14px;
}

.am2-keyword-page-group {
  justify-content: flex-end;
}

.am2-keyword-page-group button[disabled] {
  opacity: .42;
  cursor: not-allowed;
  box-shadow: none;
}

.am2-placement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.am2-placement-card {
  border: 1px solid rgba(219, 228, 242, .92);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(249, 252, 255, .96), rgba(255, 255, 255, .94));
  padding: 16px;
  display: grid;
  gap: 10px;
}

.am2-placement-card span {
  color: #6c83a8;
  font-size: 13px;
  font-weight: 700;
}

.am2-placement-card strong {
  color: #17294b;
  font-size: 28px;
  font-weight: 800;
}

.am2-placement-card input {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(204, 217, 239, .92);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.am2-placement-card small {
  color: #7a8fae;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}

.am2-placement-flow-card {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(219, 228, 242, .92);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(255, 255, 255, .95));
}

.am2-placement-flow-card strong {
  display: block;
  color: #16294a;
  font-size: 14px;
  font-weight: 900;
}

.am2-placement-flow-card p {
  margin: 8px 0 0;
  color: #6880a4;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

.am2-guardrail-list {
  display: grid;
  gap: 10px;
}

.am2-guardrail-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(219, 228, 242, .92);
  background: #fbfdff;
}

.am2-guardrail-list strong {
  color: #18294b;
  font-size: 14px;
  font-weight: 800;
}

.am2-guardrail-list span {
  color: #5e769c;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1360px) {
  .am2-header-compact {
    grid-template-columns: 1fr;
  }

  .am2-filter-presets,
  .am2-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .am2-kpi-grid-tight {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .am2-entity-metrics-tight {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .am2-detail-shell {
    grid-template-columns: 1fr;
  }

  .am2-layout.is-detail-page,
  .am2-detail-page-grid {
    grid-template-columns: 1fr;
  }

  .am2-detail-body-shell,
  .am2-detail-body-grid {
    grid-template-columns: 1fr;
  }

  .am2-keyword-table-wrap {
    overflow-x: auto;
  }

  .am2-keyword-table {
    min-width: 1120px;
    table-layout: auto;
  }

  .am2-keyword-table th:first-child,
  .am2-keyword-table td:first-child {
    min-width: 260px;
  }

  .am2-keyword-table th:last-child,
  .am2-keyword-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #fff;
    box-shadow: -14px 0 20px rgba(222, 232, 247, .86);
  }

  .am2-keyword-table tbody tr:hover td:last-child {
    background: rgba(238, 246, 255, .96);
  }

  .am2-keyword-workbench .am2-detail-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1240px) {
  .am2-kpi-grid-tight,
  .am2-entity-metrics-tight,
  .am2-mini-kpis,
  .am2-placement-grid,
  .am2-campaign-summary-strip,
  .am2-side-mini-grid,
  .am2-detail-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .am2-bulk-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .am2-filter-presets,
  .am2-filter-grid,
  .am2-kpi-grid-tight,
  .am2-entity-metrics-tight,
  .am2-mini-kpis,
  .am2-placement-grid,
  .am2-campaign-summary-strip,
  .am2-side-mini-grid,
  .am2-detail-support-grid {
    grid-template-columns: 1fr;
  }

  .am2-keyword-utility-bar,
  .am2-keyword-sort-group,
  .am2-keyword-page-group {
    display: grid;
    justify-content: stretch;
  }

  .am2-keyword-sort-group label {
    min-width: 0;
  }

  .am2-campaign-entry {
    display: grid;
  }

  .am2-create-campaign-btn {
    width: 100%;
    min-width: 0;
  }

  .am2-dialog-backdrop {
    padding: 12px;
  }

  .am2-dialog {
    padding: 16px;
    border-radius: 20px;
  }
}
