/* ============================================================================
   N.O GROUP — SVG CONVERTER TOOL STYLES
   Matches the site design system (black / navy / cyan / violet).
   ========================================================================== */

.conv {
  --conv-line: #000;
  --conv-panel: #f5f5f5;
  --conv-panel-2: #eaeaea;
  background: #fff;
  border: 3px solid #000;
  border-radius: 0;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  box-shadow: 8px 8px 0 #000;
  position: relative;
  overflow: hidden;
}
.conv::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: #000;
  pointer-events: none;
}

/* badges */
.conv-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.conv-badge {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.85rem;
  border-radius: 0;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 700;
}
.conv-badge.is-hot {
  border-color: #000;
  color: #fff;
  background: #000;
}
.conv-badge.is-private {
  border-color: #000;
  color: #fff;
  background: #000;
}
.conv-badge strong { color: #fff; font-weight: 700; }

/* tabs */
.conv-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.conv-tab {
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: 3px solid #000;
  background: #fff;
  color: #000;
  border-radius: 0;
  padding: 1rem 1.1rem;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.15s;
}
.conv-tab:hover { border-color: #000; background: #f0f0f0; }
.conv-tab.is-active {
  border-color: #000;
  background: #000;
  color: #fff;
  box-shadow: 6px 6px 0 #000;
}
.conv-tab-sub {
  display: block;
  font-weight: 600;
  font-size: 0.75rem;
  color: #000;
  margin-top: 0.2rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* layout */
.conv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .conv-grid { grid-template-columns: 1fr; }
}

/* dropzone */
.conv-drop {
  border: 4px dashed #000;
  border-radius: 0;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  box-shadow: 6px 6px 0 #000;
}
.conv-drop:hover { border-color: #000; background: #fafafa; box-shadow: 8px 8px 0 #000; }
.conv-drop.is-dragging {
  border-color: #000;
  background: #f0f0f0;
  transform: scale(1.01);
  box-shadow: 8px 8px 0 #000;
}
.conv-drop-icon {
  font-size: 2.5rem;
  color: #000;
  font-weight: 800;
  display: block;
  margin-bottom: 0.75rem;
}
.conv-drop-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.35rem; color: #000; text-transform: uppercase; letter-spacing: 0.03em; }
.conv-drop-link { color: #000; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.conv-drop-sub { color: #333; font-size: 0.88rem; margin-bottom: 1rem; }
.conv-drop-sub kbd {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  border: 2px solid #000;
  border-bottom-width: 3px;
  border-radius: 0;
  padding: 0.05rem 0.35rem;
  background: #000;
  color: #fff;
  font-weight: 700;
}
.conv-drop-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* queue */
.conv-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem 0 0.6rem;
  flex-wrap: wrap;
}
.conv-queue-count { font-family: var(--font-mono, monospace); font-size: 0.8rem; color: #000; font-weight: 700; }
.conv-queue-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.conv-queue { display: grid; gap: 0.6rem; }
.conv-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.15s;
  box-shadow: 4px 4px 0 #000;
}
.conv-card:hover { box-shadow: 6px 6px 0 #000; background: #fafafa; }
.conv-card.is-selected { border-color: #000; background: #000; color: #fff; box-shadow: 6px 6px 0 #000; }
.conv-card.is-selected .conv-card-name, .conv-card.is-selected .conv-card-meta, .conv-card.is-selected .conv-card-out { color: #fff; }
.conv-card-thumb {
  width: 64px; height: 64px;
  object-fit: contain;
  border-radius: 0;
  background: #fff;
  border: 2px solid #000;
}
.conv-card-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.conv-card-meta { font-size: 0.8rem; color: #333; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-weight: 600; }
.conv-card-out { display: block; font-size: 0.8rem; color: #000; margin-top: 0.15rem; word-break: break-all; font-weight: 700; }
.conv-card-err { display: block; font-size: 0.8rem; color: #000; margin-top: 0.15rem; font-weight: 700; }
.conv-status {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.conv-status.is-done { color: #fff; border-color: #000; background: #000; }
.conv-status.is-error { color: #fff; border-color: #000; background: #000; }
.conv-status.is-busy { color: #fff; border-color: #000; background: #000; }
.conv-card-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .conv-card { grid-template-columns: 52px minmax(0, 1fr); }
  .conv-card-thumb { width: 52px; height: 52px; }
  .conv-card-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

.conv-empty {
  margin-top: 1rem;
  border: 3px solid #000;
  border-radius: 0;
  padding: 1.25rem 1.25rem;
  background: #fff;
  color: #000;
  font-size: 0.95rem;
  box-shadow: 5px 5px 0 #000;
}
.conv-empty p + p { margin-top: 0.5rem; }
.conv-empty-note { color: #333; font-size: 0.85rem; font-weight: 600; }

/* settings */
.conv-settings { display: grid; gap: 1rem; }
.conv-panel {
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 1rem 1.1rem;
  box-shadow: 5px 5px 0 #000;
}
.conv-panel h3 { font-size: 1rem; margin-bottom: 0.9rem; letter-spacing: 0.02em; color: #000; font-weight: 800; text-transform: uppercase; }
.conv-field { display: block; margin-bottom: 0.95rem; }
.conv-field > span { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; color: #000; }
.conv-field output { font-family: var(--font-mono, monospace); color: #000; font-size: 0.85rem; font-weight: 700; }
.conv-field small { display: block; color: #333; font-size: 0.78rem; margin-top: 0.3rem; line-height: 1.5; font-weight: 600; }
.conv-field select {
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  border-radius: 0;
  padding: 0.55rem 0.7rem;
  box-shadow: 3px 3px 0 #000;
}
.conv-field input[type="range"] { width: 100%; accent-color: #000; cursor: pointer; }
.conv-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.95rem;
  cursor: pointer;
  color: #000;
}
.conv-check input { margin-top: 0.25rem; accent-color: #000; width: 1.1rem; height: 1.1rem; }
.conv-check small { display: block; font-weight: 600; color: #333; font-size: 0.78rem; }

.conv-privacy {
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 1rem 1.1rem;
  box-shadow: 5px 5px 0 #000;
}
.conv-privacy h4 { font-size: 0.9rem; margin-bottom: 0.4rem; color: #000; font-weight: 800; text-transform: uppercase; }
.conv-privacy p { font-size: 0.85rem; color: #333; line-height: 1.6; font-weight: 600; }
.conv-privacy-line { margin-top: 0.6rem; font-family: var(--font-mono, monospace); font-size: 0.78rem !important; color: #000 !important; font-weight: 700; }
.conv-privacy-line strong { color: #000; font-weight: 800; }

/* preview */
.conv-preview {
  margin-top: 1rem;
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 1rem;
  box-shadow: 5px 5px 0 #000;
}
.conv-preview-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.conv-preview-title { font-size: 0.95rem; word-break: break-all; color: #000; font-weight: 800; }
.conv-preview-meta { font-family: var(--font-mono, monospace); font-size: 0.78rem; color: #333; flex: 1; min-width: 180px; font-weight: 600; }
.conv-preview-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.conv-compare {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: 3px solid #000;
  background: #fff;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 5px 5px 0 #000;
}
.conv-compare img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}
.conv-compare-after { position: relative; z-index: 1; }
.conv-compare-before-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  clip-path: inset(0 50% 0 0);
}
.conv-compare-before-wrap img { max-height: 420px; }
.conv-compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 4px;
  background: #000;
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}
.conv-compare-handle span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 0;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.8rem;
  box-shadow: 4px 4px 0 #000;
  border: 2px solid #fff;
}
.conv-compare-handle span::before { content: "⇔"; }
.conv-compare-label {
  position: absolute;
  top: 0.6rem;
  z-index: 4;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #000;
  border: 2px solid #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 0;
  color: #fff;
  font-weight: 800;
  pointer-events: none;
}
.conv-compare-label.is-before { left: 0.6rem; }
.conv-compare-label.is-after { right: 0.6rem; }
.conv-compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  margin: 0;
}

.conv-code { margin-top: 0.85rem; border: 3px solid #000; border-radius: 0; overflow: hidden; box-shadow: 5px 5px 0 #000; }
.conv-code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #000;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: #fff;
}
.conv-code-pre {
  max-height: 260px;
  overflow: auto;
  padding: 0.85rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  line-height: 1.6;
  color: #000;
  background: #fff;
  white-space: pre-wrap;
  word-break: break-all;
}

/* SEO content blocks (shared by tool pages) */
.tool-compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tool-compare th, .tool-compare td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 2px solid #000; vertical-align: top; border: 1px solid #000; }
.tool-compare th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: #000; background: #fff; font-weight: 800; }
.tool-compare td:first-child { color: #000; font-weight: 700; background: #fafafa; }
.tool-compare .yes { color: #000; font-weight: 800; background: #e0e0e0; }
.tool-compare .no { color: #000; font-weight: 700; background: #f0f0f0; }
.tool-faq details {
  border: 3px solid #000;
  border-radius: 0;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
}
.tool-faq summary { cursor: pointer; font-weight: 800; color: #000; text-transform: uppercase; letter-spacing: 0.03em; }
.tool-faq details p { margin-top: 0.6rem; color: #333; font-size: 0.94rem; font-weight: 600; }
.tool-steps { counter-reset: step; display: grid; gap: 0.7rem; }
.tool-steps li {
  counter-increment: step;
  border: 3px solid #000;
  border-radius: 0;
  padding: 0.9rem 1.1rem 0.9rem 3.4rem;
  position: relative;
  background: #fff;
  font-size: 0.95rem;
  color: #000;
  font-weight: 700;
  box-shadow: 4px 4px 0 #000;
}
.tool-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem; top: 0.85rem;
  width: 1.7rem; height: 1.7rem;
  border-radius: 0;
  background: #000;
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 3px 3px 0 #000;
}
.tool-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tool-links a {
  border: 2px solid #000;
  border-radius: 0;
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  color: #000;
  background: #fff;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.15s;
  box-shadow: 3px 3px 0 #000;
}
.tool-links a:hover { border-color: #000; color: #000; background: #f0f0f0; box-shadow: 5px 5px 0 #000; }

/* buttons within converter (thick black override) */
.conv .btn {
  border-radius: 0;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #000;
  border: 2px solid #000;
}
.conv .btn-sm { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
.conv .btn-primary { background: #000; color: #fff; }
.conv .btn-primary:hover { background: #000; color: #fff; box-shadow: 6px 6px 0 #000; transform: translate(2px, 2px); }
.conv .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: 4px 4px 0 #000; }
.conv .btn-ghost { background: #fff; color: #000; border: 2px solid #000; }
.conv .btn-ghost:hover { background: #f0f0f0; box-shadow: 6px 6px 0 #000; transform: translate(2px, 2px); }

/* bulk progress bar */
.conv-progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 3px solid #000;
  background: #fff;
  box-shadow: 5px 5px 0 #000;
}
.conv-progress-bar {
  height: 12px;
  background: #e5e5e5;
  border: 2px solid #000;
  position: relative;
  overflow: hidden;
}
.conv-progress-fill {
  height: 100%;
  background: #000;
  width: 0%;
  transition: width 0.3s ease;
}
.conv-progress-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  color: #000;
  font-weight: 700;
  text-align: center;
}

/* notice */
.conv-notice {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  border: 2px solid #000;
  background: #fff3cd;
  color: #664d00;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 4px 4px 0 #000;
}
