/* App Agent workspace, builder, skill, knowledge, and cron styles. */



.workspace.agent-detail-open {
  grid-template-columns: minmax(0, 1fr);
}



.workspace.agent-detail-open .sub-sidebar {
  display: none;
}



.workspace.agent-detail-open .content {
  width: 100vw;
  min-height: 100vh;
  padding: 0;
}



.workspace.agent-detail-open .panel-head.model-mode,
.workspace.agent-detail-open .model-content {
  height: 100vh;
}



.sub-agent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 3px 0;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 8px 0 14px;
  color: #dce9e5;
  cursor: pointer;
}



.sub-agent-row span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.sub-agent-row button {
  display: none;
  border: 0;
  border-radius: 6px;
  padding: 5px 8px;
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  font-size: 12px;
}



.sub-agent-row:hover,
.sub-agent-row.active {
  border-color: rgba(255,255,255,0.16);
  background: #EEF0EA;
}



.sub-agent-row:hover button {
  display: inline-flex;
}



.sub-skill-entry {
  cursor: pointer;
}



.sub-skill-entry.active {
  border-color: rgba(27, 61, 130, 0.32);
  background: #EEF0EA;
  color: #2864DC;
  box-shadow: inset 0 0 0 1px rgba(27, 61, 130, 0.08);
}



.agent-workspace {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 0;
  height: 100vh;
  min-height: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
}



.agent-thread-sidebar {
  min-height: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  border-right: 1px solid rgba(205, 220, 216, 0.82);
  background: #ffffff;
  box-shadow: 18px 0 50px rgba(31, 58, 53, 0.08);
}



.agent-main-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 4px;
}



.agent-back-btn,
.agent-new-thread,
.agent-workspace-settings .btn {
  width: 100%;
  justify-content: flex-start;
}



.agent-back-btn {
  justify-content: center;
  min-height: 42px;
  margin-bottom: 6px;
  border: 1px solid rgba(27, 61, 130, 0.18);
  border-radius: 6px;
  background: #EEF0EA;
  color: #2864DC;
  font-weight: 800;
}



.agent-new-thread,
.agent-workspace-settings .btn {
  min-height: 38px;
  border: 1px solid rgba(205, 220, 216, 0.9);
  border-radius: 6px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #59615F;
  font-weight: 700;
  box-shadow: none;
}



.agent-new-thread:hover,
.agent-workspace-settings .btn:hover,
.agent-workspace-settings .btn.primary {
  border-color: rgba(27, 61, 130, 0.18);
  background: #EEF0EA;
  color: #2864DC;
  box-shadow: 0 8px 22px rgba(27, 61, 130, 0.07);
}

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



.agent-thread-section:first-of-type {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  overflow: hidden;
}



.agent-thread-section h3 {
  margin: 0;
  color: #151A19;
  font-size: 12px;
  font-weight: 850;
}



.agent-thread-list {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  display: grid;
  align-content: start;
  align-self: start;
  gap: 4px;
  padding-right: 4px;
}



.agent-thread-list button {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 10px;
  background: transparent;
  color: #22312e;
  text-align: left;
}



.agent-thread-list button:hover,
.agent-thread-list button.active {
  background: #EEF0EA;
  color: #2864DC;
}



.agent-thread-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 760;
}



.agent-thread-list small {
  color: var(--muted);
  font-size: 12px;
}



.agent-workspace-settings {
  flex: 0 0 auto;
  margin-top: 12px;
  border-top: 1px solid rgba(205, 220, 216, 0.62);
  padding-top: 12px;
}



.agent-workspace-settings .btn {
  min-height: 32px;
}



.agent-workspace .workspace-card-head {
  flex: 0 0 auto;
  z-index: 2;
  align-items: center;
  gap: 14px;
  margin: 0 0 8px;
  border: 1px solid rgba(213, 226, 221, 0.9);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}



.agent-workspace .workspace-card-head h2 {
  margin: 0 0 3px;
  font-size: 16px;
  line-height: 1.25;
}



.agent-workspace .workspace-card-head p {
  max-width: 720px;
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



.workspace.subnav-open:not(.agent-detail-open) .agent-workspace {
  height: calc(100vh - 42px);
  width: 100%;
  padding: 12px 14px 6px;
}



.agent-workspace .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}



@media (max-width: 900px) {
  .agent-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: calc(100vh - 78px);
    padding: 10px;
    border-radius: 6px;
  }

  .agent-thread-sidebar {
    max-height: 220px;
  }

  .agent-workspace-settings {
    margin-top: 0;
  }

  .agent-workspace .workspace-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-thread-list {
    max-height: 80px;
  }

  .agent-workspace .chat-bubble {
    max-width: 82%;
  }

  .agent-workspace .selected-agent {
    display: none;
  }}



.sub-agent-row.official small {
  margin-left: auto;
  border: 1px solid rgba(27, 61, 130, 0.18);
  border-radius: 4px;
  padding: 2px 7px;
  background: rgba(27, 61, 130, 0.08);
  color: #2864DC;
  font-size: 12px;
  white-space: nowrap;
}




.agent-builder {
  align-content: start;
}



.agent-builder-form {
  display: grid;
  gap: 16px;
}



.agent-builder-form .field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}



.agent-builder-form .field-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}



.agent-builder-form .field-title > span {
  min-width: 0;
}



.agent-builder-form .field-title label {
  min-width: 0;
}



.agent-example-trigger {
  flex: 0 0 auto;
  border: 1px solid rgba(27, 61, 130, 0.18);
  border-radius: 4px;
  padding: 6px 11px;
  background: #EEF0EA;
  color: #2864DC;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}



.agent-example-trigger:hover {
  border-color: rgba(27, 61, 130, 0.36);
  background: #e4f4ee;
  transform: translateY(-1px);
}



.agent-builder-form input,
.agent-builder-form select,
.agent-builder-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}



.mcp-picker {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  background: #f8fbfa;
  text-align: left;
}



.mcp-picker h3 {
  margin: 0 0 12px;
}



.mcp-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  text-align: left;
}



.mcp-option-body {
  min-width: 0;
  flex: 1 1 auto;
}



.mcp-option-main {
  min-width: 0;
  cursor: pointer;
}



.mcp-option input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 2px;
}



.mcp-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}



.mcp-option em {
  margin-left: auto;
  white-space: nowrap;
  border: 1px solid rgba(27, 61, 130, 0.18);
  border-radius: 4px;
  padding: 4px 9px;
  background: #EEF0EA;
  color: #2864DC;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}



.skill-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}



.skill-detail-trigger {
  flex: 0 0 auto;
  border: 1px solid rgba(27, 61, 130, 0.18);
  border-radius: 4px;
  padding: 5px 9px;
  background: #ffffff;
  color: #2864DC;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}



.skill-detail-trigger:hover {
  border-color: rgba(27, 61, 130, 0.34);
  background: #EEF0EA;
  transform: translateY(-1px);
}



.mcp-picker-compact {
  display: grid;
  gap: 12px;
  position: relative;
}



.mcp-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}



.mcp-picker-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}



.mcp-option-list {
  display: grid;
  max-height: 286px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(25, 44, 38, 0.08);
  border-radius: 6px;
  background: #ffffff;
}



.mcp-option-list .mcp-option {
  min-height: 66px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(25, 44, 38, 0.07);
}



.mcp-option-list .mcp-option:last-child {
  border-bottom: 0;
}



.mcp-option-list .muted {
  padding: 14px;
}



.agent-skill-category {
  display: grid;
  gap: 0;
  border-bottom: 1px solid rgba(25, 44, 38, 0.07);
}



.agent-skill-category:last-child {
  border-bottom: 0;
}



.agent-skill-category-title {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  background: #fbfdfc;
}



.agent-skill-category-title > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}



.agent-skill-category-title strong {
  color: #20302c;
  font-size: 12px;
  font-weight: 850;
}



.agent-skill-category-title span {
  color: #7b8c87;
  font-size: 12px;
  font-weight: 700;
}



.agent-skill-category.collapsed .skill-category-toggle svg {
  transform: rotate(0deg);
}



.agent-skill-category.collapsed .agent-skill-category-list {
  display: none;
}



.agent-skill-category-list {
  display: grid;
}



.agent-skill-category-list .mcp-option {
  border-bottom: 1px solid rgba(25, 44, 38, 0.06);
}



.agent-skill-category-list .mcp-option:last-child {
  border-bottom: 0;
}



.agent-skill-category-list .agent-empty-hint.compact {
  margin: 0;
  padding: 12px 14px 14px 46px;
}



.knowledge-picker .agent-knowledge-category .agent-skill-category-title {
  cursor: pointer;
  transition: background 0.16s ease;
}



.knowledge-picker .agent-knowledge-category .agent-skill-category-title:hover {
  background: #f3faf7;
}



.knowledge-picker .agent-knowledge-category .agent-skill-category-title:focus-visible {
  outline: 2px solid rgba(27, 61, 130, 0.24);
  outline-offset: -2px;
}



.knowledge-picker .agent-knowledge-category .agent-skill-category-title > div {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 8px;
}



.knowledge-picker-option {
  align-items: center;
}



.knowledge-picker-option .mcp-option-body {
  display: grid;
  gap: 4px;
}



.knowledge-picker-option .mcp-option-body strong,
.knowledge-picker-option .mcp-option-body small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}



.knowledge-picker-option .mcp-option-body strong {
  white-space: nowrap;
}



.knowledge-picker-option .mcp-option-body small {
  display: block;
  white-space: normal;
}



.mcp-option-list::-webkit-scrollbar {
  width: 8px;
}



.mcp-option-list::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(27, 61, 130, 0.28);
}



.mcp-option-list::-webkit-scrollbar-track {
  background: transparent;
}



.mcp-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
}



.mcp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 4px;
  padding: 5px 11px;
  background: #ffffff;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
}



.mcp-chip.empty {
  border-color: var(--line);
  color: var(--muted);
  font-weight: 600;
}



.mcp-dropdown {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
}



.mcp-dropdown-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 10px;
  border-radius: 6px;
  padding: 10px;
  text-align: left;
}



.mcp-dropdown-option:hover {
  background: #f3f7f5;
}



.mcp-dropdown-option input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}



.mcp-dropdown-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
}



.mcp-dropdown-option em {
  border-radius: 4px;
  padding: 3px 8px;
  background: #edf7f1;
  color: #166534;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}



.openclaw-skill-summary {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
}



.agent-capability-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(27, 61, 130, 0.14);
  border-radius: 4px;
  padding: 4px 10px;
  background: #EEF0EA;
  color: #24554b;
  font-size: 12px;
  font-weight: 800;
}



.agent-panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}



.agent-panel-title-row h3 {
  margin-bottom: 6px;
}



.agent-panel-title-row p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.75;
}



.agent-capability-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 8px 0 18px;
}



.agent-capability-metrics strong {
  margin-right: 5px;
  color: #2864DC;
}



.agent-empty-hint {
  border: 1px dashed rgba(27, 61, 130, 0.22);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fbfefd;
  color: var(--muted);
}



.openclaw-skill-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #ffffff;
}



.openclaw-skill-item strong {
  margin-right: 8px;
}



.openclaw-skill-item span {
  color: #166534;
  font-size: 12px;
  font-weight: 800;
}



.openclaw-skill-item p {
  margin: 6px 0 0;
  color: var(--muted);
}



.agent-selected-skill-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}



.agent-selected-skill-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-radius: 6px;
}



.agent-selected-skill-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}



.agent-selected-skill-actions .skill-icon-btn {
  display: inline-flex;
  width: auto;
  min-width: 96px;
  height: 36px;
  gap: 7px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}



.agent-selected-skill-actions .skill-icon-btn svg {
  flex: 0 0 auto;
}



.agent-skill-doc-viewer {
  margin: 8px 0 18px;
}



.agent-skill-doc-card {
  border: 1px solid rgba(213, 226, 221, 0.9);
  border-radius: 6px;
  background: #fbfefd;
  overflow: hidden;
}



.agent-skill-doc-card > div {
  border-bottom: 1px solid rgba(213, 226, 221, 0.78);
  padding: 12px 14px;
  background: #ffffff;
}



.agent-skill-doc-card span {
  color: #2864DC;
  font-size: 12px;
  font-weight: 850;
}



.agent-skill-doc-card h4 {
  margin: 4px 0 0;
  color: #151A19;
  font-size: 16px;
}



.agent-skill-doc-card pre {
  margin: 0;
  border-radius: 0;
  max-height: 360px;
  background: #f7fbfa;
}



.export-agent-guide-card {
  width: min(480px, 100%);
}



.export-agent-guide-card p + p {
  margin-top: 10px;
}



.export-agent-store-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #1769d1;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}



.export-agent-store-link:hover {
  color: #0a56b5;
}



.agent-example-card {
  width: min(860px, 100%);
  max-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  text-align: left;
}



.agent-example-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}



.agent-example-head h3 {
  margin: 0;
}



.agent-example-head p {
  margin-top: 7px;
  color: #66736f;
  font-size: 12px;
  line-height: 1.65;
}



.agent-example-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(205, 220, 216, 0.9);
  border-radius: 4px;
  background: #f8fbfa;
  color: #59615F;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}



.agent-example-close:hover {
  background: #EEF0EA;
  color: #2864DC;
  transform: translateY(-1px);
}



.agent-example-content {
  max-height: 52vh;
  min-height: 260px;
  overflow: auto;
  margin: 18px 0 0;
  border: 1px solid rgba(205, 220, 216, 0.9);
  border-radius: 6px;
  padding: 16px;
  background: #f8fbfa;
  color: #22312e;
  font: 12px/1.75 var(--font-sans);
  white-space: pre-wrap;
  word-break: break-word;
}



.agent-example-actions {
  margin-top: 16px;
}



.skill-detail-card {
  width: min(900px, 100%);
}



.skill-detail-content {
  display: grid;
  gap: 14px;
  max-height: 58vh;
  overflow: auto;
  margin-top: 18px;
  padding-right: 6px;
}



.skill-detail-content::-webkit-scrollbar {
  width: 8px;
}



.skill-detail-content::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(27, 61, 130, 0.34);
}



.skill-detail-content::-webkit-scrollbar-track {
  background: transparent;
}



.skill-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(213, 226, 221, 0.86);
}



.skill-detail-readonly {
  margin-right: auto;
  color: #6f817c;
  font-size: 12px;
  font-weight: 700;
}



.skill-detail-edit-card {
  width: min(960px, 100%);
  max-height: min(86vh, 820px);
  overflow: hidden;
}



.skill-detail-edit-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
}



.skill-detail-edit-form .skill-code-editor {
  min-height: 260px;
  height: clamp(260px, 34vh, 360px);
  max-height: 360px;
}



.skill-editor-box.compact {
  min-height: 0;
}



.skill-detail-edit-form .skill-detail-actions {
  position: sticky;
  bottom: 0;
  margin-top: 6px;
  margin-right: -6px;
  padding: 14px 0 0;
  background: #ffffff;
}



.skill-detail-brief,
.skill-detail-keywords,
.skill-detail-section {
  border: 1px solid rgba(205, 220, 216, 0.92);
  border-radius: 6px;
  padding: 14px 16px;
  background: #F5F6F2;
}



.skill-detail-brief {
  border-color: rgba(27, 61, 130, 0.18);
  background: #EEF0EA;
}



.skill-detail-keywords {
  border-style: dashed;
  background: #fffdf8;
}



.skill-detail-brief strong,
.skill-detail-keywords strong {
  display: block;
  margin-bottom: 6px;
  color: #2864DC;
  font-size: 12px;
}



.skill-detail-section h4 {
  margin: 0 0 10px;
  color: #151A19;
  font-size: 14px;
}



.skill-detail-section p,
.skill-detail-brief p,
.skill-detail-keywords p {
  margin: 0 0 8px;
  color: #263733;
  font-size: 12px;
  line-height: 1.72;
}



.skill-detail-section p:last-child,
.skill-detail-brief p:last-child,
.skill-detail-keywords p:last-child {
  margin-bottom: 0;
}



.skill-detail-bullet,
.skill-detail-step {
  position: relative;
  padding-left: 18px;
}



.skill-detail-bullet::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 4px;
  background: #2864DC;
}



.skill-detail-step {
  color: #1e4a42;
  font-weight: 650;
}



.skill-detail-table-wrap {
  overflow-x: auto;
  margin: 10px 0 4px;
  border: 1px solid rgba(205, 220, 216, 0.92);
  border-radius: 6px;
  background: #ffffff;
}



.skill-detail-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 12px;
}



.skill-detail-table td {
  border-bottom: 1px solid rgba(205, 220, 216, 0.76);
  padding: 9px 10px;
  color: #263733;
  line-height: 1.55;
}



.skill-detail-table tr:last-child td {
  border-bottom: 0;
}



.skill-detail-table tr.head td {
  background: #EEF0EA;
  color: #2864DC;
  font-weight: 850;
}



@media (max-width: 640px) {
  .agent-panel-title-row {
    display: grid;
    justify-content: stretch;
  }

  .agent-panel-title-row .btn {
    width: 100%;
  }

  .agent-builder-form .field-title {
    align-items: flex-start;
  }

  .agent-example-card {
    max-height: 88vh;
  }

  .agent-example-content {
    max-height: 58vh;
    min-height: 220px;
  }

  .skill-detail-content {
    max-height: 62vh;
  }

  .mcp-option-list {
    max-height: 238px;
  }

  .mcp-option-list .mcp-option {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .mcp-option em {
    margin-left: 36px;
    white-space: normal;
    text-align: left;
  }}



.side-logo,
.sub-brand,
.sidebar button,
.sub-item,
.sub-agent-row,
.sub-conversation,
.sub-user,
.selected-agent,
.workspace-card-head h2,
.tool-card h3,
.tool-section-head h2 {
  font-weight: 600;
}



.sub-agent-row {
  color: #59615F;
}



.sub-agent-row:hover,
.sub-agent-row.active {
  color: #2864DC;
  border-color: rgba(27, 61, 130,0.2);
  background: #EEF0EA;
  box-shadow: var(--shadow);
}



.sub-agent-row button,
.sub-conversation button {
  background: #ffffff;
  color: #2864DC;
  border: 1px solid rgba(27, 61, 130,0.18);
}



.sub-sidebar .sub-brand,
.sub-sidebar .sub-group-title,
.sub-sidebar .sub-item,
.sub-sidebar .sub-agent-row,
.sub-sidebar .sub-conversation,
.sub-sidebar .sub-user,
.sub-sidebar .sub-user .name {
  color: #22312e;
}



.sub-sidebar .sub-item:hover,
.sub-sidebar .sub-item.active,
.sub-sidebar .sub-agent-row:hover,
.sub-sidebar .sub-agent-row.active,
.sub-sidebar .sub-conversation:hover,
.sub-sidebar .sub-conversation.active,
.sub-sidebar .sub-item.strong {
  color: #2864DC;
}



.agent-department {
  display: grid;
  gap: 6px;
  margin: 8px 0 14px;
}



.department-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border: 1px solid #151A19;
  border-radius: 6px;
  padding: 0 12px 0 18px;
  background: rgba(255,255,255,0.84);
  color: #151A19;
  font-size: 14px;
  font-weight: 560;
}



.department-head span {
  display: grid;
  gap: 2px;
  min-width: 0;
}



.department-head strong {
  color: #151A19;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.15;
}



.department-head small {
  color: #858D8A;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.1;
}



.department-head button,
.agent-department-card button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #151A19;
  font-size: 28px;
  line-height: 1;
}



.department-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}



.department-actions button:last-child {
  width: 34px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}



.agent-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}



.agent-info-panel {
  width: min(960px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(213, 226, 221, 0.86);
  border-radius: 6px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.88);
  color: #22312e;
  line-height: 1.7;
}



.agent-workspace .agent-info-panel {
  width: min(1040px, 100%);
}



.agent-info-panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 620;
}



.agent-info-panel p {
  margin: 6px 0;
  color: #5f746f;
}



.agent-info-panel details {
  border-top: 1px solid rgba(213, 226, 221, 0.86);
  padding: 10px 0;
}



.agent-info-panel summary {
  cursor: pointer;
  font-weight: 620;
}



.agent-info-panel pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 10px 0 0;
  border-radius: 6px;
  padding: 12px;
  max-height: 280px;
  overflow: auto;
  background: #f5faf8;
  color: #22312e;
  font-size: 12px;
  line-height: 1.65;
}



.skill-library-page {
  align-content: start;
}



.agent-workspace .skill-library-page {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0 2px 24px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}



.skill-manager-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
  border-bottom: 1px solid rgba(213, 226, 221, 0.76);
  padding: 4px 0 14px;
}



.skill-library-return {
  flex: 0 0 auto;
}



.skill-manager-head h2 {
  margin: 0 0 4px;
  color: #15231f;
  font-size: 18px;
  letter-spacing: 0;
}



.skill-manager-head p {
  margin: 0;
  color: #71847f;
  font-size: 12px;
}



.skill-manager-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 132px);
}



.skill-manager-sidebar {
  border-right: 1px solid rgba(213, 226, 221, 0.72);
  padding: 16px 12px 16px 0;
  overflow: auto;
}



.skill-manager-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}



.skill-manager-side-head strong {
  display: block;
  color: #20302c;
  font-size: 14px;
}



.skill-manager-side-head span {
  display: block;
  margin-top: 3px;
  color: #71847f;
  font-size: 12px;
}



.skill-add-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(27, 61, 130, 0.22);
  border-radius: 6px;
  background: #2864DC;
  color: #ffffff;
  box-shadow: var(--shadow);
}



.skill-add-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}



.skill-manager-category {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}



.skill-category-title {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  padding: 2px 4px;
  background: transparent;
  color: #59615F;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}



.skill-category-toggle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}



.skill-category-toggle svg,
.skill-category-title > svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(90deg);
  transition: transform 0.16s ease;
}



.skill-category-title small {
  border-radius: 4px;
  padding: 2px 6px;
  background: #edf7f3;
  color: #6d837d;
  font-size: 12px;
}



.skill-manager-card-list {
  display: grid;
  gap: 8px;
}



.skill-manager-category.collapsed .skill-category-toggle svg,
.agent-skill-category.collapsed .skill-category-toggle svg {
  transform: rotate(0deg);
}



.skill-manager-category.collapsed .skill-manager-card-list {
  display: none;
}



.skill-manager-main {
  min-width: 0;
  padding: 16px 0 28px;
}



.official-skill-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid rgba(213, 226, 221, 0.86);
  border-radius: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
}



.official-skill-summary strong,
.official-skill-summary span {
  display: block;
}



.official-skill-summary strong {
  color: #20302c;
  font-size: 12px;
}



.official-skill-summary span {
  margin-top: 4px;
  color: #71847f;
  font-size: 12px;
}



.official-skill-summary button {
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  background: #EEF0EA;
  color: #2864DC;
  font-size: 12px;
  font-weight: 800;
}



.official-skill-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(213, 226, 221, 0.78);
  border-radius: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}



.official-skill-panel.hidden {
  display: none;
}



.official-skill-card,
.prompt-skill-card {
  border: 1px solid rgba(213, 226, 221, 0.86);
  border-radius: 6px;
  background: #fbfefd;
}



.official-skill-card {
  display: grid;
  gap: 10px;
  min-height: 98px;
  padding: 12px;
}



.official-skill-card strong,
.prompt-skill-card strong {
  color: #151A19;
  font-size: 12px;
}



.official-skill-card p,
.prompt-skill-card p {
  margin: 5px 0 0;
  color: #5f746f;
  font-size: 12px;
  line-height: 1.45;
}



.official-skill-card span,
.prompt-skill-main span,
.official-skill-card > span {
  justify-self: start;
  border: 1px solid rgba(27, 61, 130, 0.14);
  border-radius: 4px;
  padding: 4px 9px;
  background: #f1faf7;
  color: #2864DC;
  font-size: 12px;
  font-weight: 750;
}



.prompt-skill-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  padding: 10px 8px 10px 12px;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}



.prompt-skill-card.active,
.prompt-skill-card:hover {
  border-color: rgba(27, 61, 130, 0.28);
  background: #ffffff;
  box-shadow: var(--shadow);
}



.prompt-skill-main {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}



.prompt-skill-main small {
  display: block;
  margin-top: 8px;
  color: #858D8A;
  font-size: 12px;
}



.prompt-skill-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}



.skill-icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(27, 61, 130, 0.18);
  border-radius: 6px;
  padding: 0;
  background: #ffffff;
  color: #2864DC;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}



.skill-icon-btn.primary {
  background: #EEF0EA;
}



.skill-icon-btn.danger {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fff7f7;
  color: #b91c1c;
}



.skill-icon-btn:hover {
  border-color: rgba(27, 61, 130, 0.34);
  background: #e7f5ef;
  transform: translateY(-1px);
}



.skill-icon-btn.danger:hover {
  border-color: rgba(220, 38, 38, 0.32);
  background: #fee2e2;
}



.skill-icon-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}



.skill-editor {
  width: min(760px, 100%);
}



.skill-editor-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}



.skill-editor-title span:first-child {
  color: #123f8c;
  font-size: 18px;
  font-weight: 900;
}



.skill-editor-title h3 {
  margin: 8px 0 0;
  color: #11201c;
  font-size: 20px;
  line-height: 1.22;
}



.skill-editor-state {
  border: 1px solid rgba(27, 61, 130, 0.16);
  border-radius: 4px;
  padding: 5px 10px;
  background: #EEF0EA;
  color: #2864DC;
  font-size: 12px;
  font-weight: 800;
}



.skill-editor-tip {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid #cddcf3;
  border-radius: 6px;
  padding: 12px 14px;
  background: #f4f7fd;
  color: #31558d;
  font-size: 12px;
  line-height: 1.6;
}



.skill-editor-tip strong {
  color: #123f8c;
}



.skill-manager-form {
  display: grid;
  gap: 12px;
}



.skill-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}



.skill-editor-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}



.skill-editor-content-head span {
  color: #20302c;
  font-size: 12px;
  font-weight: 800;
}



.skill-editor-content-head small {
  color: #71847f;
  font-size: 12px;
}



.skill-editor-box {
  border: 1px solid #dce7e3;
  border-radius: 6px;
  overflow: hidden;
  background: #f4f7fb;
}



.skill-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  border-bottom: 1px solid #dfe8e5;
  padding: 0 16px;
  color: #33423f;
  font-size: 12px;
}



.skill-editor-toolbar i {
  width: 1px;
  height: 20px;
  background: #dce7e3;
}



.skill-editor-toolbar strong,
.skill-editor-toolbar b,
.skill-editor-toolbar em,
.skill-editor-toolbar code {
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}



.skill-code-editor {
  width: 100%;
  min-height: 460px;
  border: 0;
  outline: 0;
  resize: vertical;
  padding: 22px 18px;
  background: #f4f7fb;
  color: #0e1b18;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.58;
}



.skill-code-editor[readonly] {
  color: #59615F;
}

.skill-keywords-input {
  min-height: 72px;
  resize: vertical;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.skill-editor-toolbar {
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 10px;
}

.skill-editor-toolbar button,
.skill-editor-toolbar select {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 9px;
  background: transparent;
  color: #33423f;
  cursor: pointer;
  font: inherit;
}

.skill-editor-toolbar button:hover,
.skill-editor-toolbar select:hover {
  border-color: #ccd9d5;
  background: #fff;
}

.skill-editor-toolbar button:active { background: #e6edf9; }
.skill-editor-toolbar button:disabled,
.skill-editor-toolbar select:disabled { cursor: default; opacity: 0.5; }

.skill-editor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  min-height: 460px;
}

.skill-editor-workspace .skill-code-editor { min-height: 460px; }

.skill-markdown-preview {
  overflow: auto;
  max-height: 620px;
  border-left: 1px solid #dce7e3;
  padding: 20px;
  background: #fff;
  color: #20302c;
}

.skill-markdown-preview::before {
  content: "实时预览";
  display: block;
  margin-bottom: 18px;
  color: #71847f;
  font-size: 12px;
  font-weight: 700;
}

.skill-markdown-preview .skill-detail-section { margin: 0 0 22px; }
.skill-markdown-preview .skill-detail-section h4 { margin: 0 0 10px; color: #123f8c; font-size: 18px; line-height: 1.35; }
.skill-markdown-preview .skill-detail-section p { margin: 7px 0; font-size: 14px; font-weight: 400; line-height: 1.7; }
.skill-markdown-preview code { border-radius: 4px; padding: 2px 5px; background: #eef2f1; font-family: Consolas, monospace; }
.skill-markdown-preview a { color: #2864dc; text-decoration: underline; }
.skill-detail-task { display: flex; align-items: center; gap: 7px; }

@media (max-width: 900px) {
  .skill-editor-workspace { grid-template-columns: 1fr; }
  .skill-markdown-preview { max-height: none; border-top: 1px solid #dce7e3; border-left: 0; }
}



.skill-editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}



.agent-empty-hint.compact {
  margin: 14px 4px;
  font-size: 12px;
}



.skill-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 28, 25, 0.34);
  backdrop-filter: blur(8px);
}



.skill-modal {
  width: min(860px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(213, 226, 221, 0.9);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
}



.skill-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #edf3f0;
  padding: 18px 20px;
}



.skill-modal-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}



.skill-modal-head h3 {
  margin: 4px 0 0;
  font-size: 20px;
}



.skill-modal-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d9e6e1;
  border-radius: 6px;
  background: #f8fbfa;
  color: #5f746f;
  font-size: 20px;
}



.skill-edit-form {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
}



.skill-edit-form textarea[readonly],
.skill-edit-form input[readonly] {
  background: #f8fbfa;
  color: #59615F;
}



.skill-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}



@media (max-width: 760px) {
  .agent-selected-skill-item {
    grid-template-columns: 1fr;
  }

  .agent-selected-skill-actions {
    justify-content: flex-start;
  }

  .skill-manager-shell {
    grid-template-columns: 1fr;
  }

  .skill-manager-sidebar {
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid rgba(213, 226, 221, 0.72);
    padding-right: 0;
  }

  .skill-form-grid {
    grid-template-columns: 1fr;
  }

  .prompt-skill-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .prompt-skill-actions {
    justify-content: flex-start;
  }}



.openclaw-cron-panel {
  display: grid;
  gap: 12px;
}



.openclaw-knowledge-panel {
  display: grid;
  gap: 12px;
}



.openclaw-knowledge-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #60756f;
  font-size: 12px;
}



.knowledge-library-page .skill-manager-shell {
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: stretch;
}



.knowledge-editor,
.knowledge-doc-manager,
.openclaw-knowledge-bindings {
  display: grid;
  gap: 12px;
}



.agent-panel-title-row.compact {
  align-items: flex-start;
  padding-top: 4px;
}



.knowledge-manager-category {
  gap: 10px;
  margin-bottom: 14px;
}



.knowledge-category-title {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-radius: 6px;
  padding: 8px 10px;
  background: #f4faf8;
}



.knowledge-category-title > div {
  min-width: 0;
}



.knowledge-category-title strong,
.knowledge-category-title span {
  display: block;
  min-width: 0;
}



.knowledge-category-title strong {
  overflow: hidden;
  color: #20302c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.knowledge-category-title span {
  margin-top: 2px;
  color: #71847f;
  font-size: 12px;
  font-weight: 600;
}



.knowledge-base-card {
  min-height: 78px;
  align-items: center;
}



.knowledge-base-card-meta {
  margin-top: 4px;
  color: #60756f;
  font-size: 12px;
  font-weight: 700;
}



.knowledge-base-card small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #71847f;
  line-height: 1.45;
}



.knowledge-doc-manager {
  border: 1px solid rgba(213, 226, 221, 0.86);
  border-radius: 6px;
  padding: 14px;
  background: #fbfefd;
}



.knowledge-doc-manager.pending {
  background: #f7fbfa;
}



.knowledge-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  white-space: nowrap;
}



.agent-panel-actions label.btn,
.knowledge-doc-manager label.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}



.openclaw-agent-knowledge-section {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(213, 226, 221, 0.86);
  border-radius: 6px;
  padding: 16px;
  background: #fbfefd;
}



.knowledge-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}



.knowledge-section-head h3 {
  margin: 0 0 4px;
  color: #15231f;
  font-size: 16px;
}



.knowledge-section-head p {
  margin: 0;
  color: #60756f;
  font-size: 12px;
}



.knowledge-binding-summary {
  width: fit-content;
  border: 1px solid rgba(27, 61, 130, 0.12);
  border-radius: 4px;
  padding: 4px 10px;
  background: #f1faf7;
  color: #2864DC;
  font-size: 12px;
  font-weight: 680;
}



.knowledge-binding-list {
  max-height: 320px;
  overflow: auto;
}



.openclaw-knowledge-meta span,
.knowledge-status {
  border: 1px solid rgba(27, 61, 130, 0.12);
  border-radius: 4px;
  padding: 4px 9px;
  background: #f1faf7;
  color: #2864DC;
}



.openclaw-knowledge-list {
  display: grid;
  gap: 10px;
}



.openclaw-knowledge-doc {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(213, 226, 221, 0.86);
  border-radius: 6px;
  padding: 12px;
  background: #fbfefd;
}



.openclaw-knowledge-doc.uploading {
  border-color: rgba(37, 99, 235, 0.16);
  background: #f8fbff;
}



.openclaw-knowledge-doc > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}



.openclaw-knowledge-doc strong {
  min-width: 0;
  font-size: 14px;
  word-break: break-word;
}



.openclaw-knowledge-doc dl {
  display: grid;
  grid-template-columns: repeat(3, auto minmax(0, 1fr));
  gap: 4px 8px;
  margin: 0;
  font-size: 12px;
}



.openclaw-knowledge-doc dt {
  color: #858D8A;
}



.openclaw-knowledge-doc dd {
  min-width: 0;
  margin: 0;
  color: #22312e;
  word-break: break-word;
}



.openclaw-knowledge-doc p {
  margin: 0;
  color: #b45309;
  font-size: 12px;
}



.openclaw-knowledge-doc-actions {
  display: flex;
  justify-content: flex-end;
}



.openclaw-knowledge-doc-actions .btn.compact {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}



.knowledge-status.failed {
  border-color: rgba(180, 83, 9, 0.18);
  background: #fff7ed;
  color: #b45309;
}



.knowledge-status.processing {
  border-color: rgba(37, 99, 235, 0.16);
  background: #eff6ff;
  color: #1d4ed8;
}



.openclaw-cron-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}



.openclaw-cron-status span {
  border: 1px solid rgba(27, 61, 130, 0.12);
  border-radius: 4px;
  padding: 4px 9px;
  background: #f1faf7;
  color: #2864DC;
  font-size: 12px;
}



.openclaw-cron-list {
  display: grid;
  gap: 10px;
}



.openclaw-cron-card {
  border: 1px solid rgba(213, 226, 221, 0.86);
  border-radius: 6px;
  padding: 12px;
  background: #fbfefd;
}



.openclaw-cron-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}



.openclaw-cron-card strong {
  font-size: 14px;
}



.openclaw-cron-card > div:first-child span {
  flex: 0 0 auto;
  color: #2864DC;
  font-size: 12px;
}



.openclaw-cron-card dl {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 10px;
  margin: 10px 0;
  font-size: 12px;
}



.openclaw-cron-card dt {
  color: #858D8A;
}



.openclaw-cron-card dd {
  min-width: 0;
  margin: 0;
  color: #22312e;
  word-break: break-word;
}



.openclaw-cron-runs {
  margin-top: 8px;
}



.openclaw-cron-runs ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}



.openclaw-cron-runs li {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 6px;
  border-top: 1px solid rgba(213, 226, 221, 0.72);
  padding-top: 6px;
  font-size: 12px;
}



.openclaw-cron-runs em {
  grid-column: 1 / -1;
  color: #b45309;
  font-style: normal;
}



.agent-home {
  display: grid;
  gap: 22px;
  min-height: 240px;
  border: 1px solid rgba(213, 226, 221, 0.86);
  border-radius: 6px;
  padding: 24px 28px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
}



.agent-empty-state {
  width: min(620px, 100%);
  border: 1px dashed rgba(27, 61, 130,0.28);
  border-radius: 6px;
  padding: 22px;
  background: #F5F6F2;
}



.agent-empty-state h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 560;
}



.agent-empty-state p {
  margin: 0;
  color: #66736f;
  line-height: 1.7;
}



/* Keep secondary navigation usable when department or history lists grow. */
.sub-sidebar {
  overflow: hidden;
}



/* Agent chat workspaces use a fixed chrome with a dense message stream. */
.agent-workspace {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 0;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}



.sidebar button,
.sub-item,
.sub-agent-row,
.sub-conversation {
  font-size: 12px;
  font-weight: 560;
}


/* Final Agent chat viewport fit. Keep this at the end so later feature styles do not reopen the margins. */
.workspace.subnav-open .content {
  padding: 8px 10px 2px;
}



.workspace.subnav-open:not(.agent-detail-open) .agent-workspace {
  height: calc(100vh - 22px);
  width: 100%;
  padding: 10px 12px 4px;
  border-radius: 6px;
}



.workspace.subnav-open .agent-workspace .chat-history {
  padding: 4px 6px 6px;
}



.workspace.subnav-open .agent-workspace .chat-composer {
  margin-top: 6px;
}



.workspace.agent-detail-open .agent-workspace {
  grid-template-columns: 264px minmax(0, 1fr);
  height: 100vh;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}



.workspace.agent-detail-open .agent-thread-sidebar {
  border: 0;
  border-right: 1px solid rgba(205, 220, 216, 0.82);
  border-radius: 0;
  background: #ffffff;
}



.workspace,
.workspace.subnav-open,
.agent-workspace,
.workspace.agent-detail-open .agent-workspace {
  grid-template-columns: var(--ws-nav-width) minmax(0, 1fr);
}



.sidebar,
.sub-sidebar,
.agent-thread-sidebar {
  width: var(--ws-nav-width);
  min-width: var(--ws-nav-width);
  border-right: 1px solid var(--ws-line);
  background: #ffffff;
  box-shadow: none;
}



.workspace.agent-detail-open .agent-thread-sidebar {
  border-right: 1px solid var(--ws-line);
  background: #ffffff;
}



.sidebar button,
.manual-entry,
.sub-item,
.sub-conversation,
.sub-agent-row,
.agent-workspace-settings .btn {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--ws-radius-md);
  color: var(--ws-text-soft);
  background: transparent;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}



.sidebar button:hover,
.sidebar button.active,
.manual-entry:hover,
.manual-entry.active,
.sub-item:hover,
.sub-item.active,
.sub-conversation:hover,
.sub-conversation.active,
.sub-agent-row:hover,
.sub-agent-row.active,
.agent-workspace-settings .btn:hover,
.agent-workspace-settings .btn.primary {
  border-color: rgba(27, 61, 130, 0.18);
  background: var(--ws-brand-soft);
  color: var(--ws-brand-dark);
  box-shadow: none;
}



.workspace-card,
.model-workspace,
.agent-info-panel,
.skill-editor-box,
.skill-view-box,
.official-skill-panel,
.skill-manager-shell {
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius-xl);
  background: var(--ws-surface);
  box-shadow: var(--ws-shadow-sm);
}



.workspace-card-head h2,
.model-workspace h2,
.tool-section-head h2,
.skill-manager-head h2 {
  color: var(--ws-text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 680;
  letter-spacing: 0;
}



.workspace-card-head p,
.skill-manager-head p,
.agent-info-panel p {
  color: var(--ws-muted);
  font-size: 12px;
  line-height: 1.65;
}



.btn,
.skill-action-btn,
.skill-add-btn,
.official-skill-summary button,
.agent-panel-actions .btn {
  border-radius: var(--ws-radius-md);
  font-weight: 650;
  letter-spacing: 0;
}



.btn.primary,
.skill-add-btn {
  border-color: var(--ws-brand);
  background: var(--ws-brand);
  color: #ffffff;
  box-shadow: var(--shadow);
}



.btn.primary:hover,
.skill-add-btn:hover {
  background: var(--ws-brand-dark);
}



.agent-workspace {
  background: transparent;
}



.agent-panel {
  border-left: 1px solid var(--ws-line);
  background: rgba(248, 252, 250, 0.62);
}



.department-head,
.agent-department-card,
.official-skill-card,
.prompt-skill-card {
  border-color: var(--ws-line);
  border-radius: var(--ws-radius-lg);
  background: rgba(255,255,255,0.78);
}



.department-head {
  border-color: var(--ws-line);
}



.skill-library-page {
  width: min(var(--ws-page-max), 100%);
  margin: 0 auto;
}



.skill-manager-head {
  width: 100%;
  border-bottom: 1px solid var(--ws-line-soft);
  padding: 0 0 14px;
}



.skill-manager-shell {
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 0;
  width: 100%;
  overflow: hidden;
}



.skill-manager-sidebar {
  border-right: 1px solid var(--ws-line-soft);
  padding: 18px 14px;
  background: rgba(250, 253, 252, 0.72);
}



.skill-manager-main {
  padding: 20px 24px 30px;
}

.mobile-manager-back {
  display: none;
}



.prompt-skill-card.active,
.prompt-skill-card:hover,
.official-skill-card:hover {
  border-color: rgba(27, 61, 130, 0.28);
  background: #ffffff;
  box-shadow: var(--ws-shadow-sm);
}



.skill-editor-content textarea,
.skill-editor-content input,
.skill-editor-content select,
.agent-panel-body input,
.agent-panel-body textarea,
.agent-panel-body select {
  border-radius: var(--ws-radius-md);
  border-color: var(--ws-line);
  background: #fbfefd;
}



.skill-editor-content textarea:focus,
.skill-editor-content input:focus,
.skill-editor-content select:focus,
.agent-panel-body input:focus,
.agent-panel-body textarea:focus,
.agent-panel-body select:focus {
  border-color: var(--ws-brand);
  box-shadow: 0 0 0 3px rgba(27, 61, 130, 0.12);
  outline: none;
}



@media (max-width: 960px) {

  .skill-manager-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: visible;
  }

  .skill-manager-sidebar {
    height: calc(100dvh - 190px);
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--ws-line-soft);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .skill-manager-main {
    display: none;
    height: calc(100dvh - 150px);
    padding: 18px 14px 30px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .skill-manager-shell.mobile-editor-open .skill-manager-sidebar {
    display: none;
  }

  .skill-manager-shell.mobile-editor-open .skill-manager-main {
    display: block;
  }

  .mobile-manager-back {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin: 0 0 18px;
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius-md);
    padding: 0 14px;
    background: #ffffff;
    color: var(--ws-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
}



/* Sidebar hierarchy polish: make level-2 and level-3 navigation read as the same system. */
.sub-sidebar,
.agent-thread-sidebar,
.workspace.agent-detail-open .agent-thread-sidebar {
  box-sizing: border-box;
  width: var(--ws-nav-width);
  min-width: var(--ws-nav-width);
  max-width: var(--ws-nav-width);
  padding: 18px 20px;
}



.agent-thread-sidebar {
  gap: 12px;
}



.agent-back-btn,
.agent-new-thread,
.sidebar button,
.sub-item,
.sub-conversation,
.sub-agent-row,
.manual-entry,
.agent-workspace-settings .btn {
  min-height: 40px;
}



.agent-back-btn,
.agent-new-thread {
  border-radius: var(--ws-radius-md);
}



.agent-thread-section,
.agent-workspace-settings,
.sub-fixed-actions,
.sub-user {
  border: 1px solid var(--ws-line-soft);
  border-radius: var(--ws-radius-lg);
  background: rgba(255, 255, 255, 0.72);
}



.agent-thread-section {
  padding: 12px;
}



.agent-thread-section:first-of-type {
  border-color: transparent;
  background: transparent;
  padding: 0;
}



.agent-workspace-settings {
  margin-top: 12px;
  border-top: 1px solid var(--ws-line-soft);
  padding: 12px;
}



.agent-workspace-settings h3 {
  margin: 0 0 6px;
  color: var(--ws-muted);
  font-size: 12px;
  font-weight: 680;
}



.agent-workspace-settings .btn {
  justify-content: center;
  border-color: var(--ws-line-soft);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ws-text);
}



.agent-workspace-settings .btn + .btn {
  margin-top: 8px;
}



.sub-fixed-actions .manual-entry svg,
.agent-workspace-settings .btn svg {
  width: 16px;
  height: 16px;
  color: var(--ws-brand-dark);
}



.agent-thread-list {
  padding-right: 2px;
}



.agent-thread-list button {
  min-height: 44px;
  border-radius: var(--ws-radius-md);
}



.agent-thread-list button:hover,
.agent-thread-list button.active {
  border-color: rgba(27, 61, 130, 0.18);
  background: var(--ws-brand-soft);
}



.agent-thread-list span,
.sub-agent-row span,
.sub-conversation span {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}



.workspace,
.workspace.subnav-open,
.agent-workspace,
.workspace.agent-detail-open .agent-workspace {
  grid-template-columns: var(--ui-nav-width) minmax(0, 1fr);
}



.sidebar,
.sub-sidebar,
.agent-thread-sidebar,
.workspace.agent-detail-open .agent-thread-sidebar {
  width: var(--ui-nav-width);
  min-width: var(--ui-nav-width);
  max-width: var(--ui-nav-width);
  border-right: 1px solid var(--ui-border);
  padding: 18px 20px;
  background: #ffffff;
}



.sidebar button,
.sub-item,
.sub-conversation,
.sub-agent-row,
.manual-entry,
.agent-new-thread,
.agent-back-btn,
.agent-workspace-settings .btn,
.agent-thread-list button {
  min-height: var(--ui-control-h);
  border: 1px solid transparent;
  border-radius: var(--ui-radius-md);
  padding: 0 12px;
  color: var(--ui-text-2);
  background: transparent;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.25;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}



.sidebar button:hover,
.sidebar button.active,
.sub-item:hover,
.sub-item.active,
.sub-conversation:hover,
.sub-conversation.active,
.sub-agent-row:hover,
.sub-agent-row.active,
.manual-entry:hover,
.manual-entry.active,
.agent-new-thread:hover,
.agent-back-btn:hover,
.agent-workspace-settings .btn:hover,
.agent-workspace-settings .btn.primary,
.agent-thread-list button:hover,
.agent-thread-list button.active {
  border-color: rgba(27, 61, 130, 0.2);
  background: var(--ui-brand-soft);
  color: var(--ui-brand-2);
  box-shadow: none;
}



.sub-group-title,
.agent-thread-section h3,
.agent-workspace-settings h3,
.sub-fixed-actions::before {
  color: var(--ui-text-3);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.2;
}



.sub-fixed-actions,
.sub-user,
.agent-workspace-settings {
  border: 1px solid var(--ui-border-soft);
  border-radius: var(--ui-radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--ui-shadow-xs);
}



.agent-workspace-settings {
  padding: 12px;
}



.agent-workspace-settings .btn {
  justify-content: center;
  border-color: var(--ui-border-soft);
  background: #ffffff;
  color: var(--ui-text);
}



.agent-workspace-settings .btn + .btn {
  margin-top: 8px;
}



.workspace-card,
.model-workspace,
.agent-info-panel,
.tool-card,
.agent-department-card,
.department-head,
.official-skill-card,
.prompt-skill-card,
.skill-editor-box,
.skill-view-box,
.skill-manager-shell,
.official-skill-panel {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-xl);
  background: rgba(255,255,255,0.94);
  box-shadow: var(--ui-shadow-sm);
}



.workspace-card-head h2,
.model-workspace h2,
.tool-section-head h2,
.skill-manager-head h2,
.agent-info-panel h3,
.skill-editor-title h3 {
  color: var(--ui-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
}



.workspace-card-head p,
.model-workspace p,
.agent-info-panel p,
.tool-card p,
.skill-manager-head p,
.skill-editor-tip,
.official-skill-card p,
.prompt-skill-card p {
  color: var(--ui-text-3);
  font-size: 12px;
  line-height: 1.65;
}



.btn,
.tool-card .btn,
.agent-panel-actions .btn,
.skill-action-btn,
.skill-add-btn,
.official-skill-summary button,
.upload-avatar-btn {
  min-height: var(--ui-control-h);
  border-radius: var(--ui-radius-md);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}



.btn:not(.primary):not(.danger):not(.danger-light),
.tool-card .btn,
.agent-panel-actions .btn:not(.primary),
.skill-action-btn {
  border-color: var(--ui-border);
  background: #ffffff;
  color: var(--ui-text);
}



.btn.primary,
.skill-add-btn {
  border-color: var(--ui-brand);
  background: var(--ui-brand);
  color: #ffffff;
  box-shadow: var(--shadow);
}



.btn.primary:hover,
.skill-add-btn:hover {
  background: var(--ui-brand-2);
}



.tool-card:hover,
.agent-department-card:hover,
.prompt-skill-card:hover,
.prompt-skill-card.active,
.official-skill-card:hover {
  border-color: rgba(27, 61, 130, 0.26);
  background: #ffffff;
  box-shadow: var(--ui-shadow-sm);
}



.tool-card h3,
.agent-department-card strong,
.prompt-skill-card strong,
.official-skill-card strong {
  color: var(--ui-text);
  font-size: 14px;
  font-weight: 700;
}



.official-skill-card span,
.prompt-skill-main span,
.official-skill-card > span,
.selected-agent,
.skill-editor-state {
  border: 1px solid rgba(27, 61, 130, 0.16);
  border-radius: 4px;
  background: var(--ui-brand-soft);
  color: var(--ui-brand-2);
  font-size: 12px;
  font-weight: 680;
}



.agent-workspace .workspace-card-head {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: rgba(255,255,255,0.96);
  box-shadow: var(--ui-shadow-xs);
}



.agent-workspace .workspace-card-head h2 {
  font-size: 16px;
  font-weight: 700;
}



.agent-workspace .workspace-card-head p {
  color: var(--ui-text-3);
  font-size: 12px;
}



.agent-thread-list button {
  min-height: var(--ui-control-lg);
  border-color: transparent;
}



.agent-thread-list small {
  color: var(--ui-text-3);
}



.skill-manager-head {
  border-bottom-color: var(--ui-border-soft);
}



.skill-manager-shell {
  border-radius: var(--ui-radius-xl);
  background: rgba(255,255,255,0.92);
}



.skill-manager-sidebar {
  background: rgba(248,251,250,0.82);
}



.skill-category-title {
  min-height: 32px;
  color: var(--ui-text-2);
  font-weight: 680;
}



.skill-category-title small {
  background: var(--ui-brand-soft);
  color: var(--ui-brand-2);
}



.skill-editor-toolbar {
  border-bottom: 1px solid var(--ui-border-soft);
  background: var(--ui-surface-soft);
}



.skill-editor-content input,
.skill-editor-content textarea,
.skill-editor-content select,
.agent-builder-form input,
.agent-builder-form textarea,
.agent-builder-form select,
.agent-panel-body input,
.agent-panel-body textarea,
.agent-panel-body select {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-raised);
  color: var(--ui-text);
  font-size: 14px;
}



.skill-editor-content input:focus,
.skill-editor-content textarea:focus,
.skill-editor-content select:focus,
.agent-builder-form input:focus,
.agent-builder-form textarea:focus,
.agent-builder-form select:focus,
.agent-panel-body input:focus,
.agent-panel-body textarea:focus,
.agent-panel-body select:focus {
  border-color: var(--ui-brand);
  box-shadow: 0 0 0 3px rgba(27, 61, 130, 0.12);
  outline: none;
}



.agent-builder-form .field-title,
.skill-editor-content-head {
  color: var(--ui-text);
  font-size: 12px;
  font-weight: 680;
}



.agent-info-panel pre,
.skill-detail-content,
.agent-example-content {
  border: 1px solid var(--ui-border-soft);
  border-radius: var(--ui-radius-lg);
  background: #f7fbf9;
  color: var(--ui-text);
}



/* Knowledge library sidebar keeps its own layout instead of inheriting skill rows. */
.knowledge-library-page .skill-manager-shell {
  grid-template-columns: 360px minmax(0, 1fr);
}



.knowledge-library-page .skill-manager-sidebar {
  padding: 18px 14px 18px 12px;
}



.knowledge-library-page .knowledge-manager-category {
  gap: 7px;
  margin-bottom: 14px;
}



.knowledge-library-page .knowledge-category-title {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  border: 1px solid rgba(213, 226, 221, 0.54);
  border-radius: 6px;
  padding: 10px 12px;
  background: #f4faf8;
  color: var(--ui-text);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}



.knowledge-library-page .knowledge-category-title:hover {
  border-color: rgba(27, 61, 130, 0.2);
  background: #eff8f5;
}



.knowledge-library-page .knowledge-category-title:focus-visible {
  outline: 2px solid rgba(27, 61, 130, 0.28);
  outline-offset: 2px;
}



.knowledge-library-page .knowledge-category-copy {
  min-width: 0;
}



.knowledge-library-page .knowledge-category-title strong {
  display: block;
  overflow: visible;
  color: var(--ui-text);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}



.knowledge-library-page .knowledge-category-title span {
  display: block;
  margin-top: 3px;
  color: var(--ui-text-3);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.3;
  white-space: nowrap;
}



.knowledge-library-page .skill-category-add {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 16px;
}



.knowledge-library-page .knowledge-manager-card-list {
  gap: 6px;
  padding-left: 18px;
}



.knowledge-library-page .knowledge-base-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border-radius: 6px;
  padding: 8px 10px;
  text-align: left;
}



.knowledge-library-page .knowledge-base-card-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}



.knowledge-library-page .knowledge-base-card-body {
  display: grid;
  min-width: 0;
  gap: 3px;
  margin-top: 0;
}



.knowledge-library-page .knowledge-base-card strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: normal;
}



.knowledge-library-page .knowledge-base-card small {
  margin-top: 0;
  font-size: 12px;
  line-height: 1.35;
}



.knowledge-library-page .knowledge-base-card-meta {
  align-self: start;
  margin-top: 2px;
  color: #315f55;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}



.knowledge-library-page .agent-empty-hint.compact {
  margin-left: 18px;
  border-radius: 6px;
  padding: 10px 12px;
  line-height: 1.45;
}




@media (max-width: 960px) {
  .knowledge-library-page .skill-manager-shell {
    grid-template-columns: 1fr;
  }

  .knowledge-library-page .skill-manager-sidebar {
    padding: 14px;
  }}
