.ops-workspace {
  --ops-dark: #11171a;
  --ops-surface: #fff;
  --ops-line: #dfe3e5;
  --ops-muted: #69747a;
  --ops-accent: #ef4a23;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 104px) clamp(22px, 6vw, 92px) 76px;
  color: var(--ops-dark);
}

.ops-workspace__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ops-line);
}

.ops-workspace__header h1 {
  margin: 18px 0 26px;
  font-size: clamp(48px, 6vw, 92px);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.ops-workspace__header > div > p:last-child {
  max-width: 780px;
  margin: 0;
  color: var(--ops-muted);
  font-size: 18px;
  line-height: 1.6;
}

.ops-connection {
  display: grid;
  grid-template-columns: 13px 1fr;
  gap: 7px 14px;
  padding: 24px;
  border: 1px solid var(--ops-line);
  border-radius: 18px;
  background: var(--ops-surface);
}

.ops-connection > span {
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border-radius: 50%;
  background: #e39b29;
  box-shadow: 0 0 0 5px rgb(227 155 41 / 12%);
}

.ops-connection strong,
.ops-connection small {
  grid-column: 2;
}

.ops-connection strong {
  font-size: 14px;
}

.ops-connection small {
  color: var(--ops-muted);
  line-height: 1.4;
}

.ops-connection[data-state="ready"] > span {
  background: #198d62;
  box-shadow: 0 0 0 5px rgb(25 141 98 / 12%);
}

.ops-connection[data-state="guarded"] > span {
  background: #858f94;
  box-shadow: 0 0 0 5px rgb(133 143 148 / 12%);
}

.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 0;
  margin-top: 44px;
  border: 1px solid var(--ops-line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--ops-surface);
}

.ops-intake {
  padding: clamp(26px, 4vw, 56px);
}

.ops-intake fieldset {
  display: grid;
  gap: 23px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ops-intake fieldset:disabled {
  opacity: 0.52;
}

.ops-intake legend {
  margin-bottom: 34px;
  font-size: 27px;
  font-weight: 780;
  letter-spacing: -0.035em;
}

.ops-intake label {
  display: grid;
  gap: 9px;
}

.ops-intake label > span {
  color: var(--ops-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.ops-intake input,
.ops-intake select,
.ops-intake textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid #cfd5d8;
  border-radius: 11px;
  color: var(--ops-dark);
  background: #fbfcfc;
  font: inherit;
}

.ops-intake textarea {
  min-height: 118px;
  resize: vertical;
}

.ops-intake input:focus,
.ops-intake select:focus,
.ops-intake textarea:focus {
  border-color: var(--ops-dark);
  outline: 3px solid rgb(17 23 26 / 8%);
}

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

.ops-field-grid--quote {
  grid-template-columns: minmax(0, 1.5fr) minmax(110px, 0.5fr) minmax(150px, 0.6fr);
  padding-top: 24px;
  border-top: 1px solid var(--ops-line);
}

.ops-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  margin-top: 8px;
  padding: 17px 21px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--ops-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 780;
}

.ops-submit:hover {
  background: var(--ops-accent);
}

.ops-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.ops-submit b {
  font-size: 22px;
}

.ops-result {
  min-width: 0;
  padding: clamp(26px, 4vw, 54px);
  border-left: 1px solid var(--ops-line);
  color: #fff;
  background:
    radial-gradient(circle at 75% 10%, rgb(239 74 35 / 14%), transparent 34%),
    var(--ops-dark);
}

.ops-result .platform-overline {
  color: #ff8c6d;
}

.ops-result__empty {
  display: grid;
  align-content: center;
  min-height: 440px;
}

.ops-result__empty > span {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 34px;
  place-items: center;
  border: 1px solid #3b4449;
  border-radius: 17px;
  color: #ff8c6d;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.ops-result__empty h2,
.ops-result__success h2 {
  margin: 0 0 16px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.ops-result__empty p,
.ops-result__success p,
.ops-result__success small {
  margin: 0;
  color: #adb6bb;
  line-height: 1.65;
}

.ops-result__empty--error > span {
  color: #ff6948;
  border-color: #713728;
}

.ops-result__success {
  padding-top: 52px;
}

.ops-status {
  display: inline-block;
  margin-bottom: 22px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #91e0bf;
  background: rgb(25 141 98 / 18%);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-result__success dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 38px 0;
  border-top: 1px solid #343c41;
  border-bottom: 1px solid #343c41;
}

.ops-result__success dl > div {
  min-width: 0;
  padding: 20px 12px 20px 0;
}

.ops-result__success dt {
  margin-bottom: 9px;
  color: #78848a;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-result__success dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 760;
}

.ops-boundary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 30px;
  padding: 20px 23px;
  border: 1px solid var(--ops-line);
  border-radius: 14px;
  background: #f7f8f8;
}

.ops-boundary strong {
  font-size: 12px;
  text-transform: uppercase;
}

.ops-boundary p {
  margin: 0;
  color: var(--ops-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ops-boundary a {
  color: var(--ops-accent);
  font-size: 12px;
  font-weight: 780;
}

.ops-auth-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ops-auth-button {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid #cfd5d8;
  border-radius: 10px;
  color: var(--ops-dark);
  background: #f7f8f8;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
}

.ops-auth-button:hover,
.ops-auth-button:focus-visible {
  border-color: var(--ops-accent);
  color: var(--ops-accent);
  outline: none;
}

body[data-ops-state="signed-in"] .ops-connection {
  border-color: rgb(25 141 98 / 34%);
}

body[data-ops-state="forbidden"] .ops-connection {
  border-color: rgb(239 74 35 / 28%);
}

@media (max-width: 980px) {
  .ops-workspace__header,
  .ops-layout {
    grid-template-columns: 1fr;
  }

  .ops-workspace__header {
    align-items: start;
  }

  .ops-connection {
    max-width: 560px;
  }

  .ops-result {
    border-top: 1px solid #343c41;
    border-left: 0;
  }

  .ops-result__empty {
    min-height: 300px;
  }
}

@media (max-width: 700px) {
  .ops-workspace {
    padding: 42px 14px 56px;
  }

  .ops-workspace__header h1 {
    font-size: 48px;
  }

  .ops-workspace__header > div > p:last-child {
    font-size: 16px;
  }

  .ops-layout {
    border-radius: 17px;
  }

  .ops-intake,
  .ops-result {
    padding: 26px 19px;
  }

  .ops-field-grid,
  .ops-field-grid--quote {
    grid-template-columns: 1fr;
  }

  .ops-result__success dl,
  .ops-boundary {
    grid-template-columns: 1fr;
  }

  .ops-boundary {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ops-submit {
    transition: none;
  }
}
