:root {
  --zbtool-shell-padding: 10px;
  --zbtool-workspace-gap: 14px;
  --zbtool-intro-font-size: 14px;
  --zbtool-lang-min-width: 210px;
  --zbtool-lang-label-size: 14px;
  --zbtool-lang-select-height: 40px;
  --tool-surface: #ffffff;
  --tool-surface-soft: #f4f7fb;
  --tool-surface-tint: #f8fbff;
  --tool-border: #d7e3ef;
  --tool-accent: #2f80ed;
  --tool-accent-strong: #1f6ad4;
  --tool-accent-soft: #eaf3ff;
  --tool-success: #0f9f63;
  --tool-danger: #d44c4c;
  --tool-warning: #c88409;
  --tool-text-1: #163047;
  --tool-text-2: #50637a;
  --tool-text-3: #7f92a7;
}

.panel-intro::before,
.panel-work::before {
  content: none;
  display: none;
}

.panel-intro,
.panel-work,
.panel-related,
.panel-comments {
  overflow: visible;
}

.intro-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.intro-meta {
  display: block;
}

.intro-meta h1 {
  margin: 0 0 10px;
  color: #17304f;
  font-size: clamp(24px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.intro-meta .muted {
  max-width: none;
  color: #34485f;
  font-size: 14px;
  line-height: 1.7;
}

.intro-meta .ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 7px;
  background: #eef5ff;
}

.panel-intro .tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-intro .tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: #56667b;
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.tool-billing {
  margin-top: 16px;
  gap: 10px;
}

.tool-billing .bill-mode,
.tool-billing .bill-credit,
.tool-billing .bill-vip-link {
  min-height: 32px;
  padding: 0 12px;
  box-shadow: none;
  font-size: 13px;
}

.tool-billing .bill-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #c9790a;
  background: #fff2e1;
  border-color: #f4c78f;
}

.trust-row {
  margin-top: 18px;
  gap: 10px;
}

.trust-row span {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #c8daf7;
  background: #f8fbff;
  box-shadow: none;
  color: #47698e;
  font-size: 13px;
}

.lang-switch {
  min-width: 250px;
  max-width: 250px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lang-switch label {
  margin: 0 0 8px;
  color: #516176;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.lang-switch select {
  min-height: 44px;
  border: 1px solid #d7dde7;
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  color: #122033;
  font-size: 14px;
  box-shadow: none;
}

.studio-work {
  padding: 18px;
}

.studio-shell {
  display: grid;
  gap: 18px;
}

.studio-status {
  min-height: 22px;
  font-size: 14px;
  color: var(--tool-text-2);
}

.studio-status.success {
  color: var(--tool-success);
}

.studio-status.error {
  color: var(--tool-danger);
}

.studio-card,
.studio-support-card {
  border: 1px solid var(--tool-border);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, var(--tool-surface-tint) 100%);
  box-shadow: 0 14px 34px rgba(32, 71, 135, 0.08);
}

.studio-card {
  padding: 18px;
}

.studio-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.studio-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--tool-text-1);
  font-weight: 700;
}

.studio-card-note {
  font-size: 13px;
  color: var(--tool-text-3);
}

.studio-chip-row,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row {
  margin-top: 14px;
}

.studio-chip-row span,
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d6e4f4;
  background: #f5f9ff;
  color: #335173;
  font-size: 13px;
}

.studio-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.studio-btn {
  border: 1px solid #c9d7e7;
  background: #f7f9fc;
  color: #40546d;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.studio-btn:hover {
  transform: translateY(-1px);
  border-color: #b6c8dd;
  box-shadow: 0 12px 28px rgba(47, 128, 237, 0.1);
}

.studio-btn.primary {
  color: #fff;
  border-color: var(--tool-accent);
  background: linear-gradient(135deg, var(--tool-accent) 0%, var(--tool-accent-strong) 100%);
}

.studio-btn.accent {
  color: var(--tool-accent-strong);
  border-color: #bed2f7;
  background: var(--tool-accent-soft);
}

.studio-btn.warn {
  color: #8a5a00;
  border-color: #f0d19a;
  background: #fff6e4;
}

.studio-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.studio-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.studio-metric-card {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--tool-border);
  background: #fff;
}

.studio-metric-card span {
  display: block;
  font-size: 12px;
  color: var(--tool-text-3);
}

.studio-metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  color: var(--tool-text-1);
}

.studio-metric-card.wide {
  grid-column: span 2;
}

.studio-help-list {
  margin: 0;
  padding-left: 18px;
  color: var(--tool-text-2);
  line-height: 1.8;
}

.studio-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.studio-support-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 18px 36px rgba(36, 73, 135, 0.08);
}

.studio-support-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 88px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.07), rgba(37, 99, 235, 0));
  pointer-events: none;
}

.studio-support-card-head,
.studio-support-card-body {
  position: relative;
  z-index: 1;
}

.studio-support-card-head {
  display: flex;
  align-items: flex-start;
}

.studio-support-card h3 {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #c9dafb;
  border-radius: 14px;
  background: linear-gradient(180deg, #edf4ff 0%, #dfeaff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.studio-support-card-body {
  display: grid;
  gap: 10px;
  padding: 2px 4px 4px;
}

.studio-support-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--tool-text-2);
}

.studio-support-card p {
  margin: 0;
  line-height: 1.8;
  color: var(--tool-text-2);
}

.studio-support-card li {
  position: relative;
  padding-left: 18px;
  line-height: 1.75;
}

.studio-support-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.studio-note-box {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #dbe8d3;
  background: #eff9ec;
  color: #43654a;
  line-height: 1.8;
}

.studio-note-box strong {
  color: #2f5637;
}

.studio-empty {
  color: var(--tool-text-3);
}

@media (max-width: 1100px) {
  .intro-head {
    flex-direction: column;
  }

  .lang-switch {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .studio-metric-grid,
  .studio-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .studio-work {
    padding: 14px;
  }

  .studio-metric-grid,
  .studio-support-grid {
    grid-template-columns: 1fr;
  }

  .studio-metric-card.wide {
    grid-column: auto;
  }
}
