.ops-heading { margin-block: 0 1.75rem; }
.ops-heading > :last-child { margin-bottom: 0; }
.ops-back { display: inline-block; margin-bottom: .8rem; }
.ops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr)); gap: 1rem; }
.ops-grid > .ops-panel { margin: 0; }
.ops-panel, .ops-collapse, .ops-notice { margin-block: 1rem; }
.ops-panel > :first-child, .ops-notice > :first-child { margin-top: 0; }
.ops-panel > :last-child, .ops-notice > :last-child { margin-bottom: 0; }
.ops-notice .ops-row { justify-content: space-between; }
.ops-notice time { color: var(--ink); font-size: .95rem; }
.ops-row { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.ops-state { display: inline-flex; background: #ebf4ec; color: #285743; border-radius: .5rem; font-weight: 700; padding: .25rem .55rem; }
.ops-state-done { background: #d7f4e9; color: #185643; }
.ops-state-urgent { background: #f9e9da; color: #75411b; }
.ops-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.ops-form { display: grid; gap: .85rem; margin-block: .85rem; }
.ops-form > p { margin: 0; }
.ops-form fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; }
.ops-form legend { font-weight: 700; padding-inline: .35rem; }
.ops-form label, .ops-inline label { display: grid; gap: .3rem; }
.ops-inline { margin-top: 1rem; align-items: end; }
.ops-inline > label { min-width: min(100%, 15rem); }
.ops-inline select { max-width: 100%; }
.ops-divider { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.ops-collapse summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.ops-list { list-style: none; margin: 0; padding: 0; }
.ops-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.ops-list li:last-child { border-bottom: 0; }
.ops-list li > :first-child { min-width: 0; overflow-wrap: anywhere; }
.ops-list li p { margin: 0; }
.ops-notes li { display: block; }
.ops-notes li p + p { margin-top: .25rem; }

.ops-ticket-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr); gap: 1rem; align-items: start; }
.ops-detail-main, .ops-detail-side { min-width: 0; }
.ops-detail-main > :first-child, .ops-detail-side > :first-child { margin-top: 0; }
.ops-panel-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.ops-panel-head h2 { margin: 0; }
.ops-table-description { display: block; max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.ops-ticket-table th[scope="row"] a { overflow-wrap: anywhere; }
.ops-nowrap { white-space: nowrap; }
.ops-filter { display: flex; align-items: end; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ops-filter label { display: grid; gap: .25rem; }
.ops-filter label:first-of-type { flex: 1 1 12rem; }
.ops-filter select { width: auto; }
.ops-spaced { margin-top: .8rem; }
.ops-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .75rem; }
.ops-form.portal-dialog-body { margin: 0; }
.ops-close { flex-shrink: 0; }
.ops-wide-dialog { width: min(48rem, calc(100% - 2rem)); }
.ops-timeline { list-style: none; margin: 0; padding: 0 0 0 .7rem; }
.ops-timeline li { padding: .6rem 0 .7rem 1.1rem; position: relative; border-left: 1px solid var(--line); }
.ops-timeline li::before { content: ''; position: absolute; top: .95rem; left: -.28rem; background: var(--green); width: .5rem; height: .5rem; border-radius: 50%; }
.ops-timeline p { margin: .15rem 0 0; }
@media (max-width: 800px) {
  .ops-ticket-detail { grid-template-columns: minmax(0, 1fr); }
  .ops-detail-side { order: -1; }
  .ops-ticket-table { min-width: max-content; }
}
