:root {
  --ops-navy: #0a2540;
  --ops-navy-2: #123858;
  --ops-green: #59c96b;
  --ops-green-dark: #16783a;
  --ops-ink: #10243a;
  --ops-text: #405368;
  --ops-muted: #667789;
  --ops-line: #d9e2e8;
  --ops-soft: #f3f6f7;
  --ops-soft-blue: #edf3f7;
  --ops-white: #fff;
  --ops-danger: #9f2828;
  --ops-warning: #865300;
  --ops-topbar: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ops-ink);
  background: var(--ops-soft);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--ops-soft);
}

body {
  min-height: 100vh;
  color: var(--ops-ink);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(22, 120, 58, .25);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.ops-review-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  min-height: 42px;
  padding: 8px 18px;
  color: #fff;
  background: var(--ops-navy);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.ops-review-banner strong {
  color: var(--ops-green);
  text-transform: uppercase;
}

.ops-access {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.ops-access__header,
.ops-access__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.ops-access__header {
  min-height: 88px;
  border-bottom: 1px solid var(--ops-line);
}

.ops-access__header img {
  display: block;
  width: 164px;
  height: auto;
}

.ops-access__header > span {
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 800;
}

.ops-access__main {
  display: grid;
  place-items: center;
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  padding: 56px 0 72px;
}

.ops-access__panel {
  width: min(620px, 100%);
  padding: 42px;
  border: 1px solid var(--ops-line);
  border-top: 4px solid var(--ops-green);
  border-radius: 6px;
  background: var(--ops-white);
  box-shadow: 0 14px 38px rgba(10, 37, 64, .1);
}

.ops-eyebrow {
  margin: 0 0 8px;
  color: var(--ops-green-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-access h1,
.ops-pagehead h1 {
  margin: 0;
  color: var(--ops-navy);
  font-size: 31px;
  line-height: 1.15;
}

.ops-access__panel > p:not(.ops-eyebrow, .ops-feedback) {
  margin: 14px 0 0;
  color: var(--ops-text);
  font-size: 14px;
  line-height: 1.65;
}

.ops-token-notice {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid #b8dbc0;
  border-left: 4px solid var(--ops-green-dark);
  border-radius: 4px;
  color: var(--ops-text);
  background: #f1faf3;
  font-size: 12px;
}

.ops-token-notice strong {
  color: var(--ops-navy);
}

.ops-login-form {
  margin-top: 28px;
}

.ops-login-form label,
.ops-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ops-ink);
  font-size: 12px;
  font-weight: 800;
}

.ops-login-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #a9b9c4;
  border-radius: 4px;
  color: var(--ops-ink);
  background: var(--ops-white);
}

textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ops-green-dark);
  outline: 3px solid rgba(22, 120, 58, .12);
}

.ops-login-form small {
  display: block;
  margin-top: 8px;
  color: var(--ops-muted);
  font-size: 11px;
}

.ops-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.ops-button:disabled {
  cursor: wait;
  opacity: .56;
}

.ops-button--primary {
  border-color: var(--ops-green);
  color: var(--ops-navy);
  background: var(--ops-green);
}

.ops-button--primary:hover:not(:disabled) {
  border-color: #48b95a;
  background: #48b95a;
}

.ops-button--quiet,
.ops-button--secondary {
  border-color: #aebdc8;
  color: var(--ops-navy);
  background: var(--ops-white);
}

.ops-button--quiet:hover:not(:disabled),
.ops-button--secondary:hover:not(:disabled) {
  background: var(--ops-soft-blue);
}

.ops-button--danger {
  border-color: #e4b4b4;
  color: var(--ops-danger);
  background: #fff7f7;
}

.ops-feedback {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--ops-green-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.ops-feedback.is-error {
  color: var(--ops-danger);
}

.ops-access__footer {
  min-height: 64px;
  border-top: 1px solid var(--ops-line);
  color: var(--ops-muted);
  font-size: 11px;
}

.ops-access__footer a {
  color: var(--ops-green-dark);
  font-weight: 800;
  text-decoration: none;
}

.ops-access__footer nav {
  display: flex;
  gap: 18px;
}

.ops-app {
  min-height: 100vh;
}

.ops-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: var(--ops-topbar);
  border-bottom: 1px solid var(--ops-line);
  background: rgba(255, 255, 255, .98);
}

.ops-topbar__inner {
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(1500px, calc(100% - 36px));
  min-height: var(--ops-topbar);
  margin-inline: auto;
}

.ops-topbar img {
  display: block;
  width: 137px;
  height: auto;
}

.ops-topbar__product {
  display: grid;
  gap: 1px;
  padding-left: 16px;
  border-left: 1px solid var(--ops-line);
}

.ops-topbar__product span {
  color: var(--ops-muted);
  font-size: 10px;
}

.ops-topbar__product strong {
  color: var(--ops-navy);
  font-size: 12px;
}

.ops-building-picker {
  display: grid;
  grid-template-columns: auto minmax(180px, 420px);
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.ops-building-picker > span {
  color: var(--ops-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-building-picker select {
  min-height: 39px;
}

.ops-topbar__user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ops-topbar__user > span {
  max-width: 180px;
  overflow: hidden;
  color: var(--ops-text);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  width: min(1500px, 100%);
  min-height: calc(100vh - var(--ops-topbar));
  margin-inline: auto;
}

.ops-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - var(--ops-topbar));
  padding: 22px 15px;
  border-right: 1px solid var(--ops-line);
  background: var(--ops-navy);
}

.ops-sidebar nav {
  display: grid;
  gap: 4px;
}

.ops-sidebar nav button {
  width: 100%;
  min-height: 41px;
  padding: 9px 11px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 3px;
  color: #dce7ee;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.ops-sidebar nav button:hover {
  color: var(--ops-white);
  background: rgba(255, 255, 255, .08);
}

.ops-sidebar nav button.is-active {
  border-left-color: var(--ops-green);
  color: var(--ops-white);
  background: rgba(255, 255, 255, .12);
}

.ops-sidebar__boundary {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px;
  color: #b9c8d2;
  font-size: 10px;
  line-height: 1.45;
}

.ops-sidebar__boundary strong {
  color: var(--ops-white);
  font-size: 11px;
}

.ops-main {
  min-width: 0;
  padding: 30px clamp(18px, 3.5vw, 48px) 68px;
}

.ops-pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1190px;
  margin: 0 auto 24px;
}

.ops-pagehead h1 {
  font-size: 27px;
}

.ops-pagehead > div > p:last-child {
  margin: 7px 0 0;
  color: var(--ops-text);
  font-size: 13px;
  line-height: 1.55;
}

.ops-loading,
.ops-feedback--app,
.ops-view {
  max-width: 1190px;
  margin-inline: auto;
}

.ops-loading {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ops-muted);
  font-size: 11px;
}

.ops-loading > span {
  position: relative;
  display: block;
  height: 3px;
  overflow: hidden;
  background: #dce5e9;
}

.ops-loading > span::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  background: var(--ops-green-dark);
  content: "";
  animation: ops-load 1s ease-in-out infinite alternate;
}

@keyframes ops-load {
  to { left: 58%; }
}

.ops-feedback--app {
  margin-top: -8px;
  margin-bottom: 12px;
}

.ops-view {
  display: grid;
  gap: 18px;
}

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ops-line);
  border-radius: 6px;
  background: var(--ops-white);
}

.ops-metrics > div {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--ops-line);
}

.ops-metrics > div:last-child {
  border-right: 0;
}

.ops-metrics span,
.ops-record__meta span,
.ops-building-card dt {
  display: block;
  color: var(--ops-muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-metrics strong {
  display: block;
  margin-top: 7px;
  color: var(--ops-navy);
  font-size: 23px;
  line-height: 1;
}

.ops-panel {
  border: 1px solid var(--ops-line);
  border-radius: 6px;
  background: var(--ops-white);
}

.ops-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--ops-line);
}

.ops-panel__header h2 {
  margin: 0;
  color: var(--ops-navy);
  font-size: 16px;
}

.ops-panel__header p {
  margin: 4px 0 0;
  color: var(--ops-muted);
  font-size: 11px;
  line-height: 1.45;
}

.ops-segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(82px, auto));
  padding: 3px;
  border: 1px solid var(--ops-line);
  border-radius: 4px;
  background: var(--ops-soft-blue);
}

.ops-segmented button {
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 3px;
  color: var(--ops-text);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.ops-segmented button[aria-pressed="true"] {
  color: var(--ops-navy);
  background: var(--ops-white);
  box-shadow: 0 1px 3px rgba(10, 37, 64, .12);
}

.ops-record-list {
  display: grid;
}

.ops-record {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(100px, .52fr)) auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--ops-line);
}

.ops-record:last-child {
  border-bottom: 0;
}

.ops-record__main {
  min-width: 0;
}

.ops-record__main > strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--ops-ink);
  font-size: 13px;
}

.ops-record__main p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--ops-muted);
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-record__meta strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--ops-ink);
  font-size: 11px;
  line-height: 1.4;
}

.ops-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 3px;
  color: #3d5363;
  background: #eaf0f3;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-status--open,
.ops-status--new,
.ops-status--draft {
  color: #334f65;
  background: #e8f0f5;
}

.ops-status--high,
.ops-status--critical,
.ops-status--major {
  color: #8d2020;
  background: #fdecec;
}

.ops-status--scheduled,
.ops-status--planned,
.ops-status--triaged,
.ops-status--moderate,
.ops-status--medium {
  color: #754900;
  background: #fff2d7;
}

.ops-status--in_progress,
.ops-status--dispatched,
.ops-status--monitoring {
  color: #125f75;
  background: #e4f5f8;
}

.ops-status--resolved,
.ops-status--completed,
.ops-status--verified,
.ops-status--closed {
  color: #145d31;
  background: #e8f7eb;
}

.ops-empty {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-height: 140px;
  padding: 30px 18px;
  color: var(--ops-muted);
}

.ops-empty strong {
  color: var(--ops-navy);
  font-size: 14px;
}

.ops-empty p {
  max-width: 620px;
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.ops-building-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ops-building-card {
  padding: 18px;
  border: 1px solid var(--ops-line);
  border-radius: 6px;
  background: var(--ops-white);
}

.ops-building-card > span {
  color: var(--ops-green-dark);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-building-card h2 {
  margin: 7px 0 0;
  color: var(--ops-navy);
  font-size: 16px;
}

.ops-building-card > p {
  margin: 5px 0 0;
  color: var(--ops-muted);
  font-size: 11px;
}

.ops-building-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--ops-line);
}

.ops-building-card dd {
  margin: 4px 0 0;
  color: var(--ops-navy);
  font-size: 15px;
  font-weight: 800;
}

.ops-form {
  display: grid;
  gap: 16px;
}

.ops-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ops-field {
  min-width: 0;
}

.ops-field--wide {
  grid-column: 1 / -1;
}

.ops-field small {
  display: block;
  margin-top: 5px;
  color: var(--ops-muted);
  font-size: 10px;
  line-height: 1.4;
}

.ops-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ops-text);
  font-size: 11px;
  line-height: 1.4;
}

.ops-checkbox input {
  width: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: var(--ops-green-dark);
}

.ops-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.ops-drawer-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(590px, 780px);
}

.ops-drawer-backdrop {
  border: 0;
  background: rgba(10, 37, 64, .45);
  cursor: default;
}

.ops-drawer {
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--ops-white);
  box-shadow: -12px 0 34px rgba(10, 37, 64, .16);
}

.ops-drawer > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--ops-line);
  background: rgba(255, 255, 255, .98);
}

.ops-drawer h2 {
  margin: 0;
  color: var(--ops-navy);
  font-size: 20px;
}

.ops-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--ops-line);
  border-radius: 4px;
  color: var(--ops-navy);
  background: var(--ops-white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ops-drawer__body {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.ops-product-purpose {
  padding: 18px;
  border: 1px solid #b8d7c0;
  border-left: 5px solid var(--ops-green-dark);
  border-radius: 5px;
  background: #f2faf4;
}

.ops-product-purpose > span,
.ops-next-action > span,
.ops-customer-preview span {
  display: block;
  color: var(--ops-green-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ops-product-purpose > strong,
.ops-next-action > strong {
  display: block;
  margin-top: 6px;
  color: var(--ops-navy);
  font-size: 15px;
}

.ops-product-purpose p,
.ops-next-action p,
.ops-customer-preview p {
  margin: 6px 0 0;
  color: var(--ops-text);
  font-size: 11px;
  line-height: 1.55;
}

.ops-phase-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.ops-phase-rail li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--ops-muted);
  font-size: 8px;
  text-align: center;
}

.ops-phase-rail li::before {
  position: absolute;
  z-index: 0;
  top: 12px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--ops-line);
  content: "";
}

.ops-phase-rail li:first-child::before {
  display: none;
}

.ops-phase-rail li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid var(--ops-line);
  border-radius: 50%;
  background: var(--ops-white);
  font-size: 9px;
  font-weight: 900;
}

.ops-phase-rail li.is-complete,
.ops-phase-rail li.is-current {
  color: var(--ops-navy);
}

.ops-phase-rail li.is-complete::before,
.ops-phase-rail li.is-current::before {
  background: var(--ops-green);
}

.ops-phase-rail li.is-complete > span {
  border-color: var(--ops-green-dark);
  color: #fff;
  background: var(--ops-green-dark);
}

.ops-phase-rail li.is-current > span {
  border-color: var(--ops-green-dark);
  color: var(--ops-green-dark);
}

.ops-detail-summary {
  padding: 16px;
  border: 1px solid var(--ops-line);
  border-radius: 5px;
  background: #fafcfc;
}

.ops-detail-summary > strong {
  display: block;
  margin-top: 8px;
  color: var(--ops-navy);
  font-size: 15px;
}

.ops-detail-summary p {
  margin: 7px 0 0;
  color: var(--ops-text);
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.ops-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ops-detail-grid > div {
  padding: 11px;
  border: 1px solid var(--ops-line);
  border-radius: 4px;
}

.ops-detail-grid span {
  color: var(--ops-muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-detail-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--ops-ink);
  font-size: 11px;
}

.ops-readiness {
  padding: 14px;
  border: 1px solid var(--ops-line);
  border-radius: 5px;
  background: var(--ops-white);
}

.ops-readiness__score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.ops-readiness__score span {
  color: var(--ops-navy);
  font-size: 12px;
  font-weight: 900;
}

.ops-readiness__score strong {
  color: var(--ops-green-dark);
  font-size: 14px;
}

.ops-readiness__bar {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf1;
}

.ops-readiness__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ops-green-dark);
}

.ops-readiness--1 .ops-readiness__bar span { width: 20%; }
.ops-readiness--2 .ops-readiness__bar span { width: 40%; }
.ops-readiness--3 .ops-readiness__bar span { width: 60%; }
.ops-readiness--4 .ops-readiness__bar span { width: 80%; }
.ops-readiness--5 .ops-readiness__bar span { width: 100%; }

.ops-readiness ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ops-readiness li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 8px;
  border-radius: 4px;
  color: var(--ops-warning);
  background: #fff8e8;
}

.ops-readiness li.is-ready {
  color: var(--ops-green-dark);
  background: #f0f8f2;
}

.ops-readiness li > span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
}

.ops-readiness li strong,
.ops-readiness li small {
  display: block;
}

.ops-readiness li strong {
  color: var(--ops-ink);
  font-size: 10px;
}

.ops-readiness li small {
  margin-top: 2px;
  color: var(--ops-muted);
  font-size: 9px;
  line-height: 1.35;
}

.ops-next-action {
  padding: 14px;
  border: 1px solid #c7d6e0;
  border-radius: 5px;
  background: var(--ops-soft-blue);
}

.ops-next-action .ops-action-row {
  margin-top: 12px;
}

.ops-customer-preview {
  padding: 14px;
  border: 1px dashed #9eb2c0;
  border-radius: 5px;
  background: #fafcfd;
}

.ops-customer-preview strong {
  display: block;
  margin-top: 5px;
  color: var(--ops-navy);
  font-size: 13px;
}

.ops-work-section {
  overflow: hidden;
  border: 1px solid var(--ops-line);
  border-radius: 5px;
  background: var(--ops-white);
}

.ops-work-section > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  color: var(--ops-navy);
  background: #f8fafb;
  cursor: pointer;
  list-style: none;
}

.ops-work-section > summary::-webkit-details-marker {
  display: none;
}

.ops-work-section > summary > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 4px;
  color: #fff;
  background: var(--ops-navy);
  font-size: 10px;
  font-weight: 900;
}

.ops-work-section > summary strong,
.ops-work-section > summary small {
  display: block;
}

.ops-work-section > summary strong {
  font-size: 12px;
}

.ops-work-section > summary small {
  margin-top: 2px;
  color: var(--ops-muted);
  font-size: 9px;
}

.ops-work-section__body {
  display: grid;
  gap: 13px;
  padding: 15px;
  border-top: 1px solid var(--ops-line);
}

.ops-work-section__body h3 {
  margin: 4px 0 -3px;
  color: var(--ops-navy);
  font-size: 12px;
}

.ops-subpanel {
  border-top: 1px solid var(--ops-line);
  padding-top: 17px;
}

.ops-subpanel h3 {
  margin: 0 0 11px;
  color: var(--ops-navy);
  font-size: 14px;
}

.ops-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ops-checklist {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ops-checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--ops-line);
  border-radius: 4px;
  color: var(--ops-text);
  font-size: 11px;
  line-height: 1.4;
}

.ops-checklist--actionable li {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.ops-checklist--actionable li.is-complete {
  background: #f3faf5;
}

.ops-checklist--actionable strong,
.ops-checklist--actionable small {
  display: block;
}

.ops-checklist--actionable strong {
  color: var(--ops-ink);
  font-size: 11px;
}

.ops-checklist--actionable small {
  margin-top: 3px;
  color: var(--ops-muted);
  font-size: 9px;
}

.ops-checklist__actions {
  display: flex;
  gap: 5px;
}

.ops-mini-action {
  min-height: 31px;
  padding: 5px 8px;
  border: 1px solid var(--ops-green-dark);
  border-radius: 4px;
  color: #fff;
  background: var(--ops-green-dark);
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.ops-mini-action--quiet {
  border-color: #aebdc8;
  color: var(--ops-navy);
  background: var(--ops-white);
}

.ops-empty-note {
  margin: 0;
  padding: 12px;
  border: 1px dashed #b8c7d0;
  border-radius: 4px;
  color: var(--ops-muted);
  background: #fafcfd;
  font-size: 10px;
  line-height: 1.5;
}

.ops-registration-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  color: var(--ops-text);
  background: var(--ops-soft-blue);
  font-size: 10px;
}

.ops-registration-summary strong {
  color: var(--ops-navy);
  font-size: 12px;
}

.ops-history-list,
.ops-evidence-list,
.ops-timeline {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ops-history-list li,
.ops-evidence-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--ops-line);
  border-radius: 4px;
  font-size: 10px;
}

.ops-history-list li div,
.ops-evidence-list li div {
  min-width: 0;
}

.ops-history-list li div > strong,
.ops-history-list li div > span,
.ops-evidence-list li div > strong,
.ops-evidence-list li div > small {
  display: block;
}

.ops-history-list li div > strong,
.ops-evidence-list li div > strong {
  color: var(--ops-ink);
  overflow-wrap: anywhere;
}

.ops-history-list li div > span,
.ops-evidence-list li div > small {
  margin-top: 3px;
  color: var(--ops-muted);
  font-size: 9px;
}

.ops-evidence-list li {
  justify-content: flex-start;
}

.ops-evidence-list li > span {
  color: var(--ops-green-dark);
  font-size: 20px;
}

.ops-timeline {
  padding-left: 14px;
  border-left: 2px solid var(--ops-line);
}

.ops-timeline li {
  position: relative;
  padding: 10px;
  border: 1px solid var(--ops-line);
  border-radius: 4px;
}

.ops-timeline li::before {
  position: absolute;
  top: 15px;
  left: -20px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ops-white);
  border-radius: 50%;
  background: var(--ops-green-dark);
  content: "";
}

.ops-timeline p {
  margin: 8px 0 0;
  color: var(--ops-text);
  font-size: 10px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.ops-timeline small {
  display: block;
  margin-top: 6px;
  color: var(--ops-muted);
  font-size: 9px;
}

@media (prefers-reduced-motion: reduce) {
  .ops-loading > span::after {
    animation: none;
  }
}

@media (max-width: 1040px) {
  .ops-topbar__inner {
    grid-template-columns: auto minmax(220px, 1fr) auto;
  }

  .ops-topbar__product {
    display: none;
  }

  .ops-record {
    grid-template-columns: minmax(220px, 1.25fr) repeat(2, minmax(96px, .5fr)) auto;
  }

  .ops-record > :nth-child(4) {
    display: none;
  }

  .ops-building-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  :root {
    --ops-topbar: 66px;
  }

  .ops-topbar__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: calc(100% - 24px);
    gap: 10px;
  }

  .ops-topbar img {
    width: 122px;
  }

  .ops-building-picker {
    grid-template-columns: 1fr;
  }

  .ops-building-picker > span,
  .ops-topbar__user > span {
    display: none;
  }

  .ops-building-picker select {
    min-width: 0;
  }

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

  .ops-sidebar {
    position: sticky;
    z-index: 20;
    top: var(--ops-topbar);
    display: block;
    min-height: 0;
    padding: 7px 12px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #244b69;
  }

  .ops-sidebar nav {
    display: flex;
    width: max-content;
    min-width: 100%;
  }

  .ops-sidebar nav button {
    width: auto;
    min-height: 38px;
    border-bottom: 3px solid transparent;
    border-left: 0;
    white-space: nowrap;
  }

  .ops-sidebar nav button.is-active {
    border-bottom-color: var(--ops-green);
    border-left-color: transparent;
  }

  .ops-sidebar__boundary {
    display: none;
  }

  .ops-main {
    padding-top: 24px;
  }

  .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .ops-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ops-line);
  }

  .ops-record {
    grid-template-columns: minmax(0, 1fr) minmax(92px, .42fr) auto;
  }

  .ops-record > :nth-child(3) {
    display: none;
  }

  .ops-record__main p {
    white-space: normal;
  }

  .ops-drawer-layer {
    grid-template-columns: 1fr;
  }

  .ops-drawer-backdrop {
    display: none;
  }

  .ops-drawer {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .ops-access__header,
  .ops-access__footer,
  .ops-access__main {
    width: calc(100% - 28px);
  }

  .ops-access__header > span {
    display: none;
  }

  .ops-access__panel {
    padding: 28px 20px;
  }

  .ops-access h1 {
    font-size: 27px;
  }

  .ops-login-form > div {
    grid-template-columns: 1fr;
  }

  .ops-login-form .ops-button {
    width: 100%;
  }

  .ops-access__footer {
    align-items: flex-start;
    padding-block: 12px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  .ops-access__footer nav {
    flex-wrap: wrap;
    gap: 4px 14px;
  }

  .ops-topbar__inner {
    grid-template-columns: auto minmax(110px, 1fr) auto;
  }

  .ops-topbar__user .ops-button {
    min-height: 40px;
    padding-inline: 9px;
    font-size: 10px;
  }

  .ops-building-picker select {
    padding-inline: 7px;
    font-size: 11px;
  }

  .ops-pagehead {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .ops-pagehead .ops-button {
    width: 100%;
  }

  .ops-pagehead h1 {
    font-size: 24px;
  }

  .ops-main {
    padding-right: 13px;
    padding-left: 13px;
  }

  .ops-panel__header {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-segmented {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .ops-record {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-inline: 13px;
  }

  .ops-record > .ops-record__meta {
    display: none;
  }

  .ops-building-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ops-field--wide {
    grid-column: auto;
  }

  .ops-drawer > header,
  .ops-drawer__body {
    padding: 16px;
  }

  .ops-review-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    text-align: left;
  }

  .ops-phase-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 14px;
  }

  .ops-phase-rail li:nth-child(5)::before {
    display: none;
  }

  .ops-readiness ul {
    grid-template-columns: 1fr;
  }

  .ops-checklist--actionable li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ops-checklist__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 400px) {
  .ops-topbar img {
    width: 108px;
  }
}
