@import url('/static/brand-tokens.css');

:root {
  font-family: var(--font-display);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 760px at 0% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 46%),
    radial-gradient(980px 720px at 100% 0%, rgba(14, 165, 233, 0.12) 0%, transparent 44%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 48%, #f7fafc 100%);
  color: #0f172a;
  font-size: var(--text-md);
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font: inherit;
}

.hidden {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #111827;
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 255, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.landing-header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: block;
  width: min(190px, 46vw);
  height: auto;
}

.landing-sign-in-link {
  border: none;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
}

.landing-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
  display: grid;
  gap: 56px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.landing-hero-copy,
.landing-hero-card,
.marketing-card,
.testimonial-card,
.landing-modal-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.landing-hero-copy {
  padding: clamp(28px, 4vw, 48px);
}

.landing-hero-copy h1 {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-subhead {
  margin: 0;
  max-width: 620px;
  color: #475569;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #4f46e5;
}

.hero-actions {
  margin-top: 26px;
}

.hero-cta,
.landing-modal-card button[type="submit"] {
  border: none;
  border-radius: 999px;
  background: #4f46e5;
  color: #ffffff;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 16px 30px rgba(79, 70, 229, 0.22);
}

.landing-hero-card {
  padding: 24px;
  background:
    radial-gradient(320px 180px at 0% 0%, rgba(14, 165, 233, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  display: grid;
  gap: 18px;
}

.hero-card-label {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-role-grid,
.steps-grid {
  display: grid;
  gap: 14px;
}

.hero-role-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.96);
}

.hero-role-card strong {
  font-size: 0.95rem;
}

.hero-role-card span {
  color: #64748b;
  font-size: 0.88rem;
}

.marketing-section {
  display: grid;
  gap: 18px;
}

.section-heading {
  display: grid;
  gap: 8px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketing-card {
  padding: 22px;
  display: grid;
  gap: 10px;
}

.step-index {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.marketing-card p,
.testimonial-card p {
  margin: 0;
}

.testimonial-card {
  padding: 28px;
  max-width: 520px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.testimonial-quote {
  font-size: 1.1rem;
  line-height: 1.7;
}

.testimonial-meta {
  margin-top: 12px;
  color: #64748b;
}

.landing-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.landing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.landing-modal-card {
  position: relative;
  width: min(460px, calc(100% - 24px));
  margin: 72px auto 0;
  padding: 28px;
  display: grid;
  gap: 16px;
}

.landing-modal-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.landing-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  padding: 4px;
}

.muted {
  margin: 0;
  color: #64748b;
}

.error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 12px;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  margin: 0 0 12px;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.session-clear-button {
  width: fit-content;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .landing-header-inner,
  .landing-main {
    width: min(100%, calc(100% - 20px));
  }

  .landing-main {
    padding-top: 24px;
    gap: 36px;
  }

  .landing-hero-copy,
  .landing-hero-card,
  .marketing-card,
  .testimonial-card,
  .landing-modal-card {
    border-radius: 20px;
  }

  .hero-cta,
  .landing-modal-card button[type="submit"] {
    width: 100%;
  }
}
/* ═══════════════════════════════════════════════════════════
   OFFICE PAGE — Sprint 22 design language alignment
   ═══════════════════════════════════════════════════════════ */

/* ── Screen-reader only utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Office page body ── */
.office-runtime-page {
  background: var(--bg, #fafaf9);
  color: var(--text, #0f172a);
  min-height: 100vh;
}

/* ── Office Header ── */
.office-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg, #0f1623);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.office-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.office-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.office-header-left .brand-logo {
  width: 130px;
  height: auto;
  filter: brightness(0) invert(1);
}

.office-header-label {
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sidebar-muted, #94a3b8);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 14px;
}

.office-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.office-header-right .muted {
  color: var(--sidebar-muted, #94a3b8);
  font-size: var(--text-xs, 0.75rem);
}

.office-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill, 999px);
  background: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text, #e2e8f0);
  font-size: var(--text-sm, 0.825rem);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--motion-fast, 160ms ease-out);
}

.office-back-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.office-header-action {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--sidebar-muted, #94a3b8);
  padding: 5px 12px;
  border-radius: var(--radius-sm, 6px);
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--motion-fast, 160ms ease-out);
}

.office-header-action:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sidebar-text, #e2e8f0);
}

/* ── Office Main Content ── */
.office-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 48px;
  display: grid;
  gap: 20px;
}

/* ── Control Bar ── */
.office-control-bar {
  background: var(--panel, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 12px 20px;
}

.office-control-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.office-control-select-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted, #64748b);
}

.office-control-select-label select {
  width: auto;
  margin: 0;
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  background: var(--bg, #fafaf9);
  font-size: var(--text-sm, 0.825rem);
  font-weight: 600;
  color: var(--text, #0f172a);
  cursor: pointer;
  appearance: auto;
}

.office-control-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.office-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  background: var(--panel, #ffffff);
  color: var(--muted, #64748b);
  cursor: pointer;
  transition: all var(--motion-fast, 160ms ease-out);
}

.office-icon-btn:hover {
  background: var(--accent-soft, #eef2ff);
  color: var(--accent, #6366f1);
  border-color: var(--accent, #6366f1);
}

.office-icon-btn--sm {
  width: 28px;
  height: 28px;
}

.office-status-text {
  font-size: var(--text-xs, 0.75rem);
  color: var(--muted, #64748b);
}

/* ── Office Runtime Root ── */
.office-runtime-root {
  border: none;
  background: transparent;
  padding: 0;
}

/* ── Top Section: Scene + Owner Station ── */
.office-runtime-top {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin-bottom: 20px;
}

.office-scene-panel {
  background: var(--panel, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
}

.office-scene-header {
  padding: 20px 24px 0;
}

.office-scene-header h2 {
  margin: 0 0 4px;
  font-size: var(--text-lg, 1.125rem);
  font-weight: 700;
  color: var(--text, #0f172a);
}

.office-scene-header .muted {
  font-size: var(--text-xs, 0.75rem);
}

/* ── Phaser Canvas ── */
.office-runtime-scene {
  padding: 16px 24px;
}

.office-runtime-canvas {
  position: relative;
  width: 100%;
  min-height: 380px;
  border-radius: var(--radius-md, 10px);
  background: #0a1424;
  overflow: hidden;
}

/* ── Scene Meta Blocks ── */
.office-scene-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line, #e2e8f0);
}

.office-meta-block {
  padding: 0;
  border-right: 1px solid var(--line, #e2e8f0);
}

.office-meta-block:last-child {
  border-right: none;
}

.office-meta-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #64748b);
  cursor: pointer;
  transition: color var(--motion-fast, 160ms ease-out);
}

.office-meta-toggle:hover {
  color: var(--text, #0f172a);
}

.office-meta-toggle svg {
  transition: transform var(--motion-fast, 160ms ease-out);
}

.office-meta-toggle[aria-expanded="false"] svg {
  transform: rotate(-90deg);
}

.office-meta-block .office-messages {
  padding: 0 16px 12px;
  max-height: 200px;
  overflow-y: auto;
}

/* ── Owner Station ── */
.office-owner-station {
  background: var(--panel, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 20px;
  overflow-y: auto;
  max-height: 600px;
}

/* ── Bottom Section: 3-column layout ── */
.office-runtime-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.office-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Section Labels (uppercase + chevron style) ── */
.office-section-label {
  margin: 0;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #64748b);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line, #e2e8f0);
}

/* ── Form Cards ── */
.office-form-card {
  background: var(--panel, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 16px;
  display: grid;
  gap: 4px;
}

.office-form-card label {
  font-size: var(--text-xs, 0.75rem);
  color: var(--muted, #64748b);
  margin-bottom: 8px;
}

.office-form-card input,
.office-form-card textarea,
.office-form-card select {
  border-radius: var(--radius-sm, 6px);
  padding: 8px 10px;
  font-size: var(--text-sm, 0.825rem);
}

/* ── Primary Button ── */
.office-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-pill, 999px);
  background: var(--accent, #6366f1);
  color: #ffffff;
  font-size: var(--text-sm, 0.825rem);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--motion-fast, 160ms ease-out);
  width: fit-content;
}

.office-primary-btn:hover {
  background: var(--accent-deep, #4338ca);
}

/* ── Replay Controls ── */
.office-replay-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--panel, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-md, 10px);
}

.office-replay-controls .office-status-text {
  margin-left: 8px;
}

/* ═══════════════════════════════════════════════════════════
   OFFICE MESSAGES — slim-row treatment (matches command center)
   ═══════════════════════════════════════════════════════════ */

.office-messages {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Empty state ── */
.office-empty {
  padding: 16px;
  font-size: var(--text-xs, 0.75rem);
  color: var(--muted, #64748b);
  text-align: center;
  font-style: italic;
}

/* ── Office Mini Cards (meetings, tasks, ops) ── */
.office-runtime-mini {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  transition: background var(--motion-fast, 160ms ease-out);
  position: relative;
  border-left: 3px solid transparent;
}

.office-runtime-mini:last-child {
  border-bottom: none;
}

.office-runtime-mini:hover {
  background: rgba(99, 102, 241, 0.04);
}

.office-runtime-mini-title {
  display: block;
  font-size: var(--text-sm, 0.825rem);
  font-weight: 600;
  color: var(--text, #0f172a);
  margin-bottom: 2px;
}

.office-runtime-mini-meta {
  display: block;
  font-size: var(--text-xs, 0.75rem);
  color: var(--muted, #64748b);
}

.office-runtime-mini-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.office-runtime-mini-actions button {
  padding: 4px 10px;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  background: var(--panel, #ffffff);
  color: var(--muted, #64748b);
  cursor: pointer;
  transition: all var(--motion-fast, 160ms ease-out);
}

.office-runtime-mini-actions button:hover {
  background: var(--accent-soft, #eef2ff);
  color: var(--accent, #6366f1);
  border-color: var(--accent, #6366f1);
}

/* ── Pill badge (status) ── */
.office-runtime-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill, 999px);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--accent-soft, #eef2ff);
  color: var(--accent-deep, #4338ca);
  margin-top: 4px;
}

/* ── Message Items (dialogue, threads) ── */
.office-message {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  transition: background var(--motion-fast, 160ms ease-out);
}

.office-message:last-child {
  border-bottom: none;
}

.office-message:hover {
  background: rgba(99, 102, 241, 0.04);
}

.office-message-speaker {
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  color: var(--accent-deep, #4338ca);
  margin-bottom: 2px;
}

.office-message-text {
  font-size: var(--text-sm, 0.825rem);
  color: var(--text, #0f172a);
  line-height: 1.5;
}

.office-message-block {
  background: var(--panel, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 16px;
}

/* ── Thread Items ── */
.office-thread {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all var(--motion-fast, 160ms ease-out);
}

.office-thread:hover {
  background: rgba(99, 102, 241, 0.04);
  border-left-color: var(--accent, #6366f1);
}

.office-thread.selected {
  background: var(--accent-soft, #eef2ff);
  border-left-color: var(--accent, #6366f1);
}

.office-thread-meta {
  font-size: var(--text-xs, 0.75rem);
  color: var(--muted, #64748b);
  margin-bottom: 2px;
}

.office-thread-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.office-thread-actions button {
  padding: 3px 10px;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  background: var(--panel, #ffffff);
  color: var(--muted, #64748b);
  cursor: pointer;
  transition: all var(--motion-fast, 160ms ease-out);
}

.office-thread-actions button:hover {
  background: var(--accent-soft, #eef2ff);
  color: var(--accent, #6366f1);
  border-color: var(--accent, #6366f1);
}

.office-thread-history {
  max-height: 300px;
  overflow-y: auto;
  margin: 8px 0;
}

.office-thread-reply {
  margin-top: 8px;
}

.office-thread-reply input,
.office-thread-reply select {
  margin-top: 4px;
  padding: 8px 10px;
  font-size: var(--text-sm, 0.825rem);
  border-radius: var(--radius-sm, 6px);
}

/* ── Activity Replay Items ── */
.office-runtime-activity-item {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all var(--motion-fast, 160ms ease-out);
}

.office-runtime-activity-item:hover {
  background: rgba(99, 102, 241, 0.04);
}

.office-runtime-activity-item.selected {
  background: var(--accent-soft, #eef2ff);
  border-left-color: var(--accent, #6366f1);
}

.office-runtime-activity-meta {
  font-size: var(--text-xs, 0.75rem);
  color: var(--muted, #64748b);
}

/* ── Task items (owner station) ── */
.office-task {
  padding: 8px 0;
  border-bottom: 1px solid var(--line, #e2e8f0);
}

.office-task:last-child {
  border-bottom: none;
}

/* ── Operations Deck ── */
.office-op-deck-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

/* ── Office Runtime Card (modernized) ── */
.office-runtime-card {
  background: var(--panel, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 16px;
  transition: box-shadow var(--motion-fast, 160ms ease-out);
}

.office-runtime-card:hover {
  box-shadow: var(--elev-sm, 0 1px 4px rgba(0, 0, 0, 0.06));
}

.office-runtime-card h3,
.office-runtime-card h4 {
  margin: 0 0 8px;
  font-size: var(--text-sm, 0.825rem);
  font-weight: 700;
  color: var(--text, #0f172a);
}

/* ── Secondary button (modernized) ── */
button.secondary,
.office-runtime-card button.secondary {
  padding: 5px 12px;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  background: var(--panel, #ffffff);
  color: var(--muted, #64748b);
  cursor: pointer;
  transition: all var(--motion-fast, 160ms ease-out);
}

button.secondary:hover,
.office-runtime-card button.secondary:hover {
  background: var(--accent-soft, #eef2ff);
  color: var(--accent, #6366f1);
  border-color: var(--accent, #6366f1);
}

button.ok {
  padding: 6px 16px;
  font-size: var(--text-sm, 0.825rem);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill, 999px);
  background: var(--accent, #6366f1);
  color: #ffffff;
  cursor: pointer;
  transition: background var(--motion-fast, 160ms ease-out);
}

button.ok:hover {
  background: var(--accent-deep, #4338ca);
}

/* ═══════════════════════════════════════════════════════════
   PHASER SCENE — overlays, actors, zones, meetings
   ═══════════════════════════════════════════════════════════ */

/* ── Zones ── */
.office-runtime-zone {
  position: absolute;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-sm, 6px);
  background: rgba(99, 102, 241, 0.06);
  pointer-events: none;
}

.office-runtime-zone-title {
  position: absolute;
  top: 2px;
  left: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.office-runtime-zone-badge {
  position: absolute;
  bottom: 2px;
  right: 6px;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Actors ── */
.office-runtime-actor {
  position: absolute;
  text-align: center;
  cursor: pointer;
  transition: transform var(--motion-fast, 160ms ease-out);
}

.office-runtime-actor:hover {
  transform: scale(1.1);
}

.office-runtime-actor.selected {
  z-index: 5;
}

.office-runtime-sprite {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 2px;
  border-radius: 50%;
  background: var(--accent, #6366f1);
}

/* Role-colored sprites — matching dashboard agent avatars */
.office-runtime-actor.office-role-ceo .office-runtime-sprite { background: var(--accent, #6366f1); }
.office-runtime-actor.office-role-cfo .office-runtime-sprite { background: #7c3aed; }
.office-runtime-actor.office-role-cto .office-runtime-sprite { background: #0ea5e9; }
.office-runtime-actor.office-role-cmo .office-runtime-sprite { background: #ec4899; }

.office-runtime-actor-name {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.office-runtime-actor-meta {
  display: block;
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

/* Actor state indicators */
.office-runtime-actor-state-active .office-runtime-sprite {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.6);
}

.office-runtime-actor-state-idle .office-runtime-sprite {
  opacity: 0.6;
}

.office-runtime-actor-state-meeting .office-runtime-sprite {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.6);
}

/* ── Meetings (scene overlay) ── */
.office-runtime-meeting {
  position: absolute;
  right: 8px;
  padding: 6px 12px;
  background: rgba(15, 22, 35, 0.85);
  border-radius: var(--radius-sm, 6px);
  border-left: 3px solid var(--accent, #6366f1);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.office-runtime-meeting-active {
  border-left-color: var(--warn, #f59e0b);
}

.office-runtime-meeting-concluded {
  border-left-color: var(--ok, #10b981);
  opacity: 0.6;
}

/* ── Hotspots ── */
.office-runtime-hotspot {
  position: absolute;
  cursor: pointer;
  padding: 4px 8px;
  background: rgba(99, 102, 241, 0.85);
  border-radius: var(--radius-sm, 6px);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 600;
  pointer-events: auto;
  transition: background var(--motion-fast, 160ms ease-out);
}

.office-runtime-hotspot:hover {
  background: rgba(67, 56, 202, 0.95);
}

.office-runtime-hotspot-title {
  display: block;
  font-weight: 700;
}

.office-runtime-hotspot-hint {
  display: block;
  opacity: 0.7;
}

/* ── Scene Notifications ── */
.office-runtime-scene-notification {
  position: absolute;
  padding: 6px 12px;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.65rem;
  color: #ffffff;
  background: rgba(15, 22, 35, 0.85);
  pointer-events: none;
  animation: office-notif-fade 3s ease-out forwards;
}

.office-runtime-scene-notification-role {
  font-weight: 700;
  margin-right: 4px;
}

@keyframes office-notif-fade {
  0% { opacity: 0; transform: translateY(6px); }
  10% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

/* ── Pixi host (fallback) ── */
.office-runtime-pixi-host {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* ═══════════════════════════════════════════════════════════
   IMMERSIVE MODE
   ═══════════════════════════════════════════════════════════ */

.office-immersive .office-header {
  position: fixed;
  width: 100%;
  z-index: 30;
}

.office-immersive .office-main {
  padding-top: 76px;
}

.office-immersive .office-control-bar {
  position: sticky;
  top: 56px;
  z-index: 15;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.office-immersive .office-runtime-bottom {
  display: none;
}

.office-immersive .office-owner-station {
  display: none;
}

.office-immersive .office-runtime-canvas {
  min-height: 70vh;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .office-runtime-top {
    grid-template-columns: 1fr;
  }

  .office-runtime-bottom {
    grid-template-columns: 1fr;
  }

  .office-scene-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .office-op-deck-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .office-header-inner {
    padding: 0 16px;
    height: 48px;
  }

  .office-header-left .brand-logo {
    width: 100px;
  }

  .office-main {
    padding: 12px 12px 32px;
    gap: 12px;
  }

  .office-control-bar {
    padding: 8px 12px;
  }

  .office-scene-meta {
    grid-template-columns: 1fr;
  }

  .office-meta-block {
    border-right: none;
    border-bottom: 1px solid var(--line, #e2e8f0);
  }

  .office-meta-block:last-child {
    border-bottom: none;
  }

  .office-back-btn span {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

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

.office-runtime-root {
  animation: office-fade-in 0.4s ease-out;
}
