/* MedWay workspace frame — shared route chrome for the private Agent
 * (Conversation Studio) and Coordinator workspaces.
 *
 * The Agent workspace itself is fully defined in medway-agent-workspace.css.
 * This file only keeps the public header out of the app shell, supplies the
 * quiet frame colour, and keeps the coordinator layout working. */
:root {
  --mw-agent-frame: #edf3f0;
  --mw-agent-frame-strong: #e2ece8;
  --mw-agent-sheet: #fffefd;
  --mw-agent-sheet-soft: #f7faf8;
  --mw-agent-plan: #f4f6fb;
  --mw-agent-ink: #17364d;
  --mw-agent-ink-soft: #36556a;
  --mw-agent-muted: #536b7b;
  --mw-agent-line: #d8e5e0;
  --mw-agent-line-strong: #c5d8d2;
  --mw-agent-accent: #0a736e;
  --mw-agent-accent-soft: #e1efeb;
  --mw-agent-warm: #b97a4d;
  --mw-agent-warm-soft: #f6ecdf;
  --mw-agent-danger: #ad5b55;
  --mw-agent-radius: 14px;
  --mw-agent-ease: cubic-bezier(.16, 1, .3, 1);
}

body.mw-workspace-route {
  background: var(--mw-agent-frame);
  color: var(--mw-agent-ink);
  font-family: "Source Han Sans CN", "PingFang SC", system-ui, sans-serif;
}

body.mw-workspace-route .mw-coordinator-page { background: var(--mw-agent-frame); }

body.mw-workspace-route .mw-workspace-bar {
  position: relative !important;
  display: flex !important;
  min-height: 46px !important;
  padding: 0 22px;
  border: 0;
  background: var(--mw-agent-frame);
  color: var(--mw-agent-ink);
}
body.mw-workspace-route .mw-workspace-bar > .mw-workspace-brand { display: none !important; }
body.mw-workspace-route .mw-workspace-brand { display: inline-flex; align-items: center; gap: 9px; background: transparent; color: var(--mw-agent-ink); text-decoration: none; }
body.mw-workspace-route .mw-workspace-brand__mark { width: 30px; height: 30px; object-fit: contain; }
body.mw-workspace-route .mw-workspace-brand strong { display: block; font-size: .86rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
body.mw-workspace-route .mw-workspace-brand small { display: none; }
body.mw-workspace-route .mw-workspace-context { display: flex; align-items: center; gap: 9px; color: var(--mw-agent-muted); font-size: .75rem; }
body.mw-workspace-route .mw-workspace-context strong { color: var(--mw-agent-ink-soft); }
body.mw-workspace-route .mw-workspace-context__dot { width: 7px; height: 7px; background: var(--mw-agent-accent); }
body.mw-workspace-route .mw-workspace-tools { display: flex; align-items: center; gap: 16px; margin-left: auto; color: var(--mw-agent-muted); font-size: .7rem; }
body.mw-workspace-route .mw-workspace-tools a { color: var(--mw-agent-accent); font-weight: 700; text-decoration: none; }
body.mw-workspace-route .mw-workspace-member { padding: 5px 9px; border: 1px solid var(--mw-agent-line-strong); border-radius: 999px; background: var(--mw-agent-sheet); color: var(--mw-agent-ink-soft); font-size: .75rem; font-weight: 700; }
body.mw-workspace-route .mw-workspace-plan-top { display: none !important; }

body.mw-workspace-route .mw-coordinator-page { display: flex; height: 100%; min-height: 0; flex-direction: column; }
body.mw-workspace-route .mw-coordinator-page > .mw-coordinator-workspace { flex: 1; min-height: 0; padding: 0; background: var(--mw-agent-frame); }
body.mw-workspace-route .mw-coordinator-workspace__shell { width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent; }
body.mw-workspace-route .mw-coordinator-workspace__sessions,
body.mw-workspace-route .mw-coordinator-workspace__plan { background: var(--mw-agent-frame); }

@media (max-width: 760px) {
  body.mw-workspace-route .mw-workspace-bar { min-height: 46px !important; padding: 0 12px; }
  body.mw-workspace-route .mw-workspace-brand { min-width: 0; }
  body.mw-workspace-route .mw-workspace-context { margin-left: auto; }
  body.mw-workspace-route .mw-coordinator-page > .mw-coordinator-workspace { height: calc(100dvh - 46px); }
}
