.operations-panel {
  --ops-paper: #faf7ed;
  --ops-ink: #302e25;
  --ops-muted: #736b58;
  --ops-line: #d8cfba;
  --ops-accent: #794b30;
  background: var(--ops-paper);
  color: var(--ops-ink);
  padding: clamp(12px, 2.4vw, 32px);
  border: 1px solid var(--ops-line);
  border-radius: 7px;
  line-height: 1.6;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  font-family: inherit;
}
.operations-panel *, .operations-panel *::before, .operations-panel *::after { box-sizing: border-box; min-width: 0; }
.operations-panel [hidden] { display: none !important; }
.operations-panel h2, .operations-panel h3, .operations-panel p { margin: 0; }
.operations-panel h2 { font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -.025em; }
.operations-panel h3 { font-size: 20px; font-weight: 650; }
.operations-panel p { color: var(--ops-muted); }
.operations-panel button, .operations-panel input, .operations-panel select { font: inherit; }
.operations-panel button {
  min-height: 44px; padding: 9px 15px; border-radius: 4px; border: 1px solid var(--ops-line);
  background: #fffdf5; color: var(--ops-ink); cursor: pointer; white-space: normal;
}
.operations-panel button:hover:not(:disabled) { background: #eee7d8; border-color: #a89579; }
.operations-panel button:disabled { cursor: not-allowed; color: #8b826e; background: #efebdf; }
.operations-panel :is(button, input, select, summary):focus-visible { outline: 2px solid var(--ops-accent); outline-offset: 3px; }
.operations-panel button.ops-primary { color: #fffaf0; background: var(--ops-accent); border-color: var(--ops-accent); }
.operations-panel button.ops-primary:disabled { color: #8b826e; background: #e5dfcf; border-color: #d8cfba; }
.ops-header, .ops-record-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ops-header > div { flex: 1 1 260px; }
.ops-kicker { display: block; font: 11px/1.5 ui-monospace, monospace; letter-spacing: .13em; color: var(--ops-muted); margin-bottom: 7px; }
.ops-context { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; padding: 14px 0; margin: 16px 0 0; border-block: 1px solid var(--ops-line); font-size: 13px; }
.ops-context > span, .ops-mono { overflow-wrap: anywhere; word-break: break-word; }
.ops-mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.ops-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 18px 0; }
.ops-tabs button { flex: 1 1 100px; max-width: 220px; }
.ops-tabs button[aria-pressed="true"] { background: #e5ddc9; border-color: #9e8e70; font-weight: 650; }
.ops-columns { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.ops-columns > :last-child { border-left: 1px solid var(--ops-line); padding-left: clamp(18px, 3vw, 36px); }
.ops-section-heading { margin-bottom: 20px; }
.ops-section-heading p { margin-top: 7px; font-size: 13px; }
.ops-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 14px; }
.ops-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ops-muted); }
.ops-field input, .ops-field select { width: 100%; min-height: 44px; border: 1px solid var(--ops-line); border-radius: 4px; background: #fffdf7; padding: 9px 10px; color: var(--ops-ink); }
.ops-checkbox { display: flex; align-items: flex-start; gap: 9px; padding-top: 14px; font-size: 13px; }
.ops-checkbox input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; }
.operations-panel .ops-hint { margin: 13px 0; font-size: 12px; line-height: 1.7; }
.ops-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ops-review { border: 2px solid #a78962; background: #f0e8d5; padding: clamp(13px, 2vw, 23px); margin: 0 0 24px; border-radius: 5px; }
.ops-review > p { margin: 8px 0 14px; font-size: 13px; }
.ops-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 15px 0; }
.ops-facts dt { font-size: 11px; color: var(--ops-muted); }
.ops-facts dd { margin: 3px 0 0; font-size: 13px; overflow-wrap: anywhere; word-break: break-word; }
.operations-panel details { padding: 9px 0; font-size: 12px; }
.operations-panel summary { cursor: pointer; min-height: 30px; color: var(--ops-muted); }
.operations-panel pre { margin: 6px 0; padding: 10px; background: #ece6d8; border: 1px solid var(--ops-line); white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font: 11px/1.6 ui-monospace, Consolas, monospace; max-height: 320px; overflow-y: auto; }
.ops-record { padding: 16px; border: 1px solid var(--ops-line); background: #fffdf6; border-radius: 5px; margin-bottom: 12px; }
.ops-record-head strong { font-size: 14px; }
.ops-badge { display: inline-block; border: 1px solid #cbbd9f; color: #6d5934; background: #f2ebd9; border-radius: 3px; padding: 3px 7px; font-size: 11px; overflow-wrap: anywhere; }
.ops-badge.confirmed { border-color: #adc2a6; background: #ecf1e5; color: #41603b; }
.ops-badge.stale { border-color: #d0b3a7; background: #f4e6df; color: #88533f; }
.ops-badge.leased { border-color: #b5bccc; background: #e9edf4; color: #4e5e75; }
.operations-panel .ops-error { color: #873e32; background: #f8e8df; border: 1px solid #d8b4a5; padding: 12px; margin-bottom: 14px; overflow-wrap: anywhere; }
.operations-panel .ops-notice { color: #5c543d; background: #eee6cf; border: 1px solid #cfc19f; padding: 12px; margin-bottom: 14px; overflow-wrap: anywhere; }
.ops-pending { border: 1px solid #cfc19f; background: #f1e8cf; padding: 14px; margin-bottom: 18px; }
.ops-pending p { margin: 8px 0; font-size: 12px; }
.ops-pending button { margin-top: 10px; }
.operations-panel .ops-empty { border: 1px dashed var(--ops-line); padding: 18px; font-size: 13px; margin: 12px 0; }
.ops-lifecycle { padding-left: 21px; font-size: 13px; color: var(--ops-muted); line-height: 1.9; }
.ops-steps { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 18px 0; padding-left: 21px; }
.ops-status-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0 20px; font-size: 12px; color: var(--ops-muted); }
.ops-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 800px) {
  .ops-columns, .ops-record-grid { grid-template-columns: minmax(0, 1fr); }
  .ops-columns > :last-child { border-left: 0; border-top: 1px solid var(--ops-line); padding-left: 0; padding-top: 24px; }
}
@media (max-width: 420px) {
  .ops-form-grid, .ops-facts { grid-template-columns: minmax(0, 1fr); }
  .ops-header > button, .ops-actions > button { width: 100%; }
  .ops-tabs { gap: 4px; }
  .ops-tabs button { flex-basis: 70px; padding-inline: 7px; font-size: 13px; }
  .ops-record { padding: 12px; }
}
