:root {
  color-scheme: light;
  --taskbar-height: 36px;
  --dock-width: 64px;
  --hurozo-primary: #f15a24;
  --hurozo-primary-700: #d94f1f;
  --hurozo-text: #121826;
  --hurozo-muted: #4b5563;
  --hurozo-surface: rgba(255, 255, 255, 0.92);
  --taskbar-bg: rgba(255, 245, 238, 0.88);
  --taskbar-border: rgba(18, 24, 38, 0.18);
  --window-bg: rgba(255, 255, 255, 0.94);
  --window-border: rgba(18, 24, 38, 0.22);
  --window-shadow: 0 28px 60px rgba(18, 24, 38, 0.18);
  --desktop-text-bg: rgba(255, 236, 228, 0.82);
  --desktop-text-color: #121826;
  --desktop-overlay: linear-gradient(rgba(255, 247, 242, 0.82), rgba(255, 236, 227, 0.82));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--hurozo-text);
  background: #fff7f2;
  font: 15px/1.45 "IBM Plex Sans", "Manrope", "Switzer", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 1px solid rgba(18, 24, 38, 0.14);
  border-radius: 0;
  min-height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.76);
  color: inherit;
  cursor: pointer;
}

button:hover {
  background: rgba(18, 24, 38, 0.12);
}

button.primary,
.login-open-btn {
  border-color: var(--hurozo-text);
  background: var(--hurozo-text);
  color: #fff;
  font-weight: 600;
}

button.primary:hover,
.login-open-btn:hover {
  background: #000;
}

button:disabled {
  opacity: 0.55;
  cursor: progress;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--taskbar-height);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
  background: var(--taskbar-bg);
  border-bottom: 1px solid var(--taskbar-border);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.os-menubar {
  gap: 14px;
  padding: 0 10px 0 12px;
  background: rgba(255, 253, 250, 0.96);
  border-bottom-color: rgba(18, 24, 38, 0.16);
}

.brand {
  min-width: auto;
  display: inline-flex;
  align-items: center;
  color: var(--hurozo-text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand-mark {
  width: 7px;
  height: 18px;
  margin-right: 7px;
  background: #e25e2e;
}

.os-app-menus .menu-root {
  gap: 0;
}

.os-app-menus .menu-trigger {
  min-height: 26px;
  padding: 0 8px;
  font-size: 13px;
}

.os-menu-panel {
  top: calc(100% + 6px);
  width: 230px;
  padding: 8px;
}

.os-menu-panel button {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.os-menu-panel strong {
  font-size: 13px;
  font-weight: 650;
}

.os-menubar__right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.os-space-chip,
.os-command-chip {
  min-height: 26px;
  padding: 0 9px;
  border-color: rgba(18, 24, 38, 0.12);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.topbar-spacer {
  flex: 1;
}

.menu-root {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  position: relative;
}

.menu-trigger {
  border: none;
  background: transparent;
  color: var(--hurozo-text);
  font-size: 14px;
}

.menu-item.open > .menu-trigger,
.menu-trigger:hover,
.menu-trigger:focus-visible {
  color: #fff;
  background: #111;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(420px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(18, 24, 38, 0.2);
  background: rgba(255, 250, 246, 0.98);
  box-shadow: 0 24px 44px rgba(18, 24, 38, 0.18);
  display: none;
}

.menu-item.open .menu-panel {
  display: block;
}

.menu-panel h4 {
  margin: 0 0 12px;
  color: var(--hurozo-text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.menu-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.menu-panel button {
  width: 100%;
  height: auto;
  display: grid;
  gap: 3px;
  justify-items: start;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--hurozo-text);
  text-align: left;
}

.menu-panel span {
  color: var(--hurozo-muted);
  font-size: 13px;
}

.menu-panel button strong {
  color: inherit;
}

.menu-panel button:hover,
.menu-panel button:focus,
.menu-panel button:focus-visible {
  background: rgba(18, 24, 38, 0.08);
  color: var(--hurozo-text);
  outline: none;
}

.menu-panel button:hover span,
.menu-panel button:focus span,
.menu-panel button:focus-visible span {
  color: var(--hurozo-muted);
}

.account-area {
  position: relative;
}

.profile-btn {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
}

.profile-initial {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hurozo-text);
  color: #fff9f3;
  font-weight: 700;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(280px, calc(100vw - 24px));
  border: 1px solid rgba(18, 24, 38, 0.18);
  background: rgba(255, 250, 246, 0.98);
  padding: 8px;
  box-shadow: 0 24px 44px rgba(18, 24, 38, 0.18);
}

.profile-menu__identity {
  padding: 8px 8px 12px;
  border-bottom: 1px solid rgba(18, 24, 38, 0.14);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.profile-menu button {
  width: 100%;
  justify-content: flex-start;
}

.desktop {
  position: fixed;
  top: var(--taskbar-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--taskbar-height));
  padding: 18px 18px 18px calc(var(--dock-width) + 20px);
  user-select: none;
  overflow: hidden;
  background-image: var(--desktop-overlay), url("/assets/img/hurozo-desktop.jpg");
  background-size: cover, cover;
  background-position: center;
}

.os-dock {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--dock-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-right: 1px solid rgba(18, 24, 38, 0.14);
  background: rgba(255, 253, 250, 0.9);
  backdrop-filter: blur(14px);
}

.os-dock__app {
  position: relative;
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 10px;
  border-color: rgba(18, 24, 38, 0.14);
  background: rgba(255, 245, 238, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.os-dock__app.active {
  border-color: rgba(241, 90, 36, 0.7);
  box-shadow: 0 0 0 2px rgba(241, 90, 36, 0.18);
}

.os-dock__app strong {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--hurozo-text);
  color: white;
  font-size: 10px;
}

.os-dock.is-auth-syncing .os-dock__app:disabled {
  opacity: 1;
  cursor: wait;
}

.os-dock.is-auth-syncing .os-dock__app::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 3px;
  bottom: 3px;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid rgba(63, 155, 85, 0.24);
  border-top-color: #3f9b55;
  border-radius: 50%;
  animation: dock-auth-spinner 700ms linear infinite;
  pointer-events: none;
}

.os-dock.is-auth-syncing .os-dock__app > img,
.os-dock.is-auth-syncing .os-dock__add > span {
  opacity: 0.38;
  filter: grayscale(1);
}

@keyframes dock-auth-spinner {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .os-dock.is-auth-syncing .os-dock__app::after { animation: none; }
}

.os-dock__spacer {
  flex: 1;
}

.os-dock__add {
  border-style: dashed;
  background: transparent;
}

.os-space-switcher {
  position: absolute;
  z-index: 45;
  top: 12px;
  left: calc(50% + var(--dock-width) / 2);
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(18, 24, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.88);
  backdrop-filter: blur(12px);
}

.os-space-switcher button {
  min-height: 24px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
}

.os-space-switcher button.active {
  background: rgba(18, 24, 38, 0.14);
  color: var(--hurozo-text);
  font-weight: 900;
}

.os-spotlight {
  position: absolute;
  z-index: 200;
  inset: 0;
  display: grid;
  align-items: start;
  justify-items: center;
  padding-top: 72px;
  background: rgba(18, 24, 38, 0.24);
}

.os-spotlight > label,
.os-spotlight__section {
  width: min(520px, calc(100vw - 96px));
  background: #fffdfa;
  border-left: 1px solid rgba(18, 24, 38, 0.18);
  border-right: 1px solid rgba(18, 24, 38, 0.18);
}

.os-spotlight > label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border-top: 1px solid rgba(18, 24, 38, 0.22);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 24px 70px rgba(18, 24, 38, 0.28);
}

.os-spotlight input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.os-spotlight__section {
  display: grid;
  gap: 0;
  padding: 8px;
  border-top: 1px solid rgba(18, 24, 38, 0.08);
}

.os-spotlight__section:last-child {
  border-bottom: 1px solid rgba(18, 24, 38, 0.22);
  border-radius: 0 0 12px 12px;
}

.os-spotlight__section small {
  padding: 4px 7px 7px;
  color: var(--hurozo-text);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.os-spotlight__section button {
  display: flex;
  justify-content: space-between;
  border: 0;
  background: transparent;
  text-align: left;
}

.desktop-setup-cta {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  width: min(360px, calc(100vw - 56px));
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(18, 24, 38, 0.2);
  background: rgba(255, 253, 250, 0.88);
  box-shadow: 0 20px 46px rgba(18, 24, 38, 0.16);
  user-select: text;
}

.os-desktop .desktop-setup-cta,
.os-desktop .icon-grid {
  display: none;
}

.desktop-setup-cta span,
.agency-status-grid span {
  color: var(--hurozo-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-setup-cta h1 {
  margin: 0;
  font-size: 24px;
}

.desktop-setup-cta p {
  margin: 0;
  color: var(--hurozo-muted);
  line-height: 1.45;
}

.desktop-setup-cta button {
  justify-self: start;
  min-height: 38px;
  border: 1px solid rgba(18, 24, 38, 0.32);
  background: var(--hurozo-text);
  color: white;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.icon-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-icon {
  position: absolute;
  width: 96px;
  height: 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: grab;
  transition: transform 120ms ease;
}

.desktop-icon figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.desktop-icon img,
.marketing-emoji {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
}

.marketing-emoji {
  font-size: 38px;
  background: rgba(255, 236, 228, 0.9);
  border: 1px solid rgba(18, 24, 38, 0.2);
}

.desktop-icon:hover img,
.desktop-icon:hover .marketing-emoji {
  transform: translateY(-2px) scale(1.03);
}

.desktop-icon figcaption {
  margin-top: 6px;
  width: 96px;
  min-height: 28px;
  max-height: 38px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--desktop-text-bg);
  color: var(--desktop-text-color);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  overflow: hidden;
  overflow-wrap: anywhere;
  backdrop-filter: blur(16px);
}

.desktop-icon.open figcaption {
  outline: 2px solid rgba(18, 24, 38, 0.35);
}

.desktop-window {
  position: absolute;
  left: calc(var(--dock-width) + 22px);
  top: 58px;
  width: calc(100% - var(--dock-width) - 44px);
  height: calc(100% - 78px);
  min-width: 360px;
  min-height: 260px;
  max-width: calc(100% - 48px);
  max-height: calc(100% - 32px);
  display: none;
  flex-direction: column;
  background: var(--window-bg);
  border: 1px solid var(--window-border);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  box-shadow: var(--window-shadow);
  overflow: hidden;
  z-index: 10;
}

.window-titlebar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(18, 24, 38, 0.12);
  background: rgba(245, 241, 235, 0.92);
  cursor: grab;
}

.window-titlebar h3 {
  flex: 1;
  margin: 0;
  font-size: 14px;
}

.window-crumb {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(18, 24, 38, 0.68);
  font-size: 13px;
  font-weight: 750;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.window-lights {
  display: inline-flex;
  gap: 6px;
}

.window-lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(18, 24, 38, 0.22);
}

.window-buttons {
  display: flex;
  gap: 7px;
}

.window-buttons button {
  width: 15px;
  height: 15px;
  min-height: 15px;
  padding: 0;
  border-radius: 50%;
  border-color: rgba(18, 24, 38, 0.36);
  background: rgba(18, 24, 38, 0.18);
}

.window-buttons [data-action="close"] {
  background: rgba(18, 24, 38, 0.42);
}

.window-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px;
  user-select: text;
}

.iframe-content {
  padding: 0;
  overflow: hidden;
}

.iframe-content iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.documentation-window {
  background: #fff;
}

.documentation-window .window-titlebar {
  flex: 0 0 42px;
}

.documentation-window .iframe-content {
  background: #fff;
}

.agent-builder-window {
  background: rgba(255, 250, 246, 0.98);
}

.agent-builder-window .window-content {
  padding: 0;
  overflow: hidden;
}

.agent-builder {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  background: #fffaf6;
}

.agent-builder__sidebar {
  display: grid;
  grid-template-rows: auto minmax(150px, 0.9fr) auto auto auto;
  gap: 16px;
  padding: 18px;
  border-right: 1px solid rgba(18, 24, 38, 0.16);
  background: rgba(255, 245, 238, 0.82);
  min-height: 0;
}

.agent-builder__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.agent-builder__brand strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.agent-builder__brand span:last-child {
  color: var(--hurozo-muted);
}

.agent-builder__field {
  display: grid;
  gap: 6px;
}

.agent-builder__agents,
.agent-builder__templates {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.agent-builder__templates {
  max-height: 250px;
}

.agent-builder__agents header,
.agent-builder__templates header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.agent-builder__agents header span,
.agent-builder__templates header span {
  color: var(--hurozo-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-builder__templates header small {
  overflow: hidden;
  color: var(--hurozo-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-builder__agents header button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.agent-builder__agent-list,
.agent-builder__template-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
}

.agent-builder__agent-list p,
.agent-builder__template-list p {
  margin: 0;
  color: var(--hurozo-muted);
  font-size: 12px;
}

.agent-builder__agent-item,
.agent-builder__template-item {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
}

.agent-builder__template-item {
  grid-template-columns: 30px minmax(0, 1fr) auto;
}

.agent-builder__template-item button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.agent-builder__agent-item.active {
  border-color: rgba(18, 24, 38, 0.58);
  background: #fff;
  box-shadow: inset 3px 0 0 var(--hurozo-text);
}

.agent-builder__agent-avatar,
.agent-builder__template-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 24, 38, 0.14);
  background: #fffaf6;
  font-size: 16px;
}

.agent-builder__agent-item strong,
.agent-builder__template-item strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-builder__agent-item small,
.agent-builder__template-item small {
  overflow: hidden;
  color: var(--hurozo-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-builder__field span,
.agent-builder__search span,
.agent-builder__runtime span {
  color: var(--hurozo-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-builder__field input,
.agent-builder__field textarea,
.agent-builder__search input {
  width: 100%;
  border: 1px solid rgba(18, 24, 38, 0.14);
  background: rgba(255, 255, 255, 0.88);
  padding: 10px;
  color: var(--hurozo-text);
}

.agent-builder__field textarea {
  min-height: 120px;
  resize: vertical;
}

.agent-builder__runtime {
  align-self: start;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(18, 24, 38, 0.24);
  background: #fff;
}

.agent-builder__runtime strong {
  font-size: 18px;
}

.agent-builder__runtime small {
  color: var(--hurozo-muted);
}

.agent-builder__main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}

.agent-builder__toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid rgba(18, 24, 38, 0.14);
}

.agent-builder__toolbar h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.agent-builder__toolbar p {
  margin: 0;
  color: var(--hurozo-muted);
}

.agent-builder__search {
  width: min(320px, 42vw);
  display: grid;
  gap: 6px;
}

.agent-builder__workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(390px, 1.32fr) minmax(310px, 0.95fr);
  gap: 0;
}

.agent-builder__panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-right: 1px solid rgba(18, 24, 38, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.agent-builder__panel header {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(18, 24, 38, 0.12);
}

.agent-builder__panel h3 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.agent-builder__panel header span {
  color: var(--hurozo-muted);
  font-size: 12px;
}

.agent-builder__tool-list,
.agent-builder__selected-tools {
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.agent-builder__tool {
  width: 100%;
  height: auto;
  display: grid;
  justify-items: start;
  gap: 5px;
  margin-bottom: 10px;
  padding: 12px;
  text-align: left;
  background: #fff;
}

.agent-builder__tool.selected {
  border-color: rgba(18, 24, 38, 0.58);
  background: rgba(255, 238, 228, 0.92);
}

.agent-builder__tool > span,
.agent-builder__runtime-card small,
.agent-builder__selected-tool small {
  color: var(--hurozo-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-builder__tool strong {
  font-size: 14px;
}

.agent-builder__tool em {
  max-height: 42px;
  overflow: hidden;
  color: var(--hurozo-muted);
  font-size: 12px;
  font-style: normal;
}

.agent-builder__tool small {
  color: var(--hurozo-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-builder__canvas {
  background: linear-gradient(90deg, rgba(18, 24, 38, 0.045) 1px, transparent 1px), linear-gradient(rgba(18, 24, 38, 0.045) 1px, transparent 1px), #fffaf6;
  background-size: 28px 28px;
}

.agent-builder__flow {
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.agent-builder__runtime-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  margin: 0 auto 14px;
  width: min(440px, 100%);
  border: 2px solid rgba(18, 24, 38, 0.82);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(226, 94, 46, 0.16);
}

.agent-builder__runtime-card strong {
  font-size: 17px;
}

.agent-builder__runtime-card span {
  color: var(--hurozo-muted);
  font-size: 12px;
}

.agent-builder__runtime-card em {
  justify-self: start;
  padding: 2px 6px;
  border: 1px solid rgba(18, 24, 38, 0.16);
  background: #fffaf6;
  color: var(--hurozo-text);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-builder__detail-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(440px, 100%);
  margin: 0 auto 14px;
}

.agent-builder__detail-sections article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(18, 24, 38, 0.16);
  background: rgba(255, 255, 255, 0.9);
}

.agent-builder__detail-sections small {
  color: var(--hurozo-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-builder__detail-sections strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-builder__detail-sections span {
  color: var(--hurozo-muted);
  font-size: 12px;
}

.agent-builder__selected-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 14px;
  border: 2px solid rgba(18, 24, 38, 0.82);
  border-top: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 8px 8px 0 rgba(226, 94, 46, 0.12);
}

.agent-builder__capability-provider,
.agent-builder__empty {
  min-height: 42px;
  border: 1px solid rgba(18, 24, 38, 0.16);
  background: #fff;
  color: var(--hurozo-text);
}

.agent-builder__empty {
  display: flex;
  align-items: center;
  padding: 10px;
  font-weight: 600;
}

.agent-builder__capability-main {
  position: relative;
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 10px 10px 10px 28px;
  cursor: pointer;
}

.agent-builder__capability-main--provider {
  min-height: 48px;
}

.agent-builder__capability-main::before {
  content: "";
  position: absolute;
  left: 10px;
  width: 8px;
  height: 8px;
  background: var(--hurozo-text);
}

.agent-builder__capability-description {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--hurozo-text);
  text-overflow: ellipsis;
}

.agent-builder__capability-tag {
  position: absolute;
  top: 0;
  left: 10px;
  transform: translateY(-50%);
  max-width: 44%;
  padding: 2px 6px;
  border: 1px solid rgba(18, 24, 38, 0.16);
  background: #fffaf6;
  color: var(--hurozo-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-builder__empty {
  margin: 0;
  color: var(--hurozo-muted);
}

.agent-builder__capability-operations {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px 28px;
}

.agent-builder__operation {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(18, 24, 38, 0.12);
  background: rgba(255, 250, 246, 0.76);
}

.agent-builder__operation-main {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-right: 76px;
}

.agent-builder__operation-main strong {
  font-size: 13px;
}

.agent-builder__operation-main span {
  color: var(--hurozo-muted);
  font-size: 12px;
}

.agent-builder__operation-tag {
  position: absolute;
  top: 0;
  right: 10px;
  transform: translateY(-50%);
  max-width: 45%;
  padding: 2px 6px;
  border: 1px solid rgba(18, 24, 38, 0.16);
  background: #fff;
  color: var(--hurozo-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-builder__permission-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.agent-builder__permission-choice {
  min-width: 48px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(18, 24, 38, 0.16);
  background: rgba(18, 24, 38, 0.04);
  color: var(--hurozo-text);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.agent-builder__permission-choice.active {
  color: #fff;
}

.agent-builder__permission-choice--ask.active {
  border-color: rgba(107, 114, 128, 0.8);
  background: #6b7280;
}

.agent-builder__permission-choice--allow.active {
  border-color: rgba(21, 128, 61, 0.8);
  background: #15803d;
}

.agent-builder__permission-choice--deny.active {
  border-color: rgba(185, 28, 28, 0.8);
  background: #b91c1c;
}

.agent-builder__permission-choice--auto.active {
  border-color: rgba(217, 119, 6, 0.8);
  background: #d97706;
}

.agent-builder__preview {
  border-right: 0;
  background: #fff;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.agent-builder__preview pre {
  margin: 0;
  min-height: 0;
  overflow: auto;
  border-radius: 0;
  background: #121826;
  color: #fff9f3;
  font-size: 12px;
  line-height: 18px;
}

.agent-builder__chat {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  align-content: start;
  gap: 6px;
  padding: 8px 10px 10px;
  background: #fffaf6;
}

.agent-builder__chat-message {
  max-width: 92%;
  padding: 10px 12px;
  border: 1px solid rgba(18, 24, 38, 0.14);
  background: #fff;
  font-size: 13px;
  white-space: pre-wrap;
}

.agent-builder__chat-message.user {
  justify-self: end;
  border-color: rgba(18, 24, 38, 0.32);
  background: rgba(255, 238, 228, 0.9);
}

.agent-builder__chat-message.assistant {
  justify-self: start;
}

.agent-builder__stream-message {
  border-color: rgba(217, 119, 6, 0.32);
  background: #fff7ed;
}

.agent-builder__stream-message[data-status="accepted"] {
  border-color: rgba(22, 163, 74, 0.34);
  background: #f0fdf4;
}

.agent-builder__stream-message[data-status="rejected"] {
  border-color: rgba(220, 38, 38, 0.36);
  background: #fef2f2;
}

.agent-builder__board-event {
  display: grid;
  gap: 3px;
  border-color: rgba(14, 165, 233, 0.35);
  background: #f0f9ff;
}

.agent-builder__board-event strong {
  color: #0369a1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.agent-builder__board-event small {
  color: rgba(18, 24, 38, 0.62);
}

.agent-builder__chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(18, 24, 38, 0.14);
  background: #fff;
}

.agent-builder__chat-form textarea {
  min-height: 52px;
  resize: vertical;
  border: 1px solid rgba(18, 24, 38, 0.14);
  padding: 9px;
}

.agent-builder__draft-details {
  border-top: 1px solid rgba(18, 24, 38, 0.14);
  min-height: 0;
}

.agent-builder__draft-details summary {
  padding: 8px 10px;
  color: var(--hurozo-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-builder__draft-details:not([open]) pre {
  display: none;
}

.agent-builder__status {
  min-height: 24px;
  margin: 0;
  padding: 4px 18px;
  color: var(--hurozo-muted);
  font-size: 12px;
}

.window-dock {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 900;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--window-border);
  border-radius: 999px;
  background: var(--window-bg);
  box-shadow: var(--window-shadow);
}

.docs-body h2,
.contact-form h4 {
  margin: 0 0 12px;
  font-size: 28px;
}

.kicker {
  color: var(--hurozo-text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

pre {
  overflow: auto;
  padding: 14px;
  background: #121826;
  color: #fff9f3;
}

.cli-hero,
.sdk-hero {
  display: grid;
  gap: 24px;
  align-items: start;
  padding: 32px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.cli-hero {
  grid-template-columns: minmax(240px, 0.58fr) minmax(420px, 1.42fr);
}

.sdk-hero {
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
}

.cli-hero__copy h2,
.sdk-hero__copy h2 {
  margin: 4px 0 12px;
  color: #000;
  font-size: 32px;
  line-height: 35px;
}

.cli-hero__copy p,
.sdk-hero__copy p {
  margin: 0;
  color: #4a4a4a;
  font-size: 15px;
  line-height: 24px;
}

.cli-kicker,
.sdk-kicker {
  display: inline-flex;
  margin-bottom: 8px !important;
  color: #767676 !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px !important;
  font-weight: 500;
  text-transform: uppercase;
}

.cli-install,
.sdk-install,
.sdk-code-panel {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  background: #0a0a0a;
}

.cli-install span,
.sdk-install span,
.sdk-code-panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 0;
  color: rgba(245, 245, 245, 0.65);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.cli-install pre,
.sdk-install pre,
.sdk-code-panel pre {
  margin: 0;
  padding: 8px 12px 12px;
  color: #f5f5f5;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 20px;
}

.cli-hero__screenshot {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1917 / 1032;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  background: #f2f2f2;
  max-width: 900px;
  justify-self: end;
}

.cli-hero__screenshot img {
  display: block;
  width: 200%;
  height: auto;
  max-width: none;
}

.cli-feature-grid,
.sdk-feature-grid {
  display: grid;
  gap: 0;
  padding: 0 32px;
  border-bottom: 1px solid #e5e5e5;
}

.cli-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.cli-feature-grid article,
.sdk-feature-grid article {
  min-height: 128px;
  padding: 16px;
  border-right: 1px solid #e5e5e5;
  background: #fff;
}

.cli-feature-grid article:first-child,
.sdk-feature-grid article:first-child {
  border-left: 1px solid #e5e5e5;
}

.cli-feature-grid h4,
.cli-next-steps h4,
.sdk-feature-grid h4,
.sdk-next-steps h4 {
  margin: 0 0 7px;
  color: #000;
  font-size: 13px;
  line-height: 20px;
  text-transform: uppercase;
}

.cli-feature-grid p,
.cli-next-steps p,
.sdk-feature-grid p,
.sdk-next-steps p {
  margin: 0;
  color: #4a4a4a;
  font-size: 13px;
  line-height: 20px;
}

.cli-next-steps,
.sdk-next-steps {
  margin: 0;
  padding: 20px 32px 24px;
  background: #fafafa;
}

.cli-next-steps code,
.sdk-next-steps code {
  padding: 1px 5px;
  border-radius: 2px;
  background: #f2f2f2;
  color: #000;
}

.contact-form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: 100%;
  padding: 0;
  gap: 0;
  overflow-y: auto;
  background: #fff;
}

.contact-form__intro {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 14px;
  min-height: 46px;
  padding: 13px 18px;
  border-bottom: 1px solid #d8d2c9;
  background: #fffaf4;
}

.contact-form__intro h4,
.contact-form__intro p {
  margin: 0;
}

.contact-form__intro p {
  min-width: 0;
  color: #5f5a52;
  font: 500 0.86rem/1.35 "IBM Plex Mono", ui-monospace, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
  align-content: start;
  min-height: 0;
}

.contact-field {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid #e2ddd5;
}

.contact-field:nth-child(2) {
  border-left: 1px solid #e2ddd5;
}

.contact-field--full {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  padding-top: 13px;
  border-left: 0;
}

.contact-field__label {
  font-weight: 600;
  font-size: 0.78rem;
  color: #6d675f;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.contact-field__optional {
  font-weight: 400;
  color: #8a8378;
  text-transform: none;
}

.contact-field input,
.contact-field textarea {
  min-width: 0;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #171717;
  resize: vertical;
}

.contact-field textarea {
  min-height: 180px;
  height: 100%;
  padding: 12px 0 18px;
  line-height: 1.55;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  box-shadow: inset 0 -2px 0 #f0a17f;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid #171717;
  background: #f7f3ed;
}

.contact-form__alerts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-alert {
  margin: 0;
  padding: 10px 18px;
  font-size: 0.94rem;
}

.contact-form label,
.login-window label {
  display: grid;
  gap: 5px;
  color: var(--hurozo-muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(18, 24, 38, 0.18);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--hurozo-text);
}

textarea {
  resize: vertical;
}

.files-app {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
}

.files-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.files-toolbar div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.files-toolbar img {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.files-crumbs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.files-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 0.9fr);
  gap: 12px;
}

.files-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
  border: 1px solid rgba(18, 24, 38, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.files-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid rgba(18, 24, 38, 0.08);
}

.files-item > button {
  height: auto;
  display: grid;
  gap: 2px;
  justify-items: start;
  border: none;
  background: transparent;
  text-align: left;
}

.files-item span {
  color: var(--hurozo-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.files-item em {
  color: var(--hurozo-muted);
  font-size: 12px;
  font-style: normal;
}

.files-editor {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(18, 24, 38, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

.files-editor header,
.files-editor footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid rgba(18, 24, 38, 0.08);
}

.files-editor footer {
  border-top: 1px solid rgba(18, 24, 38, 0.08);
  border-bottom: 0;
}

.files-editor textarea {
  min-height: 240px;
  border: 0;
  border-radius: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.name-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 24, 38, 0.34);
  backdrop-filter: blur(8px);
}

.name-dialog__panel {
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(18, 24, 38, 0.24);
  background: rgba(255, 250, 246, 0.98);
  box-shadow: var(--window-shadow);
}

.name-dialog__panel header,
.name-dialog__panel footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.name-dialog__panel h3 {
  margin: 0;
  font-size: 18px;
}

.name-dialog__panel label {
  display: grid;
  gap: 6px;
  color: var(--hurozo-muted);
  font-size: 13px;
  font-weight: 700;
}

.name-dialog__error {
  min-height: 20px;
  margin: 0;
  color: #c84f25;
  font-size: 13px;
}

@media (max-width: 860px) {
  .cli-hero,
  .sdk-hero,
  .cli-feature-grid,
  .sdk-feature-grid,
  .files-main,
  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .contact-field:nth-child(2),
  .cli-feature-grid article,
  .sdk-feature-grid article {
    border-left: 0;
  }

  .agent-builder {
    grid-template-columns: 1fr;
  }

  .agent-builder__sidebar {
    grid-template-rows: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(18, 24, 38, 0.16);
  }

  .agent-builder__workspace {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .agent-builder__panel {
    min-height: 280px;
  }

  .agent-builder__search {
    width: 100%;
  }
}

.login-overlay {
  position: fixed;
  inset: var(--taskbar-height) 0 0;
  z-index: 1200;
  display: grid;
  place-items: start end;
  padding: 28px;
  pointer-events: none;
}

.login-overlay.is-centered {
  place-items: center;
}

.login-window {
  width: min(420px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid rgba(18, 24, 38, 0.22);
  background: rgba(255, 250, 246, 0.98);
  box-shadow: var(--window-shadow);
  pointer-events: auto;
}

.login-window header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.provider-buttons {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--hurozo-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(18, 24, 38, 0.14);
}

.email-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.muted {
  color: var(--hurozo-muted);
}

.status {
  position: fixed;
  left: calc(var(--dock-width) + 18px);
  bottom: 18px;
  z-index: 1300;
  margin: 0;
  color: var(--hurozo-muted);
  font-size: 13px;
}

.status.error {
  color: #b42318;
}

.board-window {
  left: calc(var(--dock-width) + 18px);
  top: 48px;
  width: calc(100% - var(--dock-width) - 36px);
  height: calc(100% - 60px);
  max-width: calc(100% - var(--dock-width) - 36px);
  max-height: calc(100% - 60px);
  background: rgba(255, 250, 246, 0.99);
}

.board-app {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-columns: 360px minmax(640px, 1fr) 380px;
  gap: 16px;
  height: 100%;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 250, 246, 0.9), rgba(255, 244, 237, 0.92)),
    radial-gradient(circle at 25% 18%, rgba(18, 24, 38, 0.1), transparent 34%),
    #fff7f2;
}

.agency-breadcrumbs {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: var(--hurozo-muted);
  font-size: 13px;
}

.agency-breadcrumbs button {
  border: 0;
  background: transparent;
  color: var(--hurozo-text);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.agency-breadcrumbs strong {
  color: var(--hurozo-text);
}

.agency-overview,
.agency-team-overview {
  grid-column: 1 / -1;
  min-height: 0;
  overflow: auto;
  padding: 10px 2px 18px;
}

.agency-overview[hidden],
.agency-team-overview[hidden] {
  display: none;
}

.agency-view-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.agency-view-header span {
  color: var(--hurozo-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agency-view-header h2 {
  margin: 3px 0 0;
  font-size: 30px;
}

.agency-view-header p {
  max-width: 520px;
  margin: 0;
  color: var(--hurozo-muted);
  line-height: 1.45;
}

.agency-view-header__actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 14px;
}

.agency-view-header__actions button {
  min-height: 36px;
  border: 1px solid rgba(18, 24, 38, 0.26);
  background: rgba(255, 244, 237, 0.92);
  color: var(--hurozo-text);
  padding: 0 13px;
  font-weight: 900;
  cursor: pointer;
}

.agency-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.agency-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.agency-status-grid article,
.agency-setup-checklist {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(18, 24, 38, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.agency-status-grid strong {
  font-size: 24px;
}

.agency-status-grid small,
.agency-setup-checklist span {
  color: var(--hurozo-muted);
  line-height: 1.35;
}

.agency-setup-checklist {
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  align-items: center;
  margin-bottom: 14px;
}

.agency-setup-checklist strong {
  color: var(--hurozo-text);
}

.agency-setup-checklist span::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: rgba(18, 24, 38, 0.18);
}

.agency-setup-checklist span.done::before {
  background: var(--hurozo-text);
}

.agency-fixture-definition {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.agency-fixture-definition header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.agency-fixture-definition header div {
  display: grid;
  gap: 3px;
}

.agency-fixture-definition strong,
.agency-fixture-definition b {
  color: var(--hurozo-text);
  font-size: 13px;
}

.agency-fixture-definition header span,
.agency-fixture-definition p,
.agency-fixture-definition li,
.agency-fixture-definition footer {
  color: var(--hurozo-muted);
  font-size: 12px;
  line-height: 1.45;
}

.agency-fixture-definition small {
  padding: 4px 8px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(18, 24, 38, 0.04);
  color: var(--hurozo-muted);
  font-weight: 900;
}

.agency-fixture-definition small.passed {
  border-color: rgba(26, 127, 55, 0.22);
  background: rgba(26, 127, 55, 0.08);
  color: #176f35;
}

.agency-fixture-definition small.failed {
  border-color: rgba(190, 45, 30, 0.22);
  background: rgba(190, 45, 30, 0.08);
  color: #9f2c22;
}

.agency-fixture-definition__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.agency-fixture-definition__grid > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.agency-fixture-definition p,
.agency-fixture-definition ul {
  margin: 0;
}

.agency-fixture-definition p span {
  display: block;
  color: var(--hurozo-text);
  font-weight: 900;
}

.agency-fixture-definition ul {
  padding-left: 18px;
}

.agency-library {
  display: grid;
  gap: 18px;
}

.context-chat-dock {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  justify-items: end;
  pointer-events: none;
}

.context-chat-dock__toggle {
  min-height: 36px;
  border: 1px solid rgba(18, 24, 38, 0.28);
  background: var(--hurozo-text);
  color: #fff;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 14px 30px rgba(18, 24, 38, 0.16);
}

.context-chat-dock__panel {
  width: min(360px, calc(100vw - 44px));
  max-height: min(520px, calc(100vh - 160px));
  display: none;
  grid-template-rows: auto minmax(90px, 1fr) auto;
  gap: 10px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(18, 24, 38, 0.12);
  background: rgba(255, 253, 250, 0.98);
  box-shadow: 0 24px 54px rgba(18, 24, 38, 0.18);
  pointer-events: auto;
}

.context-chat-dock.open .context-chat-dock__panel {
  display: grid;
}

.context-chat-dock header {
  display: grid;
  gap: 3px;
}

.context-chat-dock header span {
  color: var(--hurozo-text);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.context-chat-dock header strong {
  color: var(--hurozo-text);
  font-size: 15px;
}

.context-chat-dock__messages {
  min-height: 90px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
}

.context-chat-dock__messages p {
  margin: 0;
  padding: 8px 9px;
  background: rgba(18, 24, 38, 0.05);
  color: var(--hurozo-text);
  font-size: 12px;
  line-height: 1.4;
}

.context-chat-dock__messages p.user {
  background: rgba(255, 244, 237, 0.92);
}

.context-chat-dock form {
  display: grid;
  gap: 8px;
}

.context-chat-dock textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid rgba(18, 24, 38, 0.14);
  background: #fff;
  color: var(--hurozo-text);
  padding: 9px 10px;
  font: inherit;
  font-size: 13px;
}

.context-chat-dock form button {
  min-height: 34px;
  border: 1px solid rgba(18, 24, 38, 0.26);
  background: rgba(255, 244, 237, 0.95);
  color: var(--hurozo-text);
  font-weight: 900;
  cursor: pointer;
}

.agency-library-author {
  margin-bottom: 16px;
  border: 1px solid rgba(18, 24, 38, 0.18);
  background: rgba(255, 253, 250, 0.88);
  box-shadow: 0 14px 28px rgba(18, 24, 38, 0.05);
}

.agency-library-author summary {
  padding: 14px 16px;
  color: var(--hurozo-text);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.agency-library-author form {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.agency-library-author__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.agency-library-author label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--hurozo-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.agency-library-author input,
.agency-library-author select,
.agency-library-author textarea {
  width: 100%;
  border: 1px solid rgba(18, 24, 38, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--hurozo-text);
  padding: 9px 10px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.agency-library-author footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.agency-library-author footer p {
  margin: 0;
  color: var(--hurozo-muted);
  font-size: 12px;
}

.agency-library-author footer button {
  min-height: 34px;
  border: 1px solid rgba(18, 24, 38, 0.26);
  background: rgba(255, 244, 237, 0.92);
  color: var(--hurozo-text);
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

.agency-library__section {
  display: grid;
  gap: 10px;
}

.agency-library__section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agency-library__section h3 {
  margin: 0;
  font-size: 18px;
}

.agency-library__section > header span {
  color: var(--hurozo-muted);
  font-size: 12px;
  font-weight: 800;
}

.agency-library__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.agency-library-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 253, 250, 0.88);
  box-shadow: 0 14px 28px rgba(18, 24, 38, 0.06);
}

.agency-library-card header {
  display: grid;
  gap: 4px;
}

.agency-library-card header span {
  color: var(--hurozo-text);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agency-library-card strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agency-library-card p {
  min-height: 38px;
  margin: 0;
  color: var(--hurozo-muted);
  font-size: 12px;
  line-height: 1.45;
}

.agency-library-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.agency-library-card footer small {
  color: var(--hurozo-muted);
  font-weight: 800;
}

.agency-library-card__status {
  padding: 3px 7px;
  border: 1px solid rgba(18, 24, 38, 0.12);
  background: #fff;
  color: var(--hurozo-text);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agency-library-card__status--experimental {
  color: #7a4d00;
  background: #fff7dd;
}

.agency-library-card__status--deprecated {
  color: #8a1f11;
  background: #fff0ed;
}

.agency-library-card__usage {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.agency-library-card__usage span {
  max-width: 100%;
  padding: 3px 6px;
  overflow: hidden;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 244, 237, 0.74);
  color: var(--hurozo-text);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agency-card {
  min-height: 172px;
  border: 1px solid rgba(18, 24, 38, 0.18);
  background: rgba(255, 253, 250, 0.88);
  box-shadow: 0 18px 34px rgba(18, 24, 38, 0.08);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.agency-card > button.agency-card__main,
.agency-card--create form,
.agency-team-card {
  width: 100%;
  height: 100%;
}

.agency-card > button {
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 18px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.agency-team-card > button {
  align-content: space-between;
}

.agency-card strong {
  font-size: 22px;
}

.agency-card span,
.agency-card em {
  color: var(--hurozo-muted);
}

.agency-card em {
  font-style: normal;
  font-weight: 800;
}

.agency-card__metrics {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 4px;
}

.agency-card__metrics span {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(18, 24, 38, 0.08);
  background: rgba(255, 255, 255, 0.62);
  color: var(--hurozo-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agency-card__metrics b {
  color: var(--hurozo-text);
}

.agency-card__metrics .attention {
  border-color: rgba(18, 24, 38, 0.24);
  background: rgba(255, 244, 237, 0.9);
  color: var(--hurozo-text);
}

.agency-card__metrics.muted {
  grid-template-columns: 1fr;
}

.agency-card__actions {
  display: flex;
  gap: 10px;
  padding: 0 18px 16px;
  align-items: center;
  flex-wrap: wrap;
}

.agency-card__actions button,
.agency-card__actions select,
.agency-setup-guide header button {
  border: 0;
  background: transparent;
  color: var(--hurozo-text);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.agency-card__actions select {
  max-width: 150px;
  color: var(--hurozo-text);
  border-bottom: 1px solid rgba(18, 24, 38, 0.28);
}

.agency-worker-card__teams {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 12px;
}

.agency-worker-card__teams span,
.agency-worker-card__teams small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  color: var(--hurozo-muted);
  font-size: 11px;
  font-weight: 800;
}

.agency-worker-card__teams button {
  border: 0;
  background: transparent;
  color: var(--hurozo-text);
  cursor: pointer;
}

.agency-worker-card {
  min-height: 240px;
}

.agency-worker-card.agency-card--create {
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px 18px;
  text-align: center;
}

.agency-worker-card.agency-card--create button {
  width: 68px;
  height: 68px;
  min-height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 48px;
  border: 1px solid rgba(18, 24, 38, 0.32);
  background: rgba(255, 244, 237, 0.92);
  color: var(--hurozo-text);
  font-size: 44px;
  line-height: 1;
}

.agency-worker-card.agency-card--create strong {
  font-size: 22px;
}

.agency-worker-card.agency-card--create span {
  max-width: 250px;
  line-height: 1.35;
}

.agency-worker-card > button:first-child {
  align-content: start;
  min-height: 118px;
  padding-bottom: 10px;
}

.agency-worker-card > button:first-child strong {
  line-height: 1.15;
}

.agency-worker-card > button:first-child em {
  display: -webkit-box;
  max-height: 58px;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.agency-worker-card .agency-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px 28px 28px;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.agency-worker-card .agency-card__actions .agency-worker-card__icon {
  width: 28px;
  height: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
}

.agency-worker-card__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.agency-worker-card__paused {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 7px;
  border: 1px solid rgba(90, 99, 114, 0.2);
  border-radius: 999px;
  background: #f6f7f9;
  color: #5a6372;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.agency-setup-guide {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(18, 24, 38, 0.18);
  background: rgba(255, 250, 246, 0.82);
}

.agency-setup-guide header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.agency-setup-guide h3 {
  margin: 2px 0 0;
}

.agency-setup-guide ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agency-setup-guide li {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(18, 24, 38, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.agency-setup-guide span {
  color: var(--hurozo-muted);
  font-size: 12px;
  line-height: 1.35;
}

.agency-card--create form {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(rgba(255, 250, 246, 0.74), rgba(255, 244, 237, 0.82)),
    repeating-linear-gradient(135deg, rgba(18, 24, 38, 0.08) 0 8px, transparent 8px 18px);
}

.agency-card--create button {
  width: 68px;
  height: 68px;
  align-self: center;
  justify-self: center;
  border: 1px solid rgba(18, 24, 38, 0.32);
  background: rgba(255, 244, 237, 0.92);
  color: var(--hurozo-text);
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
}

.agency-card--create input {
  width: 100%;
}

.agency-team-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
}

.agency-team-card footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.agency-team-card footer button {
  min-height: 38px;
  flex: 1 1 86px;
  border: 1px solid rgba(18, 24, 38, 0.24);
  background: #fff;
  color: var(--hurozo-text);
  font-weight: 850;
  cursor: pointer;
}

.agency-setup-progress {
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
}

.agency-setup-progress__spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(18, 24, 38, 0.16);
  border-top-color: var(--hurozo-text);
  border-radius: 999px;
  animation: hurozo-spin 0.72s linear infinite;
}

.agency-setup-progress small {
  color: var(--hurozo-muted);
}

.agency-setup-progress__bar {
  width: min(180px, 100%);
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(18, 24, 38, 0.18);
  background: rgba(18, 24, 38, 0.08);
}

.agency-setup-progress__bar span {
  display: block;
  height: 100%;
  background: var(--hurozo-text);
  transition: width 180ms ease;
}

.board-sidebar,
.board-detail,
.board-lane {
  min-height: 0;
  border: 1px solid rgba(18, 24, 38, 0.16);
  background: rgba(255, 253, 250, 0.84);
  box-shadow: 0 18px 34px rgba(18, 24, 38, 0.08);
}

.board-sidebar,
.board-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  overflow: auto;
}

.board-sidebar__intro {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(18, 24, 38, 0.16);
  background: rgba(255, 238, 228, 0.72);
}

.board-sidebar__intro span,
.board-main__header span {
  color: var(--hurozo-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-sidebar__intro strong {
  font-size: 16px;
  line-height: 1.25;
}

.board-scope,
.board-agency-panel,
.board-create,
.board-detail__form,
.board-detail__feed {
  display: grid;
  gap: 9px;
}

.board-sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.62);
}

.board-sidebar-tabs button {
  min-height: 34px;
  border-color: transparent;
  background: transparent;
  color: var(--hurozo-muted);
  font-weight: 700;
}

.board-sidebar-tabs button.active {
  border-color: rgba(18, 24, 38, 0.3);
  background: rgba(18, 24, 38, 0.12);
  color: var(--hurozo-text);
}

.board-sidebar-panel {
  display: none;
  min-height: 0;
}

.board-sidebar-panel.active {
  display: grid;
  gap: 12px;
}

.board-agency-panel {
  padding: 12px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.64);
}

.board-agency-panel p {
  margin: 4px 0 0;
  color: var(--hurozo-muted);
  font-size: 12px;
  line-height: 1.35;
}

.board-agency-create {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.board-agency-create button {
  white-space: nowrap;
}

.board-persona-onboard {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(18, 24, 38, 0.14);
  background: rgba(255, 238, 228, 0.42);
}

.board-persona-onboard strong {
  font-size: 13px;
}

.board-persona-onboard button {
  justify-self: stretch;
}

.board-avatar-upload {
  display: grid;
  gap: 7px;
  cursor: pointer;
}

.board-avatar-upload > span {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px dashed rgba(18, 24, 38, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--hurozo-muted);
  font-size: 12px;
}

.board-avatar-upload img {
  width: 28px;
  height: 28px;
  object-fit: cover;
}

.board-avatar-upload input {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
}

.persona-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-team {
  display: grid;
  align-content: start;
  gap: 6px;
}

.board-team header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 3px;
  color: var(--hurozo-muted);
  font-size: 12px;
}

.board-team__members {
  display: grid;
  gap: 6px;
}

.board-team__member {
  display: grid;
  position: relative;
  padding: 7px 0 6px;
}

.board-team__member > button[data-board-team-agent] {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "name";
  align-items: start;
  gap: 8px;
  padding: 24px 42px 36px 13px;
  text-align: left;
  background: rgba(255, 255, 255, 0.76);
}

.board-team__member .board-persona-mark {
  display: none;
}

.board-team__member > button[data-board-team-agent] strong {
  grid-area: name;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.25;
}

.board-team__member > button[data-board-team-agent] small {
  display: none;
}

.board-persona-role-tag {
  position: absolute;
  top: 0;
  left: 9px;
  z-index: 1;
  max-width: calc(100% - 48px);
  padding: 1px 5px;
  overflow: hidden;
  border: 1px solid rgba(18, 24, 38, 0.22);
  background: rgba(255, 250, 246, 0.98);
  color: var(--hurozo-text);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.board-team__chat,
.board-team__edit,
.board-team__remove,
.board-team__persona-pause {
  position: absolute;
  bottom: 7px;
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--hurozo-text);
  box-shadow: none;
}

.board-team__chat svg,
.board-team__edit svg,
.board-team__remove svg,
.board-team__persona-pause svg,
.board-persona-tile footer button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.board-team__chat {
  right: 8px;
}

.board-team__edit {
  left: 8px;
}

.board-team__remove {
  left: auto;
  right: 36px;
  color: #9f2a2a;
}

.board-team__persona-pause {
  left: auto;
  right: 64px;
  color: #5a6372;
}

.board-team__member.is-paused {
  border-color: rgba(90, 99, 114, 0.28);
  background: rgba(247, 248, 250, 0.84);
}

.board-persona-paused-chip {
  position: absolute;
  top: -9px;
  right: 10px;
  max-width: calc(100% - 20px);
  padding: 1px 6px;
  border: 1px solid rgba(90, 99, 114, 0.24);
  background: #f6f7f9;
  color: #5a6372;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.board-team__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(164, 42, 42, 0.28);
  background: transparent;
  color: #9f2a2a;
  font-size: 12px;
  font-weight: 800;
}

.board-team__pause svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.board-team__pause.is-paused {
  border-color: rgba(34, 112, 76, 0.28);
  color: #22704c;
}

.board-team__pause-banner,
.board-automation-banner {
  margin: 8px 0 12px;
  padding: 9px 11px;
  border: 1px solid rgba(90, 99, 114, 0.18);
  border-radius: 8px;
  background: #f7f8fa;
  color: #5a6372;
  font-size: 12px;
  line-height: 1.35;
}

.board-automation-banner {
  grid-column: 1 / -1;
}

.board-persona-chat {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(18, 24, 38, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.board-persona-chat[hidden] {
  display: none;
}

.board-persona-chat header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.board-persona-chat header span {
  display: block;
  color: var(--hurozo-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-persona-chat header strong {
  display: block;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-persona-chat header button {
  border: 0;
  background: transparent;
  color: var(--hurozo-text);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.board-persona-run-log {
  display: grid;
  gap: 8px;
  max-height: min(34vh, 320px);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 253, 250, 0.78);
}

.board-persona-run-log header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--hurozo-muted);
  font-size: 12px;
}

.board-persona-run-log article {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(18, 24, 38, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.board-persona-run-log article span {
  color: var(--hurozo-text);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.board-persona-run-log article p {
  margin: 0;
  color: var(--hurozo-text);
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.board-persona-chat__messages {
  max-height: min(46vh, 430px);
  display: grid;
  gap: 7px;
  overflow: auto;
}

.board-persona-chat__message {
  padding: 8px;
  background: rgba(18, 24, 38, 0.06);
  color: var(--hurozo-text);
  font-size: 12px;
  line-height: 1.38;
  white-space: pre-wrap;
}

.board-persona-chat__message.user {
  background: rgba(18, 24, 38, 0.12);
}

.board-persona-chat__message.tool {
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(18, 24, 38, 0.68);
  font-size: 12px;
  font-weight: 750;
}

.board-persona-chat__message--typing {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 44px;
}

.board-persona-chat__message--typing span {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 999px;
  background: var(--hurozo-primary);
  animation: hurozo-chat-dot 1s ease-in-out infinite;
}

.board-persona-chat__message--typing span:nth-child(2) {
  animation-delay: 0.14s;
}

.board-persona-chat__message--typing span:nth-child(3) {
  animation-delay: 0.28s;
}

.board-persona-chat__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@keyframes hurozo-chat-dot {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.board-persona-chat__form {
  display: grid;
  gap: 7px;
}

.board-persona-chat-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed rgba(18, 24, 38, 0.14);
  background: rgba(255, 255, 255, 0.64);
  color: var(--hurozo-muted);
  font-size: 13px;
}

.board-persona-modal {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(18, 24, 38, 0.22);
  backdrop-filter: blur(8px);
}

.board-persona-modal__panel {
  width: min(920px, 96%);
  max-height: min(720px, 92%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(18, 24, 38, 0.2);
  background: rgba(255, 253, 250, 0.98);
  box-shadow: 0 26px 70px rgba(18, 24, 38, 0.22);
  overflow: hidden;
}

.board-persona-modal__panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(18, 24, 38, 0.14);
}

.board-persona-modal__panel > header span,
.board-persona-profile__hero span,
.board-persona-profile__section header span {
  color: var(--hurozo-text);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-persona-modal__panel h3,
.board-persona-modal__panel h4 {
  margin: 2px 0 0;
}

.board-persona-modal__panel > header button {
  width: 34px;
  height: 34px;
  padding: 0;
  border-color: rgba(18, 24, 38, 0.12);
  background: rgba(255, 255, 255, 0.84);
  font-size: 24px;
  line-height: 1;
}

.board-persona-modal__body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 0;
}

.board-persona-modal__list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  overflow: auto;
  border-right: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 244, 237, 0.44);
}

.board-persona-modal__list button {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
}

.board-persona-modal__list button.active {
  border-color: rgba(18, 24, 38, 0.5);
  background: rgba(18, 24, 38, 0.1);
  box-shadow: inset 3px 0 0 var(--hurozo-text);
}

.board-persona-modal__list span,
.board-persona-modal__profile p,
.board-persona-modal__profile small {
  color: var(--hurozo-muted);
}

.board-persona-modal__profile {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  overflow: auto;
}

.board-persona-modal__avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(18, 24, 38, 0.22);
  background: rgba(255, 244, 237, 0.9);
  color: var(--hurozo-text);
  font-size: 30px;
  font-weight: 900;
}

.board-persona-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.board-persona-modal__chips span {
  padding: 5px 8px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--hurozo-muted);
  font-size: 12px;
}

.board-persona-modal__profile form,
.board-persona-profile {
  display: grid;
  gap: 12px;
}

.board-persona-modal__profile form button,
.board-persona-profile .board-detail__actions button:last-child {
  min-height: 38px;
  border-color: rgba(18, 24, 38, 0.34);
  background: var(--hurozo-text);
  color: #fff;
  font-weight: 900;
}

.board-persona-modal__profile form button[type="submit"] {
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 -10px 18px rgba(255, 253, 250, 0.96);
}

.board-persona-profile__sticky-actions {
  position: sticky;
  top: -16px;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: -4px -2px 2px;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(18, 24, 38, 0.08);
  background: rgba(255, 253, 250, 0.96);
  backdrop-filter: blur(8px);
}

.board-persona-profile__sticky-actions button {
  min-height: 34px;
  padding: 0 12px;
}

.board-persona-profile__sticky-actions button:last-child {
  border-color: rgba(18, 24, 38, 0.34);
  background: var(--hurozo-text);
  color: #fff;
  font-weight: 900;
}

.board-persona-profile__help,
.board-persona-profile__hint {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(18, 24, 38, 0.09);
  background: rgba(255, 255, 255, 0.68);
  color: var(--hurozo-muted);
  font-size: 12px;
  line-height: 1.45;
}

.board-persona-profile__search {
  min-height: 34px;
  width: 100%;
  border: 1px solid rgba(18, 24, 38, 0.12);
  background: rgba(255, 255, 255, 0.82);
  padding: 0 10px;
  color: var(--hurozo-text);
  font-size: 13px;
}

.board-persona-profile__help {
  display: grid;
  gap: 3px;
}

.board-persona-profile__help strong {
  color: var(--hurozo-text);
}

.board-persona-profile__help p {
  margin: 0;
}

.worker-setup-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(18, 24, 38, 0.12);
  background: rgba(245, 247, 250, 0.76);
}

.worker-setup-map article {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 6px;
  border-left: 2px solid rgba(18, 24, 38, 0.16);
}

.worker-setup-map article > span {
  color: var(--hurozo-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.worker-setup-map article > strong {
  color: var(--hurozo-text);
  font-size: 12px;
}

.worker-setup-map article > small,
.worker-setup-map__item small {
  color: var(--hurozo-muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.worker-setup-map__item {
  display: grid;
  gap: 1px;
  min-width: 0;
}

@media (max-width: 860px) {
  .worker-setup-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.board-persona-profile__hero {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 14px;
}

.board-persona-profile__avatar {
  position: relative;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(18, 24, 38, 0.26);
  background: rgba(255, 244, 237, 0.86);
  color: var(--hurozo-text);
  cursor: pointer;
  overflow: visible;
}

.board-persona-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.board-persona-profile__avatar > span {
  color: var(--hurozo-text);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.board-persona-profile__avatar input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.board-persona-profile__avatar em {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(18, 24, 38, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.98);
  box-shadow: 0 8px 16px rgba(18, 24, 38, 0.12);
}

.board-persona-profile__avatar em::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 12px;
  height: 9px;
  border: 1.7px solid var(--hurozo-text);
  border-radius: 3px;
}

.board-persona-profile__avatar em::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  width: 4px;
  height: 4px;
  border: 1.5px solid var(--hurozo-text);
  border-radius: 999px;
}

.board-persona-profile__hero h3 {
  margin: 2px 0;
  font-size: 24px;
}

.board-persona-profile__hero p {
  margin: 0;
  color: var(--hurozo-muted);
}

.board-persona-profile__section {
  display: grid;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(18, 24, 38, 0.08);
}

.board-persona-profile__section header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.board-persona-profile__section h4 {
  margin: 2px 0 0;
}

.board-persona-capability-grid,
.board-persona-charter-grid,
.board-persona-canon-grid,
.board-persona-skill-grid {
  display: grid;
  gap: 8px;
}

.board-persona-charter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.board-persona-charter-grid label,
.board-persona-canon-add label {
  display: grid;
  gap: 6px;
  color: var(--hurozo-muted);
  font-size: 12px;
  font-weight: 800;
}

.board-persona-charter-grid textarea,
.board-persona-canon-add textarea,
.board-persona-canon-add input {
  width: 100%;
}

.board-persona-capability {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

.board-persona-capability.selected {
  border-color: rgba(18, 24, 38, 0.36);
  background: rgba(18, 24, 38, 0.08);
}

.board-persona-capability > button,
.board-persona-skill-grid button {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.board-persona-capability span,
.board-persona-skill-grid span {
  color: var(--hurozo-muted);
  font-size: 12px;
  line-height: 1.3;
}

.board-persona-skill-grid button {
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

.board-persona-canon-card {
  display: grid;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

.board-persona-canon-card.selected {
  border-color: rgba(18, 24, 38, 0.4);
  background: rgba(18, 24, 38, 0.1);
}

.board-persona-canon-card > button {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.board-persona-skill-grid button.selected {
  border-color: rgba(18, 24, 38, 0.4);
  background: rgba(18, 24, 38, 0.1);
}

.board-persona-canon-card > button:last-child {
  justify-self: start;
  margin: 0 10px 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hurozo-orange);
  font-size: 12px;
  font-weight: 900;
}

.board-persona-canon-add {
  padding: 10px;
  border: 1px dashed rgba(18, 24, 38, 0.16);
  background: rgba(255, 255, 255, 0.55);
}

.board-persona-canon-add > div {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.board-persona-capability__ops {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px;
}

.board-persona-capability__ops summary {
  cursor: pointer;
  color: var(--hurozo-text);
  font-size: 12px;
  font-weight: 850;
}

.board-persona-capability__ops[open] summary {
  margin-bottom: 7px;
}

.board-persona-permission {
  display: grid;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.board-persona-permission > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.board-persona-permission button {
  min-height: 26px;
  padding: 0 7px;
  border-color: rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--hurozo-muted);
  font-size: 11px;
}

.board-persona-permission button.active {
  border-color: rgba(18, 24, 38, 0.36);
  background: rgba(18, 24, 38, 0.12);
  color: var(--hurozo-text);
  font-weight: 850;
}

.board-team__members p {
  padding: 9px;
  border: 1px dashed rgba(18, 24, 38, 0.14);
  background: rgba(255, 253, 250, 0.72);
}

.board-team__manage {
  width: 100%;
}

.board-switcher {
  display: grid;
  gap: 12px;
}

.board-switcher__group {
  display: grid;
  gap: 7px;
}

.board-switcher__group h4 {
  margin: 0;
  color: var(--hurozo-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-switcher__item {
  width: 100%;
  height: auto;
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-areas:
    "icon label"
    "icon meta";
  align-items: center;
  gap: 1px 8px;
  padding: 9px;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
}

.board-switcher__item span {
  grid-area: icon;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: rgba(18, 24, 38, 0.1);
  color: var(--hurozo-text);
  font-size: 14px;
  font-weight: 800;
}

.board-switcher__item strong {
  grid-area: label;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.board-switcher__item small {
  grid-area: meta;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--hurozo-muted);
  font-size: 12px;
}

.board-switcher__item.active {
  border-color: rgba(18, 24, 38, 0.45);
  background: rgba(18, 24, 38, 0.12);
  font-weight: 700;
}

.board-scope label,
.board-create label {
  display: grid;
  gap: 5px;
}

.board-app input,
.board-app select,
.board-app textarea {
  width: 100%;
  border: 1px solid rgba(18, 24, 38, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--hurozo-text);
  padding: 8px 10px;
  resize: vertical;
}

.board-create__grid,
.board-detail__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.board-detail__contract {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.62);
}

.board-detail__contract h4,
.board-detail__contract p {
  margin: 0;
}

.board-detail__contract p {
  color: var(--hurozo-muted);
  font-size: 12px;
}

.board-detail__contract > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.board-status {
  position: absolute;
  right: 18px;
  bottom: 12px;
  min-height: 22px;
  margin: 0;
  color: var(--hurozo-muted);
  font-size: 13px;
}

.board-auth-overlay {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  background: rgba(255, 250, 246, 0.76);
  backdrop-filter: blur(8px);
}

.board-auth-overlay[hidden] {
  display: none;
}

.board-auth-overlay__panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid rgba(18, 24, 38, 0.22);
  background: rgba(255, 253, 250, 0.92);
  box-shadow: 0 18px 42px rgba(18, 24, 38, 0.14);
  color: var(--hurozo-text);
}

.board-auth-overlay__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(18, 24, 38, 0.16);
  border-top-color: var(--hurozo-text);
  border-radius: 999px;
  animation: hurozo-spin 0.72s linear infinite;
}

.board-main {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.board-main__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 24, 38, 0.16);
  background: rgba(255, 253, 250, 0.78);
  box-shadow: 0 18px 34px rgba(18, 24, 38, 0.06);
}

.board-main__header h2 {
  margin: 3px 0 0;
  font-size: 28px;
  line-height: 1;
}

.board-main__header p {
  max-width: 420px;
  margin: 0;
  color: var(--hurozo-muted);
  font-size: 13px;
}

.board-lanes {
  min-height: clamp(420px, 58vh, 760px);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding-bottom: 3px;
}

.board-lane-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.board-lanes:not(.board-lanes--swim) > .board-lane-grid {
  flex: 1 1 auto;
  min-height: 100%;
}

.board-lane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0;
}

.board-lane header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid rgba(18, 24, 38, 0.12);
  background: rgba(255, 245, 238, 0.62);
}

.board-lane h4,
.board-detail h3,
.board-detail h4 {
  margin: 0;
}

.board-lane header span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(18, 24, 38, 0.12);
  color: var(--hurozo-text);
  font-weight: 700;
}

.board-lane__stories {
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 11px;
  overflow: auto;
  min-height: 320px;
  border: 1px solid transparent;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.board-lane__stories.drag-over {
  border-color: rgba(18, 24, 38, 0.34);
  background: rgba(18, 24, 38, 0.08);
}

.board-lane__empty {
  margin: 0;
  padding: 14px 10px;
  border: 1px dashed rgba(18, 24, 38, 0.24);
  background: rgba(255, 250, 246, 0.62);
  color: var(--hurozo-muted);
  font-size: 13px;
  text-align: center;
}

.board-story,
.board-detail__feed article {
  padding: 11px;
  border: 1px solid rgba(18, 24, 38, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.board-story {
  position: relative;
  display: grid;
  gap: 8px;
  cursor: grab;
  box-shadow: 0 10px 20px rgba(18, 24, 38, 0.06);
  transition: opacity 0.14s ease, filter 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.board-story:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 24, 38, 0.3);
  box-shadow: 0 14px 26px rgba(18, 24, 38, 0.09);
}

.board-story.dragging {
  opacity: 0.55;
  transform: rotate(-1deg);
}

.board-story.pending {
  cursor: progress;
  opacity: 0.72;
  filter: grayscale(0.34);
  background: rgba(239, 241, 244, 0.92);
}

.board-story.pending:hover {
  transform: none;
  border-color: rgba(18, 24, 38, 0.12);
  box-shadow: 0 10px 20px rgba(18, 24, 38, 0.06);
}

.board-story.pending button {
  pointer-events: none;
}

.board-story.active {
  border-color: rgba(18, 24, 38, 0.5);
  box-shadow: inset 3px 0 0 var(--hurozo-text);
}

.board-story strong {
  display: block;
  padding-right: 18px;
  font-size: 14px;
}

.board-story__delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(130, 42, 28, 0.62);
  box-shadow: none;
}

.board-story__delete:hover {
  color: #b42318;
  background: transparent;
}

.board-story__delete::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 8px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}

.board-story__delete::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 10px;
  height: 4px;
  border-top: 1.5px solid currentColor;
  border-radius: 1px;
  box-shadow: 3px -2px 0 -1.5px currentColor;
}

.board-story span,
.board-story p,
.board-story footer,
.board-detail,
.board-detail p,
.board-detail dd {
  color: var(--hurozo-muted);
  font-size: 13px;
}

.board-story p {
  margin: 0;
  max-height: 54px;
  overflow: hidden;
}

.board-story__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.board-story__chip {
  max-width: 100%;
  padding: 2px 6px;
  overflow: hidden;
  border: 1px solid rgba(18, 24, 38, 0.2);
  background: rgba(255, 250, 246, 0.85);
  color: var(--hurozo-text);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.board-story__chip--ready {
  border-color: rgba(21, 128, 61, 0.24);
  background: rgba(240, 253, 244, 0.86);
  color: #166534;
}

.board-story__chip--waiting {
  border-color: rgba(180, 83, 9, 0.22);
  background: rgba(255, 251, 235, 0.88);
  color: #92400e;
}

.board-story__chip--working {
  border-color: rgba(18, 24, 38, 0.28);
  background: rgba(18, 24, 38, 0.1);
  color: var(--hurozo-text);
}

.board-story__chip--needs-you {
  border-color: rgba(124, 58, 237, 0.22);
  background: rgba(245, 243, 255, 0.9);
  color: #5b21b6;
}

.board-story__chip--failed {
  border-color: rgba(190, 18, 60, 0.22);
  background: rgba(255, 241, 242, 0.9);
  color: #9f1239;
}

.board-story__chip--done {
  border-color: rgba(21, 128, 61, 0.24);
  background: rgba(240, 253, 244, 0.86);
  color: #166534;
}

.board-story__chip--stale {
  border-color: rgba(190, 18, 60, 0.22);
  background: rgba(255, 241, 242, 0.9);
  color: #9f1239;
}

.board-story footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.board-story footer > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-story__spinner {
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 2px solid rgba(18, 24, 38, 0.18);
  border-top-color: var(--hurozo-text);
  border-radius: 999px;
  animation: hurozo-spin 0.7s linear infinite;
}

@keyframes hurozo-spin {
  to {
    transform: rotate(360deg);
  }
}

.board-detail header {
  display: grid;
  gap: 8px;
}

.board-detail header span {
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid rgba(18, 24, 38, 0.24);
  background: rgba(18, 24, 38, 0.1);
  color: var(--hurozo-text);
  font-size: 12px;
  font-weight: 700;
}

.board-detail dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.board-detail dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
}

.board-detail dt {
  color: var(--hurozo-text);
  font-weight: 700;
}

.board-detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.board-app--agency {
  grid-template-columns: 220px minmax(680px, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "crumbs crumbs"
    "members main";
  gap: 12px;
  padding: 12px;
  position: relative;
}

.board-app--agency .agency-breadcrumbs {
  grid-area: crumbs;
}

.board-members {
  grid-area: members;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 6px;
  padding: 8px 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(18, 24, 38, 0.16);
  background: rgba(255, 253, 250, 0.84);
  box-shadow: 0 18px 34px rgba(18, 24, 38, 0.08);
}

.board-members > header,
.board-agency-editor > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.board-members > header button,
.board-lane header button,
.board-agency-editor > header button {
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  border-color: rgba(18, 24, 38, 0.22);
  background: rgba(18, 24, 38, 0.1);
  color: var(--hurozo-text);
  font-weight: 900;
}

.board-members > header button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border-color: var(--line, #d8d8d2);
  border-radius: 5px;
  background: #fff;
  color: var(--hurozo-text);
  font-size: 19px;
  line-height: 1;
  box-shadow: none;
}

.board-main {
  grid-area: main;
}

.board-main--single {
  grid-column: main-start / detail-end;
  min-width: 0;
  overflow: auto;
}

.board-main--single .board-persona-profile,
.board-main--single .board-persona-chat {
  width: min(980px, 100%);
  max-width: 980px;
  margin: 0 auto;
}

.board-main--single .board-persona-chat--detail {
  min-height: min(680px, calc(100vh - 190px));
  align-self: stretch;
}

.agency-canon-screen {
  display: grid;
  gap: 14px;
}

.board-chat-shell {
  display: none;
}

.board-main__controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.planning-scope {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(18, 24, 38, 0.16);
  background: rgba(255, 255, 255, 0.74);
}

.planning-scope strong {
  max-width: 220px;
  overflow: hidden;
  color: var(--hurozo-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planning-scope > span {
  color: var(--hurozo-muted);
}

.planning-scope select {
  max-width: 220px;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--hurozo-text);
  font-weight: 800;
}

.planning-scope__portfolio {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--hurozo-muted);
  font-weight: 800;
  cursor: pointer;
}

.planning-scope__portfolio:hover,
.planning-scope__portfolio:focus-visible {
  color: var(--hurozo-text);
}

.board-tabs {
  display: flex;
  align-self: start;
  gap: 4px;
  min-height: 38px;
  padding: 4px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.board-tabs button {
  flex: 0 0 auto;
  min-height: 30px;
  height: 30px;
  padding-block: 0;
  border-color: transparent;
  background: transparent;
  color: var(--hurozo-muted);
  font-weight: 800;
}

.board-tabs button.active {
  border-color: rgba(18, 24, 38, 0.32);
  background: rgba(18, 24, 38, 0.12);
  color: var(--hurozo-text);
}

.board-work-tabs {
  display: flex;
  gap: 6px;
  min-height: 28px;
  overflow-x: auto;
}

.board-work-tabs[hidden] {
  display: none;
}

.board-work-tabs button {
  min-height: 28px;
  max-width: 220px;
  overflow: hidden;
  border-color: rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.68);
  color: var(--hurozo-muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-work-tabs button.active {
  border-color: rgba(18, 24, 38, 0.28);
  background: rgba(255, 238, 228, 0.86);
  color: var(--hurozo-text);
}

.board-panel {
  min-height: 0;
  overflow: hidden;
}

.board-panel[hidden] {
  display: none;
}

.board-panel--planning {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.board-panel--decisions {
  display: grid;
  min-height: 0;
}

.board-decisions {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
}

.board-decisions__header,
.board-detail__payload > header,
.board-detail__children--workbench > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.board-decisions__header span,
.board-detail__payload span,
.board-detail__children--workbench span {
  color: var(--hurozo-text);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.board-decisions__header h3,
.board-detail__payload h4,
.board-detail__children--workbench h4 {
  margin: 2px 0 0;
}

.board-decisions__header p,
.board-decisions__empty p,
.board-detail__payload p {
  margin: 4px 0 0;
  color: var(--hurozo-muted);
  font-size: 13px;
  line-height: 1.4;
}

.board-decisions__list,
.board-payload-fields,
.board-child-workbench {
  display: grid;
  gap: 10px;
}

.board-decision-card,
.board-payload-field,
.board-child-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.board-decision-card header,
.board-decision-card footer,
.board-payload-field header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.board-decision-card strong,
.board-child-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-decision-card dl,
.board-detail dl {
  margin: 0;
}

.board-decision-card dl div,
.board-payload-field__refs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.board-decision-card dt {
  color: var(--hurozo-muted);
  font-size: 11px;
  font-weight: 800;
}

.board-decision-card dd {
  margin: 0;
  font-size: 12px;
}

.board-decisions__empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed rgba(18, 24, 38, 0.18);
  background: rgba(255, 255, 255, 0.54);
  text-align: center;
}

.board-detail__payload,
.board-detail__children--workbench,
.board-detail__contract {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(18, 24, 38, 0.14);
  background: rgba(255, 250, 246, 0.58);
}

.board-payload-field pre {
  max-height: 180px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
}

.board-payload-field small,
.board-payload-field em,
.board-child-card small {
  color: var(--hurozo-muted);
  font-size: 11px;
}

.board-payload-field__refs span {
  padding: 2px 6px;
  background: rgba(18, 24, 38, 0.06);
  font-size: 10px;
  font-weight: 800;
}

.board-payload-modal {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(18, 24, 38, 0.34);
}

.board-payload-modal__panel {
  display: grid;
  gap: 14px;
  width: min(860px, 100%);
  max-height: min(720px, 92%);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(18, 24, 38, 0.2);
  background: #fffdfa;
  box-shadow: 0 30px 70px rgba(18, 24, 38, 0.28);
}

.board-payload-modal__panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.board-payload-modal__panel > header span {
  color: var(--hurozo-text);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.board-payload-modal__panel > header h3 {
  margin: 2px 0 0;
}

.board-payload-modal__panel > header button {
  min-width: 32px;
  height: 32px;
  padding: 0;
  border-color: rgba(18, 24, 38, 0.12);
  background: transparent;
  font-size: 22px;
}

.board-artifact-ref button {
  width: 100%;
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.board-artifact-ref button:not(:disabled) {
  cursor: pointer;
}

.board-artifact-ref button:disabled {
  opacity: 0.58;
}

.board-story-window {
  min-width: 520px;
  min-height: 420px;
}

.board-story-window__content {
  min-height: 0;
  overflow: auto;
  background: rgba(255, 250, 246, 0.7);
}

.story-window-detail {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.story-window-detail > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(18, 24, 38, 0.12);
}

.story-window-detail > header span {
  color: var(--hurozo-text);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.story-window-detail h2 {
  margin: 3px 0 6px;
  font-size: 24px;
  line-height: 1.1;
}

.story-window-detail p {
  margin: 0;
  color: var(--hurozo-muted);
  line-height: 1.45;
}

.story-window-detail > header > strong {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(18, 24, 38, 0.14);
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  text-transform: uppercase;
}

.story-window-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.story-window-detail dl div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.story-window-detail dt {
  color: var(--hurozo-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.story-window-detail dd {
  margin: 0;
}

.story-window-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-window-actions button,
.story-window-comment button {
  min-height: 34px;
  border-color: rgba(18, 24, 38, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: var(--hurozo-text);
  font-weight: 800;
}

.story-window-comment {
  display: grid;
  gap: 8px;
}

.story-window-feed {
  display: grid;
  gap: 10px;
}

.story-window-feed h4 {
  margin: 8px 0 0;
}

.story-window-feed article {
  padding: 11px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.78);
}

.story-window-feed article p {
  margin-top: 6px;
}

.board-artifact-ref strong {
  color: #161a24;
}

.board-artifact-ref span,
.board-artifact-ref small,
.board-artifact-modal__panel header small {
  color: rgba(18, 24, 38, 0.58);
  font-size: 12px;
}

.board-artifact-modal__panel {
  width: min(1040px, 100%);
}

.board-artifact-modal__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(18, 24, 38, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.board-artifact-modal__meta button {
  margin-left: auto;
}

.board-artifact-modal__content {
  min-height: 360px;
  max-height: 58vh;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: #10141e;
  color: #f8fafc;
  white-space: pre-wrap;
  word-break: break-word;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.board-artifact-modal__image {
  display: block;
  max-width: 100%;
  max-height: min(62vh, 720px);
  margin: 0 auto;
  object-fit: contain;
  background: #f8fafc;
}

.board-artifact-modal__pdf {
  display: block;
  width: 100%;
  height: min(70vh, 820px);
  border: 0;
  background: #f8fafc;
}

.board-artifact-modal__status,
.board-artifact-modal__error {
  padding: 14px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(18, 24, 38, 0.04);
  color: rgba(18, 24, 38, 0.72);
}

.board-artifact-modal__error {
  border-color: rgba(190, 18, 60, 0.22);
  background: rgba(190, 18, 60, 0.06);
  color: #9f1239;
}

.board-child-card > button {
  display: grid;
  justify-items: start;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.board-detail__form--inline {
  grid-template-columns: minmax(120px, 180px) minmax(180px, 1fr) auto;
  align-items: stretch;
}

.board-detail__form--inline textarea {
  min-height: 42px;
  resize: vertical;
}

.board-panel--agencies {
  display: grid;
  overflow: auto;
}

.board-agency-editor {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(18, 24, 38, 0.16);
  background: rgba(255, 253, 250, 0.84);
  box-shadow: 0 18px 34px rgba(18, 24, 38, 0.06);
}

.board-agency-editor h3 {
  margin: 2px 0 0;
  font-size: 24px;
}

.board-agency-persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.board-persona-tile {
  display: grid;
  gap: 8px;
  position: relative;
  padding-top: 14px;
  padding: 14px 11px 11px;
  border: 1px solid rgba(18, 24, 38, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.board-persona-tile.active,
.board-team__member.active > button[data-board-team-agent] {
  border-color: rgba(18, 24, 38, 0.5);
  box-shadow: inset 3px 0 0 var(--hurozo-text);
}

.board-persona-tile > button {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "name"
    "desc";
  gap: 3px;
  min-height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.board-persona-tile .board-persona-mark {
  display: none;
}

.board-persona-tile strong {
  grid-area: name;
}

.board-persona-tile small {
  grid-area: desc;
  color: var(--hurozo-muted);
  line-height: 1.3;
}

.board-persona-tile footer {
  display: flex;
  gap: 7px;
}

.board-persona-tile footer button,
.board-story__actions button {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border-color: rgba(18, 24, 38, 0.12);
  background: rgba(255, 250, 246, 0.82);
  color: var(--hurozo-text);
  font-weight: 900;
}

.board-agency-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed rgba(18, 24, 38, 0.22);
  background: rgba(255, 250, 246, 0.62);
  color: var(--hurozo-muted);
}

.board-lane header > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.board-story__actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
}

.board-story--draft {
  cursor: default;
}

.board-story--draft input,
.board-story--draft textarea,
.board-story--draft select {
  font-size: 13px;
}

.board-story--draft footer {
  justify-content: end;
}

.board-story__draft-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
}

.board-persona-chat {
  height: 100%;
  min-height: 0;
}

.board-persona-chat--detail {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.board-persona-chat header {
  display: block;
  padding: 0;
}

.board-persona-chat__messages {
  max-height: none;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  overflow: auto;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.64);
}

.board-persona-chat__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 250, 246, 0.68);
}

.board-persona-chat__form button {
  width: 100%;
  min-height: 36px;
  justify-content: center;
  background: var(--hurozo-text);
  color: #fff;
  font-weight: 800;
}

.board-persona-window {
  min-width: 620px;
  min-height: 520px;
}

.board-persona-window__content {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background: var(--hurozo-surface);
}

.board-persona-window .board-persona-profile {
  max-width: none;
}

.agency-visual-toolbar {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100vw - 28px);
  padding: 6px;
  overflow-x: auto;
  border: 1px solid rgba(18, 24, 38, 0.22);
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 18px 42px rgba(18, 24, 38, 0.18);
  transform: translateX(-50%);
}

.agency-visual-toolbar strong {
  padding: 0 6px;
  color: var(--hurozo-text);
  white-space: nowrap;
}

.agency-visual-toolbar button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 244, 237, 0.76);
  color: var(--hurozo-text);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .board-app {
    grid-template-columns: 230px minmax(360px, 1fr);
  }

  .agency-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agency-library__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agency-library-author__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-detail {
    display: none;
  }

  .board-app--agency {
    grid-template-columns: 210px minmax(420px, 1fr);
    grid-template-areas:
      "crumbs crumbs"
      "members main";
  }
}

@media (max-width: 760px) {
  .menu-bar {
    display: none;
  }

  .files-main {
    grid-template-columns: 1fr;
  }

  .desktop-window {
    left: 8px !important;
    top: 8px !important;
    width: calc(100vw - 16px) !important;
    height: calc(100vh - var(--taskbar-height) - 16px) !important;
  }

  .agency-card-grid {
    grid-template-columns: 1fr;
  }

  .agency-view-header {
    align-items: start;
    flex-direction: column;
  }

  .agency-view-header__actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .agency-library__grid {
    grid-template-columns: 1fr;
  }

  .agency-library-author__grid,
  .agency-library-author footer {
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-direction: column;
  }
}

.hx-window {
  left: calc(var(--dock-width) + 28px);
  top: 58px;
  width: calc(100% - var(--dock-width) - 56px);
  height: calc(100% - 82px);
}

.hx-app {
  min-height: 0;
  overflow: hidden;
  background: #fffdfa;
  color: var(--hurozo-text);
}

.hx-app h2,
.hx-app h3,
.hx-app p {
  margin: 0;
}

.hx-app button,
.hx-app input,
.hx-app textarea,
.hx-app select {
  font: inherit;
}

.hx-app .primary,
.hx-app button.primary {
  border-color: var(--hurozo-text);
  background: var(--hurozo-text);
  color: #fff;
  font-weight: 600;
}
.hx-app .primary:hover,
.hx-app button.primary:hover {
  background: #000;
}


.hx-epic,
.hx-build {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hx-epic__head p,
.hx-build__head p,
.hx-canvas header p {
  margin-top: 8px;
  color: var(--hurozo-muted);
  line-height: 1.45;
}

.hx-epic__actions,
.hx-build__head nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hx-build__head nav {
  padding: 4px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.hx-build__head nav button.active {
  background: rgba(18, 24, 38, 0.12);
  color: var(--hurozo-text);
}

.hx-epic__body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 0;
}

.hx-epic__body main,
.hx-epic__body aside {
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.hx-epic__body aside {
  border-left: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 244, 237, 0.42);
}

.hx-deliverable-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: #fff;
}

.hx-deliverable-thumb {
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: repeating-linear-gradient(135deg, #fff4ed, #fff4ed 7px, #fffdfa 7px, #fffdfa 14px);
  color: var(--hurozo-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hx-deliverable-card span {
  display: block;
  margin-top: 4px;
  color: var(--hurozo-muted);
  font-size: 12px;
}

.hx-chain {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.hx-chain > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--hurozo-muted);
  font-size: 12px;
}

.hx-chain > header strong {
  color: var(--hurozo-text);
  font-size: 16px;
}

.hx-chain-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
}

.hx-chain-step__node {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 24, 38, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--hurozo-muted);
  font-weight: 900;
}

.hx-chain-step--done .hx-chain-step__node {
  border-color: rgba(34, 112, 76, 0.25);
  background: #22704c;
  color: #fff;
}

.hx-chain-step--working .hx-chain-step__node,
.hx-chain-step--doing .hx-chain-step__node {
  border-color: rgba(18, 24, 38, 0.34);
  background: var(--hurozo-primary);
  color: #fff;
}

.hx-chain-step__body,
.hx-props,
.hx-build-card,
.hx-create-card,
.hx-artifact-region,
.hx-studio-rail,
.hx-source-form,
.hx-config-chat {
  border: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 255, 255, 0.84);
}

.hx-chain-step__body {
  padding: 12px;
}

.hx-chain-step__body header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hx-chain-step__body header span,
.hx-chain-step__body p,
.hx-props dd,
.hx-props p,
.hx-build-card span,
.hx-create-card span {
  color: var(--hurozo-muted);
  font-size: 12px;
}

.hx-chain-step__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.hx-chain-step__actions button {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  background: rgba(18, 24, 38, 0.05);
  color: var(--hurozo-muted);
  font-size: 11px;
}

.hx-props {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.hx-props dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.hx-props dl div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
}

.hx-props dt {
  color: var(--hurozo-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hx-props article {
  display: grid;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid rgba(18, 24, 38, 0.08);
}

.hx-studio {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 0;
}

.hx-canvas,
.hx-studio-rail {
  min-height: 0;
  overflow: auto;
  padding: 22px;
}

.hx-canvas {
  display: grid;
  align-content: start;
  gap: 16px;
}

.hx-artifact-region {
  display: grid;
  gap: 8px;
  padding: 16px;
  cursor: text;
}

.hx-artifact-region.selected {
  border-color: rgba(18, 24, 38, 0.34);
  box-shadow: inset 3px 0 0 var(--hurozo-text);
}

.hx-artifact-region.stale {
  border-color: rgba(159, 42, 42, 0.2);
  background: rgba(159, 42, 42, 0.04);
}

.hx-artifact-region p {
  color: var(--hurozo-text);
  line-height: 1.65;
}

.hx-artifact-region em {
  color: var(--hurozo-muted);
  font-size: 11px;
}

.hx-studio-rail {
  display: grid;
  align-content: start;
  gap: 14px;
  border-left: 1px solid rgba(18, 24, 38, 0.1);
  background: rgba(255, 244, 237, 0.42);
}

.hx-studio-rail nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(18, 24, 38, 0.1);
}

.hx-studio-rail nav button.active {
  background: rgba(18, 24, 38, 0.12);
  color: var(--hurozo-text);
}

.hx-coedit,
.hx-diff {
  display: grid;
  gap: 10px;
}

.hx-chat-thread {
  min-height: 90px;
  padding: 10px;
  background: rgba(18, 24, 38, 0.04);
}

.hx-diff {
  padding: 12px;
  border: 1px solid rgba(18, 24, 38, 0.18);
  background: #fff;
}

.hx-diff del,
.hx-diff ins {
  display: block;
  padding: 6px;
  text-decoration: none;
}

.hx-diff del {
  background: rgba(159, 42, 42, 0.07);
  color: #7f2323;
}

.hx-diff ins {
  background: rgba(34, 112, 76, 0.08);
  color: #22704c;
}

.hx-diff footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.hx-send-gate {
  width: 100%;
}

.hx-build {
  overflow: hidden;
}

.hx-build-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 22px;
}

.hx-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.hx-create-card,
.hx-build-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 160px;
  padding: 16px;
}

.hx-create-card button {
  width: 48px;
  height: 48px;
  min-height: 0;
  border-radius: 999px;
  border-color: rgba(18, 24, 38, 0.32);
  background: rgba(18, 24, 38, 0.1);
  color: var(--hurozo-text);
  font-size: 28px;
}

.hx-worker-layout,
.hx-source-form {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  min-height: 0;
  gap: 18px;
}

.hx-worker-layout aside,
.hx-source-form aside {
  display: grid;
  align-content: start;
  gap: 8px;
}

.hx-worker-layout aside button,
.hx-source-form aside button {
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
}

.hx-worker-layout main {
  display: grid;
  align-content: start;
  gap: 14px;
}

.hx-charter-grid,
.hx-source-form main {
  display: grid;
  gap: 12px;
}

.hx-charter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.hx-config-chat {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.hx-source-form {
  margin-bottom: 18px;
}

.hx-source-form main {
  padding: 16px;
}

@media (max-width: 900px) {
  .hx-epic__body,
  .hx-studio,
  .hx-worker-layout,
  .hx-source-form {
    grid-template-columns: 1fr;
  }

  .hx-epic__body aside,
  .hx-studio-rail {
    border-left: 0;
    border-top: 1px solid rgba(18, 24, 38, 0.1);
  }

  .hx-charter-grid {
    grid-template-columns: 1fr;
  }
}

/* P0.1 — Spotlight live-filter states */
.os-spotlight [data-spotlight-open][hidden],
.os-spotlight [data-spotlight-command][hidden],
.os-spotlight__section[hidden] { display: none !important; }
.os-spotlight [data-spotlight-open].is-active,
.os-spotlight [data-spotlight-command].is-active {
  background: var(--signal-tint, #FDF1EB);
  outline: 1px solid var(--signal, #E25E2E);
  border-radius: var(--r-1, 6px);
}

/* ── P1.1 Run Board: filters, swimlanes, needs-you, live-update, mobile ── */
.board-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 0 10px;
}
.board-segmented {
  display: inline-flex;
  border: 1px solid var(--rule, #E5E5E5);
  border-radius: var(--r-2, 8px);
  overflow: hidden;
}
.board-segmented button {
  appearance: none;
  border: 0;
  background: var(--paper, #fff);
  color: var(--ink-3, #4A4A4A);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  border-left: 1px solid var(--rule, #E5E5E5);
}
.board-segmented button:first-child { border-left: 0; }
.board-segmented button.on {
  background: var(--signal, #E25E2E);
  color: #fff;
}
.board-segmented button:not(.on):hover { background: var(--paper-3, #F2F2F2); }

.board-swimrow { display: flex; flex-direction: column; gap: 8px; }
.board-swimrow__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2, #1A1A1A);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.board-swimrow__head span {
  font-weight: 600;
  color: var(--ink-4, #767676);
}
.board-lanes--swim .board-lane-grid { grid-auto-rows: minmax(120px, auto); }

/* needs-you flag → read-only pointer into the Decisions inbox */
.board-story__flag {
  appearance: none;
  border: 1px solid #c4b5fd;
  background: #f5f3ff;
  color: #5b21b6;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: var(--r-1, 6px);
  padding: 1px 6px;
  cursor: pointer;
}
.board-story__flag:hover { background: #ede9fe; }
.board-story--needs-you { box-shadow: inset 3px 0 0 #7c3aed; }

/* live engine advance: badge the card in, do not reorder */
@keyframes board-story-pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 94, 46, 0.45); }
  100% { box-shadow: 0 0 0 8px rgba(226, 94, 46, 0); }
}
.board-story--updated { animation: board-story-pulse 1.4s ease-out 1; }

/* keyboard reachability */
.board-story:focus-visible {
  outline: 2px solid var(--signal, #E25E2E);
  outline-offset: 2px;
}

/* status line as a corner toast (above the mobile tab bar) */
.board-status:not(:empty) {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  background: var(--ink-2, #1A1A1A);
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--r-2, 8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* mobile: collapse to a single-column status list */
@media (max-width: 760px) {
  .board-lane-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
  .board-filterbar { gap: 6px; }
  .board-segmented button { padding: 5px 9px; }
  .board-status:not(:empty) {
    right: 10px;
    left: 10px;
    bottom: calc(var(--taskbar-height, 56px) + 10px);
  }
}

/* ── P1.2 Epic window: breadcrumb, description clamp, chain collapse, per-step actions, edge states ── */
.hx-epic__crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--hurozo-ink-4, #767676);
  margin-bottom: 8px;
}
.hx-epic__crumbs button {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  color: var(--hurozo-text);
  cursor: pointer;
  padding: 0;
}
.hx-epic__crumbs button:hover { text-decoration: underline; }
.hx-epic__crumbs strong { color: var(--hurozo-ink-2, #1A1A1A); }
.hx-epic__id { color: var(--hurozo-ink-5, #A3A3A3); font-family: var(--mono, monospace); }

.hx-epic__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hx-epic__desc.is-expanded { -webkit-line-clamp: unset; overflow: visible; }
.hx-linkbtn {
  appearance: none; border: 0; background: none; font: inherit; padding: 0;
  color: var(--hurozo-text); cursor: pointer; font-size: 12px; font-weight: 600;
}
.hx-linkbtn:hover { text-decoration: underline; }
.hx-nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* collapsed "N steps done" group row */
.hx-chain-step--group { cursor: pointer; }
.hx-chain-step--group .hx-chain-step__expand { color: var(--hurozo-ink-4, #767676); font-weight: 600; }
.hx-chain-step.is-active { box-shadow: inset 3px 0 0 var(--signal, #E25E2E); }
.hx-chain-step--gate .hx-chain-step__node { color: #5b21b6; }

/* per-step action buttons (secondary; the one primary is Edit in Studio) */
.hx-chain-step__actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.hx-mact {
  appearance: none;
  border: 1px solid var(--rule, #E5E5E5);
  background: var(--paper, #fff);
  color: var(--ink-3, #4A4A4A);
  font: inherit; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: var(--r-1, 6px); cursor: pointer;
}
.hx-mact:hover { background: var(--paper-3, #F2F2F2); }
.hx-mact.warn { color: #9f1239; border-color: rgba(190, 18, 60, 0.25); }

/* edge states (DD-5) */
.hx-chain-step__edge {
  margin-top: 6px; padding: 4px 8px; border-radius: var(--r-1, 6px);
  font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.hx-chain-step__edge--failed { background: rgba(190, 18, 60, 0.08); color: #9f1239; }
.hx-chain-step__edge--degraded { background: rgba(180, 83, 9, 0.1); color: #b45309; }
.hx-chain-step__edge--stale { background: rgba(180, 83, 9, 0.08); color: #b45309; }
.hx-chain-step--failed .hx-chain-step__node { background: #be123c; color: #fff; }
.hx-chain-step:focus-visible { outline: 2px solid var(--signal, #E25E2E); outline-offset: 2px; }

/* OAuth connectors */
.connectors-window {
  width: min(980px, calc(100vw - 88px));
  height: min(720px, calc(100vh - 96px));
}
.connectors-app {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--paper-2, #F7F7F5);
  overflow: auto;
}
.connectors-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--rule, #E5E5E5);
  background: var(--paper, #fff);
  border-radius: var(--r-2, 8px);
}
.connectors-hero span,
.connector-card__main > span {
  display: block;
  color: var(--signal, #E25E2E);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.connectors-hero h2 {
  margin: 4px 0 6px;
  color: var(--ink-2, #1A1A1A);
  font-size: 24px;
  line-height: 1.15;
}
.connectors-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-4, #767676);
  font-size: 14px;
  line-height: 1.45;
}
.connectors-hero button,
.connector-card__actions button {
  appearance: none;
  border: 1px solid var(--rule, #E5E5E5);
  background: var(--paper, #fff);
  color: var(--ink-2, #1A1A1A);
  border-radius: var(--r-1, 6px);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}
.connectors-hero button:hover,
.connector-card__actions button:hover:not(:disabled) {
  background: var(--paper-3, #F2F2F2);
}
.connector-card__actions button:disabled {
  color: var(--ink-5, #A3A3A3);
  cursor: not-allowed;
}
.connectors-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.connectors-empty {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--rule, #E5E5E5);
  background: var(--paper, #fff);
  border-radius: var(--r-2, 8px);
  color: var(--ink-4, #767676);
}
.connectors-empty--error { color: #9f1239; }
.connector-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--rule, #E5E5E5);
  background: var(--paper, #fff);
  border-radius: var(--r-2, 8px);
}
.connector-card.connected {
  border-color: rgba(22, 163, 74, 0.36);
  box-shadow: inset 3px 0 0 #16a34a;
}
.connector-card__main strong {
  display: block;
  margin: 6px 0 8px;
  color: var(--ink-2, #1A1A1A);
  font-size: 18px;
}
.connector-card__main p {
  margin: 0 0 10px;
  color: var(--ink-4, #767676);
  font-size: 13px;
  line-height: 1.45;
}
.connector-card__scopes {
  color: var(--ink-4, #767676);
  font-size: 12px;
}
.connector-card__scopes summary {
  cursor: pointer;
  font-weight: 700;
}
.connector-card__scopes ul {
  margin: 8px 0 0;
  padding-left: 16px;
  max-height: 130px;
  overflow: auto;
}
.connector-card__status {
  display: flex;
  min-width: 150px;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}
.connector-card__status em {
  color: var(--ink-2, #1A1A1A);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.connector-card__status span,
.connector-card__status small {
  max-width: 170px;
  color: var(--ink-4, #767676);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.connector-verification {
  white-space: normal !important;
}
.connector-verification--ok { color: #166534 !important; }
.connector-verification--warning { color: #92400e !important; }
.connector-verification--error { color: #9f1239 !important; }
.connector-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.connector-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(26, 26, 26, 0.28);
}
.connector-modal__panel {
  width: min(640px, calc(100vw - 48px));
  max-height: min(760px, calc(100vh - 64px));
  overflow: auto;
  border: 1px solid var(--rule, #E5E5E5);
  border-radius: var(--r-2, 8px);
  background: var(--paper, #fff);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.22);
  padding: 18px;
}
.connector-modal__panel header,
.connector-config-form footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.connector-modal__panel header {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule, #E5E5E5);
}
.connector-modal__panel header span {
  display: block;
  color: var(--signal, #E25E2E);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.connector-modal__panel h3 {
  margin: 4px 0 0;
  color: var(--ink-2, #1A1A1A);
  font-size: 22px;
  line-height: 1.15;
}
.connector-modal__panel button,
.connector-config-form input {
  font: inherit;
}
.connector-modal__panel button {
  appearance: none;
  border: 1px solid var(--rule, #E5E5E5);
  background: var(--paper, #fff);
  border-radius: var(--r-1, 6px);
  color: var(--ink-2, #1A1A1A);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}
.connector-modal__panel button[type="submit"] {
  background: var(--ink-2, #1A1A1A);
  color: #fff;
}
.connector-modal__panel button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.connector-redirect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 16px 0;
}
.connector-redirect label,
.connector-config-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-3, #333);
  font-size: 12px;
  font-weight: 800;
}
.connector-redirect input,
.connector-config-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--rule, #E5E5E5);
  border-radius: var(--r-1, 6px);
  background: var(--paper-2, #F7F7F5);
  color: var(--ink-2, #1A1A1A);
  font-size: 13px;
  padding: 10px 12px;
}
.connector-steps {
  margin: 0;
  padding-left: 22px;
  color: var(--ink-3, #333);
  font-size: 14px;
  line-height: 1.55;
}
.connector-steps li + li {
  margin-top: 8px;
}
.connector-notes {
  margin-top: 16px;
  border-top: 1px solid var(--rule, #E5E5E5);
  padding-top: 14px;
  color: var(--ink-4, #767676);
  font-size: 13px;
  line-height: 1.45;
}
.connector-notes p {
  margin: 6px 0 0;
}
.connector-config-form {
  display: grid;
  gap: 14px;
}
.connector-config-form > p {
  margin: 0;
  color: var(--ink-4, #767676);
  font-size: 13px;
  line-height: 1.45;
}
.connector-config-form footer {
  margin-top: 4px;
}

.runs-app { display: flex; flex-direction: column; min-height: 0; background: var(--hurozo-paper, #f7f7f4); }
.runs-app__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 28px 18px; border-bottom: 1px solid var(--hurozo-rule, #ddd); }
.runs-app__header span, .runs-detail header span { color: var(--hurozo-ink-5, #8a8a8a); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.runs-app__header h2, .runs-detail h2 { margin: 4px 0; font-size: 24px; }
.runs-app__header p { margin: 4px 0 0; color: var(--hurozo-ink-4, #6f6f6f); }
.runs-app__controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.runs-app__controls input, .runs-app__controls select { min-height: 34px; border: 1px solid var(--hurozo-rule, #ddd); background: var(--hurozo-paper, #fff); color: inherit; padding: 0 10px; }
.board-persona-capability__readiness { display: block; margin-top: 4px; color: var(--hurozo-ink-5, #8a8a8a); text-transform: capitalize; }
.runs-app__body { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; min-height: 0; flex: 1; }
.runs-list { overflow: auto; padding: 10px; border-right: 1px solid var(--hurozo-rule, #ddd); }
.runs-list__item { display: grid; gap: 4px; width: 100%; padding: 12px; border: 0; border-bottom: 1px solid var(--hurozo-rule, #e5e5e5); background: transparent; text-align: left; cursor: pointer; color: inherit; }
.runs-list__item:hover, .runs-list__item:focus-visible { background: rgba(0, 0, 0, .045); outline: none; }
.runs-list__item span, .runs-list__item small { color: var(--hurozo-ink-4, #777); }
.runs-detail { overflow: auto; padding: 24px 28px; }
.runs-detail header { margin-bottom: 20px; }
.runs-detail__header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.runs-detail__meta { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.runs-detail__meta span { padding:4px 7px; border:1px solid var(--hurozo-rule,#ddd); color:var(--hurozo-ink-4,#777); font-size:11px; }
.runs-detail__actions { display:flex; gap:8px; }
.runs-detail__actions button { min-height:32px; padding:0 12px; border:1px solid var(--hurozo-rule,#ccc); background:transparent; cursor:pointer; }
.runs-detail__terminal { color:var(--hurozo-ink-4,#777); margin:-8px 0 18px; }
.runs-detail__events { display: grid; gap: 10px; }
.runs-detail__events article { padding: 12px 14px; border-left: 2px solid var(--hurozo-signal, #3a6); background: rgba(255,255,255,.6); }
.runs-detail__events article[class*="error"], .runs-detail__events article[class*="failed"] { border-left-color: var(--hurozo-danger,#b44); }
.runs-detail__events small { color: var(--hurozo-ink-4, #777); text-transform: uppercase; letter-spacing: .06em; }
.runs-detail__events p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.runs-error { color: #a33; }
@media (max-width: 720px) { .runs-app__body { grid-template-columns: 1fr; } .runs-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--hurozo-rule, #ddd); } }
/* V2 notification popover: operational state comes from Firestore, not a mock badge. */
.os-icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.os-icon-button strong {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 15px;
  padding: 1px 4px;
  border-radius: 9px;
  background: #d64a4a;
  color: #fff;
  font-size: 10px;
  line-height: 14px;
}
.notifications-panel {
  position: fixed;
  z-index: 10000;
  top: 44px;
  right: 16px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 64px));
  overflow: auto;
  border: 1px solid rgba(110, 120, 140, .3);
  border-radius: 8px;
  background: var(--hurozo-surface, #fffdfa);
  color: var(--hurozo-text, #121826);
  box-shadow: 0 14px 40px rgba(20, 25, 35, .2);
}
.notifications-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(110, 120, 140, .2);
}
.notifications-panel > header button { border: 0; background: transparent; color: inherit; font-size: 20px; cursor: pointer; }
.notification-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid rgba(110, 120, 140, .14);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.notification-item.unread { background: rgba(56, 111, 190, .08); }
.notification-item span, .notification-item small { color: var(--hurozo-muted, #667085); }
.notifications-empty, .notifications-error { padding: 18px 14px; }
.board-persona-profile__sticky-actions [data-board-profile-save-state] { margin-right: auto; color: var(--hurozo-muted, #667085); font-size: 12px; }
.board-persona-skill-catalog { margin: 10px 0; border: 1px solid rgba(110,120,140,.22); border-radius: 6px; padding: 9px 10px; }
.board-persona-skill-catalog > summary { cursor: pointer; font-weight: 650; }
.board-persona-skill-catalog[open] > summary { margin-bottom: 10px; }
.board-persona-automation { margin-top: 18px; }
.board-persona-automation > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.board-persona-automation > header button, .board-automation-card__actions button { border: 1px solid rgba(110,120,140,.28); border-radius: 5px; background: transparent; padding: 5px 8px; cursor: pointer; }
.board-automation-list { display: grid; gap: 8px; margin-top: 10px; }
.board-automation-card { display: flex; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid rgba(110,120,140,.22); border-radius: 6px; }
.board-automation-card.is-paused { opacity: .68; }
.board-automation-card > div:first-child { display: grid; gap: 3px; min-width: 0; }
.board-automation-card span, .board-automation-card small { color: var(--muted, #667085); font-size: 11px; }
.board-automation-card em { color: #a24747; font-size: 11px; font-style: normal; }
.board-automation-card__actions { display: flex; flex-wrap: wrap; align-content: start; justify-content: end; gap: 5px; }
.board-persona-automation__create { margin-top: 12px; }
.board-persona-automation__form { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; align-items: end; padding: 12px 0; }
.board-persona-automation__form label { display: grid; gap: 4px; }
.board-persona-automation__form button { min-height: 34px; }
@media (max-width: 700px) { .board-automation-card { display: grid; } .board-automation-card__actions { justify-content: start; } .board-persona-automation__form { grid-template-columns: 1fr; } }

/* Mobile desktop shell: preserve the launcher while making application windows usable. */
@media (max-width: 760px) {
  .desktop { padding: 0 0 0 var(--dock-width); }
  .desktop-window,
  .board-window,
  .hx-window {
    left: calc(var(--dock-width) + 4px) !important;
    top: 4px !important;
    width: calc(100vw - var(--dock-width) - 8px) !important;
    height: calc(100% - 8px) !important;
    min-width: 0;
    max-width: none;
    max-height: none;
    border-radius: 8px;
  }
  .window-titlebar { gap: 7px; padding: 0 8px; }
  .window-crumb { font-size: 11px; }
  .board-app,
  .board-app--agency {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas: "crumbs" "members" "main";
    gap: 8px;
    padding: 8px;
    overflow: auto;
  }
  .agency-breadcrumbs {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
  }
  .board-members {
    max-height: 220px;
    overflow: auto;
  }
  .board-main,
  .board-panel,
  .board-lanes { min-width: 0; overflow: visible; }
  .board-main__header {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .board-main__header h2 { font-size: 24px; }
  .board-main__controls { width: 100%; justify-content: space-between; }
  .planning-scope { min-width: 0; flex: 1; }
  .planning-scope strong,
  .planning-scope select { min-width: 0; max-width: 46%; }
  .board-filterbar { align-items: stretch; }
  .board-filterbar > select,
  .board-filterbar > button { width: 100%; }
  .board-segmented { width: 100%; }
  .board-segmented button { flex: 1; min-width: 0; }
  .board-lane-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, calc(100vw - var(--dock-width) - 40px));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .board-lane { scroll-snap-align: start; min-height: 420px; }
  .board-main--single .board-persona-profile,
  .board-main--single .board-persona-chat { width: 100%; }
}
.agency-setup-guide li > button { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; width: 100%; padding: 10px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.agency-setup-guide li > button span { grid-column: 1; color: var(--muted, #667085); }
.agency-setup-guide li > button em { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent, #386fbe); font-style: normal; }
.agency-setup-guide li.done > button strong { color: var(--muted, #667085); }
.agency-setup-guide__templates { margin-top: 16px; border-top: 1px solid var(--line, #d8d8d2); padding-top: 12px; }
.agency-setup-guide__templates > summary { cursor: pointer; font-weight: 650; }
.agency-setup-guide__templates > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.agency-template-preview { padding: 12px; border: 1px solid var(--line, #d8d8d2); background: var(--surface-subtle, #f6f6f2); }
.agency-template-preview p { margin: 5px 0; color: var(--ink-muted, #686862); font-size: 13px; }
.agency-template-preview small { color: var(--ink-muted, #686862); }
.agency-recent { display: flex; align-items: center; gap: 14px; margin: 14px 0; color: var(--ink-muted, #686862); }
.agency-recent > div { display: flex; flex-wrap: wrap; gap: 8px; }
.agency-recent button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line, #d8d8d2); background: transparent; color: inherit; cursor: pointer; }
.agency-view-density { margin: 0 0 12px auto; display: block; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line, #d8d8d2); background: transparent; cursor: pointer; }
.agency-card-grid--compact { display: grid; grid-template-columns: 1fr; gap: 8px; }
.agency-card-grid--compact .agency-card { min-height: 74px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.board-api-access__body { display: grid; gap: 14px; padding: 20px; }
.board-api-access__body form { display: grid; gap: 10px; }
.board-api-token { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line, #d8d8d2); }
.board-api-token span, .board-api-token small { color: var(--ink-muted, #686862); }
.board-api-token__secret { padding: 10px; background: var(--surface-subtle, #f5f5ef); overflow-wrap: anywhere; }
.agency-worker-card__avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--surface-subtle, #f1f1ec); font-weight: 700; }
.agency-worker-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.agency-worker-card__activity { display: block; margin: 8px 14px 0; color: var(--ink-muted, #686862); }
.worker-setup-map { position: relative; }
.worker-setup-map__edges { position: absolute; inset: 18px 0 18px; width: 100%; height: calc(100% - 36px); pointer-events: none; z-index: 0; overflow: visible; }
.worker-setup-map__edges path { fill: none; stroke: color-mix(in srgb, var(--accent, #5662d9) 34%, transparent); stroke-width: .7; stroke-dasharray: 2 2; }
.worker-setup-map > article { position: relative; z-index: 1; }

/* UX audit implementation: focused work surfaces, stable interactions, and mobile flow. */
.skip-link {
  position: fixed;
  z-index: 20000;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 9px 12px;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
:where(button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--signal, #e25e2e) !important;
  outline-offset: 2px;
}
:where(button, input, select, textarea) { font: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }

/* Dock: recognizable assets and persistent hover/focus names. */
.os-dock__app { position: relative; }
.os-dock__app > img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.os-dock__tooltip {
  position: absolute;
  z-index: 4;
  left: calc(100% + 9px);
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 7px;
  border-radius: 5px;
  background: #1a1a1a;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}
.os-dock__app:hover .os-dock__tooltip,
.os-dock__app:focus-visible .os-dock__tooltip { opacity: 1; }
.os-dock__add > span { font-size: 24px; }

/* Agency-level navigation keeps Teams, Workers, Canon, and Library at one altitude. */
.agency-secondary-nav {
  position: sticky;
  z-index: 8;
  top: 0;
  display: flex;
  gap: 3px;
  padding: 4px;
  margin: 0 0 16px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line, #deded7);
  border-radius: 7px;
  background: var(--surface, #fff);
}
.agency-secondary-nav button {
  min-height: 36px;
  padding: 7px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-muted, #64645f);
  cursor: pointer;
  white-space: nowrap;
}
.agency-secondary-nav button.on {
  background: #1f1f1c;
  color: #fff;
}
.agency-view-header {
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line, #deded7);
}
.agency-view-header__actions { max-width: 620px; }
.agency-view-header__actions p { margin: 0; }
.agency-view-header__actions .primary,
.board-primary-action,
.story-window-actions .primary,
.board-persona-chat__actions button[type="submit"],
.board-persona-profile__sticky-actions .primary {
  border-color: var(--signal, #e25e2e);
  background: var(--signal, #e25e2e);
  color: #fff;
}
.agency-view-header__actions .primary { display: inline-flex; align-items: center; gap: 6px; }
.agency-view-header__actions svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.agency-card__menu,
.board-story__menu { position: relative; }
.agency-card__menu > summary,
.board-story__menu > summary { list-style: none; cursor: pointer; }
.agency-card__menu > summary {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 5px;
}
.agency-card__menu > summary:hover { background: #f0f0eb; }
.agency-card__menu > summary svg,
.agency-card__menu button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.agency-card__menu > summary::-webkit-details-marker,
.board-story__menu > summary::-webkit-details-marker { display: none; }
.agency-card__menu > div,
.board-story__menu > div {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  right: 0;
  min-width: 155px;
  padding: 5px;
  border: 1px solid var(--line, #deded7);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 20, 18, .14);
}
.agency-card__menu button,
.board-story__menu button { width: 100%; min-height: 34px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.agency-card__menu button:hover,
.board-story__menu button:hover { background: #f3f3ef; }
.agency-card__menu button.danger,
.board-story__menu button.danger { color: #a22d25; }
.agency-card-grid--teams {
  grid-template-columns: repeat(auto-fill, minmax(230px, 300px));
  align-items: start;
}
.agency-card-grid--teams .agency-card {
  position: relative;
  height: 172px;
  min-height: 172px;
  padding: 0;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(20, 20, 18, .06);
}
.agency-card-grid--teams .agency-team-card { display: block; }
.agency-card-grid--teams .agency-team-card > button { align-content: start; width: 100%; height: 100%; padding: 18px 54px 18px 18px; }
.agency-card-grid--teams .agency-card__menu { position: absolute; top: 10px; right: 10px; }
.agency-card-grid--teams .agency-card--create form { align-content: center; min-height: 100%; padding: 16px; }
.agency-card-grid--teams .agency-card--create form[hidden] { display: none; }
.agency-card-grid--teams .agency-card--create form label { font-size: 12px; font-weight: 800; }
.agency-card-grid--teams .agency-card--create form > div { display: flex; justify-content: flex-end; gap: 7px; }
.agency-card-grid--teams .agency-card--create form button {
  width: auto;
  height: auto;
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}
.agency-card__create-trigger {
  align-content: center !important;
  justify-items: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 0 !important;
  background: transparent !important;
  font-size: inherit !important;
  color: #31312d !important;
}
.agency-card__create-trigger > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #d5d5ce;
  border-radius: 6px;
  background: #fff;
  color: #1f1f1c;
  font-size: 30px;
  line-height: 1;
}
.agency-card__create-trigger > strong { font-size: 15px; }
.agency-card--worker-create {
  height: 240px;
  min-height: 240px;
  padding: 0 !important;
}

/* Planning gives the board most of the available surface. */
.board-app:not(.board-app--agency) {
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
}
.board-members { min-width: 0; }
.board-members > header { padding-bottom: 8px; }
.board-team { align-content: start; }
.board-team__member { min-height: 58px; }
.board-team__member-menu {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 5;
}
.board-team__member-menu[open] { z-index: 25; }
.board-team__member-menu > summary {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  color: var(--ink-muted, #686862);
  cursor: pointer;
  list-style: none;
}
.board-team__member-menu > summary::-webkit-details-marker { display: none; }
.board-team__member-menu > summary:hover,
.board-team__member-menu[open] > summary { background: #eeeeea; color: #252522; }
.board-team__member-menu > summary svg,
.board-team__member-menu button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.board-team__member-menu > div {
  position: absolute;
  right: 0;
  bottom: calc(100% + 5px);
  display: grid;
  width: 180px;
  padding: 5px;
  border: 1px solid var(--line, #d8d8d2);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 20, 18, .16);
}
.board-team__member-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #31312d;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.board-team__member-menu button:hover { background: #f2f2ee; }
.board-team__member-menu button.danger { color: #9f2a2a; }
.board-team__chat { right: 38px; }
.board-main { min-height: 0; }
.board-main__header {
  min-height: 64px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line, #deded7);
}
.board-main__header h2 { font-size: 22px; line-height: 1.1; }
.board-primary-action { min-height: 38px; padding: 8px 14px; border-radius: 6px; }
.board-panel--planning {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px 12px 12px;
}
.board-filterbar {
  position: relative;
  flex-wrap: nowrap;
  min-height: 42px;
  padding: 0 0 10px;
}
.board-search { flex: 1 1 320px; min-width: 160px; }
.board-search input,
.agency-library-toolbar input {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line, #d8d8d2);
  border-radius: 6px;
  background: #fff;
}
.board-filterbar > select { min-height: 36px; border: 1px solid var(--line, #d8d8d2); border-radius: 6px; background: #fff; }
.board-filter-menu { position: relative; flex: 0 0 auto; }
.board-filter-menu > summary {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line, #d8d8d2);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}
.board-filter-menu > div {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  gap: 9px;
  width: 220px;
  padding: 12px;
  border: 1px solid var(--line, #d8d8d2);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 20, 18, .16);
}
.board-filter-menu label { display: grid; gap: 4px; }
.board-filter-menu select { min-height: 36px; width: 100%; }
.board-mobile-lanes { display: none; }
.board-lanes { flex: 1 1 auto; min-height: 0; overflow: auto; }
.board-lane-grid {
  grid-template-columns: repeat(5, minmax(175px, 1fr));
  align-items: stretch;
  min-width: 875px;
  min-height: 100%;
}
.board-lane {
  min-height: 460px;
  border: 1px solid var(--line, #e3e3dd);
  border-radius: 7px;
  background: #f7f7f3;
}
.board-lane__stories { min-height: 380px; padding: 7px; }
.board-lane > header button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #5f5f59;
  cursor: pointer;
}
.board-lane > header button:hover { background: #ecece7; }
.board-lane > header button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.context-chat-dock { display: none !important; }
.board-story {
  min-width: 0;
  padding: 11px;
  border: 1px solid #d9d9d2;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 20, 18, .05);
}
.board-story.pending { opacity: .72; border-color: #aaa9a1; }
.board-story__header { display: flex; gap: 8px; align-items: start; }
.board-story__header > strong { flex: 1; min-width: 0; line-height: 1.35; }
.board-story__menu svg,
.board-story__actions svg,
.story-window-activity svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.board-story__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.board-story__meta span { font-size: 11px; }
.board-story__owner { color: #2e2e2a; font-weight: 650; }
.board-story__state { color: var(--ink-muted, #696963); }
.board-story > p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 9px 0;
  color: var(--ink-muted, #65655f);
  line-height: 1.45;
}
.board-story > footer { align-items: center; }
.board-story > footer > span { font-size: 10px; color: var(--ink-muted, #77776f); }
.board-story__actions { display: flex; gap: 2px; }
.board-story__actions button,
.board-story__menu > summary {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #595953;
  cursor: pointer;
}
.board-story__actions button:hover,
.board-story__menu > summary:hover { background: #f0f0eb; border-radius: 5px; }

/* Story detail is a work surface, not a diagnostic sidebar. */
.board-story-window { width: min(760px, calc(100vw - 100px)); height: min(820px, calc(100vh - 90px)); }
.board-story-window__content { background: #fff; }
.story-window-detail { max-width: 720px; margin: 0 auto; padding: 22px 24px 32px; }
.story-window-detail > header { align-items: start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line, #deded7); }
.story-window-detail__title {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 24px;
  font-weight: 720;
  line-height: 1.2;
}
.story-window-detail__body { width: 100%; margin-top: 8px; padding: 8px 0; border: 0; border-top: 1px solid transparent; resize: vertical; line-height: 1.5; }
.story-window-detail > dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.story-window-detail > dl div { display: grid; gap: 4px; padding: 0; border: 0; }
.story-window-detail select { width: 100%; min-height: 38px; border: 1px solid var(--line, #d8d8d2); border-radius: 6px; background: #fff; }
.story-window-run-state { display: flex; align-items: center; gap: 10px; padding: 12px; margin-top: 14px; border-left: 3px solid var(--signal, #e25e2e); background: #faf3ef; }
.story-window-run-state > div { display: grid; gap: 2px; flex: 1; }
.story-window-actions { display: flex; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line, #deded7); }
.story-window-actions button { min-height: 38px; padding: 8px 13px; }
.story-window-comment { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin: 18px 0; }
.story-window-comment textarea { width: 100%; min-height: 76px; padding: 9px; border: 1px solid var(--line, #d8d8d2); border-radius: 6px; resize: vertical; }
.story-window-comment button { min-height: 38px; }
.story-window-feed { display: grid; gap: 0; }
.story-window-activity { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line, #e5e5df); }
.story-window-activity > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f1ec; }
.story-window-activity p { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Worker profile is split into focused tabs with a readable form column. */
.board-worker-screen { min-height: 100%; background: #f7f7f3; }
.board-persona-profile { width: min(880px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 60px; }
.board-persona-profile__hero { padding: 0 4px 16px; }
.board-persona-profile__avatar { width: 76px; height: 76px; background: #e9e9e2; color: #565650; }
.board-persona-profile__sticky-actions {
  position: sticky;
  z-index: 12;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 4px;
  border-top: 1px solid var(--line, #deded7);
  border-bottom: 1px solid var(--line, #deded7);
  background: rgba(247, 247, 243, .96);
  backdrop-filter: blur(8px);
}
.board-persona-profile__sticky-actions button { min-height: 38px; padding: 7px 13px; }
.board-persona-profile__tabs {
  display: flex;
  gap: 4px;
  margin: 12px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line, #deded7);
}
.board-persona-profile__tabs button { min-height: 40px; padding: 8px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ink-muted, #64645f); cursor: pointer; }
.board-persona-profile__tabs button.on { border-bottom-color: var(--signal, #e25e2e); color: #1f1f1c; }
.board-persona-profile__section { margin: 0; padding: 20px; border: 1px solid var(--line, #deded7); border-radius: 7px; background: #fff; }
.board-persona-profile__section + .board-persona-profile__section:not([hidden]) { margin-top: 12px; }
.board-persona-profile__section label { display: grid; gap: 5px; }
.board-persona-profile__section input,
.board-persona-profile__section textarea { width: 100%; padding: 9px; border: 1px solid var(--line, #d8d8d2); border-radius: 6px; }
.board-persona-capability-grid,
.board-persona-skill-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.board-persona-capability,
.board-persona-skill-grid > button { border-radius: 6px; }
.board-persona-profile__summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 18px; background: var(--line, #deded7); }
.board-persona-profile__summary > div { padding: 12px; background: #fafaf7; }
.board-persona-profile__activity-list { display: grid; }
.board-persona-profile__activity-list > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 9px 4px;
  border: 0;
  border-bottom: 1px solid var(--line, #e3e3dd);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.board-persona-profile__activity-list > button:hover { background: #fafaf7; }
.board-persona-profile__activity-list > button span { display: grid; gap: 3px; }
.board-persona-profile__activity-list small,
.board-persona-profile__activity-list em { color: var(--ink-muted, #696963); font-size: 11px; font-style: normal; }

/* Chat distinguishes conversation from operational events. */
.board-persona-chat--detail { display: flex; flex-direction: column; width: min(900px, calc(100% - 32px)); height: calc(100% - 30px); margin: 15px auto; border: 1px solid var(--line, #deded7); border-radius: 7px; background: #fff; }
.board-persona-chat--detail > header { flex: 0 0 auto; min-height: 70px; padding: 12px 16px; border-bottom: 1px solid var(--line, #deded7); }
.board-persona-chat__identity { display: flex; align-items: center; gap: 10px; }
.board-persona-chat__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e9e9e2; color: #44443f; font-weight: 750; }
.board-persona-chat__identity > div { display: grid; gap: 1px; }
.board-persona-chat__identity small { color: var(--ink-muted, #696963); }
.board-persona-chat__messages { flex: 1 1 auto; min-height: 0; padding: 20px max(18px, calc((100% - 720px) / 2)); overflow-y: auto; background: #fafaf7; }
.board-persona-chat__message { width: fit-content; max-width: min(82%, 640px); padding: 10px 12px; border: 1px solid #deded7; border-radius: 7px; background: #fff; line-height: 1.5; overflow-wrap: anywhere; }
.board-persona-chat__message.user { margin-left: auto; border-color: #dfb099; background: #fff2ec; }
.board-persona-chat__message.tool { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 9px; border: 0; background: transparent; color: var(--ink-muted, #696963); font-size: 12px; }
.board-persona-chat__event-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.board-persona-chat__message :is(p, ul, pre) { margin: 0 0 8px; }
.board-persona-chat__message :is(p, ul, pre):last-child { margin-bottom: 0; }
.board-persona-chat__message pre { max-width: 100%; padding: 10px; overflow-x: auto; border-radius: 5px; background: #20201e; color: #f5f5ef; }
.board-persona-chat__message a { color: #a83d18; text-decoration: underline; }
.board-persona-chat__form { flex: 0 0 auto; padding: 12px max(18px, calc((100% - 720px) / 2)); border-top: 1px solid var(--line, #deded7); background: #fff; }
.board-persona-chat__form textarea { width: 100%; min-height: 86px; padding: 10px; border: 1px solid var(--line, #d8d8d2); border-radius: 6px; resize: vertical; }
.board-persona-chat__form > small { color: var(--ink-muted, #696963); }
.board-persona-chat__actions { justify-content: end; }
.board-persona-chat__actions button { min-height: 38px; min-width: 92px; }

/* Canon and Library are catalogs first; authoring is progressive. */
.agency-canon-screen,
.agency-library { display: grid; gap: 16px; }
.board-persona-canon-add,
.agency-library-author { border: 1px solid var(--line, #deded7); border-radius: 7px; background: #fff; }
.board-persona-canon-add > summary,
.agency-library-author > summary { padding: 12px 14px; cursor: pointer; font-weight: 700; }
.board-persona-canon-add > div,
.agency-library-author > form { padding: 0 14px 14px; }
.agency-library-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.agency-library-toolbar > label { flex: 1; }
.agency-library__section > header { padding-bottom: 8px; border-bottom: 1px solid var(--line, #deded7); }
.agency-library__grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.agency-library-card { border-radius: 7px; }
.agency-library-card__status--blessed { color: #27633c; background: #eaf5ed; }
.files-toolbar button.primary { border-color: var(--signal, #e25e2e); background: var(--signal, #e25e2e); color: #fff; }
.files-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  min-height: 280px;
  padding: 24px;
  color: var(--ink-muted, #696963);
  text-align: center;
}
.files-empty strong { color: #242420; font-size: 18px; }
.files-empty button { min-height: 38px; margin-top: 5px; padding: 8px 14px; border: 1px solid var(--signal, #e25e2e); border-radius: 6px; background: var(--signal, #e25e2e); color: #fff; }
.runs-detail__terminal { margin: 14px 0; padding: 12px; border-left: 3px solid var(--signal, #e25e2e); background: #faf3ef; line-height: 1.5; }
.runs-detail__technical { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line, #deded7); }

/* Mobile uses a full-height application shell and one planning lane at a time. */
@media (max-width: 760px) {
  :root { --mobile-nav-height: 62px; }
  .desktop { padding: 0 0 var(--mobile-nav-height) !important; }
  .os-dock {
    position: fixed;
    z-index: 1000;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    height: var(--mobile-nav-height);
    padding: 5px max(5px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
    border-top: 1px solid var(--line, #d8d8d2);
    background: rgba(255,255,252,.97);
    backdrop-filter: blur(10px);
  }
  .os-dock__app { width: 100%; min-height: 48px; }
  .os-dock__app > img { width: 24px; height: 24px; }
  .os-dock__tooltip { display: none; }
  .os-dock__spacer,
  .os-dock__add { display: none; }
  .os-space-chip,
  .os-space-switcher,
  .os-menubar .menu-bar,
  .os-menubar__right > [data-notifications-open] { display: none !important; }
  .desktop-window,
  .board-window,
  .hx-window,
  .board-story-window {
    inset: 0 0 var(--mobile-nav-height) 0 !important;
    width: 100% !important;
    height: auto !important;
    border: 0;
    border-radius: 0;
  }
  .window-titlebar { min-height: 44px; padding-inline: max(10px, env(safe-area-inset-left)); }
  .board-app,
  .board-app--agency {
    grid-template-areas: "crumbs" "members" "main";
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
  .agency-breadcrumbs { padding: 7px 10px; border-bottom: 1px solid var(--line, #deded7); }
  .board-members { max-height: 76px; padding: 7px 10px; overflow-x: auto; overflow-y: hidden; border: 0; border-bottom: 1px solid var(--line, #deded7); }
  .board-members > header { display: none; }
  .board-team { display: flex; gap: 7px; min-width: max-content; }
  .board-team > header,
  .board-team > .board-team__pause-banner { display: none; }
  .board-team__member { width: 156px; min-height: 60px; }
  .board-team__pause { display: none; }
  .board-team__member-menu > div {
    position: fixed;
    z-index: 1200;
    right: 12px;
    bottom: calc(var(--mobile-nav-height) + 12px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    padding: 7px;
  }
  .board-team__member-menu button { min-height: 44px; font-size: 14px; }
  .board-main__header { flex-direction: row; align-items: center; padding: 8px 10px; }
  .board-main__header > div > span { display: none; }
  .board-main__header h2 { font-size: 20px; }
  .board-primary-action { min-height: 44px; }
  .board-panel--planning { padding: 8px 10px; overflow: hidden; }
  .board-filterbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .board-search { min-width: 0; }
  .board-search input { min-height: 44px; }
  .board-filterbar > .board-segmented,
  .board-filterbar > select { display: none; }
  .board-filter-menu > summary { min-height: 44px; }
  .board-mobile-lanes { display: flex; gap: 4px; margin: 0 0 8px; padding: 3px; overflow-x: auto; border: 1px solid var(--line, #deded7); border-radius: 7px; background: #fff; }
  .board-mobile-lanes button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 0 0 74px; min-height: 40px; padding: 7px 8px; border: 0; border-radius: 5px; background: transparent; color: var(--ink-muted, #696963); font-size: 11px; }
  .board-mobile-lanes button span { display: inline-grid; place-items: center; min-width: 17px; height: 17px; border-radius: 9px; background: #e7e7e1; color: #3f3f3a; font-size: 10px; }
  .board-mobile-lanes button.on span { background: rgba(255,255,255,.2); color: #fff; }
  .board-mobile-lanes button.on { background: #1f1f1c; color: #fff; }
  .board-lanes { overflow: auto; }
  .board-lane-grid {
    display: block;
    min-width: 0;
    min-height: 100%;
    overflow: visible;
  }
  .board-lane { display: none; min-height: 100%; }
  .board-lane.is-mobile-active { display: flex; }
  .board-lane__stories { min-height: 420px; }
  .board-story { padding: 13px; }
  .board-story__actions button,
  .board-story__menu > summary { width: 44px; height: 44px; }
  .agency-overview,
  .agency-team-overview { padding: 12px; overflow-y: auto; }
  .agency-secondary-nav { width: 100%; }
  .agency-secondary-nav button { flex: 1; min-height: 44px; }
  .agency-view-header { align-items: start; }
  .agency-view-header__actions { width: 100%; }
  .agency-card-grid,
  .agency-library__grid { grid-template-columns: 1fr; }
  .agency-card-grid--teams .agency-card { width: 100%; height: 154px; min-height: 154px; }
  .board-story-window { z-index: 3000 !important; }
  .story-window-detail { padding: 16px 14px calc(30px + env(safe-area-inset-bottom)); }
  .story-window-detail > dl { grid-template-columns: 1fr; }
  .story-window-detail select { min-height: 44px; }
  .story-window-actions { position: sticky; z-index: 5; bottom: 0; padding: 9px 0 calc(9px + env(safe-area-inset-bottom)); background: #fff; }
  .story-window-actions button { min-height: 44px; }
  .story-window-comment { grid-template-columns: 1fr; }
  .story-window-comment button { min-height: 44px; }
  .board-persona-profile { width: 100%; padding: 12px 10px calc(70px + env(safe-area-inset-bottom)); }
  .board-persona-profile__sticky-actions { top: 0; }
  .board-persona-profile__tabs button { min-height: 44px; }
  .board-persona-profile__summary { grid-template-columns: 1fr; }
  .board-persona-profile__section { padding: 14px; }
  .board-persona-capability-grid,
  .board-persona-skill-grid { grid-template-columns: 1fr; }
  .board-persona-chat--detail { width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; }
  .board-persona-chat__messages { padding: 14px 10px; }
  .board-persona-chat__message { max-width: 88%; }
  .board-persona-chat__form { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
  .board-persona-chat__form textarea { min-height: 78px; }
  .board-persona-chat__actions button { min-height: 44px; }
  .context-chat-dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Route-local loading keeps the desktop usable while Agency data changes scope. */
.board-app--agency { position: relative; }
.board-route-state {
  position: absolute;
  inset: 42px 0 0;
  z-index: 35;
  min-height: 320px;
  padding: 28px;
  background: rgba(247, 247, 245, .96);
  overflow: hidden;
}
.board-route-skeleton > span,
.board-route-skeleton i {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, #e8e8e4 25%, #f5f5f2 45%, #e8e8e4 65%);
  background-size: 220% 100%;
  animation: board-skeleton-pulse 1.2s ease-in-out infinite;
}
.board-route-skeleton > span { width: min(360px, 70%); height: 38px; margin-bottom: 24px; }
.board-route-skeleton > div { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 14px; }
.board-route-skeleton i { height: 170px; }
.board-route-error {
  max-width: 460px;
  margin: 72px auto;
  padding: 24px;
  border: 1px solid #d7d7d2;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}
.board-route-error p { color: #5e625f; }
.board-route-error button { min-height: 44px; padding: 0 18px; }
.board-route-state--slow {
  inset: auto 20px 20px auto;
  width: min(390px, calc(100% - 40px));
  min-height: 0;
  padding: 0;
  border: 1px solid #d7d7d2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(18, 24, 38, .14);
  overflow: visible;
  pointer-events: none;
}
.board-route-state--slow .board-route-skeleton { padding: 16px; }
.board-route-state--slow .board-route-skeleton > span,
.board-route-state--slow .board-route-skeleton > div { display: none; }
.board-route-state--slow .board-route-skeleton p { margin: 0 0 12px; color: #4f5451; }
.board-route-state--slow .board-route-skeleton button { min-height: 40px; padding: 0 16px; pointer-events: auto; }
@keyframes board-skeleton-pulse { to { background-position: -120% 0; } }
@media (max-width: 760px) {
  .board-route-state { inset: 0; padding: 64px 16px 92px; }
  .board-route-state--slow { inset: auto 12px calc(82px + env(safe-area-inset-bottom)) 12px; width: auto; padding: 0; }
  .board-route-skeleton > div { grid-template-columns: 1fr; }
  .board-route-skeleton i { height: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .board-route-skeleton > span, .board-route-skeleton i { animation: none; }
}

/* Quiet operational shell and recognizable desktop window controls. */
.os-desktop {
  background-image: linear-gradient(rgba(245, 243, 239, .93), rgba(245, 243, 239, .93)), url("/assets/img/hurozo-desktop.jpg");
}
.window-buttons button {
  position: relative;
  width: 18px;
  height: 18px;
  min-height: 18px;
  border: 0;
  background: #c9cbc8;
}
.window-buttons [data-action="close"] { background: #e2645a; }
.window-buttons [data-action="minimize"] { background: #e3ad43; }
.window-buttons button::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(35, 35, 32, .78);
  font-size: 11px;
  line-height: 1;
  opacity: 0;
}
.window-buttons [data-action="close"]::after { content: "×"; }
.window-buttons [data-action="minimize"]::after { content: "−"; }
.window-buttons button:hover::after,
.window-buttons button:focus-visible::after { opacity: 1; }
.window-buttons button:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.agency-card__menu .danger { color: #a92f29; }
.notifications-group > h3 { margin: 0; padding: 10px 14px 6px; color: #5e625f; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.runs-detail__outcome { margin: -8px 0 18px; padding: 12px 14px; border-left: 3px solid #db6a32; background: #faf7f3; }
.runs-detail__outcome p { margin: 4px 0; }
.runs-detail__outcome small { color: #5e625f; }
.connector-card--attention { outline: 3px solid rgba(219, 106, 50, .34); outline-offset: 3px; }
.connector-card__plain-scopes { color: #3f5146; font-size: 12px; }
.connector-recovery { min-height: 36px; margin-top: 8px; border: 1px solid #c65325; color: #9d3e19; background: #fff; }
.agency-library-card > button { display: grid; gap: 8px; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.agency-library-detail { position: absolute; z-index: 12; inset: 112px 20px 20px auto; width: min(420px, calc(100% - 40px)); padding: 20px; overflow: auto; border: 1px solid #d7d7d2; border-radius: 8px; background: #fff; box-shadow: 0 18px 46px rgba(20, 20, 18, .18); }
.agency-library-detail > button { float: right; width: 40px; height: 40px; border: 0; background: transparent; font-size: 22px; }
.agency-library-detail dl { display: grid; gap: 8px; }
.agency-library-detail dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.agency-library-detail pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.board-persona-canon-card > div { display: grid; gap: 4px; min-width: 0; }
.board-persona-canon-card > div p { margin: 4px 0 0; color: #9b342d; }
.files-item > button small { color: #656963; font-weight: 400; }
.files-item__origin { display: inline-flex; gap: 5px; }
.files-item__origin button { min-height: 32px; border: 0; background: transparent; color: #9d3e19; text-decoration: underline; }
.agency-setup-progress ol { display: grid; gap: 3px; margin: 10px 0 0; padding-left: 20px; color: #757872; font-size: 11px; text-align: left; }
.agency-setup-progress li.done { color: #317449; }
.agency-setup-progress li.active { color: #282a27; font-weight: 700; }
.first-task-celebration,
.diagnostics-panel { position: fixed; z-index: 11000; inset: 50% auto auto 50%; width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 24px; overflow: auto; transform: translate(-50%, -50%); border: 1px solid #cfcfc9; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(20, 20, 18, .28); }
.first-task-celebration > div { display: flex; flex-wrap: wrap; gap: 8px; }
.first-task-celebration button { min-height: 44px; }
.diagnostics-panel { width: min(900px, calc(100vw - 32px)); }
.diagnostics-panel > header { display: flex; justify-content: space-between; align-items: start; }
.diagnostics-panel > header button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; }
.diagnostics-panel__summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.diagnostics-panel__summary article { padding: 12px; background: #f3f2ef; }
.diagnostics-panel__summary strong, .diagnostics-panel__summary span { display: block; }
.diagnostics-panel table { width: 100%; border-collapse: collapse; font-size: 12px; }
.diagnostics-panel th, .diagnostics-panel td { padding: 7px; border-bottom: 1px solid #e4e3df; text-align: left; }
.diagnostics-panel footer { margin-top: 14px; color: #5e625f; }
.story-window-detail__title + textarea + small button { border: 0; background: transparent; color: #9d3e19; text-decoration: underline; }
.board-story__actions button { min-width: 40px; min-height: 40px; }

.board-worker-picker {
  width: min(440px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 48px));
  padding: 0;
  border: 1px solid #cfcfc7;
  border-radius: 8px;
  background: #fff;
  color: #171713;
  box-shadow: 0 24px 70px rgba(26, 26, 20, .22);
}
.board-worker-picker::backdrop { background: rgba(28, 29, 25, .32); }
.board-worker-picker > section { display: grid; gap: 14px; padding: 20px; }
.board-worker-picker header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.board-worker-picker header span { color: #6c6c65; font-size: 12px; }
.board-worker-picker header h3 { margin: 3px 0 0; font-size: 19px; letter-spacing: 0; }
.board-worker-picker header button { width: 34px; height: 34px; padding: 7px; border: 0; background: transparent; color: #55554f; }
.board-worker-picker header button svg { width: 18px; height: 18px; }
.board-worker-picker__search input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #d5d5ce; border-radius: 6px; background: #fafaf7; }
.board-worker-picker__list { display: grid; gap: 4px; max-height: 380px; overflow: auto; }
.board-worker-picker__list > button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-align: left;
}
.board-worker-picker__list > button:hover:not(:disabled),
.board-worker-picker__list > button:focus-visible { border-color: #bfc7b7; background: #f1f5ee; }
.board-worker-picker__list > button[aria-selected="true"] { border-color: #95a88c; background: #edf3e9; }
.board-worker-picker__list > button:disabled { opacity: .48; }
.board-worker-picker__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #262922; color: #fff; font-weight: 700; }
.board-worker-picker__list strong,
.board-worker-picker__list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-worker-picker__list small { margin-top: 2px; color: #73736c; font-size: 12px; }
.board-worker-picker__list em { color: #686861; font-size: 11px; font-style: normal; }
.board-worker-picker__empty { margin: 4px 0; color: #73736c; text-align: center; }
.field-error { display: block; margin-top: 4px; color: #9b2f28; font-size: 12px; }
:disabled { color: #666a65; opacity: .72; }
.agency-breadcrumbs a { color: inherit; text-decoration: none; }
.agency-breadcrumbs a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .agency-library-detail { position: fixed; inset: 48px 0 68px; width: auto; border-radius: 0; }
  .diagnostics-panel { inset: 0; width: 100%; height: 100%; max-height: none; transform: none; border-radius: 0; }
}
