:root {
  color-scheme: light;
  --taskbar-height: 54px;
  --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(241, 90, 36, 0.18);
  --window-bg: rgba(255, 255, 255, 0.94);
  --window-border: rgba(241, 90, 36, 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(241, 90, 36, 0.12);
}

button.primary,
.login-open-btn {
  border-color: rgba(241, 90, 36, 0.42);
  background: linear-gradient(135deg, #ff8a53, #f15a24 52%, #d94f1f);
  color: #fff9f3;
  font-weight: 700;
}

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;
}

.brand {
  min-width: 116px;
  display: inline-flex;
  align-items: center;
  color: var(--hurozo-text);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.brand-mark {
  width: 0.1em;
  height: 0.55em;
  margin-right: 0.06em;
  background: #e25e2e;
}

.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;
  font-size: 14px;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(420px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(241, 90, 36, 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-primary-700);
  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;
  text-align: left;
}

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

.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-primary);
  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(241, 90, 36, 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(241, 90, 36, 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: 16px;
  user-select: none;
  overflow: hidden;
  background-image: var(--desktop-overlay), url("/assets/img/hurozo-desktop.jpg");
  background-size: cover, cover;
  background-position: center;
}

.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(241, 90, 36, 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(241, 90, 36, 0.35);
}

.desktop-window {
  position: absolute;
  left: 24px;
  top: 16px;
  width: calc(100% - 48px);
  height: calc(100% - 32px);
  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: 16px;
  backdrop-filter: blur(16px);
  box-shadow: var(--window-shadow);
  overflow: hidden;
  z-index: 10;
}

.window-titlebar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid rgba(241, 90, 36, 0.16);
  background: rgba(255, 245, 238, 0.88);
  cursor: grab;
}

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

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

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

.window-buttons [data-action="close"] {
  background: rgba(241, 90, 36, 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(241, 90, 36, 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-primary-700);
  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(241, 90, 36, 0.58);
  background: #fff;
  box-shadow: inset 3px 0 0 var(--hurozo-primary);
}

.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-primary-700);
  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(241, 90, 36, 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(241, 90, 36, 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(241, 90, 36, 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(241, 90, 36, 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(241, 90, 36, 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-primary-700);
  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-primary-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-builder__canvas {
  background: linear-gradient(90deg, rgba(241, 90, 36, 0.045) 1px, transparent 1px), linear-gradient(rgba(241, 90, 36, 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-primary-700);
  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-primary-700);
  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-primary);
}

.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(241, 90, 36, 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(241, 90, 36, 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(241, 90, 36, 0.14);
  min-height: 0;
}

.agent-builder__draft-details summary {
  padding: 8px 10px;
  color: var(--hurozo-primary-700);
  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-primary-700);
  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(241, 90, 36, 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(241, 90, 36, 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-window {
  width: min(420px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid rgba(241, 90, 36, 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: 24px;
  bottom: 18px;
  z-index: 1300;
  margin: 0;
  color: var(--hurozo-muted);
  font-size: 13px;
}

.status.error {
  color: #b42318;
}

.board-window {
  left: 18px;
  top: 12px;
  width: calc(100% - 36px);
  height: calc(100% - 24px);
  max-width: calc(100% - 36px);
  max-height: calc(100% - 24px);
  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(241, 90, 36, 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-primary-700);
  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-primary-700);
  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(241, 90, 36, 0.26);
  background: rgba(255, 244, 237, 0.92);
  color: var(--hurozo-primary-700);
  padding: 0 13px;
  font-weight: 900;
  cursor: pointer;
}

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

.agency-card {
  min-height: 172px;
  border: 1px solid rgba(241, 90, 36, 0.18);
  background: rgba(255, 253, 250, 0.88);
  box-shadow: 0 18px 34px rgba(18, 24, 38, 0.08);
}

.agency-card > button,
.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--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(241, 90, 36, 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(241, 90, 36, 0.32);
  background: rgba(255, 244, 237, 0.92);
  color: var(--hurozo-primary);
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
}

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

.agency-team-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
}

.agency-team-card footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.agency-team-card footer button {
  min-height: 38px;
  border: 1px solid rgba(241, 90, 36, 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-primary);
  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(241, 90, 36, 0.18);
  background: rgba(18, 24, 38, 0.08);
}

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

.board-sidebar,
.board-detail,
.board-lane {
  min-height: 0;
  border: 1px solid rgba(241, 90, 36, 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(241, 90, 36, 0.16);
  background: rgba(255, 238, 228, 0.72);
}

.board-sidebar__intro span,
.board-main__header span {
  color: var(--hurozo-primary-700);
  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(241, 90, 36, 0.3);
  background: rgba(241, 90, 36, 0.12);
  color: var(--hurozo-primary-700);
}

.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(241, 90, 36, 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-top: 6px;
}

.board-team__member > button:first-child {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "name";
  align-items: center;
  gap: 8px;
  padding: 9px 34px 8px 9px;
  text-align: left;
  background: rgba(255, 255, 255, 0.76);
}

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

.board-team__member > button:first-child strong {
  grid-area: name;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.board-team__member > button:first-child 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(241, 90, 36, 0.22);
  background: rgba(255, 250, 246, 0.98);
  color: var(--hurozo-primary-700);
  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 {
  position: absolute;
  bottom: -5px;
  width: 24px;
  height: 24px;
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border-color: rgba(241, 90, 36, 0.2);
  background: rgba(255, 250, 246, 0.98);
  color: var(--hurozo-primary-700);
  box-shadow: 0 5px 12px rgba(18, 24, 38, 0.08);
}

.board-team__chat {
  right: -5px;
}

.board-team__edit {
  left: -5px;
}

.board-team__edit::before {
  content: "";
  width: 12px;
  height: 3px;
  display: block;
  border-radius: 3px;
  background: currentColor;
  transform: rotate(-35deg);
}

.board-team__edit::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
}

.board-team__chat::before {
  content: "";
  width: 12px;
  height: 9px;
  display: block;
  border: 1.6px solid currentColor;
  border-radius: 5px;
}

.board-team__chat::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  background: rgba(255, 250, 246, 0.98);
  transform: rotate(35deg);
}

.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__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(241, 90, 36, 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;
}

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

.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(241, 90, 36, 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(241, 90, 36, 0.14);
}

.board-persona-modal__panel > header span,
.board-persona-profile__hero span,
.board-persona-profile__section header span {
  color: var(--hurozo-primary-700);
  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(241, 90, 36, 0.5);
  background: rgba(241, 90, 36, 0.1);
  box-shadow: inset 3px 0 0 var(--hurozo-primary);
}

.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(241, 90, 36, 0.22);
  background: rgba(255, 244, 237, 0.9);
  color: var(--hurozo-primary-700);
  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(241, 90, 36, 0.34);
  background: var(--hurozo-primary);
  color: #fff;
  font-weight: 900;
}

.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(241, 90, 36, 0.26);
  background: rgba(255, 244, 237, 0.86);
  color: var(--hurozo-primary-700);
  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-primary-700);
  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(241, 90, 36, 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-primary-700);
  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-primary-700);
  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-skill-grid {
  display: grid;
  gap: 8px;
}

.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(241, 90, 36, 0.36);
  background: rgba(241, 90, 36, 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-skill-grid button.selected {
  border-color: rgba(241, 90, 36, 0.4);
  background: rgba(241, 90, 36, 0.1);
}

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

.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(241, 90, 36, 0.36);
  background: rgba(241, 90, 36, 0.12);
  color: var(--hurozo-primary-700);
  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(241, 90, 36, 0.1);
  color: var(--hurozo-primary-700);
  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(241, 90, 36, 0.45);
  background: rgba(241, 90, 36, 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-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(241, 90, 36, 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-primary);
  border-radius: 999px;
  animation: hurozo-spin 0.72s linear infinite;
}

.board-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  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(241, 90, 36, 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 {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.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(241, 90, 36, 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(241, 90, 36, 0.12);
  color: var(--hurozo-primary-700);
  font-weight: 700;
}

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

.board-lane__stories.drag-over {
  border-color: rgba(241, 90, 36, 0.34);
  background: rgba(241, 90, 36, 0.08);
}

.board-lane__empty {
  margin: 0;
  padding: 14px 10px;
  border: 1px dashed rgba(241, 90, 36, 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 {
  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(241, 90, 36, 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(241, 90, 36, 0.5);
  box-shadow: inset 3px 0 0 var(--hurozo-primary);
}

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

.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 footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.board-story__spinner {
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 2px solid rgba(18, 24, 38, 0.18);
  border-top-color: var(--hurozo-primary);
  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(241, 90, 36, 0.24);
  background: rgba(241, 90, 36, 0.1);
  color: var(--hurozo-primary-700);
  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: 210px minmax(680px, 1fr) 320px;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "crumbs crumbs crumbs"
    "members main detail";
  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(241, 90, 36, 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(241, 90, 36, 0.22);
  background: rgba(241, 90, 36, 0.1);
  color: var(--hurozo-primary-700);
  font-weight: 900;
}

.board-members > header button {
  width: 34px;
  height: 34px;
  border-color: rgba(241, 90, 36, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 239, 229, 0.96));
  color: var(--hurozo-primary);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 10px 18px rgba(241, 90, 36, 0.14);
}

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

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

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

.board-main__controls {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 300px);
  align-items: center;
  gap: 10px;
}

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

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

.board-tabs button.active {
  border-color: rgba(241, 90, 36, 0.32);
  background: rgba(241, 90, 36, 0.12);
  color: var(--hurozo-primary-700);
}

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

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

.board-panel--planning {
  display: grid;
}

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

.board-agency-editor {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(241, 90, 36, 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:first-child {
  border-color: rgba(241, 90, 36, 0.5);
  box-shadow: inset 3px 0 0 var(--hurozo-primary);
}

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

.board-persona-tile .board-persona-mark {
  grid-area: avatar;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 24, 38, 0.14);
  background: rgba(18, 24, 38, 0.06);
}

.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-primary-700);
  font-weight: 900;
}

.board-agency-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed rgba(241, 90, 36, 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;
  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-primary);
  color: #fff;
  font-weight: 800;
}

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

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

  .board-detail {
    display: none;
  }
}

@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;
  }
}
