:root {
  --skill-blue: #2f67f6;
  --skill-cyan: #2bc7d5;
  --skill-green: #16b364;
  --skill-amber: #f59e0b;
  --skill-danger: #dc3f4d;
  --skill-text: #111827;
  --skill-muted: #6b7280;
  --skill-line: #e5e7eb;
  --skill-soft: #f7f8fa;
}

nav {
  gap: 4px;
  margin-top: 8px;
}

nav button {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}

nav button i {
  width: 18px;
  font-size: 18px;
}

nav button:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #a9c0ff;
}

.nav-tree {
  display: grid;
  gap: 2px;
  margin-top: 0;
}

.nav-parent-row {
  display: grid;
  grid-template-columns: 1fr 40px;
  align-items: center;
  border-radius: 10px;
  transition: background-color .16s ease;
}

.nav-parent-row > button:first-child {
  min-width: 0;
  height: 44px;
}

.nav-parent-row .nav-toggle {
  height: 44px;
  justify-content: center;
  padding: 0 8px;
}

.nav-toggle i {
  width: auto;
  transition: transform .2s ease;
}

.nav-tree:not(.expanded) .nav-toggle i {
  transform: rotate(-90deg);
}

.nav-submenu {
  position: relative;
  display: grid;
  gap: 2px;
  margin: 0 0 4px;
  padding: 2px 0 2px 32px;
}

.nav-submenu::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 18px;
  width: 1px;
  background: #e3e8f0;
  content: "";
}

.nav-tree:not(.expanded) .nav-submenu {
  display: none;
}

.nav-submenu button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
}

.nav-submenu button::before {
  content: none;
}

.nav-submenu button i {
  margin-left: 0;
  font-size: 16px;
}

body.skill-route .workspace {
  max-width: none;
  padding: 0 42px 52px;
}

body.skill-route aside {
  background: #fafbfc;
}

body.skill-route aside .eyebrow {
  color: #8b94a0;
}

body.skill-route nav button.active,
body.skill-route nav button:hover {
  color: var(--skill-blue);
  background: #edf3ff;
}

body.skill-route .nav-parent-row:has(> button:first-child.active),
body.skill-route .nav-parent-row:has(> button:hover) {
  background: #edf3ff;
}

body.skill-route .nav-parent-row > button:first-child.active,
body.skill-route .nav-parent-row > button:first-child:hover,
body.skill-route .nav-parent-row > .nav-toggle:hover {
  background: transparent;
}

body.skill-route nav button.active::after {
  content: none;
}

body.skill-route nav button {
  position: relative;
}

.skill-doc-link {
  display: none;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
}

.header-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.credit-balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--skill-line);
  border-radius: 12px;
  color: var(--skill-text);
  background: #fff;
  font-size: 13px;
}

.credit-balance-chip i {
  color: var(--skill-blue);
}

.user-avatar {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #f1b93d;
  border-radius: 50%;
  background: #15171a;
  box-shadow: 0 0 0 2px #fff;
}

.user-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#user-name {
  max-width: 110px;
  overflow: hidden;
  color: var(--skill-text);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.skill-route .standard-header-copy {
  display: none;
}

body.skill-route .skill-doc-link,
body.skill-route .credit-balance-chip,
body.skill-route .user-avatar,
body.skill-route .user-identity {
  display: inline-flex !important;
}

body.skill-route header {
  height: 64px;
  border-color: var(--skill-line);
}

.skill-screen {
  color: var(--skill-text);
  padding-top: 30px;
}

.skill-page-head,
.subpage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.skill-page-head {
  margin: 0 auto;
}

.skill-kicker {
  margin: 0 0 10px;
  color: #7a8491;
  font-size: 12px;
  letter-spacing: 2px;
}

.skill-page-head h1,
.subpage-head h1 {
  margin: 0;
  color: #090d14;
  letter-spacing: -2.4px;
}

.skill-page-head h1 {
  max-width: 940px;
  font-size: clamp(34px, 3.1vw, 44px);
  line-height: 1.1;
}

.skill-page-head h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--skill-cyan), var(--skill-blue));
  background-clip: text;
  -webkit-background-clip: text;
}

.skill-page-head > div > p:last-child,
.subpage-head > div > p:last-child {
  margin: 9px 0 0;
  color: var(--skill-muted);
  font-size: 14px;
}

.usage-filters select,
.usage-filters input,
.admin-search input,
.modal-form input,
.modal-form textarea,
.modal-form select {
  width: 100%;
  border: 1px solid #d9dee5;
  border-radius: 9px;
  outline: none;
  color: var(--skill-text);
  background: #fff;
  font: inherit;
}

.usage-filters select:focus,
.usage-filters input:focus,
.admin-search input:focus,
.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
  border-color: #8aabff;
  box-shadow: 0 0 0 3px #2f67f614;
}

.skill-status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--skill-line);
  border-bottom: 1px solid var(--skill-line);
}

.skill-status-strip > div {
  display: grid;
  gap: 6px;
  padding: 0 22px;
  text-align: center;
  border-right: 1px solid var(--skill-line);
}

.skill-status-strip > div:first-child {
  padding-left: 0;
}

.skill-status-strip > div:last-child {
  border-right: 0;
}

.skill-status-strip span,
.subpage-summary span,
.selected-user-head span,
.large-credit span {
  color: var(--skill-muted);
  font-size: 13px;
}

.skill-status-strip b {
  font-size: 16px;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: #949ba4;
}

.status-dot.success {
  background: var(--skill-green);
}

.status-dot.warning {
  background: var(--skill-amber);
}

.skill-host-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.skill-host-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px 16px;
  color: #202733;
  text-align: left;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.skill-host-option:hover {
  border-color: #aab7c7;
}

.skill-host-option.active {
  border-color: var(--skill-blue);
  background: linear-gradient(135deg, #f5fbff, #f7fffc);
  box-shadow: 0 0 0 2px rgb(31 147 255 / 10%);
}

.skill-host-option > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.skill-host-option b {
  font-size: 15px;
}

.skill-host-option small {
  overflow: hidden;
  color: var(--skill-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-host-option em {
  color: var(--skill-green);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.skill-host-option em .status-dot {
  width: 7px;
  height: 7px;
  margin-right: 5px;
}

.skill-host-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-size: 22px;
  border-radius: 11px;
  background: #fff;
}

.skill-host-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skill-install-row {
  display: grid;
  grid-template-columns: 218px 1fr;
  gap: 24px;
  margin-top: 24px;
}

.skill-install-command-area { min-width: 0; }

.install-platform-picker {
  display: flex;
  gap: 8px;
  margin-bottom: 9px;
}

.install-platform-picker button {
  width: auto;
  padding: 5px 10px;
  border: 1px solid #d7dce3;
  border-radius: 999px;
  color: #697688;
  background: #fff;
  font-size: 12px;
}

.install-platform-picker button.active {
  border-color: #78b8ff;
  color: #176ce1;
  background: #eef7ff;
}

.install-platform-picker button:disabled { cursor: not-allowed; opacity: .45; }

.skill-platform-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  background: #f8fbff;
  color: #526176;
  font-size: 13px;
}

.skill-platform-note b { color: #172033; }

.skill-install-row > button,
.subpage-head > button,
.credit-actions button,
.modal-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--skill-cyan), var(--skill-blue));
}

.command-box {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 17px 0 27px;
  border: 1px solid #d7dce3;
  border-radius: 14px;
  background: #fff;
}

.command-box code {
  overflow: hidden;
  color: #222934;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.quiet-action,
button.link-action,
a.link-action,
button.outline-button,
button.danger-outline {
  width: auto;
  color: var(--skill-blue);
  background: transparent;
}

a.link-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}

button.link-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

button.link-action.is-copied {
  color: #0d9d58;
}

.quiet-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px;
  white-space: nowrap;
}

.skill-onboarding {
  margin-top: 32px;
}

.skill-onboarding h3,
.admin-credit-panel > h3 {
  margin: 0 0 18px;
  font-size: 20px;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.onboarding-steps article {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.onboarding-steps em {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--skill-blue);
  background: #edf3ff;
  font-size: 17px;
  font-style: normal;
}

.onboarding-steps b {
  font-size: 16px;
}

.onboarding-steps p {
  margin: 7px 0 0;
  color: var(--skill-muted);
  font-size: 13px;
}

.onboarding-steps article > i {
  color: #8f98a4;
  font-size: 24px;
}

.skill-capabilities {
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--skill-line);
  border-radius: 14px;
}

.skill-capabilities article {
  display: grid;
  grid-template-columns: 54px 1fr 110px 160px;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--skill-line);
}

.skill-capabilities article:last-child {
  border-bottom: 0;
}

.capability-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  color: var(--skill-blue);
  background: #edf3ff;
  font-size: 25px;
}

.skill-capabilities .disabled {
  opacity: .55;
}

.skill-capabilities h3 {
  margin: 0;
  font-size: 17px;
}

.skill-capabilities p {
  margin: 6px 0 0;
  color: var(--skill-muted);
  font-size: 13px;
}

.availability {
  color: var(--skill-muted);
  font-size: 13px;
}

.availability.live {
  color: var(--skill-green);
}

.skill-details {
  margin-top: 30px;
  border-top: 1px solid var(--skill-line);
}

.skill-details details {
  border-bottom: 1px solid var(--skill-line);
}

.skill-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.skill-details summary::-webkit-details-marker {
  display: none;
}

.skill-details details[open] summary i {
  transform: rotate(180deg);
}

.detail-content {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 4px 20px;
  color: var(--skill-muted);
}

.detail-content p {
  margin: 0;
}

.example-prompt {
  width: auto;
  padding: 10px 13px;
  border: 1px solid #dfe4ea;
  color: #374151;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
}

.subpage-head h1 {
  font-size: 36px;
  letter-spacing: -1.7px;
}

.subpage-head > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.subpage-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  border-top: 1px solid var(--skill-line);
  border-bottom: 1px solid var(--skill-line);
}

.subpage-summary > div {
  display: grid;
  gap: 5px;
  padding: 14px 22px;
  border-right: 1px solid var(--skill-line);
}

.subpage-summary > div:last-child {
  border-right: 0;
}

.subpage-summary b {
  font-size: 21px;
}

.api-key-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.api-key-row {
  display: grid;
  grid-template-columns: minmax(180px, .85fr) minmax(250px, 1.4fr) minmax(180px, .8fr) auto;
  align-items: center;
  gap: 22px;
  padding: 15px 18px;
  border: 1px solid var(--skill-line);
  border-radius: 13px;
  background: #fff;
}

.api-key-row h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.api-key-row p,
.api-key-row small {
  margin: 0;
  color: var(--skill-muted);
  font-size: 12px;
}

.masked-key {
  padding: 11px 13px;
  border-radius: 9px;
  color: #384150;
  background: var(--skill-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.device-stack {
  display: grid;
  gap: 6px;
}

.device-stack button {
  width: max-content;
  padding: 0;
  color: var(--skill-blue);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.key-actions {
  display: flex;
  gap: 4px;
}

.key-actions button {
  width: auto;
  padding: 9px;
  color: #586170;
  background: transparent;
  font-size: 17px;
}

.key-actions button:hover {
  color: var(--skill-blue);
  background: #f1f5ff;
}

.key-actions .revoke-key:hover {
  color: var(--skill-danger);
  background: #fff1f2;
}

.security-note {
  display: flex;
  gap: 13px;
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid #dbe8ff;
  border-radius: 12px;
  color: #37506e;
  background: #f7faff;
}

.security-note i {
  color: var(--skill-blue);
  font-size: 22px;
}

.security-note p {
  margin: 5px 0 0;
  font-size: 13px;
}

.usage-filters {
  display: grid;
  grid-template-columns: 180px minmax(260px, 420px);
  gap: 16px;
  margin-top: 22px;
}

.usage-filters label {
  display: grid;
  gap: 7px;
  color: var(--skill-muted);
  font-size: 12px;
}

.usage-filters select,
.usage-filters input {
  height: 43px;
  padding: 0 12px;
}

.table-shell {
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--skill-line);
  border-radius: 13px;
}

.table-shell table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.table-shell th,
.table-shell td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--skill-line);
  font-size: 13px;
}

.table-shell th {
  color: var(--skill-muted);
  background: #fafbfc;
  font-size: 12px;
  font-weight: 600;
}

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

.usage-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.usage-state.is-success {
  color: var(--skill-green);
}

.usage-state.is-failed {
  color: var(--skill-danger);
}

.admin-page-head {
  margin-bottom: 12px;
}

.admin-page-head h1 {
  font-size: 34px;
}

.admin-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 14px;
  border: 1px solid var(--skill-line);
  border-radius: 10px;
  background: #fff;
}

.admin-summary-strip > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-right: 1px solid var(--skill-line);
}

.admin-summary-strip > div:last-child {
  border-right: 0;
}

.admin-summary-strip span {
  color: var(--skill-muted);
  font-size: 12px;
}

.admin-summary-strip b {
  font-size: 19px;
}

.credit-dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.credit-dashboard-filters,
.range-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.credit-dashboard-filters select,
.credit-dashboard-filters .quiet-action {
  width: auto;
  height: 36px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid var(--skill-line);
  border-radius: 8px;
  background: #fff;
  color: var(--skill-text);
  font-size: 12px;
  font-weight: 700;
}

.range-tabs {
  padding: 3px;
  border: 1px solid var(--skill-line);
  border-radius: 9px;
  background: #fff;
}

.range-tabs button {
  width: auto;
  min-width: 45px;
  height: 28px;
  margin: 0;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--skill-muted);
  font-size: 12px;
  font-weight: 750;
}

.range-tabs button.active {
  background: var(--skill-blue);
  color: #fff;
}

.credit-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 12px 0;
  border: 1px solid var(--skill-line);
  border-radius: 10px;
  background: #fff;
}

.credit-dashboard-summary > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3px 5px;
  min-height: 74px;
  padding: 13px 16px;
  border-right: 1px solid var(--skill-line);
}

.credit-dashboard-summary > div:last-child { border-right: 0; }
.credit-dashboard-summary span { grid-column: 1 / -1; color: var(--skill-muted); font-size: 12px; }
.credit-dashboard-summary b { font-size: 22px; line-height: 1; letter-spacing: -.4px; }
.credit-dashboard-summary small { color: var(--skill-muted); font-size: 11px; }

.credit-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .9fr);
  gap: 12px;
  margin-bottom: 12px;
}

.credit-dashboard-panel {
  overflow: hidden;
  border: 1px solid var(--skill-line);
  border-radius: 10px;
  background: #fff;
}

.dashboard-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--skill-line);
}

.dashboard-panel-head h3 { margin: 0 0 3px; color: var(--skill-text); font-size: 14px; }
.dashboard-panel-head p { margin: 0; color: var(--skill-muted); font-size: 11px; }
.dashboard-panel-head > span { color: var(--skill-blue); font-size: 12px; font-weight: 800; white-space: nowrap; }

.dashboard-trend {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 178px;
  padding: 18px 16px 8px;
  border-bottom: 1px solid #f0f2f5;
  background-image: linear-gradient(to bottom, transparent 24%, #f0f2f5 25%, transparent 26%, transparent 49%, #f0f2f5 50%, transparent 51%, transparent 74%, #f0f2f5 75%, transparent 76%);
}

.dashboard-bar {
  display: flex;
  flex: 1 1 0;
  align-items: end;
  min-width: 4px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px 3px 0 0;
  background: transparent;
}

.dashboard-bar i { display: block; width: 100%; height: var(--bar-height); border-radius: 3px 3px 0 0; background: var(--skill-blue); opacity: .92; transition: height .2s ease, opacity .16s ease; }
.dashboard-bar:hover i, .dashboard-bar:focus-visible i { opacity: 1; background: #164ee8; }
.dashboard-axis { display: flex; justify-content: space-between; padding: 7px 14px 10px; color: var(--skill-muted); font-size: 10px; }
.dashboard-empty { margin: auto; color: var(--skill-muted); font-size: 12px; text-align: center; }

.dashboard-rank-table { width: 100%; border-collapse: collapse; }
.dashboard-rank-table th, .dashboard-rank-table td { padding: 8px 13px; border-bottom: 1px solid #f0f2f5; font-size: 12px; text-align: left; }
.dashboard-rank-table th { color: var(--skill-muted); font-size: 11px; font-weight: 650; }
.dashboard-rank-table td:last-child, .dashboard-rank-table th:last-child { text-align: right; }
.dashboard-user { display: flex; align-items: center; gap: 8px; }
.dashboard-user em { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #e5edff; color: var(--skill-blue); font-size: 11px; font-style: normal; font-weight: 800; }
.dashboard-user span { display: grid; gap: 1px; }
.dashboard-user b { font-size: 12px; }
.dashboard-user small { color: var(--skill-muted); font-size: 10px; }

.dashboard-ledger-panel .table-shell { border: 0; border-radius: 0; }
.dashboard-ledger-panel table th, .dashboard-ledger-panel table td { padding: 8px 12px; font-size: 12px; white-space: nowrap; }
.dashboard-type { font-size: 11px; font-weight: 750; }
.dashboard-type.is-consume { color: var(--skill-danger); }
.dashboard-type.is-refund { color: var(--skill-green); }

@media (max-width: 980px) {
  .credit-dashboard-head { align-items: start; flex-direction: column; }
  .credit-dashboard-grid { grid-template-columns: 1fr; }
  .credit-dashboard-summary { grid-template-columns: repeat(3, 1fr); }
  .credit-dashboard-summary > div:nth-child(3) { border-right: 0; }
}

@media (max-width: 640px) {
  .credit-dashboard-filters { width: 100%; flex-wrap: wrap; }
  .credit-dashboard-filters select { flex: 1; }
  .credit-dashboard-summary { grid-template-columns: repeat(2, 1fr); }
  .credit-dashboard-summary > div { border-bottom: 1px solid var(--skill-line); }
  .credit-dashboard-summary > div:nth-child(2n) { border-right: 0; }
  .credit-dashboard-summary > div:last-child { grid-column: 1 / -1; }
  .dashboard-trend { gap: 2px; padding-inline: 10px; }
}

.positive {
  color: var(--skill-green);
}

.negative {
  color: var(--skill-danger);
}

.admin-list-shell {
  overflow: hidden;
  border: 1px solid var(--skill-line);
  border-radius: 12px;
  background: #fff;
}

.admin-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--skill-line);
  background: #fafbfc;
}

.admin-list-toolbar > span {
  color: var(--skill-muted);
  font-size: 12px;
}

.admin-search {
  position: relative;
  display: block;
  width: 310px;
}

.admin-search i {
  position: absolute;
  top: 13px;
  left: 12px;
  color: #9aa2ad;
}

.admin-search input {
  height: 36px;
  padding: 0 12px 0 36px;
}

.admin-user-table-shell {
  overflow: visible;
  border: 0;
  border-radius: 0;
}

.admin-user-row {
  cursor: pointer;
}

.admin-user-row:hover,
.admin-user-row.active {
  background: #f2f6ff;
}

.admin-user-table th,
.admin-user-table td {
  padding: 9px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.admin-user-table td:nth-child(2),
.admin-user-table td:nth-child(5) {
  color: var(--skill-muted);
}

.admin-user-identity {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-user-identity em {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--skill-blue);
  background: #dfe9ff;
  font-style: normal;
  font-weight: 800;
}

.inline-credit-actions {
  display: flex;
  gap: 5px;
}

.inline-credit-actions button {
  width: auto;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #cbdcff;
  color: var(--skill-blue);
  background: #f7faff;
  font-size: 12px;
}

.inline-credit-actions .inline-deduct-credit {
  border-color: #f2c5ca;
  color: var(--skill-danger);
  background: #fffafb;
}

.admin-ledger-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-top: 8px solid #f5f6f8;
  border-bottom: 1px solid var(--skill-line);
}

.admin-ledger-head > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.admin-ledger-head > div span,
.admin-ledger-head > span {
  color: var(--skill-muted);
  font-size: 12px;
}

.admin-ledger-head strong {
  margin-left: auto;
  font-size: 12px;
}

.admin-ledger-head strong span {
  color: var(--skill-blue);
  font-size: 16px;
}

.admin-ledger-shell {
  overflow: auto;
  max-height: 188px;
  margin-top: 0 !important;
  border: 0;
  border-radius: 0;
}

button.danger-outline {
  border: 1px solid #f0aeb5;
  color: var(--skill-danger);
}

.table-shell.compact {
  margin-top: 14px;
}

.skill-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #10182873;
  backdrop-filter: blur(3px);
}

.skill-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px #1118272e;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  width: auto;
  padding: 8px;
  color: #667080;
  background: #f5f6f8;
  font-size: 18px;
}

.modal-content {
  padding: 30px;
}

.modal-content h2 {
  margin: 0 42px 8px 0;
  color: var(--skill-text);
  font-size: 25px;
}

.modal-content > p {
  margin: 0 0 22px;
  color: var(--skill-muted);
  line-height: 1.6;
}

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

.modal-form label {
  display: grid;
  gap: 7px;
  color: #4b5563;
  font-size: 13px;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
  padding: 12px 13px;
}

.modal-form textarea {
  min-height: 90px;
  resize: vertical;
}

.model-selector-form {
  display: grid;
  gap: 12px;
}

.model-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  padding: 15px;
  border: 1px solid #dce3ef;
  border-radius: 12px;
  cursor: pointer;
}

.model-option:has(input:checked) {
  border-color: #7fa4ff;
  background: #f5f8ff;
  box-shadow: 0 0 0 2px #e4edff;
}

.model-option input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--skill-blue);
}

.model-option span {
  display: grid;
  gap: 5px;
}

.model-option b {
  color: var(--skill-text);
  font-size: 15px;
}

.model-option small {
  color: var(--skill-muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.otp-row button {
  width: auto;
  margin: 0;
  color: var(--skill-blue);
  background: #edf3ff;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 8px;
}

.modal-actions button {
  width: auto;
  margin: 0;
}

.modal-cancel {
  color: #4b5563;
  background: #f2f4f7;
}

.generated-key-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #c9dbff;
  border-radius: 12px;
  background: #f7faff;
}

.generated-key-box code {
  display: block;
  overflow-wrap: anywhere;
  color: #183a78;
  font-size: 14px;
}

.generated-key-box button {
  width: auto;
  margin-top: 13px;
  color: var(--skill-blue);
  background: #eaf1ff;
}

.video-template-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.video-template-list article {
  padding: 16px;
  border: 1px solid var(--skill-line);
  border-radius: 12px;
  background: #fbfcfe;
}

.video-template-list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.video-template-list span {
  color: var(--skill-ink);
  font-weight: 700;
}

.video-template-list small,
.video-template-list p,
.video-template-list dt {
  color: var(--skill-muted);
}

.video-template-list p {
  margin: 10px 0 14px;
  line-height: 1.65;
}

.video-template-list dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f2f5f9;
}

.video-template-list dl div {
  display: grid;
  gap: 4px;
}

.video-template-list dd {
  margin: 0;
  color: var(--skill-ink);
  font-weight: 700;
}

.video-template-list button {
  width: auto;
  margin: 0;
}

.material-page-head {
  align-items: center;
}

.material-page-head > div {
  max-width: 760px;
}

.material-page-head h1 {
  margin-bottom: 10px;
}

.material-page-head p {
  margin: 0;
  color: var(--skill-muted);
  line-height: 1.7;
}

.material-summary-strip,
.material-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
  border: 1px solid var(--skill-line);
  border-radius: 14px;
  background: #fff;
}

.material-summary-strip > div {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border-right: 1px solid var(--skill-line);
}

.material-summary-strip > div:last-child {
  border-right: 0;
}

.material-summary-strip span,
.material-summary-strip small {
  color: var(--skill-muted);
  font-size: 13px;
}

.material-summary-strip b {
  color: var(--skill-ink);
  font-size: 17px;
}

.material-command-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid #ceddff;
  border-radius: 16px;
  background: linear-gradient(115deg, #f7faff 0%, #fff 72%);
}

.material-command-card .capability-icon {
  flex: 0 0 auto;
}

.material-command-card .skill-kicker {
  margin-bottom: 6px;
}

.material-command-card h2 {
  margin: 0 0 7px;
  color: var(--skill-ink);
  font-size: 20px;
}

.material-command-card p {
  margin: 0;
  color: var(--skill-muted);
  line-height: 1.65;
}

.material-command {
  margin-top: 12px;
}

.material-flow {
  margin-top: 16px;
}

.material-flow article {
  min-height: 146px;
  padding: 22px;
  border-right: 1px solid var(--skill-line);
}

.material-flow article:last-child {
  border-right: 0;
}

.material-flow em {
  display: block;
  margin-bottom: 14px;
  color: var(--skill-blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.material-flow h3 {
  margin: 0 0 7px;
  color: var(--skill-ink);
  font-size: 16px;
}

.material-flow p {
  margin: 0;
  color: var(--skill-muted);
  font-size: 14px;
  line-height: 1.65;
}

.material-privacy-note {
  margin-top: 16px;
}

.modal-error {
  min-height: 18px;
  margin: -5px 0 0;
  color: var(--skill-danger);
  font-size: 12px;
}

.skill-toast {
  position: fixed;
  z-index: 120;
  right: 28px;
  bottom: 28px;
  padding: 13px 17px;
  border-radius: 10px;
  color: #fff;
  background: #1c2635;
  box-shadow: 0 12px 34px #11182725;
  font-size: 13px;
}

@media (max-width: 1050px) {
  .skill-status-strip,
  .subpage-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-status-strip > div:nth-child(2),
  .subpage-summary > div:nth-child(2) {
    border-right: 0;
  }

  .skill-status-strip > div,
  .subpage-summary > div {
    padding: 18px;
    border-bottom: 1px solid var(--skill-line);
  }

  .material-summary-strip,
  .material-flow {
    grid-template-columns: 1fr;
  }

  .material-summary-strip > div,
  .material-flow article {
    border-right: 0;
    border-bottom: 1px solid var(--skill-line);
  }

  .material-summary-strip > div:last-child,
  .material-flow article:last-child {
    border-bottom: 0;
  }

  .skill-status-strip > div:nth-last-child(-n + 2),
  .subpage-summary > div:last-child {
    border-bottom: 0;
  }

  .onboarding-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .onboarding-steps article > i {
    display: none;
  }

  .api-key-row {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 230px 1fr;
  }
}

@media (max-width: 900px) {
  body.skill-route .workspace {
    padding: 0 20px 50px;
  }

  .skill-page-head,
  .subpage-head,
  .selected-user-head {
    flex-direction: column;
  }

  .skill-install-row,
  .skill-host-picker,
  .usage-filters,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .command-box {
    min-height: 54px;
  }

  .skill-capabilities article {
    grid-template-columns: 48px 1fr;
  }

  .availability,
  .skill-capabilities .link-action {
    grid-column: 2;
  }

  .admin-user-panel {
    border-right: 0;
    border-bottom: 1px solid var(--skill-line);
  }
}
