
.ops-page {
  --ops-text: #f1f3f8;
  --ops-muted: #a0a8b6;
  --ops-border: #293243;
  --ops-field: #161e2c;
  --ops-focus: #8e9fff;
  box-sizing: border-box;
  min-height: 100%;
  color: var(--ops-text);
  background: transparent;
  border-radius: 24px 0 0 0;
}

.ops-page *, .ops-editor * { box-sizing: border-box; }
.ops-page h1, .ops-page h2 { margin: 0; line-height: 1.28; }
.ops-page h1 { font-size: 24px; font-weight: 650; }
.ops-page h2 { font-size: 17px; font-weight: 600; }
.ops-page button, .ops-page select, .ops-page input,
.ops-editor input, .ops-editor textarea, .ops-editor select, .ops-button { font-family: inherit; }

.ops-page :focus-visible, .ops-editor :focus-visible, .ops-button:focus-visible {
  outline: 2px solid var(--ops-focus, #8e9fff);
  outline-offset: 3px;
}

.ops-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ops-analytics {
  display: grid;
  /* The workspace's outer border completes the 240px sidebar. */
  grid-template-columns: 239px minmax(0, 1fr);
}

.ops-analytics-nav {
  padding: 20px;
  border-right: 1px solid #222b39;
}

.ops-analytics-nav h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-inline: 16px;
  font-size: 16px;
  line-height: 24px;
}

.ops-analytics-nav nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.ops-analytics-tab {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  text-align: left;
  color: #c1c7d2;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 24px;
  white-space: nowrap;
}

.ops-analytics-tab svg { flex: 0 0 auto; }
.ops-analytics-tab span { overflow: hidden; text-overflow: ellipsis; }
.ops-analytics-tab:hover { background: #20293a; color: #fff; }
.ops-analytics-tab.is-active { background: #283149; color: #fff; }

.ops-analytics-main {
  min-width: 0;
  padding: 20px;
}

.ops-analytics-main > h1 { margin-bottom: 18px; }

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.ops-metric, .ops-chart, .ops-table-panel {
  border: 1px solid var(--ops-border);
  border-radius: 12px;
  background: #131b29;
}

.ops-metric { padding: 15px 16px; }
.ops-metric-label { color: #c9d0dd; font-size: 14px; }

.ops-metric-value {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  font-size: 27px;
  font-weight: 650;
  line-height: 1.25;
}

.ops-metric-change {
  padding: 3px 6px;
  color: #a8b1c2;
  background: #212b3a;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
}

.ops-chart { padding: 16px; }

.ops-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ops-select { position: relative; display: inline-flex; flex: 0 0 auto; }
.ops-select select {
  appearance: none;
  min-height: 34px;
  padding: 6px 30px 6px 10px;
  color: var(--ops-text);
  background: #171f2e;
  border: 1px solid #354055;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
}
.ops-select > span:last-child {
  position: absolute;
  right: 9px;
  top: 50%;
  display: inline-flex;
  transform: translateY(-50%);
  color: #a0a8b6;
  pointer-events: none;
}
.ops-select option, .ops-editor option { background: #171f2e; color: #f1f3f8; }

.ops-chart-body {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  grid-template-rows: 212px auto;
  column-gap: 10px;
  row-gap: 12px;
  padding: 27px 7px 2px 0;
}

.ops-chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  color: var(--ops-muted);
  font-size: 12px;
  line-height: 1;
  margin: -5px 0 -5px;
}

.ops-chart-grid {
  border-bottom: 1px solid #323d50;
  background-image: repeating-linear-gradient(to bottom, #293446 0 1px, transparent 1px 25%);
}

.ops-chart-x {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  color: var(--ops-muted);
  font-size: 12px;
}

.ops-table-panel .ops-panel-head { padding: 14px 16px; }
.ops-table-scroll { overflow-x: auto; }
.ops-table-panel table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.ops-table-panel th, .ops-table-panel td { padding: 12px 16px; border-top: 1px solid var(--ops-border); }
.ops-table-panel th { color: #a9b2c2; font-weight: 550; white-space: nowrap; }
.ops-table-panel td.ops-table-empty { height: 125px; text-align: center; color: var(--ops-muted); }

.ops-workspace-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 40px 4px;
}

.ops-workspace-page > h1 { line-height: 32px; }

.ops-workspace-empty {
  flex: 1;
  display: grid;
  place-items: center;
}

.ops-create-form {
  display: flex;
  flex-direction: column;
  width: min(384px, 100%);
  gap: 16px;
  padding-block: 40px;
}

.ops-empty-symbol {
  display: grid;
  place-items: center;
  align-self: center;
  width: 48px;
  height: 48px;
  color: #c1c8d5;
  background: #202837;
  border-radius: 50%;
}

.ops-create-form h2 {
  text-align: center;
  font-size: 16px;
  line-height: 24px;
}

.ops-create-field {
  display: grid;
  grid-template-rows: 20px 36px;
  gap: 8px;
}

.ops-create-form label, .ops-field-label, .ops-editor label {
  color: #e3e7ef;
  font-size: 14px;
  font-weight: 550;
}

.ops-create-form input, .ops-members summary, .ops-editor input, .ops-editor select, .ops-editor textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--ops-text, #f1f3f8);
  background: var(--ops-field, #161e2c);
  border: 1px solid var(--ops-border, #293243);
  border-radius: 8px;
}

.ops-create-field > label, .ops-create-field > .ops-field-label { line-height: 20px; }

.ops-create-form input, .ops-members summary {
  height: 36px;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 14px;
  line-height: 20px;
}

.ops-create-form input::placeholder, .ops-editor input::placeholder { color: #8c96a8; }

.ops-members { position: relative; }

.ops-members summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  color: #9fa9ba;
  cursor: pointer;
  font-size: 14px;
}

.ops-members summary::-webkit-details-marker { display: none; }
.ops-members[open] summary svg { transform: rotate(180deg); }

.ops-members > div {
  position: absolute;
  top: calc(100% + 4px);
  z-index: 1;
  width: 100%;
  padding: 11px 12px;
  color: var(--ops-muted);
  background: #182130;
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  box-shadow: 0 7px 17px #0005;
  font-size: 13px;
}

.ops-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.3;
}

.ops-primary { color: #fff; background: #5664e7; border-color: #6975eb; }
.ops-primary:hover:not(:disabled) { background: #6876fa; }
.ops-primary:disabled { color: #aeb7cc; background: #303d60; border-color: #39476c; cursor: default; opacity: .72; }
.ops-secondary { color: #e7ebf3; background: #1b2433; border-color: #313e54; }
.ops-secondary:hover { background: #283549; }
.ops-danger { color: #ffd7dd; background: #562533; border-color: #7c3c4f; }
.ops-danger:hover { background: #723243; }
.ops-create-button {
  align-self: center;
  min-height: 32px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}

.ops-workspace { min-width: 0; }
.ops-workspace-head { margin-bottom: 16px; }
.ops-workspace-head > h2 { overflow-wrap: anywhere; }

.ops-stages {
  display: flex;
  align-items: flex-start;
  min-height: 270px;
  padding: 2px 2px 13px;
  gap: 13px;
  overflow-x: auto;
}

.ops-stage, .ops-stage-add { flex: 0 0 258px; }

.ops-stage {
  padding: 12px;
  background: #141d2a;
  border: 1px solid var(--ops-border);
  border-radius: 11px;
}

.ops-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}

.ops-stage-name {
  min-width: 0;
  padding: 2px 0;
  text-align: left;
  color: #f1f3f8;
  background: transparent;
  border: 0;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.ops-stage-name:hover { color: #a9b3ff; }
.ops-item-count { padding: 3px 6px; color: #aeb8ca; background: #253043; border-radius: 5px; font-size: 12px; }
.ops-stage-items { display: grid; gap: 7px; }
.ops-add-item { width: 100%; margin-top: 9px; }

.ops-work-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  text-align: left;
  color: #f1f3f8;
  background: #1c2636;
  border: 1px solid #354257;
  border-radius: 7px;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.ops-work-item:hover { background: #273348; }
.ops-work-item strong { font-size: 14px; }
.ops-work-item span { color: #a6b0c3; font-size: 13px; white-space: pre-wrap; }
.ops-editor { display: grid; gap: 8px; }
.ops-editor label:not(:first-child) { margin-top: 5px; }
.ops-editor textarea { resize: vertical; }

@media (max-width: 900px) {
  .ops-analytics { grid-template-columns: 199px minmax(0, 1fr); }
  .ops-analytics-nav { padding-inline: 12px; }
  .ops-analytics-tab { padding-inline: 9px; gap: 9px; }
  .ops-analytics-main { padding: 16px; }
  .ops-metrics { gap: 8px; }
  .ops-metric { padding: 11px; }
}
@media (max-width: 710px) {
  .ops-analytics { display: block; }
  .ops-analytics-nav { padding: 14px 12px 10px; border-right: 0; border-bottom: 1px solid #222b39; }
  .ops-analytics-nav h2 { margin-bottom: 8px; padding-inline: 9px; }
  .ops-analytics-nav nav { display: flex; overflow-x: auto; }
  .ops-analytics-tab { flex: 0 0 auto; }
  .ops-workspace-page { padding: 18px; }
}
@media (max-width: 490px) {
  .ops-metrics { grid-template-columns: minmax(0, 1fr); }
  .ops-analytics-main > h1 { margin-bottom: 12px; }
  .ops-chart { padding: 12px; }
  .ops-chart-body { grid-template-rows: 170px auto; }
  .ops-chart-x span:nth-child(even) { display: none; }
}

