/* ============================================================
   Tool Page Styles
   Shared across all tool pages. Extracted from inline <style>.
   ============================================================ */

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.tool-layout { padding: 0; }

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* --- Editor --- */
.editor-wrapper {
  position: relative;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.editor-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 93, 58, 0.1);
}

.editor-wrapper.readonly-wrapper {
  background: #f7f3ea;
  border-color: #d9cfc0;
}

.editor-area {
  display: block;
  width: 100%;
  min-height: 240px;
  padding: 16px;
  padding-left: 56px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  background: transparent;
  border: 0;
  border-radius: 0;
  resize: vertical;
  outline: none;
  tab-size: 2;
}

.editor-area::placeholder {
  color: var(--text-muted);
}

.editor-area.readonly {
  cursor: default;
}

.line-numbers {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 100%;
  padding: 16px 8px 16px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: right;
  user-select: none;
  pointer-events: none;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: var(--code-bg);
}

.line-numbers.readonly-bg {
  background: #f7f3ea;
}

/* --- Button overrides --- */
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary:active,
.btn-secondary:active,
.btn-ghost:active {
  transform: scale(0.97);
}

.btn-ghost.copied {
  color: var(--success);
}

/* --- Status Bar --- */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  min-height: 24px;
}

.status-message {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.valid { background: var(--success); }
.status-dot.invalid { background: var(--error); }
.status-message.valid { color: var(--success); }
.status-message.invalid { color: var(--error); }
.status-message.idle { color: var(--text-muted); }

.status-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}

/* --- Sidebar Cards --- */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.sidebar-card-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.related-tools-list,
.category-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  padding: 0;
}

.related-tools-list li a,
.category-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.15s;
}

.related-tools-list li a:hover,
.category-list li a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.related-tools-list li a.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.related-tools-list li a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.related-tools-list li a:hover svg,
.related-tools-list li a.active svg {
  color: var(--accent);
}

.category-list li a {
  justify-content: space-between;
}

.category-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-left svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.category-list li a:hover .category-left svg {
  color: var(--accent);
}

.category-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Steps List --- */
.steps-list {
  list-style: none;
  counter-reset: steps;
  padding: 0;
}

.steps-list li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  color: var(--text-secondary);
}

.steps-list li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
}

/* --- Code Block --- */
.code-block-wrapper {
  position: relative;
  margin: 16px 0;
}

.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  overflow-x: auto;
  white-space: pre;
}

.code-block-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.15s;
  cursor: pointer;
}

.code-block-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .separator {
  color: var(--border);
  user-select: none;
}

.breadcrumb .current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Footer (tool page variant) --- */
.footer-brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-languages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.footer-languages a {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all 0.15s;
}

.footer-languages a:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.footer-languages .divider {
  color: var(--border);
  user-select: none;
}

/* --- Password Options (password-generator specific) --- */
.options-panel {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.option-row + .option-row {
  border-top: 1px solid var(--border);
}

.option-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  min-width: 32px;
  text-align: right;
}

.slider-row {
  display: block;
  padding-top: 4px;
  padding-bottom: 14px;
}

.length-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.charset-hint {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .main-content { padding: 0 20px; }
  .toolbar { flex-direction: column; align-items: flex-start; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .toolbar-right { justify-content: flex-end; }
  .status-bar { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pane-toolbar { flex-direction: column; align-items: flex-start; }
  .pane-toolbar-left, .pane-toolbar-right { width: 100%; }
  .pane-toolbar-right { justify-content: flex-end; }
  .status-bar-dual { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 480px) {
  .editor-area { min-height: 180px; font-size: 13px; padding-left: 48px; }
  .line-numbers { width: 36px; font-size: 13px; }
}

/* --- Dropzone Area (image tools) --- */
.dropzone-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  padding: 32px;
  background: var(--code-bg);
  border: 2px dashed var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.dropzone-area:hover,
.dropzone-area.dragover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.dropzone-area svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.dropzone-area p {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
}

.dropzone-hint {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- File List (image tools) --- */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
}

.file-name {
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
  flex: 1;
  min-width: 0;
}

.file-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.compression-rate {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  color: var(--success);
  font-size: 13px;
}

.file-status .btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
}

/* --- EXIF Table (exif-viewer) --- */
.exif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 12px;
}

.exif-table th,
.exif-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.exif-table th {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--code-bg);
}

.exif-table td {
  color: var(--text-secondary);
  word-break: break-all;
}

.exif-table tbody tr:hover {
  background: var(--accent-light);
}

#map-container {
  margin-top: 12px;
}

#map-container iframe {
  border-radius: 8px;
}

/* --- Options Panel (image tools context) --- */
.options-panel + .section-label {
  margin-top: 16px;
}

/* ============================================================
   Pane Card — Editor/Output card style (ascii-to-hex aesthetic)
   Used by formatter-minifier and case-converter tools.
   ============================================================ */

.pane-card {
  background: var(--surface);
  border: 1px solid var(--code-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.pane-card--input { border-left: 4px solid var(--accent); }
.pane-card--output { border-left: 4px solid var(--secondary); }

.pane-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pane-label-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.pane-label-dot--accent { background: var(--accent); }
.pane-label-dot--secondary { background: var(--secondary); }

/* Textarea inside pane-card (replaces CodeMirror-specific rules) */
.pane-editor-wrapper {
  position: relative;
}

.pane-line-numbers {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 100%;
  padding: 12px 8px 12px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: right;
  user-select: none;
  pointer-events: none;
  overflow: hidden;
  border-right: 1px solid var(--code-bg);
  background: transparent;
}
.pane-line-numbers.readonly-bg {
  background: transparent;
}

.pane-card .pane-editor {
  display: block;
  width: 100%;
  min-height: 280px;
  padding: 12px;
  padding-left: 48px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--code-bg);
  border-radius: var(--radius-sm);
  resize: vertical;
  outline: none;
  tab-size: 2;
}
.pane-card .pane-editor:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 93, 58, 0.12);
}
.pane-card .pane-editor[readonly] {
  background: transparent;
  cursor: default;
}

/* --- Pane Toolbar --- */
.pane-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 8px;
  flex-wrap: wrap;
}
.pane-toolbar-left,
.pane-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* --- Status Bar Dual --- */
.status-bar-dual {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.status-meta-dual {
  display: flex;
  gap: 16px;
}
.status-meta-dual span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}

@media (max-width: 600px) {
  .pane-card { padding: 16px; }
  .pane-card .pane-editor { min-height: 200px; font-size: 13px; }
  .pane-toolbar { gap: 6px; }
}

/* ============================================================
   ASCII Table — Terminal Archive aesthetic
   Dark terminal-inspired reference with prominent characters,
   phosphor-glow hover effects, and code-column styling.
   ============================================================ */

/* --- Section Headers (h3 for table sections) --- */
.description-section h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.description-section h3::before {
  content: '$';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.description-section h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Table Container --- */
.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* --- ASCII Table --- */
table.ascii-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  table-layout: fixed;
}

table.ascii-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

table.ascii-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: var(--code-bg);
  border-bottom: 1px solid var(--border);
}

/* Column widths */
table.ascii-table th:nth-child(1),
table.ascii-table td:nth-child(1) { width: 10%; }  /* Dec */

table.ascii-table th:nth-child(2),
table.ascii-table td:nth-child(2) { width: 10%; }  /* Hex */

table.ascii-table th:nth-child(3),
table.ascii-table td:nth-child(3) { width: 10%; }  /* Oct */

table.ascii-table th:nth-child(4),
table.ascii-table td:nth-child(4) { width: 18%; }  /* Bin */

table.ascii-table th:nth-child(5),
table.ascii-table td:nth-child(5) { width: 10%; }  /* Char / Abbr */

table.ascii-table th:nth-child(6),
table.ascii-table td:nth-child(6) { width: 42%; }  /* Description */

/* --- Data Cells --- */
table.ascii-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(232, 224, 212, 0.5);
  color: var(--text-secondary);
  vertical-align: middle;
  transition: background 0.12s, color 0.12s;
}

table.ascii-table tbody tr:last-child td {
  border-bottom: none;
}

table.ascii-table tbody tr:hover td {
  background: var(--accent-light);
  color: var(--text-primary);
}

/* Numeric columns (Dec, Hex, Oct) */
table.ascii-table td:nth-child(1),
table.ascii-table td:nth-child(2),
table.ascii-table td:nth-child(3) {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table.ascii-table th:nth-child(1),
table.ascii-table th:nth-child(2),
table.ascii-table th:nth-child(3) {
  text-align: right;
}

/* Binary column — dimmed */
table.ascii-table td:nth-child(4) {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* Character cell — the hero */
table.ascii-table td:nth-child(5) {
  text-align: center;
}

table.ascii-table td:nth-child(5) code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.15s;
}

table.ascii-table tbody tr:hover td:nth-child(5) code {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(196, 93, 58, 0.25);
}

/* Space character special handling */
table.ascii-table td:nth-child(5) code.space-char {
  color: var(--text-muted);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* Control character abbreviation */
table.ascii-table td:nth-child(5) abbr {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  background: var(--secondary-light);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

table.ascii-table tbody tr:hover td:nth-child(5) abbr {
  background: var(--secondary);
  color: #fff;
}

/* Description column */
table.ascii-table td:nth-child(6) {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
}

table.ascii-table tbody tr:hover td:nth-child(6) {
  color: var(--text-primary);
}

/* --- About ASCII paragraph styling --- */
.description-section > p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  table.ascii-table {
    font-size: 12px;
  }

  table.ascii-table th,
  table.ascii-table td {
    padding: 8px 10px;
  }

  table.ascii-table td:nth-child(5) code {
    min-width: 28px;
    height: 28px;
    font-size: 14px;
  }

  /* Hide binary column on small screens */
  table.ascii-table th:nth-child(4),
  table.ascii-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Hide octal column on very small screens */
  table.ascii-table th:nth-child(3),
  table.ascii-table td:nth-child(3) {
    display: none;
  }

  table.ascii-table th:nth-child(6),
  table.ascii-table td:nth-child(6) {
    font-size: 12px;
  }
}

/* ============================================================
   Shared Converter Components
   Replaces tool-specific prefixes (nc-, roman-, dec-, etc.)
   with unified classes. Customize via CSS custom properties.
   ============================================================ */

/* --- Input Card --- */
.tool-input-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.tool-input-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tool-accent, var(--secondary));
}

/* --- Input Field --- */
.tool-input-field {
  width: 100%;
  font-family: var(--tool-font, 'IBM Plex Mono', monospace);
  font-size: var(--tool-font-size, 32px);
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 0;
  letter-spacing: 0.02em;
  caret-color: var(--tool-accent, var(--secondary));
}

.tool-input-field::placeholder {
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 400;
}

/* --- Label --- */
.tool-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* --- Hint --- */
.tool-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  font-family: 'DM Sans', sans-serif;
}

.tool-hint code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
}

/* --- Output Card --- */
.tool-output-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}

.tool-output-card.has-result {
  border-color: var(--tool-accent, var(--secondary));
}

/* --- Output Label --- */
.tool-output-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Output Value --- */
.tool-output-value {
  font-family: var(--tool-font, 'IBM Plex Mono', monospace);
  font-size: var(--tool-output-font-size, 42px);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
  min-height: 50px;
  word-break: break-all;
  transition: color 0.3s;
}

.tool-output-value.empty {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
}

.tool-output-value.error {
  color: var(--error);
  font-size: 15px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  font-family: 'DM Sans', sans-serif;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .tool-input-field {
    font-size: var(--tool-font-size-mobile, 24px);
  }
  .tool-output-value {
    font-size: var(--tool-output-font-size-mobile, 32px);
  }
  .tool-input-card,
  .tool-output-card {
    padding: 20px;
  }
}
