/* Общая оболочка сервисных страниц */

.service-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.title-block h1 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-block h1 svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 2;
}

.service-container.breadcrumbs {
  padding-top: 16px;
  padding-bottom: 0;
  justify-content: flex-start;
}

.app-header .header-inner {
  justify-content: center;
}

.app-header .title-block {
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

.app-header .title-block h1 {
  justify-content: center;
}

.app-header .subtitle {
  text-align: center;
}

.service-main {
  flex: 1;
  min-width: 0;
}

.service-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.service-container.wide {
  max-width: 1400px;
}

.service-container.full {
  max-width: none;
  padding: var(--space-lg) var(--space-xl);
}

.workspace {
  min-height: calc(100vh - 118px);
  padding: var(--space-lg) var(--space-xl);
  box-sizing: border-box;
}

.workspace.split-view {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  padding: var(--space-lg) var(--space-xl);
}

.workspace.split-view .split-tool {
  flex: 0 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 260px);
  height: calc(100vh - 260px);
}

.service-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.service-toolbar .toolbar-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.converter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
}

.converter-grid > .stack {
  align-content: start;
}

.converter-grid > .stack > .label:first-child {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.form-grid .field:only-child,
.form-grid .field:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.converter-grid.asymmetric {
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
}

.tool-presets {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.tool-presets h2 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 34px;
  flex-wrap: wrap;
}

.label-row .label {
  margin: 0;
}

.copy-status {
  font-size: var(--text-sm);
  color: var(--success);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.copy-status.visible {
  opacity: 1;
}

.output-toolbar {
  flex-wrap: wrap;
}

.output-zoom {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 200px;
  justify-content: center;
}

.output-zoom input[type="range"] {
  width: min(120px, 22vw);
}

.output-frame.is-stage.has-result {
  display: block;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.output-frame.is-stage.has-result .empty-state {
  display: none;
}

.output-scroll {
  display: none;
  width: 100%;
  min-height: 420px;
  max-height: min(70vh, 640px);
  overflow: auto;
  padding: var(--space-lg);
}

.output-scroll.is-visible {
  display: block;
}

.output-scroll.is-grabbable {
  cursor: grab;
}

.output-scroll.is-grabbing {
  cursor: grabbing;
  user-select: none;
}

.output-scroll.is-grabbing .output-result svg,
.output-scroll.is-grabbing .output-result img {
  pointer-events: none;
}

.output-scroll .output-result {
  display: none;
  width: max-content;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.output-scroll .output-result.is-visible {
  display: block;
}

.output-scroll .output-result svg,
.output-scroll .output-result img {
  max-width: none;
  max-height: none;
  margin: 0;
}

.seo-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px var(--space-xl);
  color: var(--text-muted);
  font-size: var(--text-md);
  line-height: 1.8;
}

.seo-content h2 {
  margin: 30px 0 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: var(--fw-semibold);
}

.seo-content h2:first-child {
  margin-top: 0;
}

.seo-content h3 {
  margin: 20px 0 8px;
  color: var(--text);
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
}

.seo-content p {
  margin-bottom: 12px;
}

.seo-content ul {
  margin: 0 0 12px 20px;
}

.seo-content li {
  margin-bottom: 4px;
}

.service-footer {
  margin-top: auto;
  padding: 12px var(--space-xl) 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-muted);
  text-align: center;
  font-size: var(--text-sm);
}

.hidden {
  display: none !important;
}

/* JSON syntax */
.json-key { color: var(--purple); }
.json-string { color: var(--info); }
.json-number { color: #697f1d; }
.json-boolean { color: var(--warning); }
.json-null { color: var(--danger); }

/* Markdown preview */
.md-preview {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-tertiary);
}

.md-preview h1,
.md-preview h2,
.md-preview h3,
.md-preview h4,
.md-preview h5,
.md-preview h6 {
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  font-weight: var(--fw-semibold);
  color: var(--text);
  line-height: 1.3;
}

.md-preview h1 { font-size: 2em; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; }
.md-preview h2 { font-size: 1.5em; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; }
.md-preview h3 { font-size: 1.25em; }

.md-preview p { margin-bottom: 1.2em; }
.md-preview ul, .md-preview ol { margin-bottom: 1.2em; padding-left: 2.5em; }
.md-preview li { margin-bottom: 0.6em; }
.md-preview blockquote {
  border-left: 4px solid var(--border-strong);
  margin: 1.5em 0;
  padding: 10px 20px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-style: italic;
}

.md-preview code {
  background: rgba(27, 31, 35, 0.05);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: #d63384;
}

.md-preview pre {
  background: #282c34;
  color: #abb2bf;
  padding: 15px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5em 0;
}

.md-preview pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.md-preview a {
  color: #7a5900;
  text-decoration: none;
  border-bottom: 1px dotted var(--primary);
}

.md-preview table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5em;
}

.md-preview th,
.md-preview td {
  border: 1px solid var(--border-strong);
  padding: 8px 12px;
}

.md-preview th {
  background: var(--surface-muted);
  font-weight: var(--fw-semibold);
}

/* Mermaid */
.diagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
}

.diagram-output {
  min-height: 400px;
  padding: var(--space-xl);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.diagram-output.has-content {
  border-color: var(--border-strong);
}

.diagram-placeholder {
  color: var(--text-subtle);
  font-size: var(--text-md);
  text-align: center;
}

.diagram-output .mermaid {
  width: 100%;
  display: flex;
  justify-content: center;
}

.spinner {
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 0.8s linear infinite;
  margin: 16px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-panel {
  display: none;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-md);
  margin-top: var(--space-md);
}

.loading-panel.active {
  display: block;
}

/* QR */
.qr-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: var(--space-xl);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.qr-preview canvas {
  max-width: 100%;
  height: auto;
}

.qr-placeholder {
  color: var(--text-subtle);
  font-size: var(--text-md);
  text-align: center;
}

.logo-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  text-align: center;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.logo-drop.has-logo {
  border-style: solid;
  border-color: var(--primary);
  background: var(--primary-soft);
}

.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.color-input-wrap input[type="color"] {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
}

.color-hex {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.file-input-wrap {
  position: relative;
  display: inline-block;
}

.file-input-wrap input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  cursor: pointer;
}

.file-label svg {
  width: 16px;
  height: 16px;
}

.logo-preview {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.logo-preview.visible {
  display: flex;
}

.logo-preview img {
  max-width: 60px;
  max-height: 60px;
  border-radius: var(--radius-sm);
}

.logo-options {
  display: none;
  margin-top: 10px;
}

.logo-drop.has-logo .logo-options {
  display: block;
}

.checkbox-item {
  display: flex;
  align-items: center;
}

.checkbox-item .label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

/* Timestamp */
.result-box {
  min-height: 150px;
  padding: var(--space-lg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.result-item + .result-item {
  margin-top: var(--space-lg);
}

.result-label {
  margin-bottom: 5px;
  color: var(--text-subtle);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.result-value.small {
  font-size: var(--text-md);
  font-weight: var(--fw-normal);
  color: var(--text-muted);
}

.timezone-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: none;
  letter-spacing: 0;
}

.privacy-widget {
  position: relative;
}

.side-widgets {
  position: fixed;
  right: var(--space-lg);
  top: 50%;
  z-index: var(--z-dropdown, 50);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  transform: translateY(-50%);
}

.side-widget {
  position: relative;
}

.side-widget-trigger,
.privacy-trigger {
  box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, 0.12));
}

@media (min-width: 961px) {
  .side-widget-trigger,
  .privacy-trigger {
    width: 68px;
    height: 68px;
    border-radius: calc(var(--radius) * 1.5);
  }

  .side-widget-trigger svg,
  .privacy-trigger svg {
    width: 32px;
    height: 32px;
  }
}

.privacy-panel {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  width: min(280px, calc(100vw - 80px));
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.1));
  transform: translateY(-50%);
}

.privacy-panel::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: translateY(-50%) rotate(45deg);
}

.privacy-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.privacy-title svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--primary-strong, var(--text));
}

.privacy-panel p:last-child {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

.feedback-share-panel {
  display: grid;
  gap: 8px;
  padding: 4px 0 0;
}

.feedback-share-panel .btn {
  width: 100%;
  justify-content: center;
}

#feedbackModal .modal-body > .btn {
  width: 100%;
  justify-content: center;
}

.feedback-trigger {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.feedback-trigger:hover {
  background: #356b3d;
  border-color: #356b3d;
  color: #fff;
}

.feedback-trigger svg {
  color: #fff;
}

#feedbackModal .btn-success:hover {
  background: #356b3d;
  border-color: #356b3d;
}

@media (max-width: 960px) {
  .converter-grid,
  .diagram-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .workspace.split-view .split-tool {
    height: auto;
    min-height: 520px;
  }

  .side-widgets {
    top: auto;
    bottom: var(--space-lg);
    transform: none;
  }

  .privacy-panel {
    top: auto;
    bottom: calc(100% + 12px);
    right: 0;
    transform: none;
  }

  .privacy-panel::after {
    top: auto;
    bottom: -7px;
    right: 18px;
    border-right: none;
    border-top: none;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transform: rotate(45deg);
  }
}

@media (max-width: 640px) {
  .workspace,
  .service-container,
  .service-container.full {
    padding: var(--space-md);
  }

  .seo-content {
    padding: 28px var(--space-md);
  }

  .side-widgets {
    right: var(--space-md);
    bottom: var(--space-md);
  }
}

/* Карточка инструмента/раздела в каталоге (главная и лендинги) */
.tool-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md, 0 4px 14px rgba(0, 0, 0, 0.08));
}

.tool-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-card-head i {
  width: 18px;
  height: 18px;
  color: var(--primary-strong, #7a5900);
  flex: 0 0 auto;
}

.tool-card-head strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.tool-card p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.service-container > .media-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  justify-content: center;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .service-container > .media-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-intro {
  max-width: 760px;
  margin: 0 auto 4px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

/* Верхняя навигация: меню + поиск */
.service-nav {
  display: block;
  padding: 12px var(--space-xl);
}

.nav-shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.nav-start {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 8px;
  margin-right: 4px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-brand img {
  display: block;
  width: auto;
  height: 56px;
}

.nav-brand:hover {
  background: var(--surface-muted);
}

button.nav-link {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.nav-link.nav-catalog-btn {
  background: var(--primary);
  color: var(--text);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.nav-link.nav-catalog-btn:hover,
.nav-link.nav-catalog-btn[aria-expanded="true"] {
  background: var(--primary-hover);
  color: var(--text);
}

.nav-catalog-btn [data-lucide="chevron-down"] {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.nav-search-wrap {
  flex: 0 1 420px;
  width: min(100%, 420px);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  width: 100%;
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 16px 18px;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.nav-mega {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px 24px;
}

.nav-mega-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
}

.nav-mega-head:hover {
  color: var(--primary-strong, #7a5900);
}

.nav-mega-head i {
  width: 16px;
  height: 16px;
}

.nav-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mega-list a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.35;
}

.nav-mega-list a:hover,
.nav-mega-list a.is-active {
  color: var(--primary-strong, #7a5900);
}

.nav-mega-expand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  padding: 4px 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.nav-mega-expand:hover {
  color: var(--primary-strong, #7a5900);
}

.nav-mega-expand i {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.nav-mega-expand.is-open i {
  transform: rotate(180deg);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search > [data-lucide="search"] {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.nav-search-input {
  width: 100%;
  padding-left: 36px !important;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 70;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-height: 320px;
  overflow: auto;
}

.search-suggest-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.search-suggest-item:last-child {
  border-bottom: none;
}

.search-suggest-item strong {
  font-size: 14px;
  font-weight: 600;
}

.search-suggest-item span {
  font-size: 12px;
  color: var(--text-muted);
}

.search-suggest-item:hover,
.search-suggest-item.is-active {
  background: var(--primary-soft);
}

.search-suggest-empty {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .nav-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .nav-start {
    justify-content: center;
    gap: 12px;
  }

  .nav-search-wrap {
    width: 100%;
    max-width: none;
    flex: none;
  }

  /* Каталог и подсказки поиска — поверх страницы (элементы переносятся в body через JS) */
  .service-nav {
    overflow: visible !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .nav-dropdown-panel.is-body-overlay {
    position: fixed;
    top: var(--nav-overlay-top, 120px);
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: none;
    z-index: 300;
  }

  .search-suggest.is-body-overlay {
    position: fixed;
    top: var(--nav-search-top, 120px);
    right: 12px;
    left: 12px;
    width: auto;
    max-height: min(50vh, 360px);
    z-index: 301;
  }

  .nav-overlay-backdrop {
    position: fixed;
    inset: 0;
    z-index: 250;
    border: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.35);
    cursor: default;
  }

  body.nav-overlay-open {
    overflow: hidden;
  }
}

/* Инструменты изображений: рамка превью подгоняется под картинку,
   а не растягивается до 16/10 серым блоком */
.service-container[data-tool] .output-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: auto;
  min-height: 160px;
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: #fbfbf9;
  background-image:
    linear-gradient(45deg, #e8e8e2 25%, transparent 25%),
    linear-gradient(-45deg, #e8e8e2 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e8e8e2 75%),
    linear-gradient(-45deg, transparent 75%, #e8e8e2 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.service-container[data-tool] .output-frame.has-preview {
  min-height: 0;
}

.service-container[data-tool] .output-frame .output-result {
  margin: 0;
}

/* Инструменты сжатия изображений: строка результата */
.compress-result {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
  font-size: var(--text-md);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.compress-result .compress-saved {
  font-weight: var(--fw-semibold);
}

.compress-result .compress-saved.is-positive {
  color: var(--success);
}

.compress-result .compress-saved.is-negative {
  color: var(--danger);
}
