body:has(.op-page) {
  background: linear-gradient(155deg, #dfe5eb, #cbd8e4 66%, #a7bdd3);
  color: #17344f;
}
#content:has(.op-page) {
  width: min(100% - 36px, 1120px);
  padding: 0;
  margin-inline: auto;
}
.op-page {
  color: #193753;
  padding: 22px 0 72px;
  font-family: Inter, Arial, sans-serif;
}
.op-page .op-mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
}
.op-mast a,
.op-text {
  color: #234569;
  font:
    500 13px/1.5 Inter,
    Arial,
    sans-serif;
  text-underline-offset: 4px;
}
.op-page button.op-text {
  background: none;
  color: #234569;
  border: 0;
  padding: 3px 0;
  min-height: auto;
  font-weight: 500;
  text-decoration: underline;
}
.op-title {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 30px 0 32px;
}
.op-page h1 {
  color: #172f50;
  font:
    440 clamp(38px, 4.8vw, 70px)/1 Inter,
    Arial,
    sans-serif;
  letter-spacing: -0.067em;
  margin: 0 0 10px;
}
.op-page h2 {
  font:
    500 clamp(21px, 2.4vw, 33px)/1.12 Inter,
    Arial,
    sans-serif;
  color: #1d3d61;
  letter-spacing: -0.054em;
  margin: 0 0 9px;
}
.op-page h3 {
  font:
    540 22px/1.2 Inter,
    Arial,
    sans-serif;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
}
.op-page p {
  font:
    400 14px/1.5 Inter,
    Arial,
    sans-serif;
  color: #3a536e;
}
.op-title p {
  font-size: 16px;
}
.op-page input:not([type="checkbox"]),
.op-page select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  min-height: 43px;
  background: #f7fafc;
  border: 1px solid #98acbe;
  color: #152f4b;
  border-radius: 4px;
  font:
    400 15px/1.45 Inter,
    Arial,
    sans-serif;
}
.op-page :is(label, .op-help) {
  margin: 0;
}
.op-page label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font:
    510 13px/1.45 Inter,
    Arial,
    sans-serif;
  color: #284766;
}
.op-page input.op-address,
.op-page .op-mono {
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.op-page form {
  margin: 0;
}
.op-page .op-check {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
}
.op-page input[type="checkbox"] {
  appearance: auto;
  accent-color: #2c5986;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
}
.op-page button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: #244b75;
  color: #fff;
  border: 1px solid #244b75;
  border-radius: 4px;
  min-height: 40px;
  padding: 8px 15px;
  font:
    520 14px/1.4 Inter,
    Arial,
    sans-serif;
  cursor: pointer;
}
.op-page button:hover {
  background: #193d64;
}
.op-page button:disabled {
  cursor: default;
  opacity: 0.62;
}
.op-page [role="status"] {
  font-size: 13px;
  color: #2a4967;
  overflow-wrap: anywhere;
}
.op-page [role="status"]:empty,
.op-worker:empty {
  display: none;
}
.op-group {
  background: #edf3f8b8;
  border-top: 1px solid #92a8bc;
  padding: clamp(18px, 2.8vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 6vw, 76px);
}
.op-group > div:first-child p {
  max-width: 35ch;
}
.op-fields {
  display: grid;
  gap: 15px;
  min-width: 0;
}
.op-pair {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 12px;
}
.op-page .op-help,
.op-worker {
  font-size: 12px;
}
.op-worker {
  color: #284b70;
  font-family: var(--mono);
}
.op-save {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 15px 0;
}
.op-save p {
  margin-right: auto;
}
.op-password {
  width: min(100%, 560px);
  margin-top: 20px;
}
.op-password summary {
  cursor: pointer;
  font-weight: 510;
}
.op-password form {
  padding-top: 16px;
}
.op-login {
  min-height: 70svh;
}
.op-login-panel,
.op-ticket {
  background: #eff4f8;
  border: 1px solid #a4b8c9;
  border-top: 3px solid #678aaf;
  border-radius: 4px;
  padding: clamp(20px, 3vw, 38px);
}
.op-login-panel {
  width: min(100%, 450px);
  margin: clamp(35px, 8vh, 95px) auto;
}
.op-login-panel h1 {
  font-size: clamp(35px, 4vw, 49px);
  margin: 18px 0 25px;
}
.op-login-panel form {
  display: grid;
  gap: 16px;
}
.op-trade-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(18px, 6vw, 84px);
  align-items: start;
}
.op-spec {
  border-top: 1px solid #8ca3b9;
  padding: 20px 0;
}
.op-spec dl,
.op-ticket dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 16px;
  padding: 15px 0;
  border-block: 1px solid #b5c6d4;
  margin: 15px 0;
}
.op-spec dt,
.op-ticket dt {
  color: #506882;
  font-size: 13px;
}
.op-spec dd,
.op-ticket dd {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.op-ticket dl dd {
  text-align: right;
  font-family: var(--mono);
}
.op-sides {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
}
.op-sides button {
  flex: 1;
  background: #dbe6ef;
  border-color: #b4c5d3;
  color: #284868;
}
.op-sides button[aria-pressed="true"] {
  background: #244b75;
  color: white;
  border-color: #244b75;
}
.op-sides button:hover {
  color: white;
}
.op-fixed {
  display: flex;
  justify-content: space-between;
  color: #4a6075;
  font-size: 13px;
}
#trade-review:not(:empty) {
  border-top: 1px solid #a9bdcd;
  margin-top: 20px;
  padding-top: 20px;
}
.op-ticket > [role="status"]:not(:empty) {
  margin-top: 12px;
}
@media (max-width: 680px) {
  .op-group,
  .op-trade-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .op-trade-layout .op-ticket {
    grid-row: 1;
  }
  .op-title .op-glyph {
    width: 35px;
    height: 35px;
  }
  .op-group > div:first-child p {
    max-width: 100%;
  }
  .op-title {
    padding: 22px 0;
  }
  .op-page {
    padding: 12px 0 44px;
  }
}
.op-worker {
  border-top: 1px solid #afc0ce;
  padding-top: 12px;
}
.op-worker dl {
  margin: 8px 0 0;
}
.op-worker dl div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  justify-content: space-between;
}
.op-worker dd {
  margin: 0;
}
.op-worker details {
  margin: 10px 0 0;
}
.op-worker summary {
  cursor: pointer;
}
.op-worker li {
  margin-block: 7px;
}
.op-worker code {
  overflow-wrap: anywhere;
  white-space: normal;
}
