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

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

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

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

.copy-compressor-workbench,
.copy-compressor-workbench * {
  box-sizing: border-box;
}

.copy-compressor-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid rgba(197, 213, 240, 0.82);
  border-radius: 26px;
  padding: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(73, 131, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
  box-shadow: 0 22px 62px rgba(36, 75, 140, 0.11);
}

.copy-compressor-kicker {
  display: inline-flex;
  height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  color: #1f63d8;
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 760;
}

.copy-compressor-hero h1 {
  margin: 14px 0 10px;
  color: #07122d;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.03;
  letter-spacing: 0;
}

.copy-compressor-hero p {
  max-width: 680px;
  margin: 0;
  color: #5c6e91;
  font-size: 15px;
  line-height: 1.75;
}

.copy-compressor-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 138px;
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(135deg, #0f2f68, #2569e8);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.copy-compressor-visual::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.35), transparent 28%);
}

.copy-compressor-visual b,
.copy-compressor-visual strong {
  position: relative;
  display: grid;
  place-items: center;
  height: 70px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-size: 26px;
}

.copy-compressor-visual i {
  position: relative;
  width: 72px;
  height: 2px;
  margin: 0 12px;
  background: rgba(255, 255, 255, 0.7);
}

.copy-compressor-visual i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(255, 255, 255, 0.8);
  border-right: 2px solid rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) rotate(45deg);
}

.copy-compressor-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  gap: 18px;
  align-items: stretch;
}

.copy-compressor-editor,
.copy-compressor-control,
.copy-compressor-output-left,
.copy-compressor-version-rail {
  border: 1px solid rgba(204, 217, 240, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 52px rgba(35, 74, 135, 0.09);
}

.copy-compressor-editor {
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  overflow: hidden;
}

.copy-compressor-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(225, 232, 245, 0.92);
}

.copy-compressor-editor-head h2,
.copy-compressor-version-rail h2 {
  margin: 0;
  color: #07122d;
  font-size: 17px;
}

.copy-compressor-editor-head button,
.copy-compressor-main-head button,
.copy-compressor-one-line button,
.copy-compressor-version button {
  border: 0;
  border-radius: 10px;
  padding: 8px 11px;
  color: #1d62d9;
  background: #edf5ff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.copy-compressor-editor-head button:hover,
.copy-compressor-main-head button:hover,
.copy-compressor-one-line button:hover,
.copy-compressor-version button:hover {
  transform: translateY(-1px);
  background: #e3efff;
  box-shadow: 0 10px 24px rgba(43, 97, 183, 0.12);
}

.copy-compressor-editor textarea {
  width: 100%;
  min-height: 320px;
  border: 0;
  outline: 0;
  resize: vertical;
  padding: 22px;
  color: #17233f;
  background: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.88;
}

.copy-compressor-meter {
  display: grid;
  gap: 9px;
  padding: 16px 20px 18px;
  border-top: 1px solid rgba(225, 232, 245, 0.92);
  background: linear-gradient(180deg, #fbfdff, #f4f8ff);
}

.copy-compressor-meter-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #54698d;
  font-size: 13px;
}

.copy-compressor-meter-row b {
  color: #0d4ed4;
  font-size: 16px;
}

.copy-compressor-meter-row.small {
  color: #7b8ca9;
  font-size: 12px;
}

.copy-compressor-track {
  height: 8px;
  border-radius: 999px;
  background: #e7eefb;
  overflow: hidden;
}

.copy-compressor-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1c70ff, #36c3df);
  transition: width 220ms ease;
}

.copy-compressor-control {
  display: grid;
  gap: 16px;
  padding: 18px;
}

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

.copy-compressor-control label,
.copy-compressor-line,
.copy-compressor-range {
  display: grid;
  gap: 7px;
  color: #405b88;
  font-size: 13px;
  font-weight: 760;
}

.copy-compressor-control input,
.copy-compressor-control select {
  width: 100%;
  height: 40px;
  border: 1px solid #bfd1f2;
  border-radius: 12px;
  outline: 0;
  padding: 0 12px;
  color: #081631;
  background: #fff;
  font: inherit;
  font-weight: 540;
}

.copy-compressor-control input:focus,
.copy-compressor-control select:focus {
  border-color: #1d72ff;
  box-shadow: 0 0 0 4px rgba(29, 114, 255, 0.1);
}

.copy-compressor-range span {
  display: flex;
  justify-content: space-between;
}

.copy-compressor-range input {
  padding: 0;
  accent-color: #1d72ff;
}

.copy-compressor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.copy-compressor-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  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-compressor-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 76, 154, 0.13);
}

.copy-compressor-actions button.primary {
  grid-column: 1 / -1;
  color: #fff;
  background: linear-gradient(135deg, #145ff0, #21a7c7);
  box-shadow: 0 14px 34px rgba(20, 95, 240, 0.2);
}

.copy-compressor-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.copy-compressor-output {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.copy-compressor-output-left {
  min-height: 420px;
  padding: 18px;
}

.copy-compressor-empty,
.copy-compressor-loading {
  display: grid;
  min-height: 384px;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  color: #6d7f9f;
}

.copy-compressor-empty b {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #145ff0, #21a7c7);
  box-shadow: 0 20px 45px rgba(20, 95, 240, 0.22);
  font-size: 18px;
}

.copy-compressor-empty strong,
.copy-compressor-loading strong {
  color: #07122d;
  font-size: 20px;
}

.copy-compressor-empty p,
.copy-compressor-loading p {
  max-width: 360px;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.copy-compressor-loading span {
  width: 68%;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef4ff, #dfeaff, #eef4ff);
  background-size: 220% 100%;
}

.copy-compressor-loading span:nth-child(2) {
  width: 52%;
}

.copy-compressor-loading span:nth-child(3) {
  width: 36%;
}

@media (prefers-reduced-motion: no-preference) {
  .copy-compressor-loading span {
    animation: copyCompressorShimmer 1.35s ease-in-out infinite;
  }
}

@keyframes copyCompressorShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.copy-compressor-result {
  display: grid;
  gap: 14px;
}

.copy-compressor-main-card {
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid rgba(207, 219, 243, 0.8);
}

.copy-compressor-main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.copy-compressor-main-head span,
.copy-compressor-one-line span {
  color: #1d62d9;
  font-size: 12px;
  font-weight: 800;
}

.copy-compressor-main-head h2 {
  margin: 7px 0 0;
  color: #07122d;
  font-size: 22px;
}

.copy-compressor-summary,
.copy-compressor-notice {
  margin: 12px 0 0;
  color: #596c8f;
  font-size: 13px;
  line-height: 1.7;
}

.copy-compressor-notice {
  color: #8a6a16;
}

.copy-compressor-main-card pre {
  margin: 16px 0 0;
  color: #20375f;
  font: inherit;
  font-size: 15px;
  line-height: 1.86;
  white-space: pre-wrap;
}

.copy-compressor-one-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  border-radius: 18px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, #102d63, #145ff0);
}

.copy-compressor-one-line span {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.78);
}

.copy-compressor-one-line strong {
  font-size: 18px;
  line-height: 1.45;
}

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

.copy-compressor-insights section {
  border: 1px solid rgba(211, 223, 240, 0.86);
  border-radius: 16px;
  padding: 15px;
  background: #fff;
}

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

.copy-compressor-insights h3 {
  margin: 0 0 10px;
  color: #081631;
  font-size: 14px;
}

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

.copy-compressor-version-rail {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.copy-compressor-version-rail > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.copy-compressor-version-rail span {
  color: #6b7d9d;
  font-size: 12px;
  font-weight: 760;
}

.copy-compressor-placeholder {
  display: grid;
  min-height: 230px;
  place-items: center;
  border: 1px dashed #c5d4ef;
  border-radius: 18px;
  color: #7183a4;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}

.copy-compressor-version {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border: 1px solid rgba(211, 223, 240, 0.88);
  border-radius: 17px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.copy-compressor-version strong {
  display: block;
  color: #0b1732;
  font-size: 14px;
}

.copy-compressor-version small {
  display: block;
  margin-top: 4px;
  color: #6b7d9d;
  font-size: 12px;
}

.copy-compressor-version p {
  grid-column: 1 / -1;
  margin: 0;
  color: #354a70;
  font-size: 13px;
  line-height: 1.72;
}

.copy-compressor-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-compressor-toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

  .copy-compressor-stage,
  .copy-compressor-output,
  .copy-compressor-hero {
    grid-template-columns: 1fr;
  }

  .copy-compressor-visual {
    min-height: 118px;
  }
}

@media (max-width: 720px) {
  .copy-compressor-workbench {
    width: min(100% - 24px, 640px) !important;
    margin-top: 20px !important;
  }

  .copy-compressor-hero,
  .copy-compressor-editor,
  .copy-compressor-control,
  .copy-compressor-output-left,
  .copy-compressor-version-rail {
    border-radius: 20px;
  }

  .copy-compressor-hero {
    padding: 20px;
  }

  .copy-compressor-control-grid,
  .copy-compressor-actions,
  .copy-compressor-insights {
    grid-template-columns: 1fr;
  }

  .copy-compressor-insights .wide {
    grid-column: auto;
  }
}

@media print {
  .topbar,
  .home-footer,
  .copy-compressor-stage,
  .copy-compressor-version-rail,
  .copy-compressor-actions,
  .copy-compressor-main-head button,
  .copy-compressor-one-line button {
    display: none !important;
  }

  .copy-compressor-workbench {
    width: 100% !important;
    margin: 0 !important;
  }

  .copy-compressor-hero,
  .copy-compressor-output,
  .copy-compressor-output-left,
  .copy-compressor-main-card,
  .copy-compressor-one-line,
  .copy-compressor-insights section {
    box-shadow: none !important;
    background: #fff !important;
    color: #111 !important;
  }
}
