.ops-root {
  --ops-bg: #f5f7fb;
  --ops-surface: #fff;
  --ops-surface-2: #f8f9fc;
  --ops-ink: #172033;
  --ops-muted: #68758b;
  --ops-line: #e5e9f1;
  --ops-brand: #6457d9;
  --ops-brand-dark: #352b79;
  --ops-danger: #d44968;
  --ops-warning: #cb7d20;
  --ops-success: #328766;
  --ops-control-border: #cfd7e6;
  --ops-control-radius: 9px;
  font-size: 14px;
  color: var(--ops-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ops-root * { box-sizing: border-box; }
.ops-root :where(button, input, select, textarea) { font: inherit; }
.ops-root button, .ops-root a { -webkit-tap-highlight-color: transparent; }
.ops-app { min-height: calc(100vh - 100px); }

/* Shared defaults include forms rendered into standalone dialog roots. */
.ops-root :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  min-width: 0; max-width: 100%; min-height: 42px; padding: 10px 12px;
  border: 1px solid var(--ops-control-border); border-radius: var(--ops-control-radius);
  background-color: var(--ops-surface); color: var(--ops-ink); line-height: 1.4;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.ops-root :where(select:not([multiple])) {
  appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23677389' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.ops-root :where(textarea) { width: 100%; min-height: 110px; resize: vertical; }
.ops-root :where(input, textarea)::placeholder { color: #8792a5; opacity: 1; }
.ops-root :where(input, select, textarea):hover:not(:disabled):not(:focus) { border-color: #aab4c9; }
.ops-root :where(input, select, textarea):focus { border-color: var(--ops-brand); outline: 3px solid #6457d91c; outline-offset: 1px; }
.ops-root :where(button, a, summary):focus-visible { outline: 3px solid #8679e9; outline-offset: 3px; }
.ops-root :where(input, select, textarea):disabled { color: #7c879a; background-color: #f1f3f8; cursor: not-allowed; }
.ops-root :where(input, select, textarea)[aria-invalid="true"] { border-color: var(--ops-danger); }
.ops-root :where(input[type="checkbox"], input[type="radio"]) { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: var(--ops-brand); cursor: pointer; }
.ops-root :where(input[type="file"]) { width: 100%; padding: 6px; font-size: 12px; }
.ops-root :where(input[type="file"])::file-selector-button { margin-right: 12px; padding: 8px 12px; border: 0; border-radius: 6px; background: #eeecfc; color: #5142b5; font: inherit; font-weight: 600; cursor: pointer; }
.ops-root :where(input[type="file"]):hover::file-selector-button { background: #e3defb; }
@media (forced-colors: active) { .ops-root :where(select:not([multiple])) { appearance: auto; background-image: none; } }
@media (prefers-reduced-motion: reduce) { .ops-root *, .ops-root *::before, .ops-root *::after { transition: none !important; animation-duration: .01ms !important; } }


.b2b-shell-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -8px 0 18px;
  padding: 6px;
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  background: var(--ops-surface);
  box-shadow: 0 4px 16px rgba(38, 48, 75, .04);
}
.b2b-shell-nav a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border-radius: 8px;
  color: var(--ops-muted) !important;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none !important;
  transition: color .16s, background .16s;
}
.b2b-shell-nav a:hover,
.b2b-shell-nav a[aria-current="page"] {
  color: var(--ops-brand-dark) !important;
  background: #efedff;
}

.ops-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(300px, .8fr) auto;
  align-items: center;
  gap: 20px;
  margin: -24px -32px 24px;
  padding: 13px 28px;
  border-bottom: 1px solid var(--ops-line);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 7px 22px rgba(38, 48, 75, .06);
  backdrop-filter: blur(16px);
}

.ops-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: var(--ops-ink);
  background: none;
  cursor: pointer;
  text-align: left;
}
.ops-brand > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #8479ed, #5043bd);
  box-shadow: 0 7px 15px rgba(80, 67, 189, .25);
  font-size: 12px;
  font-weight: 850;
}
.ops-brand b, .ops-brand small { display: block; }
.ops-brand b { font-size: 13px; }
.ops-brand small { margin-top: 2px; color: var(--ops-muted); font-size: 10px; }

.ops-breadcrumbs { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ops-muted); font-size: 12px; }
.ops-breadcrumbs button { padding: 0; border: 0; color: var(--ops-brand); background: none; cursor: pointer; }
.ops-breadcrumbs b { color: var(--ops-ink); }
.ops-breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }

.ops-search {
  display: grid;
  grid-template-columns: 102px minmax(130px, 1fr) auto;
  min-width: 0;
  border: 1px solid var(--ops-line);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.ops-search:focus-within { border-color: #a9a0ee; box-shadow: 0 0 0 3px rgba(100, 87, 217, .1); }
.ops-search select, .ops-search input, .ops-search button { min-width: 0; height: 38px; border: 0; outline: 0; }
.ops-search select { padding: 0 28px 0 10px; border-right: 1px solid var(--ops-line); border-radius: 0; color: var(--ops-muted); background-color: var(--ops-surface-2); background-position: right 7px center; font-size: 12px; }
.ops-search input { padding: 0 11px; color: var(--ops-ink); background: #fff; font-size: 12px; }
.ops-search button { padding: 0 13px; color: #fff; background: var(--ops-brand); font-size: 11px; font-weight: 750; cursor: pointer; }
.ops-search button:disabled { color: #a2a9b6; background: #edf0f5; cursor: default; }
.ops-toolbar__links { display: flex; gap: 12px; white-space: nowrap; }
.ops-toolbar__links a { color: var(--ops-muted) !important; font-size: 11px; font-weight: 650; text-decoration: none !important; }
.ops-toolbar__links a:hover { color: var(--ops-brand) !important; }

.ops-content { max-width: 1580px; margin: 0 auto; padding-bottom: 40px; }
.ops-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  margin-bottom: 18px;
  padding: 30px 34px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 10%, rgba(255,255,255,.15), transparent 19rem),
    linear-gradient(125deg, #252052, #463b94 54%, #6b5de2);
  box-shadow: 0 18px 40px rgba(61, 50, 130, .2);
  overflow: hidden;
}
.ops-hero::after {
  content: "";
  position: absolute;
  right: 13%;
  top: -120px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255,255,255,.035), 0 0 0 70px rgba(255,255,255,.025);
}
.ops-eyebrow { margin: 0 0 6px; color: var(--ops-muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ops-hero .ops-eyebrow, .ops-detail-hero .ops-eyebrow { color: rgba(255,255,255,.62); }
.ops-hero h1, .ops-detail-hero h1 { margin: 0; color: inherit; font-size: clamp(25px, 3vw, 36px); line-height: 1.08; letter-spacing: -.035em; }
.ops-hero__subtitle { margin: 9px 0 0; color: rgba(255,255,255,.72); font-size: 13px; }
.ops-hero__side { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.ops-live { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.82); font-size: 11px; font-weight: 650; }
.ops-live i { width: 7px; height: 7px; border-radius: 50%; background: #6ee1a7; box-shadow: 0 0 0 4px rgba(110,225,167,.15); }
.ops-source-warning { max-width: 250px; color: #ffe7b3; font-size: 11px; }

.ops-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
}
.ops-button--light { color: #372d7d; background: #fff; box-shadow: 0 8px 18px rgba(18,12,59,.15); }
.ops-button--primary { color: #fff !important; background: var(--ops-brand); }
.ops-button--danger { color: #fff !important; background: var(--ops-danger); }
.ops-button--ghost { border-color: var(--ops-line); color: var(--ops-ink) !important; background: var(--ops-surface); }
.ops-button--block { width: 100%; margin-top: 12px; }
.ops-actions__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ops-actions__message { margin: 10px 0 0; color: var(--ops-muted); font-size: 12px; }

.ops-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.ops-metrics--detail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ops-metric {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--ops-line);
  border-radius: 15px;
  background: var(--ops-surface);
  box-shadow: 0 6px 18px rgba(35, 47, 75, .04);
}
.ops-metric__icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; font-size: 17px; font-weight: 800; }
.ops-metric p { margin: 0 0 3px; color: var(--ops-muted); font-size: 10px; font-weight: 700; }
.ops-metric strong { display: block; color: var(--ops-ink); font-size: 22px; line-height: 1.1; letter-spacing: -.03em; }
.ops-metric small { display: block; margin-top: 4px; color: #9aa3b2; font-size: 9px; }
.ops-metric--rose .ops-metric__icon { color: #cc4464; background: #ffedf1; }
.ops-metric--amber .ops-metric__icon { color: #bd741d; background: #fff2dc; }
.ops-metric--blue .ops-metric__icon { color: #3478dc; background: #e9f2ff; }
.ops-metric--violet .ops-metric__icon { color: #6859d9; background: #eeecff; }
.ops-metric--green .ops-metric__icon { color: #348765; background: #e7f7ef; }

.ops-overview-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 20px; align-items: start; }
.ops-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--ops-line);
  border-radius: 16px;
  background: var(--ops-surface);
  box-shadow: 0 7px 22px rgba(35, 47, 75, .04);
}
.ops-panel--span { grid-column: 1 / -1; }
.ops-panel + .ops-panel { margin-top: 14px; }
.ops-overview-grid > .ops-panel + .ops-panel, .ops-two-columns > .ops-panel + .ops-panel { margin-top: 0; }
.ops-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.ops-panel__head h2 { margin: 0; color: var(--ops-ink); font-size: 17px; letter-spacing: -.025em; }
.ops-panel__head a { color: var(--ops-brand) !important; font-size: 10px; font-weight: 700; text-decoration: none !important; white-space: nowrap; }

.ops-table-wrap { width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #c8cfe0 transparent; }
.ops-table__controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.ops-table__preferences { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid #dfe4ed; border-radius: 10px; background: #f8faff; width: 100%; }
.ops-table__preference { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid #e5e9f1; border-radius: 8px; background: #fff; }
.ops-table__preference label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.ops-table__preference .ops-button { min-width: 28px; padding: 4px 7px; font-size: 11px; }
.ops-table__pinned { position: sticky; left: 0; z-index: 1; background: inherit; box-shadow: 2px 0 0 rgba(57, 72, 96, .08); }
.ops-table__row-pinned td { background: #f4f7ff; box-shadow: inset 0 1px #d9e2ff, inset 0 -1px #d9e2ff; }
.ops-table { width: 100%; border-collapse: collapse; color: var(--ops-ink); font-size: 12px; }
.ops-table th { padding: 8px 9px; border-bottom: 1px solid var(--ops-line); color: #929cad; font-size: 10px; font-weight: 650; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.ops-table td { padding: 13px 10px; border-bottom: 1px solid #edf0f5; vertical-align: middle; overflow-wrap: anywhere; }
.ops-table tbody tr:last-child td { border-bottom: 0; }
.ops-table tbody tr:hover { background: #fafaff; }
.ops-table td b, .ops-table td small { display: block; }
.ops-table td b { font-size: 12px; font-weight: 600; }
.ops-table td small { margin-top: 4px; color: #8490a3; font-size: 10px; }
.ops-table__go { min-width: 150px; text-align: right; white-space: nowrap; }
.ops-table__go button { margin-left: 8px; padding: 5px 0; border: 0; color: var(--ops-brand); background: none; font-size: 10px; font-weight: 750; cursor: pointer; }
.ops-table__go button span { margin-left: 4px; transition: margin .18s; }
.ops-table__go button:hover span { margin-left: 8px; }

.ops-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  color: #586378;
  background: #eef1f5;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}
.ops-status--completed, .ops-status--settled, .ops-status--published, .ops-status--approved,
.ops-status--released, .ops-status--resolved, .ops-status--sold {
  color: #277755; background: #e7f7ef;
}
.ops-status--payout-failed, .ops-status--dispute-open, .ops-status--declined,
.ops-status--invalid, .ops-status--failed {
  color: #ba3e5a; background: #ffedf1;
}
.ops-status--hold, .ops-status--pending, .ops-status--retry, .ops-status--pending-freeze,
.ops-status--manual-review, .ops-status--arbitration, .ops-status--frozen {
  color: #ad681b; background: #fff2dc;
}
.ops-status--in-progress, .ops-status--processing, .ops-status--pending-close {
  color: #2f6fc8; background: #e9f2ff;
}
.ops-status--refunded { color: #6653b7; background: #eeecff; }

.ops-issue-list { display: grid; gap: 7px; }
.ops-issue-list article { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px; border-radius: 10px; background: var(--ops-surface-2); }
.ops-issue-list__icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: var(--ops-danger); background: #ffedf1; font-weight: 850; }
.ops-issue-list b, .ops-issue-list p, .ops-issue-list small { display: block; margin: 0; }
.ops-issue-list b { font-size: 12px; }
.ops-issue-list p { margin-top: 3px; color: var(--ops-muted); font-size: 11px; overflow-wrap: anywhere; }
.ops-issue-list small { margin-top: 4px; color: #8490a3; font-size: 10px; }
.ops-issue-list button { border: 0; color: var(--ops-brand); background: none; cursor: pointer; }

.ops-empty { display: grid; min-height: 105px; place-items: center; align-content: center; color: var(--ops-muted); text-align: center; }
.ops-empty span { font-size: 23px; }
.ops-empty p { margin: 8px 0 0; font-size: 13px; }
.ops-loading, .ops-boot { display: flex; min-height: 55vh; align-items: center; justify-content: center; gap: 10px; color: var(--ops-muted); font-size: 12px; }
.ops-spinner { width: 18px; height: 18px; border: 2px solid #dedaf8; border-top-color: var(--ops-brand); border-radius: 50%; animation: ops-spin .8s linear infinite; }
@keyframes ops-spin { to { transform: rotate(360deg); } }
.ops-error { max-width: 560px; margin: 80px auto; padding: 25px; border: 1px solid #f4c8d2; border-radius: 14px; color: #8f3248; background: #fff5f7; text-align: center; }
.ops-error p { color: #a75e70; font-size: 11px; }
.ops-error button { padding: 8px 13px; border: 0; border-radius: 8px; color: #fff; background: var(--ops-danger); cursor: pointer; }

.ops-detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 16px;
  padding: 25px 29px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 0, rgba(255,255,255,.14), transparent 17rem),
    linear-gradient(125deg, #252052, #4c409d 65%, #6b5de2);
  box-shadow: 0 14px 32px rgba(61, 50, 130, .18);
}
.ops-detail-hero p:not(.ops-eyebrow) { margin: 8px 0 0; color: rgba(255,255,255,.7); font-size: 11px; }
.ops-detail-hero__status { display: flex; align-items: center; gap: 12px; }
.ops-detail-hero__status strong { font-size: 19px; }
.ops-detail-hero__status small { color: rgba(255,255,255,.65); }
.ops-risk { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 0 8px; min-width: 120px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.08); }
.ops-risk span { grid-column: 1 / -1; color: rgba(255,255,255,.64); font-size: 9px; text-transform: uppercase; }
.ops-risk strong { font-size: 22px; }
.ops-risk small { color: #ffd5a1; font-size: 10px; }
.ops-detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 16px; align-items: start; }
.ops-detail-grid main, .ops-detail-grid aside { min-width: 0; }
.ops-two-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; align-items: start; }
.ops-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ops-three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ops-analytics-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0 0 16px; padding: 12px; border: 1px solid var(--ops-line); border-radius: 12px; background: var(--ops-surface); }
.ops-analytics-filters label { display: grid; gap: 4px; color: var(--ops-muted); font-size: 11px; font-weight: 700; }
.ops-analytics-filters input { min-width: 110px; padding: 8px 9px; border: 1px solid var(--ops-line); border-radius: 8px; color: var(--ops-ink); background: var(--ops-surface-2); }

.ops-definitions { display: grid; gap: 0; margin: 0; }
.ops-definitions > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf0f5; }
.ops-definitions > div:last-child { border-bottom: 0; }
.ops-definitions dt { color: var(--ops-muted); font-size: 10px; }
.ops-definitions dd { margin: 0; color: var(--ops-ink); font-size: 10px; font-weight: 700; text-align: right; }
.ops-inline-alert { margin-top: 12px; padding: 10px; border-radius: 9px; color: #9b3c52; background: #fff0f3; }
.ops-inline-alert b { font-size: 9px; }
.ops-inline-alert p { margin: 4px 0 0; font-size: 9px; word-break: break-word; }

.ops-person {
  display: grid;
  width: 100%;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  color: var(--ops-ink);
  background: var(--ops-surface-2);
  text-align: left;
}
button.ops-person { cursor: pointer; }
.ops-person > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: var(--ops-brand); background: #eae7ff; font-size: 11px; font-weight: 850; }
.ops-person b, .ops-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-person b { font-size: 10px; }
.ops-person small { margin-top: 2px; color: var(--ops-muted); font-size: 8px; }
.ops-person i { color: var(--ops-brand); font-style: normal; }
.ops-refund { padding: 13px; border-radius: 10px; color: #397b63; background: #edf8f3; }
.ops-refund--active { color: #9e3e55; background: #fff0f3; }
.ops-refund strong { font-size: 11px; }
.ops-refund p { margin: 4px 0 0; font-size: 9px; }
.ops-case-link { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border: 0; border-bottom: 1px solid #edf0f5; color: var(--ops-ink); background: transparent; text-align: left; cursor: pointer; }
.ops-case-link:last-child { border-bottom: 0; }
.ops-case-link b, .ops-case-link small { display: block; }
.ops-case-link b { font-size: 10px; }
.ops-case-link small { margin-top: 2px; color: var(--ops-muted); font-size: 8px; }

.ops-timeline { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ops-timeline::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 7px; width: 1px; background: #e2e6ef; }
.ops-timeline li { position: relative; display: grid; grid-template-columns: 15px 1fr; gap: 12px; padding: 0 0 16px; }
.ops-timeline li:last-child { padding-bottom: 0; }
.ops-timeline__dot { z-index: 1; width: 9px; height: 9px; margin: 5px 0 0 3px; border: 2px solid #fff; border-radius: 50%; background: #96a1b4; box-shadow: 0 0 0 1px #cbd1dc; }
.ops-timeline__payment .ops-timeline__dot { background: #3c9a72; box-shadow: 0 0 0 1px #8ccbb1; }
.ops-timeline__dispute .ops-timeline__dot { background: #dc536f; box-shadow: 0 0 0 1px #ec9bad; }
.ops-timeline__integration .ops-timeline__dot { background: #d18a2c; box-shadow: 0 0 0 1px #e3bd82; }
.ops-timeline__fulfillment .ops-timeline__dot { background: #4d80d5; box-shadow: 0 0 0 1px #94b2e4; }
.ops-timeline__title { display: flex; align-items: center; gap: 8px; }
.ops-timeline__title b { font-size: 10px; }
.ops-timeline__body p { margin: 3px 0; color: var(--ops-muted); font-size: 9px; }
.ops-timeline__body time { color: #a0a8b5; font-size: 8px; }

.ops-chat { display: grid; gap: 9px; }
.ops-chat article { max-width: 88%; padding: 11px 12px; border: 1px solid var(--ops-line); border-radius: 12px; background: var(--ops-surface-2); }
.ops-chat__seller { justify-self: end; background: #f3f0ff !important; }
.ops-chat__moderator { border-color: #d7e5f8 !important; background: #eff6ff !important; }
.ops-chat article header { display: flex; align-items: center; gap: 7px; }
.ops-chat article header b { font-size: 9px; }
.ops-chat article header time { margin-left: auto; color: #9da5b3; font-size: 8px; }
.ops-chat article p { margin: 7px 0 0; color: #4e596c; font-size: 10px; line-height: 1.5; white-space: pre-wrap; }
.ops-chat article > small { display: block; margin-top: 7px; color: var(--ops-muted); font-size: 8px; }

@media (max-width: 1280px) {
  .ops-toolbar { grid-template-columns: auto 1fr minmax(280px, .8fr); }
  .ops-toolbar__links { display: flex; grid-column: 1 / -1; justify-content: flex-end; }
  .ops-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ops-toolbar { position: static; grid-template-columns: 1fr auto; margin-inline: -20px; padding-inline: 18px; }
  .ops-breadcrumbs { display: none; }
  .ops-search { grid-column: 1 / -1; grid-row: 2; }
  .ops-overview-grid, .ops-detail-grid, .ops-two-columns, .ops-two-col, .ops-three-col { grid-template-columns: 1fr; }
  .ops-analytics-filters { align-items: stretch; }
  .ops-panel--span { grid-column: auto; }
  .ops-metrics, .ops-metrics--detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ops-hero, .ops-detail-hero { align-items: flex-start; flex-direction: column; padding: 22px 19px; }
  .ops-hero__side { width: 100%; justify-content: space-between; }
  .ops-metrics, .ops-metrics--detail { grid-template-columns: 1fr; }
  .ops-panel { padding: 15px; }
  .ops-table { min-width: 620px; }
}

html.dark .ops-root, .dark .ops-root {
  --ops-bg: #111721;
  --ops-surface: #1a222e;
  --ops-surface-2: #202a38;
  --ops-ink: #e8edf5;
  --ops-muted: #9da8b9;
  --ops-line: #303b4b;
}
html.dark .ops-toolbar, .dark .ops-toolbar { background: rgba(26, 34, 46, .95); }
html.dark .ops-search, html.dark .ops-search input, .dark .ops-search, .dark .ops-search input { color: var(--ops-ink); background: var(--ops-surface); }
html.dark .ops-table td, .dark .ops-table td,
html.dark .ops-definitions > div, .dark .ops-definitions > div { border-color: var(--ops-line); }
.ops-action-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 28px; border: 1px solid #cbd5e1; border-radius: 16px; color: #172033; background: white; box-shadow: 0 24px 80px #0f172a55; }
.ops-action-dialog::backdrop { background: #0f172a88; }
.ops-action-dialog h2 { margin: 0 0 18px; font-size: 22px; }
.ops-action-dialog fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.ops-action-field { display: grid; gap: 7px; }
.ops-action-field label { font-weight: 600; }
.ops-action-field input, .ops-action-field select, .ops-action-field textarea { box-sizing: border-box; width: 100%; min-height: 42px; padding: 10px; font: inherit; border: 1px solid #94a3b8; border-radius: 7px; background: white; color: #172033; }
.ops-action-field [aria-invalid="true"] { border-color: #b91c1c; }
.ops-action-field [role="alert"], .ops-action-dialog [role="alert"] { color: #b91c1c; }
.ops-action-dialog__buttons { display: flex; justify-content: end; gap: 12px; margin-top: 24px; }
.ops-queue-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0; }
.ops-queue-filters label { display: grid; gap: 5px; }
.ops-queue-filters input, .ops-queue-filters select { min-height: 38px; padding: 8px; max-width: 260px; border: 1px solid #cbd5e1; border-radius: 7px; }
.ops-queue-filters label:has(input[type="checkbox"]) { display: flex; align-items: center; min-height: 38px; }
.ops-queue-filters input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; padding: 0; margin: 0; }
.ops-sla-overdue { color: #b91c1c; font-weight: 600; }


/* Workspaces share the same forms, action groups and compact feedback. */
.ops-button { line-height: 1.35; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.ops-button--primary:hover:not(:disabled) { background: #5546c8; box-shadow: 0 3px 9px #6457d926; }
.ops-button--ghost:hover:not(:disabled) { background: #f3f1fc; border-color: #d4cef1; }
.ops-button:disabled { cursor: not-allowed; }
.ops-overview-grid .ops-table { table-layout: fixed; }
.ops-overview-grid .ops-table th { white-space: normal; letter-spacing: 0; }
.ops-overview-grid .ops-table :is(th, td):first-child { width: 26%; }
.ops-overview-grid .ops-table__go { width: 112px; min-width: 0; white-space: normal; }
.ops-overview-grid .ops-table__go button { display: block; margin-left: auto; }
.ops-overview-grid .ops-issue-list { max-height: clamp(360px,52vh,560px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c8cfe0 transparent; padding-right: 5px; }
.ops-panel__head a { font-size: 12px; font-weight: 600; white-space: normal; }
.ops-action-dialog > form > p { color: #69768c; font-size: 14px; }
.ops-action-dialog .ops-error { max-width: none; margin: 18px 0 0; padding: 12px 14px; text-align: left; font-size: 13px; }
.ops-action-dialog .ops-actions__message { padding: 12px 14px; border: 1px solid #dcd7f4; border-radius: 9px; background: #f5f3ff; }
.ops-action-field label { font-size: 13px; }
.ops-action-field select { padding-right: 36px; }
.ops-workspace__toolbar, .ops-queue-filters { padding: 16px; border: 1px solid var(--ops-line); border-radius: 12px; background: var(--ops-surface); }
.ops-workspace__toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 18px; }
.ops-workspace__toolbar > input { flex: 1 1 240px; }
.ops-workspace__toolbar > select { flex: 0 1 230px; }
.ops-workspace > .ops-table-wrap { padding: 16px; border: 1px solid var(--ops-line); border-radius: 14px; background: var(--ops-surface); }
.ops-inline-actions, .ops-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ops-inline-actions > :is(textarea, p, .ops-support-detail) { flex-basis: 100%; }
.ops-inline-actions > input[type="file"] { flex: 1 1 230px; width: auto; }
.ops-pagination { justify-content: flex-end; margin: 18px 0; color: var(--ops-muted); font-size: 13px; }
.ops-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: end; }
.ops-field { display: grid; gap: 7px; min-width: 0; font-size: 13px; font-weight: 600; color: #536077; }
.ops-field > :is(input,select,textarea) { width: 100%; font-weight: 400; }
.ops-field--wide, .ops-form > .ops-inline-actions { grid-column: 1 / -1; }
.ops-create-ticket { margin: 0 0 18px; border: 1px solid #ded9f4; border-radius: 12px; background: white; }
.ops-create-ticket > summary { padding: 15px 18px; color: var(--ops-brand); font-size: 14px; font-weight: 600; }
.ops-create-ticket > .ops-panel { margin: 0; border: 0; border-top: 1px solid var(--ops-line); border-radius: 0 0 12px 12px; box-shadow: none; }
.ops-json-viewer { max-width: 100%; max-height: 360px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0; padding: 16px; border: 1px solid var(--ops-line); border-radius: 10px; background: var(--ops-surface-2); color: #526078; font: 12px/1.65 ui-monospace, monospace; }
.ops-check-list { display: grid; gap: 10px; }
.ops-check-list label { display: flex; align-items: start; gap: 9px; overflow-wrap: anywhere; }
.ops-support-detail { min-width: 0; padding: 16px; border: 1px solid var(--ops-line); border-radius: 10px; background: #f8f9fc; }
.ops-queue-filters label { min-width: 0; font-size: 12px; color: #647087; }
.ops-queue-filters input, .ops-queue-filters select { min-height: 42px; }
.ops-queue-filters select { padding-right: 36px; }
@media (max-width: 800px) {
  .ops-table, .ops-table tbody, .ops-table tr, .ops-table td { display: block; min-width: 0; width: 100%; }
  .ops-table thead { display: none; }
  .ops-table tr { padding: 14px 0; border-bottom: 1px solid var(--ops-line); }
  .ops-table tr:last-child { border-bottom: 0; }
  .ops-table td { border: 0; padding: 7px 0; font-size: 13px; }
  .ops-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--ops-muted); font-size: 11px; }
  .ops-table__pinned { position: static; box-shadow: none; }
  .ops-overview-grid .ops-table :is(th,td):first-child, .ops-overview-grid .ops-table__go { width: 100%; }
  .ops-table__go, .ops-overview-grid .ops-table__go { display: flex; flex-wrap: wrap; gap: 8px; text-align: left; }
  .ops-table__go button, .ops-overview-grid .ops-table__go button { margin: 0; padding: 8px 10px; font-size: 12px; min-height: 44px; }
  .ops-root :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea) { min-height: 44px; font-size: 16px; }
  .ops-button { min-height: 44px; }
  .ops-workspace__toolbar { gap: 10px; padding: 14px; }
  .ops-workspace__toolbar > :is(input,select) { flex: 1 1 100%; width: 100%; }
  .ops-workspace__toolbar > button { flex: 1 1 auto; }
  .ops-queue-filters > label { flex: 1 1 100%; }
  .ops-queue-filters :is(input:not([type="checkbox"]),select) { width: 100%; max-width: none; }
  .ops-form { grid-template-columns: minmax(0,1fr); }
  .ops-panel__head { flex-wrap: wrap; }
  .ops-detail-hero :is(h1,p), .ops-person { overflow-wrap: anywhere; min-width: 0; }
  .ops-action-dialog { padding: 22px 18px; }
  .ops-action-dialog h2 { font-size: 20px; }
  .ops-action-dialog__buttons { flex-wrap: wrap; }
  .ops-action-dialog__buttons .ops-button { flex: 1 1 auto; }
}
