.copy-expander-mounted > .tool-titlebar,
.copy-expander-mounted .tool-titlebar + .timestamp-grid {
  display: none;
}

.copy-expander-workbench {
  width: min(100% - 48px, 1440px) !important;
  margin: 34px auto 46px !important;
  position: relative;
  z-index: 2;
}

.copy-expander-page {
  overflow: auto !important;
}

.copy-expander-page .home-footer {
  position: relative;
  z-index: 2;
}

.copy-expander-titlebar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.copy-expander-titlebar span {
  display: inline-flex;
  height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  color: #1f5fe0;
  background: #edf5ff;
  font-size: 12px;
  font-weight: 760;
}

.copy-expander-titlebar h1 {
  margin: 12px 0 8px;
  color: #071230;
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
}

.copy-expander-titlebar p {
  max-width: 820px;
  margin: 0;
  color: #607399;
  font-size: 15px;
  line-height: 1.7;
}

.copy-expander-badge {
  display: grid;
  min-width: 128px;
  min-height: 82px;
  place-items: center;
  border: 1px solid rgba(199, 214, 243, 0.78);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f2f7ff);
  box-shadow: 0 18px 48px rgba(31, 76, 154, 0.1);
}

.copy-expander-badge b {
  color: #176dff;
  font-size: 30px;
  line-height: 1;
}

.copy-expander-badge small {
  color: #6b7d9e;
  font-size: 12px;
  font-weight: 720;
}

.copy-expander-shell {
  display: grid;
  grid-template-columns: minmax(440px, 0.86fr) minmax(0, 1.14fr);
  gap: 22px;
  align-items: start;
}

.copy-expander-panel {
  overflow: hidden;
  border: 1px solid rgba(201, 214, 238, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 60px rgba(31, 76, 154, 0.1);
}

.copy-expander-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(222, 230, 244, 0.9);
  background: linear-gradient(180deg, #fff, #f7faff);
}

.copy-expander-panel-head h2 {
  margin: 0;
  color: #081631;
  font-size: 18px;
}

.copy-expander-panel-head span {
  color: #66799e;
  font-size: 13px;
  font-weight: 700;
}

.copy-expander-body,
.copy-expander-result {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.copy-expander-grid-form {
  display: grid;
  gap: 14px;
}

.copy-expander-grid-form.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.copy-expander-field {
  display: grid;
  gap: 7px;
  color: #405b88;
  font-size: 13px;
  font-weight: 760;
}

.copy-expander-field.wide {
  grid-column: 1 / -1;
}

.copy-expander-field input,
.copy-expander-field select,
.copy-expander-field textarea {
  width: 100%;
  border: 1px solid #bdd0f4;
  border-radius: 12px;
  outline: 0;
  color: #081631;
  background: #fff;
  font: inherit;
  font-weight: 520;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.copy-expander-field input,
.copy-expander-field select {
  height: 40px;
  padding: 0 12px;
}

.copy-expander-field textarea {
  min-height: 128px;
  padding: 13px 14px;
  line-height: 1.65;
  resize: vertical;
}

.copy-expander-field:first-child textarea {
  min-height: 170px;
}

.copy-expander-field input:focus,
.copy-expander-field select:focus,
.copy-expander-field textarea:focus {
  border-color: #1d72ff;
  box-shadow: 0 0 0 4px rgba(29, 114, 255, 0.11);
}

.copy-expander-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.copy-expander-btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 0 15px;
  color: #34517f;
  background: #eef4ff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.copy-expander-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 76, 154, 0.13);
}

.copy-expander-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #156dff, #715cff);
  box-shadow: 0 14px 34px rgba(21, 109, 255, 0.22);
}

.copy-expander-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
  box-shadow: none;
}

.copy-expander-empty {
  display: grid;
  min-height: 560px;
  place-items: center;
  padding: 28px;
  color: #7485a8;
  text-align: center;
}

.copy-expander-empty strong {
  display: block;
  margin-bottom: 8px;
  color: #081631;
  font-size: 20px;
}

.copy-expander-summary,
.copy-expander-section {
  border: 1px solid rgba(207, 219, 243, 0.74);
  border-radius: 16px;
  background: #fff;
}

.copy-expander-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #fff, #f4f7ff);
}

.copy-expander-summary span {
  color: #176dff;
  font-size: 12px;
  font-weight: 800;
}

.copy-expander-summary h2 {
  margin: 7px 0 8px;
  color: #071230;
  font-size: 22px;
}

.copy-expander-summary p {
  margin: 0;
  color: #526589;
  font-size: 13px;
  line-height: 1.7;
}

.copy-expander-source {
  display: grid;
  flex: 0 0 auto;
  width: 86px;
  height: 70px;
  place-items: center;
  border-radius: 16px;
  color: #176dff;
  background: #edf5ff;
}

.copy-expander-source b {
  font-size: 20px;
}

.copy-expander-source small {
  color: #607399;
  font-size: 12px;
  font-weight: 760;
}

.copy-expander-notice {
  display: block;
  margin-top: 10px;
  color: #8a6a16;
  font-size: 12px;
  line-height: 1.6;
}

.copy-expander-section {
  padding: 16px;
}

.copy-expander-section h3 {
  margin: 0 0 12px;
  color: #081631;
  font-size: 14px;
  font-weight: 820;
}

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

.copy-expander-section-head h3 {
  margin: 0;
}

.copy-expander-section-head button,
.copy-expander-version-head button {
  min-height: 30px;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  color: #176dff;
  background: #edf5ff;
  font-size: 12px;
  font-weight: 760;
}

.copy-expander-main-text,
.copy-expander-version pre {
  margin: 0;
  color: #263a5f;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.86;
  white-space: pre-wrap;
}

.copy-expander-versions {
  display: grid;
  gap: 13px;
}

.copy-expander-version {
  overflow: hidden;
  border: 1px solid rgba(211, 223, 240, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.copy-expander-version-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(222, 230, 244, 0.82);
}

.copy-expander-version-head span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #156dff, #715cff);
  font-size: 12px;
  font-weight: 900;
}

.copy-expander-version-head div {
  display: grid;
  flex: 1;
  gap: 3px;
}

.copy-expander-version-head strong {
  color: #081631;
  font-size: 14px;
}

.copy-expander-version-head small {
  color: #66799e;
  font-size: 12px;
}

.copy-expander-version pre {
  padding: 16px;
}

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

.copy-expander-grid .wide {
  grid-column: 1 / -1;
}

.copy-expander-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #506589;
  font-size: 13px;
  line-height: 1.6;
}

.copy-expander-tags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  padding-left: 0 !important;
  list-style: none;
}

.copy-expander-tags li {
  border-radius: 999px;
  padding: 6px 10px;
  color: #155bd4;
  background: #edf5ff;
  font-size: 12px;
  font-weight: 720;
}

.copy-expander-toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  padding: 12px 16px;
  border-radius: 14px;
  color: #fff;
  background: #10224a;
  box-shadow: 0 18px 42px rgba(17, 35, 74, 0.22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

@media (max-width: 1180px) {
  .copy-expander-workbench {
    width: min(100% - 32px, 960px) !important;
  }

  .copy-expander-shell,
  .copy-expander-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .copy-expander-titlebar,
  .copy-expander-grid-form.two,
  .copy-expander-summary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .copy-expander-badge {
    min-height: 70px;
  }
}
