/* ============================================================================
   scene-shift.css · Frontliner "Live shift" incident simulator.
   Left = shift console (clock, controls, stats, incident feed). Right = the
   shift copilot (shared MityChat surface; its own left nav is hidden here).
   ========================================================================== */
.shift { flex: 1; display: flex; min-width: 0; min-height: 0; }

.shift__console { width: 404px; flex: none; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--softer); padding: 18px 18px 0; }
.shift__head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(19px, 1.1rem + .6vw, 24px); letter-spacing: -.02em; }
.shift__head p { font-size: 12px; color: var(--text-soft); margin-top: 2px; line-height: 1.5; }

.shift__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 14px; flex-wrap: wrap; }
.shift-clock { display: flex; flex-direction: column; }
.shift-clock__lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.shift-clock b { font-family: var(--font-display); font-weight: 800; font-size: 27px; letter-spacing: -.01em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.shift__ctrls { display: flex; align-items: center; gap: 8px; }
.shift-speed { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.shift-speed button { padding: 6px 9px; color: var(--text-soft); transition: background .15s, color .15s; }
.shift-speed button.is-on { background: var(--ink); color: #fff; }
.shift-go .mi { width: 15px; height: 15px; }
.shift-reset { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-soft); font-size: 12px; font-weight: 700; transition: color .15s, border-color .15s; }
.shift-reset:hover { color: var(--text-1); border-color: var(--mint); }

.shift-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.shift-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; box-shadow: var(--shadow-sm); }
.shift-stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.05; letter-spacing: -.01em; }
.shift-stat.crit b { color: var(--danger); } .shift-stat.ok b { color: var(--ok); }
.shift-stat span { font-size: 10px; color: var(--text-soft); }

.shift-feed__h { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 9px; }
.shift-feed { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; }
.shift-feed__empty { color: var(--text-soft); font-size: 13px; line-height: 1.6; text-align: center; padding: 34px 14px; }
.shift-feed__done { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--mint-tint); color: var(--mint-ink); font-weight: 700; font-size: 13px; animation: shift-in .4s cubic-bezier(.16,1,.3,1); }
.shift-feed__done .mi { width: 16px; height: 16px; flex: none; color: var(--mint-700); }

.shift-inc { display: flex; gap: 11px; padding: 12px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); transition: opacity .3s ease, transform .3s cubic-bezier(.16,1,.3,1); }
.shift-inc::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.shift-inc.crit::before { background: var(--danger); } .shift-inc.warn::before { background: var(--warn); } .shift-inc.info::before { background: var(--info); }
.shift-inc.is-new { opacity: 0; transform: translateX(16px); }
.shift-inc.is-resolved { opacity: .62; }
.shift-inc__time { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--text-soft); flex: none; width: 36px; padding-top: 7px; }
.shift-inc__ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; }
.shift-inc__ic .mi { width: 17px; height: 17px; }
.shift-inc__ic.crit { background: var(--danger-soft); } .shift-inc__ic.crit .mi { color: var(--danger); }
.shift-inc__ic.warn { background: var(--warn-soft); } .shift-inc__ic.warn .mi { color: var(--warn); }
.shift-inc__ic.info { background: var(--info-soft); } .shift-inc__ic.info .mi { color: var(--info); }
.shift-inc__b { flex: 1; min-width: 0; }
.shift-inc__title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-weight: 700; font-size: 13.5px; color: var(--text-1); }
.shift-sev { font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; letter-spacing: .05em; padding: 1px 6px; border-radius: 5px; }
.shift-sev.crit { background: var(--danger-soft); color: #b42318; } .shift-sev.warn { background: var(--warn-soft); color: #92590b; } .shift-sev.info { background: var(--info-soft); color: var(--info); }
.shift-inc__detail { font-size: 12px; line-height: 1.5; color: var(--text-dim); margin-top: 3px; }
.shift-inc__act { display: flex; gap: 8px; margin-top: 10px; }
.shift-inc__ask, .shift-inc__done { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; transition: background .15s, transform .15s, color .15s; }
.shift-inc__ask .mi, .shift-inc__done .mi { width: 13px; height: 13px; }
.shift-inc__ask { background: var(--mint); color: #fff; box-shadow: 0 3px 10px rgba(4,190,140,.22); }
.shift-inc__ask:hover { background: var(--mint-hover); transform: translateY(-1px); }
.shift-inc__ask.is-asked { background: var(--mint-tint); color: var(--mint-ink); box-shadow: none; }
.shift-inc__done { background: var(--soft); color: var(--text-2); }
.shift-inc__done:hover { background: var(--line); color: var(--text-1); }
.shift-inc button:disabled { opacity: .5; cursor: default; pointer-events: none; }
.shift-inc__tag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mint-ink); }
.shift-inc__tag .mi { width: 12px; height: 12px; color: var(--mint-700); }

.shift__chat { flex: 1; display: flex; min-width: 0; min-height: 0; }
.shift__chat .pf-panel { display: none; }

@keyframes shift-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .shift { flex-direction: column; }
  .shift__console { width: auto; border-right: none; border-bottom: 1px solid var(--line); max-height: 48%; }
  .shift__chat { min-height: 320px; }
}
