/* Cricket Operations Suite — restrained, responsive client administration */
body[data-ops-page]{background:#f7f9fc;color:#263d52;font-family:'DM Sans',system-ui}
.op-top{display:flex;gap:18px;justify-content:space-between;align-items:center}
.op-top nav{display:flex;gap:13px;flex-wrap:wrap;justify-content:flex-end}
.op-top nav a{font-size:11px;color:#50677d;text-decoration:none;font-weight:800}
.op-top nav a:hover{color:#1a6196}
.op-page{max-width:1480px;box-sizing:border-box;width:100%;padding:43px clamp(18px,3vw,52px) 95px;margin:0 auto}
.op-eyebrow{font-size:10px;color:#4d799b;font-weight:850;letter-spacing:.16em}
.op-page-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:13px 0 24px}
.op-page h1{font:700 clamp(27px,3.3vw,40px) 'Space Grotesk',system-ui;letter-spacing:-1px;margin:0 0 9px;color:#203e5a}
.op-page-heading p{font-size:12px;line-height:1.8;color:#7e91a2;margin:0;max-width:820px}
.op-back{font-size:11px;white-space:nowrap;color:#376b96;text-decoration:none;font-weight:750}
.op-status{min-height:17px;color:#187653;font-size:11px;line-height:1.7;margin:0 0 12px}
.op-status.error{color:#ae4852}
.op-builder-grid{display:grid;grid-template-columns:minmax(250px,.75fr) minmax(0,1.45fr);gap:17px;align-items:start}
.op-two-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;align-items:start}
.op-panel{background:#fff;border:1px solid #e0e8f0;border-radius:14px;padding:23px;min-width:0;box-shadow:0 5px 20px #1e3d5807}
.op-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
.op-panel-heading h2{font:700 18px 'Space Grotesk',system-ui;letter-spacing:-.5px;color:#2a455d;margin:0}
.op-tag{font-size:10px;font-weight:850;color:#627e96;background:#f0f5fb;border-radius:20px;padding:7px 10px;white-space:nowrap}
.op-list{display:grid;gap:9px}
.op-list-entry{border:1px solid #e4ebf1;border-radius:9px;padding:13px;background:#fcfdff;overflow-wrap:anywhere}
.op-list-entry strong{font-size:12px;color:#32526b}
.op-list-entry p{font-size:11px;color:#758b9d;line-height:1.7;white-space:pre-wrap;margin:7px 0}
.op-list-entry small{font-size:10px;color:#8195a6}
.op-list-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.op-button{background:#2d638f;border:1px solid #2d638f;color:#fff;padding:11px 13px;border-radius:8px;
  font-size:11px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.op-button:hover{background:#21547c}
.op-ghost,.op-remove{border:1px solid #d7e4ee;background:#fff;color:#39668b;
  padding:9px 12px;border-radius:8px;font-size:11px;font-weight:800;cursor:pointer;text-decoration:none}
.op-ghost:hover{background:#edf5fb}
.op-remove{color:#ad5060;border-color:#efd9de}.op-remove:hover{background:#fff1f4}
.op-form{display:grid;gap:15px;min-width:0}
.op-form h3{font-size:12px;margin:6px 0 0;color:#36556c}
.op-form label{display:grid;gap:8px;font-size:11px;color:#566c80;font-weight:750}
.op-form input,.op-form textarea,.op-form select,.op-step-editor input,.op-step-editor select,.op-step-editor textarea,
.op-run-step input,.op-run-step textarea,.op-run-step select{width:100%;box-sizing:border-box;min-width:0;
  padding:11px 12px;border:1px solid #d6e2ec;border-radius:8px;background:#fff;color:#304c63;
  font:12px 'DM Sans',system-ui}
.op-form textarea,.op-step-editor textarea,.op-run-step textarea{resize:vertical;line-height:1.6}
.op-form input:focus,.op-form textarea:focus,.op-form select:focus,
.op-step-editor input:focus,.op-run-step textarea:focus{outline:2px solid #cde4f9;border-color:#8eb6da}
.op-steps-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.op-steps{display:grid;gap:10px}
.op-step-editor{background:#f6f9fc;border:1px solid #e2eaf0;border-radius:11px;padding:15px;display:grid;gap:12px}
.op-step-top{display:flex;gap:6px;align-items:center}
.op-step-top strong{font-size:11px;flex:1}
.op-step-settings{display:flex;gap:15px;align-items:center}
.op-step-settings select{flex:1}
.op-step-settings .op-check{display:inline-flex;align-items:center;white-space:nowrap;gap:6px;font-size:11px}
.op-check input{width:15px;height:15px;accent-color:#2e6a9c}
.op-form-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.op-run-step{display:grid;gap:7px;border:1px solid #e1e9ef;background:#f7fafc;border-radius:10px;padding:13px}
.op-run-step strong{font-size:12px;color:#3b5368}
.op-route-button{background:#f7fafd;text-align:left;border:1px solid #dce7f0;border-radius:9px;
  padding:13px 14px;display:grid;gap:7px;color:#325672;cursor:pointer}
.op-route-button.active,.op-route-button:hover{background:#eaf3fc;border-color:#a4cbe6}
.op-route-button strong{font-size:12px}
.op-route-button small{color:#8196a6;font-size:10px}
.op-subtitle{font-size:12px;color:#3e586f;border-top:1px solid #e8edf2;padding-top:18px;margin-top:25px}
.op-inline-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.op-muted{font-size:12px;color:#8495a4;line-height:1.75}
.op-caption{display:block;margin-top:8px}
.op-footnote{font-size:10px;color:#8b9baa;line-height:1.8;margin-top:25px;max-width:950px}
@media(max-width:1000px){.op-builder-grid,.op-two-grid{grid-template-columns:1fr}.op-page{padding-top:30px}.op-top nav{gap:10px}}
@media(max-width:600px){.op-top{padding-inline:14px}.op-top nav{max-width:60%}.op-top nav a{font-size:10px}
 .op-page{padding:25px 14px 85px}.op-page-heading{align-items:flex-start;flex-direction:column}
 .op-panel{padding:15px}.op-inline-fields{grid-template-columns:1fr}
 .op-form-actions>*{flex:1}.op-steps-heading{flex-wrap:wrap}}
@media(orientation:portrait) and (max-width:1500px){.op-builder-grid,.op-two-grid{grid-template-columns:minmax(0,1fr)}}


/* Direction-aware conversation history and improved focus feedback. */
.op-message{border-color:#dce7f0;transition:border-color .18s,background-color .18s}
.op-message.is-incoming{border-left:3px solid #3f82b3;background:#f8fbff}
.op-message.is-outgoing{border-left:3px solid #a8b9c8;background:#fafcff}
.op-message:hover{border-color:#b9cfe1}
.op-message strong{font-size:12px}
.op-message p{font-size:12px;line-height:1.65}
.op-panel,.op-button,.op-ghost{transition:border-color .16s,box-shadow .16s,transform .16s,background-color .16s}
.op-button:active,.op-ghost:active{transform:translateY(1px)}
.op-button:focus-visible,.op-ghost:focus-visible,.op-form input:focus-visible,.op-form textarea:focus-visible,.op-form select:focus-visible{outline:3px solid #83b9e3;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.op-message,.op-panel,.op-button,.op-ghost{transition:none}}
