.trash-header-tools {
  align-items: stretch;
}

.trash-header-tools .primary-button {
  min-width: 124px;
}

.trash-toolbar {
  align-items: end;
  grid-template-columns: minmax(180px, 260px);
}

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

.trash-list-head {
  display: grid;
  grid-template-columns: 90px minmax(180px, 1fr) minmax(160px, 0.8fr) 160px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--faint);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 900;
}

.trash-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 14px;
}

.trash-row-icon {
  align-items: center;
  background: #eef4ff;
  border-radius: 8px;
  color: var(--primary);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.trash-row-icon .menu-svg-icon {
  height: 18px;
  width: 18px;
}

.trash-row-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.trash-row-title {
  align-items: center;
  display: flex;
  gap: 9px;
  min-width: 0;
}

.trash-row-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trash-kind-badge {
  background: #f1f5f9;
  border-radius: 999px;
  color: #475569;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
}

.trash-row-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  font-weight: 800;
}

.trash-restore-button {
  min-width: 88px;
}

.icon-sample-number {
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 900;
}

.icon-sample-preview {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--blue);
}

.icon-sample-preview .menu-icon-box {
  width: 36px;
  height: 36px;
  background: transparent;
}

.icon-sample-preview .menu-svg-icon {
  width: 26px;
  height: 26px;
}

.icon-sample-card strong {
  overflow: hidden;
  max-width: 100%;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-refresh-button:not(.refresh-icon-button) {
  min-height: 56px;
  padding-inline: 22px;
}

.api-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.api-toolbar label {
  display: grid;
  gap: 6px;
}

.api-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

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

.api-domain-group {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.api-domain-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto minmax(130px, auto) 32px;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 14px;
}

.api-domain-header::-webkit-details-marker {
  display: none;
}

.api-domain-header:hover {
  background: #f8fbff;
}

.api-domain-group[open] .api-domain-header {
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.api-domain-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--blue);
}

.api-domain-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.api-domain-header h2 {
  margin: 0 0 3px;
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
}

.api-domain-header p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-domain-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.api-domain-meta span {
  border-radius: 999px;
  background: #eef3f9;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}

.api-domain-body {
  display: grid;
  gap: 8px;
  background: #f8fbff;
  padding: 10px;
}

.api-group {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.api-domain-body .api-group {
  box-shadow: none;
}

.api-group-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 30px 32px;
  gap: 8px;
  align-items: center;
  background: #fbfdff;
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
}

.api-group[open] .api-group-header {
  border-bottom: 1px solid var(--line);
}

.api-group-header::-webkit-details-marker {
  display: none;
}

.api-group-header::after {
  content: none;
}

.api-group[open] .api-group-header::after {
  content: none;
}

.api-group-header:hover {
  background: #f8fbff;
}

.api-group-header > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.api-group-header code {
  overflow: hidden;
  color: #1f2d44;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-group-header p {
  overflow: hidden;
  margin: 0;
  color: #42526a;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-group-summary-line {
  display: block;
  min-width: 0;
}

.api-summary-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 0;
  vertical-align: middle;
}

.api-summary-edit-button:hover {
  border-color: #bfdbfe;
  background: var(--blue-soft);
  color: var(--blue);
}

.api-summary-edit-button .menu-svg-icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.disclosure-chevron {
  display: flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef3f9;
  justify-self: end;
  color: var(--muted);
}

.disclosure-chevron .menu-svg-icon {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.disclosure-icon-open {
  display: none;
}

.api-group[open] > .api-group-header .disclosure-icon-closed,
.api-domain-group[open] > .api-domain-header .disclosure-icon-closed,
.api-method-detail[open] > summary .disclosure-icon-closed {
  display: none;
}

.api-group[open] > .api-group-header .disclosure-icon-open,
.api-domain-group[open] > .api-domain-header .disclosure-icon-open,
.api-method-detail[open] > summary .disclosure-icon-open {
  display: block;
}

@media (max-width: 880px) {
  .api-domain-header {
    grid-template-columns: 42px minmax(0, 1fr) 32px;
  }

  .api-domain-header > .api-methods,
  .api-domain-meta {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .api-group-header {
    grid-template-columns: minmax(0, 1fr) 30px 32px;
  }

  .api-group-header > .api-methods {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.api-panel {
  display: grid;
  gap: 14px;
}

.api-group-header span:not(.api-method) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.api-method-list {
  display: grid;
}

.api-method-detail {
  border-bottom: 1px solid var(--line);
}

.api-method-detail:last-child {
  border-bottom: 0;
}

.api-method-detail summary {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 96px 44px;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  padding: 10px 14px;
}

.api-method-detail summary::-webkit-details-marker {
  display: none;
}

.api-method-detail summary::after {
  content: none;
}

.api-method-detail[open] summary::after {
  content: none;
}

.api-method-detail summary:hover {
  background: #f8fbff;
}

.api-method-detail summary strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-method-body {
  background: #fbfdff;
  padding: 0 14px 14px;
}

.api-method-body dl {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.api-method-body dl > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
}

.api-method-body dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.api-method-body dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.api-summary-editor {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
}

.api-summary-editor label {
  display: grid;
  gap: 6px;
}

.api-summary-editor label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.api-summary-editor textarea {
  height: 96px;
  min-height: 96px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  padding: 10px 12px;
}

.api-summary-editor textarea:focus {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.api-summary-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.api-summary-read {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.api-summary-read span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.api-summary-read p {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.api-group-summary-editor {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
  padding: 12px 14px;
}

.api-methods {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.api-method,
.api-auth {
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
}

.api-method.get {
  background: var(--green-soft);
  color: var(--green);
}

.api-method.post {
  background: var(--blue-soft);
  color: var(--blue);
}

.api-method.patch,
.api-method.put {
  background: var(--amber-soft);
  color: var(--amber);
}

.api-method.delete {
  background: var(--red-soft);
  color: var(--red);
}

.api-method-body code {
  color: #1f2d44;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
}

.api-auth.required {
  background: #eef3f9;
  color: var(--muted);
}

.api-auth.public {
  background: var(--green-soft);
  color: var(--green);
}

.system-log-toolbar {
  align-items: end;
}

.system-log-search {
  min-width: min(320px, 100%);
  flex: 1;
}

.system-log-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.system-log-list {
  display: grid;
  gap: 8px;
}

.system-log-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 136px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.system-log-row:hover,
.system-log-row.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.system-log-row.error-log {
  border-left: 4px solid var(--red);
}

.system-log-kind,
.system-log-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.system-log-level.level-error,
.error-log .system-log-kind {
  background: var(--red-soft);
  color: var(--red);
}

.system-log-level.level-warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.system-log-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.system-log-main strong,
.system-log-main small,
.system-log-time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-log-main small,
.system-log-time {
  color: var(--muted);
  font-size: 12px;
}

.system-log-detail {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.system-log-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-log-detail-grid {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.system-log-detail-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.system-log-detail-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.system-log-message {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  overflow-wrap: anywhere;
}

.system-log-pre {
  max-height: 280px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

@media (max-width: 920px) {
  .system-log-layout {
    grid-template-columns: 1fr;
  }

  .system-log-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .system-log-time {
    grid-column: 2;
  }
}
