/* RLP native visual and interaction parity: blue/white/Segoe, no new product palette. */
:root {
  --action-blue: #4268e8;
  --choice-ink: #244f9e;
  --surface: #fff;
  --surface-subtle: #f5f7fb;
  --focus: #315ed8;
  --office-floor: #e3edf8;
}
::selection {
  background: #dce6ff;
  color: #18324f;
}
* {
  scrollbar-color: #bcc9df transparent;
  scrollbar-width: thin;
}
input,
textarea {
  caret-color: var(--action-blue);
}
button.primary,
.primary {
  background: var(--action-blue);
  border-color: var(--action-blue);
  color: #fff;
}
button {
  min-height: 44px;
}
button.primary {
  position: relative;
  overflow: hidden;
}
input[type="checkbox"] {
  min-height: 18px;
  min-width: 18px;
  max-height: 24px;
  width: 18px;
  height: 18px;
  padding: 0;
}
.nav-group-title,
.nav-heading,
.eyebrow,
.nav-group summary {
  color: var(--muted);
}
.selected-tab {
  background: #eaf0ff;
  color: #244f9e;
  border-color: #bbcdf9;
}
.admin-navigation {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 7px;
}
.admin-navigation > .row {
  gap: 7px;
  flex-wrap: wrap;
}
.admin-navigation button {
  padding: 10px 13px;
  font-weight: 500;
}
.admin-navigation button[aria-selected="true"] {
  font-weight: 650;
}
.choice-groups {
  display: grid;
  gap: 22px;
}
.choice-section {
  min-width: 0;
}
.choice-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  color: #263c61;
  cursor: pointer;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.choice {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid #d4dff6;
  border-radius: 13px;
  background: #f0f5ff;
  color: var(--choice-ink);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}
.choice:has(input:checked) {
  background: #e7efff;
  border-color: #9bb5f8;
}
.choice:hover {
  background: #e7efff;
  border-color: #afc5f8;
}
.choice-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform-origin: left center;
  transition: transform 160ms ease;
}
.choice:hover .choice-copy {
  transform: scale(1.015);
}
.choice-copy small {
  font-size: 12px;
  line-height: 1.45;
  color: #456088;
}
.choice input[type="checkbox"],
.choice-group-label input[type="checkbox"] {
  appearance: none;
  flex: 0 0 19px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  min-height: 19px;
  min-width: 19px;
  max-height: 19px;
  padding: 0;
  margin: 0;
  border: 2px solid #7f96bc;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}
.office-person-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.office-person-list button {
  font-weight: 500;
}
.process-tools {
  gap: 8px;
}
.process-tools .process-zoom {
  width: 44px;
  padding: 8px;
}
.process-tools .process-percent {
  margin: 0;
  min-width: 55px;
  text-align: center;
  font-size: 12px;
}
@media (max-width: 800px) {
  .process-page {
    gap: 12px;
  }
  .process-page .page-head {
    margin-bottom: 0;
  }
  .process-page .page-head > .row {
    display: none;
  }
  .process-page .page-head p {
    display: none;
  }
  .process-page h1 {
    font-size: 22px;
  }
  .process-summary h2 {
    display: none;
  }
  .process-tools {
    gap: 6px;
  }
  .process-tools button,
  .process-tools a {
    padding: 8px 11px;
    font-size: 12px;
  }
  .process-tools .process-zoom {
    width: 44px;
  }
  .process-canvas {
    height: calc(100dvh - 390px);
    min-height: 300px;
  }
}
.choice input:checked,
.choice-group-label input:checked {
  background: var(--action-blue);
  border-color: var(--action-blue);
}
.choice input:checked::after,
.choice-group-label input:checked::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}
.choice-group-label input:indeterminate {
  background: var(--action-blue);
  border-color: var(--action-blue);
}
.choice-group-label input:indeterminate::after {
  content: "";
  width: 9px;
  height: 2px;
  background: #fff;
}
.choice input:focus-visible,
.choice-group-label input:focus-visible {
  outline: 3px solid #809ff4;
  outline-offset: 3px;
}
.choice.compact {
  min-height: 44px;
  padding: 9px 13px;
}
.choice input:disabled {
  cursor: default;
  opacity: 0.7;
}
.choice-wave {
  position: absolute;
  width: var(--wave-size);
  height: var(--wave-size);
  left: var(--wave-x);
  top: var(--wave-y);
  pointer-events: none;
  background: #6e96ef30;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: choice-wave 480ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
button.primary .choice-wave {
  background: #ffffff38;
}
@keyframes choice-wave {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}
.project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
}
.project-row h2 {
  font-size: 18px;
  margin: 0;
}
.project-row .detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
  margin: 12px 0 0;
  font-size: 13px;
}
.project-row .detail-list dt {
  color: var(--muted);
}
.project-row .detail-list dd {
  margin: 0 12px 0 0;
}
.project-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.object-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.object-toolbar > input {
  flex: 1;
  min-width: 230px;
}
.object-toolbar > .row {
  flex-wrap: wrap;
}
.template-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.template-row h3 {
  margin: 0 0 7px;
}
.process-select {
  max-width: 720px;
}
.process-canvas {
  width: 100%;
  height: min(64vh, 680px);
  min-height: 400px;
  border: 1px solid #d7e1ef;
  border-radius: 14px;
  overflow: hidden;
  background: #f8faff;
  touch-action: none;
}
.process-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.process-edge {
  fill: none;
  stroke: #98abc8;
  stroke-width: 2;
}
.process-node {
  cursor: pointer;
}
.process-node > rect:first-child {
  fill: #fff;
  stroke: #cad7ea;
  stroke-width: 1.5;
}
.process-node .node-dot {
  fill: #8d9db6;
}
.process-node.working > rect:first-child {
  stroke: #7898f5;
  fill: #f4f7ff;
}
.process-node.working .node-dot {
  fill: #4268e8;
}
.process-node.done > rect:first-child {
  fill: #f1faf7;
  stroke: #8fc6b1;
}
.process-node.done .node-dot {
  fill: #328368;
}
.process-node.review > rect:first-child {
  fill: #fff9ef;
  stroke: #d6b978;
}
.process-node.review .node-dot {
  fill: #a37521;
}
.process-node.inactive {
  opacity: 0.5;
}
.process-node:hover > rect:first-child,
.process-node:focus-visible > rect:first-child {
  stroke: #315ed8;
  stroke-width: 3;
}
.node-title {
  fill: #182d49;
  font-size: 14px;
  font-weight: 600;
}
.node-status {
  fill: #315477;
  font-size: 12px;
}
.node-meta {
  fill: #526b89;
  font-size: 11px;
}
.process-dialog {
  max-width: 1450px;
  width: calc(100vw - 44px);
}
.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  background: #fff;
  color: #263c61;
  font-weight: 600;
}
.office-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.office-toolbar > select {
  flex: 0 1 265px;
  width: auto;
}
.office-toolbar > input {
  flex: 1;
  min-width: 200px;
}
.office-map {
  max-height: none;
  padding: 0;
  border-radius: 17px;
  background: #edf3fa;
  overflow: hidden;
}
.office-scene-viewport {
  height: min(66vh, 720px);
  min-height: 420px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.office-scene-viewport:active {
  cursor: grabbing;
}
.office-map svg.office-isometric {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
}
.office-desk {
  cursor: pointer;
}
.office-desk:hover .desk-top,
.office-desk:focus-visible .desk-top {
  stroke: #4f78f6;
  stroke-width: 4;
}
.office-desk:focus-visible {
  outline: none;
}
.assistant-launcher {
  width: 62px;
  height: 62px;
  border-radius: 22px;
}
.assistant-orb {
  inset: 7px;
  border: 0;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 30% 25%, #e9e7ff, #c5b7f0 50%, #9e8bd5);
  box-shadow: 0 7px 19px #73669726;
}
.orb-layer {
  position: absolute;
  inset: -8%;
  border-radius: 40% 60% 55% 45%;
  opacity: 0.6;
  background: radial-gradient(
    ellipse at 35% 40%,
    #faf6ff 0%,
    #ded4ff 30%,
    #b39ae9 65%,
    transparent 75%
  );
  animation: orb-fold 9s ease-in-out infinite alternate;
}
.orb-layer.two {
  inset: 6% -20% -10% 18%;
  animation-delay: -3s;
  animation-duration: 11s;
  opacity: 0.45;
}
.orb-layer.three {
  inset: 25% 12% -30% -12%;
  animation-delay: -6s;
  animation-duration: 13s;
  opacity: 0.4;
}
@keyframes orb-fold {
  from {
    transform: rotate(-35deg) translate(-5%, 7%) scale(1);
    border-radius: 40% 60% 55% 45%;
  }
  to {
    transform: rotate(55deg) translate(8%, -6%) scale(0.9);
    border-radius: 60% 40% 42% 58%;
  }
}
.assistant-widget > .stack > button.ghost {
  align-self: flex-start;
  min-height: 30px;
  padding: 3px 0;
  font-size: 12px;
}
.assistant-widget .assistant-messages > .empty {
  min-height: 80px;
  padding: 12px;
  font-size: 13px;
}
@media (max-width: 800px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .project-row {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 14px;
  }
  .project-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .office-toolbar > select,
  .office-toolbar > input {
    flex: 1 1 100%;
  }
  .process-canvas {
    height: 58vh;
    min-height: 360px;
  }
  .office-scene-viewport {
    height: 58vh;
    min-height: 350px;
  }
  .admin-navigation {
    overflow-x: auto;
  }
  .admin-navigation > .row {
    flex-wrap: nowrap;
    width: max-content;
    padding-bottom: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .choice-copy {
    transition: none;
  }
  .choice:hover .choice-copy {
    transform: none;
  }
  .choice-wave {
    display: none;
  }
  .orb-layer,
  .assistant-orb {
    animation: none;
  }
}
@media (forced-colors: active) {
  .choice input[type="checkbox"],
  .choice-group-label input[type="checkbox"] {
    appearance: auto;
  }
}
