.ops-home,
.ops-stack,
.ops-upload-grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.ops-home.has-latest {
  grid-template-columns: minmax(340px, 1fr) minmax(0, 2.2fr);
}
.ops-upload-grid {
  grid-template-columns: minmax(0, 1fr) clamp(300px, 23vw, 400px);
  align-items: stretch;
}
.ops-upload-grid > .ops-upload-panel,
.ops-upload-grid > .ops-guide {
  align-content: start;
}
.ops-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px 22px;
}
.ops-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.ops-panel-header h2,
.ops-done h2 {
  font-size: 19px;
  line-height: 1.3;
}
.ops-panel-header p,
.ops-muted {
  color: var(--muted);
  font-size: 13px;
}
.ops-panel-header p {
  margin-top: 2px;
}
.ops-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
button.ops-link {
  background: transparent;
  border: 0;
  color: inherit;
  min-height: 0;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #c9c9d3;
  text-underline-offset: 3px;
  white-space: nowrap;
}
button.ops-link:hover:not(:disabled) {
  background: var(--subtle);
  text-decoration-color: currentColor;
}
.ops-latest-actions button,
.ops-query .ops-actions button,
.ops-upload-actions button,
.ops-done .ops-actions button:not(.ops-link) {
  min-height: 38px;
  padding: 7px 16px;
  border-radius: 10px;
  font-size: 14px;
}
.ops-header-button {
  min-height: 37px;
  padding: 7px 16px;
  border-radius: 10px;
  font-size: 14px;
}
.ops-header-button .ui-icon,
.ops-icon {
  width: 15px;
  height: 15px;
}
[data-theme='dark'] button.ops-link { text-decoration-color: #55555e; }
.ops-charcoal {
  --ops-char-soft: #3a3a46;
  background: var(--char);
  color: #f6f6fa;
  border-radius: 14px;
}
[data-theme='dark'] .ops-charcoal {
  --ops-char-soft: #38383f;
}
.ops-charcoal h2 {
  color: #f4f4f7;
}
button.ops-key {
  color: #1c1c24;
  background: var(--accent);
  border-color: transparent;
  font-weight: 600;
}
button.ops-key:hover:not(:disabled) {
  background: #f2d900;
}
.ops-latest {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 20px 24px 18px;
}
.ops-latest > .ops-actions {
  margin-top: auto;
}
.ops-latest-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  color: var(--char-muted);
  font-size: 13px;
  line-height: 1.35;
}
.ops-latest h2 {
  color: #fff;
  font-size: 22px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ops-latest h3 {
  font-size: 14px;
  color: #fff;
}
.ops-latest dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 14px;
  line-height: 1.35;
}
.ops-latest dt,
.ops-latest dd {
  font-size: 13px;
}
.ops-latest dt {
  color: var(--char-muted);
}
.ops-latest dd {
  margin: 0;
  font-family: var(--num);
  overflow-wrap: anywhere;
}
.ops-charcoal button.ops-charcoal-button {
  background: transparent;
  border-color: var(--char-line);
  color: #fff;
}
.ops-charcoal button.ops-charcoal-button:hover {
  background: var(--ops-char-soft);
}
.ops-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.ops-latest .ops-tags {
  margin-top: 8px;
}
.ops-tags span,
.ops-version {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border-radius: 6px;
  background: var(--subtle);
  padding: 2px 6px;
}
.ops-version {
  display: inline-block;
  min-width: 30px;
  padding: 1px 7px;
  background: var(--char);
  color: #fff;
  font: 600 12.5px/1.5 var(--num);
  text-align: center;
}
[data-theme='dark'] .ops-version {
  background: #3d3d45;
  color: #f5f5f7;
}
.ops-latest .ops-tags span {
  min-height: 22px;
  background: var(--char);
  color: var(--accent);
}
.ops-latest .ops-tags .ops-version {
  font-weight: 700;
  color: #fff;
}
[data-theme='dark'] .ops-latest .ops-tags .ops-version {
  background: #3d3d45;
  color: #f5f5f7;
}
.ops-profit {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--char-line);
}
.ops-profit p {
  color: var(--char-muted);
  font-size: 13px;
}
.ops-profit-plot {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min-content, 1fr);
  gap: 10px;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  list-style: none;
  font-family: var(--num, Bahnschrift, 'Segoe UI', sans-serif);
  font-variant-numeric: tabular-nums;
}
.ops-profit-plot li {
  display: grid;
  grid-template-rows: 100px 16px;
  justify-items: center;
  align-items: end;
  gap: 4px;
  min-width: 47px;
  color: var(--char-muted);
  font-size: 12px;
}
.ops-profit-value,
.ops-profit-value-size {
  fill: var(--char-muted);
  font: 500 12px var(--num);
}
.ops-profit-track {
  display: block;
  width: 100%;
  height: 100%;
  contain: inline-size;
  grid-area: 1 / 1;
}
.ops-profit-value-size {
  grid-area: 1 / 1;
  height: 0;
  visibility: hidden;
  white-space: nowrap;
}
.ops-profit-track line {
  stroke: var(--char-line);
  vector-effect: non-scaling-stroke;
}
.ops-profit-track rect {
  fill: #575768;
}
.ops-profit-plot .latest-year .ops-profit-track rect {
  fill: var(--accent);
}
.ops-profit-plot .latest-year .ops-profit-value {
  fill: #fff;
  font-weight: 700;
}
.ops-profit-plot .latest-year > span {
  font-weight: 700;
  color: #fff;
}
.ops-query {
  display: grid;
  padding: 14px 18px;
  gap: 10px 12px;
  align-items: end;
  grid-template-columns: minmax(220px, 2fr) repeat(5, minmax(110px, 1fr)) auto;
}
.ops-query .ops-actions {
  flex-wrap: nowrap;
  gap: 6px;
}
.ops-form-grid {
  display: grid;
  gap: 12px 14px;
  align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
}
.ops-query label,
.ops-form-grid label,
#ops-upload-name .field {
  margin: 0;
  min-width: 0;
  line-height: 1.35;
}
.ops-query input,
.ops-form-grid :is(input, select),
#ops-upload-name input {
  width: 100%;
  min-width: 0;
}
.ops-form-grid > div {
  min-width: 0;
}
.ops-form-grid .ops-muted {
  margin-top: 3px;
}
.ops-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 65vh;
}
.ops-flat-table {
  border: 0;
  border-radius: 0;
}
.ops-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ink);
}
.ops-table :is(th, td) {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.ops-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--subtle);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ops-table th[scope='row'] {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ops-table td .ops-actions {
  gap: 6px;
  flex-wrap: nowrap;
}
.ops-records th:first-child {
  min-width: 140px;
}
.ops-records time {
  white-space: nowrap;
  font: 600 13px var(--num);
}
.ops-record-name small {
  display: block;
  margin-top: 2px;
  font: 12px var(--num);
  color: var(--muted);
  font-weight: 400;
  overflow-wrap: anywhere;
}
.ops-table .ops-scenario {
  min-height: 30px;
  min-width: 100px;
  max-width: 180px;
  padding-block: 3px;
}
.ops-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 150px;
}
.ops-pagination {
  margin-top: 14px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
}
.ops-dialog-meta {
  color: var(--muted);
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.ops-files-modal .dialog-head {
  margin-bottom: 4px;
}
.ops-files-modal .dialog-head .dialog-x {
  min-width: 0;
  flex: 0 0 32px;
}
.ops-files-modal .dialog-actions > button {
  min-width: 0;
}
.ops-file-dialog {
  max-height: 46vh;
}
.ops-file-dialog .ops-table {
  min-width: 540px;
  table-layout: fixed;
}
.ops-file-dialog td:not(.ops-source) {
  overflow-wrap: anywhere;
}
.ops-file-dialog th:first-child {
  width: 100px;
}
.ops-file-dialog td:first-child {
  white-space: nowrap;
  font-family: var(--num);
}
.ops-file-dialog th:nth-child(2) {
  width: 28%;
}
.ops-file-dialog:has(.ops-file-action) th:last-child {
  width: 102px;
}
.ops-file-dialog .ops-source {
  white-space: nowrap;
}
.ops-files-modal a[data-download] {
  min-height: 0;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}
.ops-files-modal a[data-download]:hover {
  background: var(--subtle);
}
.ops-file-dialog:has(.ops-file-action) tr > :last-child,
.ops-map-table tr:not(.ops-map-preview) > :last-child {
  text-align: right;
}
.ops-map-table td:last-child .ops-actions {
  justify-content: flex-end;
}
.ops-steps {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 2px;
  padding: 3px;
  margin: 0;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.ops-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.ops-step-number {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
}
.ops-steps .step-complete,
.ops-step-header {
  color: var(--ink);
}
.ops-steps .step-complete .ops-step-number {
  background: var(--inverse);
  color: var(--accent);
  border-color: transparent;
}
[data-theme='dark'] .ops-steps .step-complete .ops-step-number {
  color: var(--on-inverse);
}
.ops-steps li[aria-current='step'] {
  background: var(--inverse);
  color: var(--on-inverse);
}
.ops-steps li[aria-current='step'] .ops-step-number,
.ops-step-header .ops-step-number,
.ops-done-icon {
  background: var(--accent);
  color: #1c1c24;
  border-color: transparent;
}
[data-theme='dark'] .ops-steps li[aria-current='step'] .ops-step-number {
  background: var(--on-inverse);
  color: var(--accent);
}
.ops-upload-panel {
  display: grid;
  gap: 16px;
}
.module-bar:has(.ops-steps) {
  min-height: 95px;
}
.ops-upload-panel > .ops-step-header {
  margin: 0 0 -4px;
  justify-content: flex-start;
}
#ops-upload-review > .ops-step-header {
  margin-bottom: -2px;
}
.ops-step-header h2 {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ops-step-header .ops-step-number {
  width: 29px;
  height: 26px;
  border-radius: 6px;
  font: 700 14px var(--num);
}
.ops-upload-mode {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ops-mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.ops-mode-tabs button,
.ops-mode-tabs button[aria-pressed='true'] {
  min-height: 26px;
  padding: 4px 9px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}
.ops-mode-tabs button[aria-pressed='true'] {
  color: var(--ink);
  background: var(--panel);
}
[data-theme='dark'] .ops-mode-tabs button[aria-pressed='true'] {
  background: #3d3d44;
}
.ops-drop {
  display: grid;
  padding: 30px 20px;
  border: 1px dashed #c5c7d1;
  border-radius: 12px;
  background: var(--subtle);
  text-align: center;
  line-height: 1.35;
  justify-items: center;
  gap: 10px;
  transition: background-color .15s;
}
.ops-drop > .ui-icon {
  width: 28px;
  height: 28px;
}
.ops-drop strong {
  font-size: 15px;
}
.ops-drop p {
  color: var(--muted);
  font-size: 12.5px;
}
.ops-drop .ops-actions {
  justify-content: center;
}
.ops-drop .ops-actions button {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
}
.ops-drop.is-dragging {
  background: #fff7c4;
}
[data-theme='dark'] .ops-drop {
  border-color: #55555e;
}
[data-theme='dark'] .ops-drop.is-dragging { background: #3b3520; }
.ops-chosen-files:empty {
  display: none;
}
.ops-chosen-files header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}
.ops-chosen-files header strong {
  color: var(--ink);
}
.ops-chosen-files header button {
  margin-left: auto;
}
.ops-file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  max-height: 240px;
  overflow-y: auto;
}
.ops-file-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  min-height: 36px;
  font-size: 13px;
}
.ops-file-list li + li {
  border-top: 1px solid var(--line);
}
.ops-file-list li span {
  font-family: var(--num);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ops-file-list li small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ops-xbutton {
  min-height: 24px;
  width: 24px;
  padding: 4px;
  background: transparent;
  border: 0;
}
.ops-guide {
  padding: 22px 24px;
  display: grid;
  gap: 14px;
}
.ops-guide h2,
.ops-guide ol {
  font-size: 17px;
}
.ops-guide ol {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: upload-guide;
}
.ops-guide li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  line-height: 1.6;
  counter-increment: upload-guide;
}
.ops-guide li::before {
  content: counter(upload-guide);
  background: var(--accent);
  border-radius: 50%;
  color: #1c1c24;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: .2em;
  font-weight: 700;
  line-height: 1;
}
.ops-guide code {
  color: var(--accent);
  background: var(--ops-char-soft);
  border-radius: 3px;
  padding-inline: 4px;
  font: inherit;
  word-break: break-all;
}
.ops-guide .ops-guide-foot {
  border-top: 1px solid var(--char-line);
  color: var(--char-muted);
  font-size: 12px;
  line-height: 1.6;
  padding-top: 12px;
}
.ops-guide a {
  color: var(--accent);
  width: fit-content;
  font-weight: 600;
  font-size: 13px;
}
.ops-error,
.ops-warnings {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 14%, var(--subtle));
  border-radius: 8px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}
.ops-error button {
  margin-top: 8px;
}
.ops-table .ops-number {
  text-align: right;
}
.ops-table .ops-source {
  min-width: 144px;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 12.5px var(--num);
  color: var(--muted);
}
.ops-map-table {
  max-height: 56vh;
}
.ops-map-table input:not([type='checkbox']) {
  width: 100%;
  min-height: 30px;
  padding-block: 3px;
  min-width: 105px;
}
.ops-map-table td:nth-child(2) input {
  min-width: 230px;
}
.ops-map-table td:nth-child(5) {
  min-width: 85px;
}
.ops-map-table .ops-map-preview > td {
  background: var(--subtle);
  padding: 10px 14px;
}
.ops-map-preview p {
  margin-top: 5px;
}
.ops-map-preview .table-wrap {
  max-width: min(100%, 740px);
  max-height: 190px;
}
button.ops-inline-edit {
  display: inline;
  padding: 0;
  min-height: 0;
  text-align: left;
  border: 0;
  background: transparent;
  font-size: inherit;
  line-height: inherit;
}
button.ops-inline-edit:hover:not(:disabled) { text-decoration: underline; }
.ops-attention {
  display: inline-block;
  color: #6f5400;
  font-weight: 600;
}
[data-theme='dark'] .ops-attention { color: #f3dc6b; }
.ops-warnings {
  list-style: none;
  display: grid;
  gap: 3px;
}
.ops-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-bottom: -2px;
}
.ops-review-meta > div {
  display: flex;
  gap: 6px;
  min-width: 0;
}
.ops-review-meta dt {
  color: var(--muted);
  font-size: 13px;
}
.ops-review-meta dd {
  font: 600 13px var(--num);
  margin: 0;
  overflow-wrap: anywhere;
}
.ops-coverage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 12px;
}
.ops-coverage section {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-wrap: anywhere;
}
.ops-coverage h3 {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 15px;
}
.ops-coverage h3 small {
  color: var(--muted);
  font: 600 13px var(--num);
}
.ops-coverage .ops-tags span,
.ops-change-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--subtle);
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 12px;
}
.ops-change-label.replaced {
  background: #fff7c4;
  color: #6f5400;
}
[data-theme='dark'] .ops-change-label.replaced {
  background: #3b3520;
  color: #f3dc6b;
}
.ops-changes td:first-child { width: 70px; }
.ops-changes td:nth-child(2) { width: 120px; }
.ops-fold {
  border-top: 1px solid var(--line-soft);
  min-width: 0;
  padding-top: 10px;
}
.ops-fold summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.ops-fold[open] summary,
.ops-file-dialog {
  margin-bottom: 12px;
}
.ops-done {
  display: grid;
  gap: 12px;
  justify-items: start;
  max-width: 760px;
  padding: 30px 34px;
}
.ops-done h2 {
  line-height: 1.5;
}
.ops-done-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 21px;
}
.ops-done-icon .ui-icon {
  width: 24px;
  height: 24px;
}
.account-table-wrap .account-table {
  min-width: 0;
}
.account-table-wrap .account-table th[scope='row'] {
  min-width: 120px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.account-table-wrap .account-table td:nth-child(2) {
  min-width: 132px;
}
.account-table-wrap .account-table td:nth-child(3) {
  min-width: 64px;
}
.account-table-wrap .account-tag {
  white-space: nowrap;
}
.account-table-wrap .account-table .row-actions {
  flex-wrap: nowrap;
  white-space: nowrap;
}
.account-table-wrap .account-table .row-actions button {
  white-space: nowrap;
}
#login-form .login-input-wrap {
  gap: 4px;
  font-size: 12.5px;
}
@media (max-width: 1360px) {
  .access-story .lite-brand {
    justify-content: center;
  }
  .access-story .lite-brand > span:last-child {
    display: none;
  }
}
@media (max-width: 1180px) {
  .ops-upload-grid, .ops-home.has-latest {
    grid-template-columns: minmax(0, 1fr);
  }
  .ops-query {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .account-filters {
    display: grid;
    gap: 2px;
  }
  .account-filter-separator {
    display: block;
  }
  .access-story {
    grid-template-rows: auto auto;
    gap: 32px;
  }
  .access-form-area {
    align-items: center;
    padding: 30px;
  }
  .access-card {
    padding: 30px 32px;
  }
}
@media (max-width: 760px) {
  .ops-steps {
    flex-wrap: nowrap;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ops-steps li {
    flex: none;
    padding: 6px 10px 6px 6px;
    font-size: 13px;
  }
  .ops-panel,
  .ops-charcoal {
    padding: 14px;
  }
  .access-story {
    padding: 30px;
  }
  .access-story h1 {
    font-size: 30px;
  }
  .account-table-wrap .account-table td:nth-child(2) {
    min-width: 112px;
  }
  .account-table-wrap .account-table td:nth-child(3) {
    min-width: 110px;
  }
  .account-table-wrap .account-table td:nth-child(3) .account-tag {
    padding-inline: 4px;
  }
  .ops-query {
    grid-template-columns: minmax(0, 1fr);
  }
  .module-bar:has(.ops-steps) {
    min-height: 0;
  }
  .module-heading:has(.ops-steps) {
    flex-basis: 100%;
  }
}
@media (max-width: 365px) {
  .access-story,
  .access-form-area,
  .access-card {
    padding: 20px;
  }
}
@media (max-width:760px) {
  .ops-home .ops-latest {padding:20px 24px 18px}
  .ops-upload-grid .ops-guide {padding:22px 24px}
  .account-layout .card h2,.ops-panel-header h2 {font-size:17px}
}
@media (prefers-reduced-motion: reduce) {
  .ops-drop {
    transition: none;
  }
}
