:root {
  --bg: #f5f7fb;
  --ink: #101828;
  --muted: #667085;
  --faint: #98a2b3;
  --paper: #ffffff;
  --paper-soft: #f8fafc;
  --line: #d8e1ec;
  --line-strong: #b9c6d8;
  --blue: #2563eb;
  --cyan: #0891b2;
  --green: #10a37f;
  --rose: #e11d48;
  --amber: #d97706;
  --dark: #111827;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(16, 24, 40, 0.08), 0 2px 8px rgba(16, 24, 40, 0.04);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.13), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(16, 163, 127, 0.12), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 48%, #eef3f8 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(340px, 430px);
  gap: 56px;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-copy {
  max-width: 520px;
}

.brand-lockup,
.brand-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 52%, #10a37f 100%);
  border-radius: 8px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.brand-mark.small {
  width: 40px;
  height: 40px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

.brand-lockup h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
}

.login-lede {
  margin: 26px 0;
  color: #344054;
  font-size: 20px;
  line-height: 1.65;
}

.endpoint-strip {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
}

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

.login-card,
.section-card,
.composer-panel,
.inspector-panel,
.output-panel,
.media-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 225, 236, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.login-card {
  overflow: hidden;
}

.key-form {
  padding: 24px;
}

.field-label,
.section-title {
  display: block;
  margin-bottom: 9px;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}

.key-row {
  display: flex;
  gap: 8px;
}

.input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input:focus,
.prompt-input:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.form-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-status.error {
  color: var(--rose);
}

.form-status.success {
  color: #047857;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.text-button,
.icon-button,
.mini-button {
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 850;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.mini-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none !important;
}

.primary-button {
  height: 42px;
  padding: 0 18px;
  color: white;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.primary-button.wide {
  width: 100%;
  margin-top: 18px;
}

.open-local-link {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.secondary-button {
  height: 38px;
  padding: 0 13px;
  color: #1f2937;
  background: white;
  border-color: var(--line);
}

.ghost-button {
  height: 38px;
  padding: 0 13px;
  color: #475467;
  background: transparent;
  border-color: var(--line);
}

.danger-button {
  height: 38px;
  padding: 0 13px;
  color: #be123c;
  background: white;
  border-color: #fecdd3;
}

.text-button {
  height: 32px;
  padding: 0 10px;
  color: var(--blue);
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #475467;
  background: white;
  border-color: var(--line);
}

.eye-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

.eye-icon::before {
  content: "";
  width: 17px;
  height: 17px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 70% 10%;
  transform: rotate(45deg);
}

.eye-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}

.login-sample {
  padding: 14px;
  background: #101828;
}

.sample-toolbar {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}

.sample-toolbar span {
  width: 9px;
  height: 9px;
  background: #f97316;
  border-radius: 50%;
}

.sample-toolbar span:nth-child(2) {
  background: #facc15;
}

.sample-toolbar span:nth-child(3) {
  background: #22c55e;
}

.sample-canvas {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 12px;
}

.sample-image {
  min-height: 180px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 46%),
    linear-gradient(315deg, rgba(16, 163, 127, 0.45), transparent 42%),
    linear-gradient(135deg, #2563eb, #111827);
}

.sample-lines {
  display: grid;
  align-content: center;
  gap: 12px;
}

.sample-lines span {
  height: 12px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.sample-lines span:nth-child(2) {
  width: 76%;
}

.sample-lines span:nth-child(3) {
  width: 58%;
}

.studio-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.side-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.86);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand-area h2 {
  margin: 0;
  font-size: 20px;
}

.brand-area p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tab {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #475467;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-align: left;
}

.tab span {
  width: 9px;
  height: 9px;
  background: #cbd5e1;
  border-radius: 50%;
}

.tab.active {
  color: #0f172a;
  background: white;
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.07);
}

.tab.active span {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.account-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.balance-pill {
  min-height: 86px;
  display: grid;
  gap: 4px;
  padding: 14px;
  color: white;
  background: #111827;
  border-radius: 8px;
}

.balance-pill span,
.balance-pill small {
  color: #d0d5dd;
  font-size: 12px;
}

.balance-pill strong {
  font-size: 26px;
}

.studio-main {
  min-width: 0;
  padding: 24px;
}

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

.topbar h2 {
  margin: 0;
  font-size: 30px;
}

.topbar p:last-child {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  text-align: right;
  line-height: 1.6;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: grid;
}

.workspace {
  grid-template-columns: minmax(430px, 1.12fr) 360px minmax(360px, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

.edit-layout,
.multi-layout {
  grid-template-columns: 340px minmax(430px, 1fr) 320px minmax(360px, 0.95fr);
}

.composer-panel,
.inspector-panel,
.output-panel,
.media-panel {
  min-height: calc(100vh - 118px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.compact-head {
  min-height: 62px;
}

.panel-head h3,
.section-card h3 {
  margin: 0;
  font-size: 18px;
}

.state-chip {
  min-width: 56px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 9px;
  color: #047857;
  background: #dcfce7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.prompt-input {
  flex: 1;
  min-height: 420px;
  width: 100%;
  resize: none;
  padding: 22px;
  color: #293241;
  background: var(--paper-soft);
  border: 0;
  outline: none;
  line-height: 1.8;
}

.prompt-footer {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.prompt-footer .primary-button {
  flex: 1;
}

.control-group,
.model-row {
  padding: 16px 16px 0;
}

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

.size-option {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 9px;
  color: #2563eb;
  background: #f3f7fd;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.size-option span {
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
  font-weight: 750;
}

.size-option.active {
  color: white;
  background: #111827;
  border-color: #111827;
}

.size-option.active span {
  color: #e5e7eb;
}

.dual-fields,
.model-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dual-fields {
  margin-top: 10px;
  padding: 0;
}

.dual-fields span,
.model-row span,
.gallery-toolbar label span {
  display: block;
  margin-bottom: 7px;
  color: #475467;
  font-size: 12px;
  font-weight: 850;
}

.ratio-note {
  height: 34px;
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding: 0 11px;
  color: #475467;
  background: #f3f7fd;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 850;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: #edf2f7;
  border-radius: 8px;
}

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

.segmented button {
  height: 34px;
  color: #475467;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-weight: 850;
}

.segmented button.active {
  color: white;
  background: #111827;
}

.result-stage {
  flex: 1;
  min-height: 0;
  padding: 16px;
  overflow: auto;
}

.empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #667085;
  text-align: center;
}

.empty-state strong {
  color: #344054;
}

.empty-state span {
  color: var(--faint);
  font-size: 13px;
}

.empty-state small {
  color: var(--faint);
  font-size: 12px;
}

.waiting-time {
  min-width: 118px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  color: #1d4ed8 !important;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  font-weight: 900;
}

.empty-visual {
  width: 122px;
  aspect-ratio: 1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), transparent 46%),
    linear-gradient(315deg, rgba(16, 163, 127, 0.22), transparent 42%),
    #f8fafc;
  border: 1px solid var(--line);
}

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

.result-card,
.gallery-card {
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-card img,
.gallery-card img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #edf2f7;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  color: var(--faint);
  background: #edf2f7;
}

.gallery-thumb img {
  height: 100%;
}

.gallery-thumb span {
  font-size: 12px;
  font-weight: 850;
}

.result-meta,
.gallery-meta {
  padding: 12px;
}

.result-meta strong,
.gallery-meta strong {
  display: block;
  margin-bottom: 6px;
  color: #101828;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-meta p,
.gallery-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.card-actions {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}

.mini-button {
  height: 31px;
  flex: 1;
  color: #1d4ed8;
  background: #f3f7fd;
  border: 1px solid var(--line);
  font-size: 12px;
}

.drop-zone,
.mask-box {
  margin: 16px 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 94px;
  padding: 16px;
  color: #1d4ed8;
  background: #f3f8ff;
  border: 1px dashed #a9bfdf;
  border-radius: 8px;
}

.drop-zone input,
.mask-box input {
  display: none;
}

.drop-zone span,
.mask-box strong {
  font-weight: 900;
}

.drop-zone small,
.mask-box small {
  margin-top: 7px;
  color: #667085;
}

.mask-box span {
  margin-bottom: 5px;
  color: #475467;
  font-size: 12px;
  font-weight: 850;
}

.upload-preview,
.multi-preview {
  flex: 1;
  min-height: 260px;
  margin: 16px;
  display: grid;
  place-items: center;
  color: var(--faint);
  background: rgba(248, 250, 252, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

.upload-preview img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
}

.multi-preview {
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.multi-preview.empty-upload {
  display: grid;
  place-items: center;
  grid-template-columns: 1fr;
}

.multi-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.multi-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.multi-thumb span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  color: white;
  background: rgba(17, 24, 39, 0.72);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.stack-view.active {
  display: flex;
}

.stack-view {
  flex-direction: column;
  gap: 14px;
}

.section-card {
  overflow: hidden;
}

.gallery-toolbar-card,
.api-hero {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.gallery-toolbar-card h3,
.api-hero h3 {
  font-size: 22px;
}

.api-hero p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.queue-table,
.doc-list,
.endpoint-list {
  padding: 16px;
}

.table-head,
.queue-item {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr 1fr 0.7fr;
  gap: 12px;
  align-items: center;
}

.table-head {
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.queue-item {
  min-height: 58px;
  margin-top: 8px;
  padding: 11px 12px;
  color: #344054;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-succeeded {
  color: #047857;
  background: #dff8ec;
}

.status-running,
.status-pending {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-failed {
  color: #be123c;
  background: #ffe4e6;
}

.gallery-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr auto;
  gap: 16px;
  align-items: end;
  padding: 16px;
}

.filter-tabs {
  justify-self: center;
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  background: #edf2f7;
  border-radius: 8px;
}

.filter-tabs button {
  height: 34px;
  padding: 0 16px;
  color: #475467;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-weight: 850;
}

.filter-tabs button.active {
  color: #1d4ed8;
  background: white;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.gallery-panel {
  min-height: 320px;
}

.gallery-grid {
  min-height: 320px;
  padding: 16px;
}

.gallery-grid:not(.empty-gallery) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.empty-gallery {
  display: grid;
  place-items: center;
  color: var(--faint);
}

.select-box {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.api-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.doc-list div {
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.doc-list strong {
  color: #344054;
  font-size: 13px;
}

code {
  color: #101828;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.endpoint-list div {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.endpoint-list span {
  height: 28px;
  display: grid;
  place-items: center;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.endpoint-list p {
  grid-column: 2;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.code-block {
  margin: 0;
  padding: 18px 20px;
  color: #dbeafe;
  background: #111827;
  overflow: auto;
  line-height: 1.7;
}

.code-block code {
  color: #dbeafe;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 240px;
  max-width: 440px;
  padding: 13px 15px;
  color: white;
  background: rgba(17, 24, 39, 0.94);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  font-weight: 800;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1500px) {
  .workspace,
  .edit-layout,
  .multi-layout {
    grid-template-columns: 1fr 340px;
  }

  .output-panel,
  .edit-layout .output-panel,
  .multi-layout .output-panel {
    grid-column: 1 / -1;
    min-height: 430px;
  }

  .edit-layout .media-panel,
  .multi-layout .media-panel {
    grid-row: span 2;
  }
}

@media (max-width: 1060px) {
  .login-view {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .studio-view {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: relative;
    height: auto;
  }

  .tabs {
    flex-direction: row;
    overflow-x: auto;
  }

  .tab {
    white-space: nowrap;
  }

  .account-actions {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .balance-pill {
    min-height: 58px;
  }

  .workspace,
  .edit-layout,
  .multi-layout {
    grid-template-columns: 1fr;
  }

  .composer-panel,
  .inspector-panel,
  .output-panel,
  .media-panel {
    min-height: auto;
  }

  .prompt-input {
    min-height: 300px;
  }

  .output-panel,
  .edit-layout .output-panel,
  .multi-layout .output-panel {
    grid-column: auto;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .topbar p:last-child {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .login-view,
  .studio-main {
    padding: 14px;
  }

  .brand-lockup h1 {
    font-size: 32px;
  }

  .login-lede {
    font-size: 17px;
  }

  .side-rail {
    padding: 14px;
  }

  .account-actions,
  .gallery-toolbar,
  .api-grid,
  .dual-fields,
  .model-row,
  .sample-canvas {
    grid-template-columns: 1fr;
  }

  .size-grid,
  .gallery-grid:not(.empty-gallery),
  .result-grid {
    grid-template-columns: 1fr;
  }

  .prompt-footer,
  .toolbar-actions,
  .gallery-toolbar-card,
  .api-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-tabs {
    justify-self: stretch;
    overflow-x: auto;
  }

  .table-head {
    display: none;
  }

  .queue-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .doc-list div,
  .endpoint-list div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .endpoint-list p {
    grid-column: auto;
  }
}
