/* ───────────────────────────────────────────────────────────────────────────
   OPERATOR CONSOLE — dark staff surface. Namespace: .console + .op-*
   Same tokens as the client app; deliberately dark to read as "back office".
   ─────────────────────────────────────────────────────────────────────────── */
.console {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 220px 1fr;
  font-family: var(--font-ui);
  background: #0A1228; color: #EAEEF8;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
.op-side { background: #070C1E; border-right: 1px solid rgba(234,238,248,.08); display: flex; flex-direction: column; padding: 20px 14px 14px; }
.op-brand { padding: 4px 8px 20px; display: flex; flex-direction: column; gap: 2px; }
.op-wm { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .1em; color: #EAEEF8; }
.op-tag { font-size: 10.5px; color: #6E8BFF; letter-spacing: .1em; text-transform: uppercase; }
.op-nav { display: flex; flex-direction: column; gap: 2px; }
.op-navbtn { display: flex; align-items: center; gap: 11px; border: 0; background: transparent; cursor: pointer; text-align: left; padding: 9px 12px; border-radius: 9px; color: #94A1BE; font-family: var(--font-ui); font-size: 13.5px; font-weight: 500; transition: background .14s, color .14s; }
.op-navbtn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.op-navbtn:hover { background: rgba(234,238,248,.05); color: #EAEEF8; }
.op-navbtn.active { background: rgba(110,139,255,.14); color: #fff; font-weight: 600; }
.op-count { margin-left: auto; background: #2A4BF0; color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0 6px; font-variant-numeric: tabular-nums; }
.op-me { margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 12px 8px 4px; border-top: 1px solid rgba(234,238,248,.08); }

.op-main { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.op-top { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 20px 30px; border-bottom: 1px solid rgba(234,238,248,.08); }
.op-top h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.op-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #94A1BE; font-family: var(--font-mono); }
.op-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #37D08A; box-shadow: 0 0 0 3px rgba(55,208,138,.18); }
.op-content { flex: 1 1 auto; overflow-y: auto; padding: 24px 30px 36px; }
.op-fade { animation: opIn .28s ease; }
@keyframes opIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.op-h { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: #C6CFE4; margin: 0 0 12px; letter-spacing: .01em; }

/* avatars, text */
.op-ava { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; background: rgba(110,139,255,.16); color: #9FB4FF; display: grid; place-items: center; font-weight: 700; font-size: 13px; font-family: var(--font-display); }
.op-ava.sm { width: 30px; height: 30px; font-size: 11px; }
.op-client { font-weight: 600; font-size: 14px; color: #EAEEF8; }
.op-client-lg { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin: 12px 0 2px; }
.op-sub { font-size: 12px; color: #94A1BE; }
.op-route { font-family: var(--font-mono); font-size: 15px; color: #C6CFE4; letter-spacing: .02em; }

/* KPIs */
.op-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 26px; }
.op-kpi { background: #111B3A; border: 1px solid rgba(234,238,248,.08); border-radius: var(--r-md); padding: 16px 18px; }
.op-kpi.hot { border-color: rgba(110,139,255,.32); background: linear-gradient(160deg, #16224A, #111B3A); }
.op-kpi .l { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #94A1BE; font-weight: 600; }
.op-kpi .n { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; color: #fff; }
.op-kpi.hot .n { color: #9FB4FF; }
.op-kpi .s { font-size: 12px; color: #94A1BE; margin-top: 4px; }

/* request list */
.op-list { display: flex; flex-direction: column; gap: 8px; }
.op-req { display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 16px; text-align: left; cursor: pointer; background: #111B3A; border: 1px solid rgba(234,238,248,.08); border-radius: var(--r-md); padding: 14px 18px; font-family: var(--font-ui); transition: border-color .14s, background .14s, transform .06s; }
.op-req:hover { border-color: rgba(110,139,255,.4); background: #14224A; }
.op-req:active { transform: scale(.996); }
.op-req-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.op-req-r { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }

/* badges */
.op-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.op-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.op-badge.new { background: rgba(110,139,255,.18); color: #9FB4FF; }
.op-badge.sent { background: rgba(55,208,138,.16); color: #4FD79A; }
.op-badge.review { background: rgba(224,181,105,.16); color: #E0B569; }
.op-badge.ok { background: rgba(55,208,138,.16); color: #4FD79A; }

/* detail */
.op-2col { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: start; }
.op-card { background: #111B3A; border: 1px solid rgba(234,238,248,.08); border-radius: var(--r-md); padding: 20px; }
.op-card.op-flush { padding: 6px 20px; }
.op-row-top { display: flex; justify-content: space-between; align-items: center; }
.op-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 18px; }
.op-meta .k { display: block; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: #94A1BE; }
.op-meta .v { display: block; font-size: 14px; font-weight: 600; margin-top: 3px; color: #EAEEF8; }

/* composer form */
.op-field { margin-bottom: 14px; }
.op-field label { display: block; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: #94A1BE; font-weight: 600; margin-bottom: 6px; }
.op-field input, .op-field select, .op-field textarea { width: 100%; background: #0A1228; border: 1px solid rgba(234,238,248,.14); border-radius: 10px; padding: 12px 14px; font-family: var(--font-ui); font-size: 14px; color: #EAEEF8; -webkit-appearance: none; appearance: none; }
.op-field textarea { resize: none; min-height: 66px; line-height: 1.5; }
.op-field input:focus, .op-field select:focus, .op-field textarea:focus { outline: none; border-color: #6E8BFF; box-shadow: 0 0 0 3px rgba(110,139,255,.2); }
.op-field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.op-btn { width: 100%; border: 0; cursor: pointer; background: #2A4BF0; color: #fff; font-family: var(--font-ui); font-weight: 600; font-size: 14.5px; padding: 13px 18px; border-radius: var(--r-sm); transition: background .15s, transform .08s; }
.op-btn:hover { background: #3a5bff; }
.op-btn:active { transform: scale(.99); }
.op-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(110,139,255,.4); }
.op-sent { display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; }
.op-sent svg { width: 26px; height: 26px; color: #4FD79A; flex: 0 0 auto; margin-top: 2px; }
.op-sent b { display: block; font-size: 15px; color: #EAEEF8; }
.op-sent span { display: block; font-size: 13px; color: #94A1BE; margin-top: 4px; line-height: 1.5; }
.op-back { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; color: #94A1BE; cursor: pointer; font-family: var(--font-ui); font-size: 13px; font-weight: 500; padding: 0; margin-bottom: 16px; }
.op-back:hover { color: #EAEEF8; }

/* clients table */
.op-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.op-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #94A1BE; font-weight: 600; padding: 12px 10px; border-bottom: 1px solid rgba(234,238,248,.08); }
.op-table td { padding: 13px 10px; border-bottom: 1px solid rgba(234,238,248,.06); color: #EAEEF8; }
.op-table tr:last-child td { border-bottom: 0; }
.op-table .num { text-align: right; }
.op-table .mono { font-family: var(--font-mono); color: #C6CFE4; }
.op-table tbody tr { transition: background .12s; }
.op-table tbody tr:hover { background: rgba(110,139,255,.05); }
.op-cell { display: flex; align-items: center; gap: 12px; }

/* messages */
.op-chat { max-width: 720px; display: flex; flex-direction: column; height: 462px; background: #111B3A; border: 1px solid rgba(234,238,248,.08); border-radius: var(--r-md); overflow: hidden; }
.op-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(234,238,248,.08); }
.op-thread { flex: 1 1 auto; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.op-msg { max-width: 76%; padding: 12px 15px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.op-msg .when { display: block; font-size: 10px; margin-top: 5px; opacity: .55; font-family: var(--font-mono); }
.op-msg.them { align-self: flex-start; background: #0A1228; border: 1px solid rgba(234,238,248,.1); border-bottom-left-radius: 5px; color: #EAEEF8; }
.op-msg.us { align-self: flex-end; background: #2A4BF0; color: #fff; border-bottom-right-radius: 5px; }
.op-compose { flex: 0 0 auto; display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(234,238,248,.08); }
.op-compose input { flex: 1; background: #0A1228; border: 1px solid rgba(234,238,248,.14); border-radius: 99px; padding: 12px 18px; font-family: var(--font-ui); font-size: 14px; color: #EAEEF8; }
.op-compose input:focus { outline: none; border-color: #6E8BFF; }
.op-compose .op-send { border: 0; background: #2A4BF0; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; }
.op-compose .op-send:hover { background: #3a5bff; }
.op-compose .op-send svg { width: 18px; height: 18px; }
.op-toast { background: #EAEEF8; color: #0A1228; }

@media (max-width: 780px){ .op-2col { grid-template-columns: 1fr; } .op-kpis { grid-template-columns: 1fr; } }

/* Accessibility — keyboard focus + reduced motion */
.console button:focus-visible, .console a:focus-visible,
.console input:focus-visible, .console select:focus-visible, .console textarea:focus-visible {
  outline: 2px solid #6E8BFF; outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .console, .console *, .op-fade { animation: none !important; transition-duration: .01ms !important; }
}
