:root {
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --background-color: #f8fafc;
  --border-color: #e2e8f0;
  --text-color: #1e293b;
  --code-background: #f1f5f9;
  --jsonld-color: #8b5cf6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.header h1 {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
}

.header-workflow {
  background: #eff6ff;
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--secondary-color);
  border-radius: 0 6px 6px 0;
}

.header-workflow strong {
  color: var(--text-color);
}

.input-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.input-section.minimized {
  padding-bottom: 0;
}

.input-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--code-background);
  border-bottom: 1px solid var(--border-color);
  min-height: 36px;
}

.minimize-btn {
  background: transparent;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--secondary-color);
  font-size: 14px;
  line-height: 1;
}

.minimize-btn:hover {
  background: var(--border-color);
  color: var(--primary-color);
}

.minimize-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.input-section.minimized .minimize-icon {
  transform: rotate(180deg);
}

.input-content {
  padding: 1.25rem;
  max-height: 1000px;
  opacity: 1;
  transition: all 0.3s ease;
  overflow: hidden;
}

.input-section.minimized .input-content {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

input[type="text"], input[type="number"], select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

input[type="text"]:focus, input[type="number"]:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
}

.toggle-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--code-background);
  border-radius: 6px;
  border: 2px solid var(--border-color);
}

/* Enhanced Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 34px;
  flex-shrink: 0;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: all 0.3s ease;
  border-radius: 34px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Add state labels to the toggle */
.slider:after {
  position: absolute;
  content: "COMPACT";
  font-size: 9px;
  font-weight: bold;
  color: #666;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

/* Substitute toggle specific labels */
#substituteLinkedFiles + .slider:after {
  content: "DISABLED";
}

#substituteLinkedFiles:checked + .slider:after {
  content: "SUBSTITUTE";
  right: auto;
  left: 6px;
  color: white;
  font-size: 8px;
}

.toggle-switch input:checked + .slider {
  background-color: var(--primary-color);
  box-shadow: inset 0 2px 4px rgba(37, 99, 235, 0.3);
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(46px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .slider:after {
  content: "EXPANDED";
  right: auto;
  left: 8px;
  color: white;
}

.toggle-switch input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.toggle-switch input:active + .slider:before {
  width: 28px;
}

.toggle-switch input:disabled + .slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.toggle-labels {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toggle-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.toggle-description {
  font-size: 0.8rem;
  color: var(--secondary-color);
}



.btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.btn:hover {
  background: #1d4ed8;
}

.btn:disabled {
  background: var(--secondary-color);
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--secondary-color);
}

.btn-secondary:hover {
  background: #475569;
}

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

.btn-success:hover {
  background: #059669;
}

.btn-info {
  background: #0ea5e9;
}

.btn-info:hover {
  background: #0284c7;
}

.btn-primary {
  background: var(--primary-color);
}

.btn-primary:hover {
  background: #1d4ed8;
}

.loading {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--secondary-color);
}

.loading-text {
  margin-top: 1rem;
}

.progress-info {
  margin-top: 1rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-percentage {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}

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

.result-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.result-header {
  background: var(--code-background);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-color);
  transition: opacity 0.3s;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.result-stats {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-family: monospace;
}

.result-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.field-toggles {
  width: 100%;
}

/* Collapsible field sections */
.field-section-wrapper {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.field-section-header.collapsible-header {
  background: var(--code-background);
  border-bottom: 1px solid var(--border-color);
  margin: 0;
  padding: 0;
}

.section-toggle-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  text-align: left;
}

.section-toggle-btn:hover {
  background: rgba(37, 99, 235, 0.05);
}

.section-toggle-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

.section-toggle-icon {
  color: var(--secondary-color);
  font-size: 0.8em;
  transition: transform 0.2s ease;
  width: 12px;
  display: inline-block;
  text-align: center;
}

.section-toggle-btn[aria-expanded="true"] .section-toggle-icon {
  transform: rotate(90deg);
}

.section-title {
  font-weight: bold;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
}

.section-field-count {
  color: var(--secondary-color);
  font-size: 0.8em;
  opacity: 0.7;
}

.field-section-content {
  overflow: hidden;
  transition: all 0.3s ease;
  max-height: 1000px;
  opacity: 1;
}

.field-section-content.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.field-section-content .field-section {
  padding: 1rem;
}

.field-section-header {
  font-weight: bold;
  margin: 0.5rem 0;
  color: var(--secondary-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field-section {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.field-toggle {
  position: relative;
  padding: 0.4rem 0.7rem;
  background: var(--border-color);
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0.2rem;
}

.field-toggle.jsonld-field {
  background: #e0e7ff;
  border-left: 3px solid var(--jsonld-color);
  color: var(--jsonld-color);
  font-weight: 600;
}

.field-toggle.jsonld-field:hover {
  background: var(--jsonld-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.linked-property a.json-key-link{
  color: #f59e0b !important;
}

/* CRITICAL: Link field keys - Orange text MUST override everything */
.json-key.linked-property,
.json-key.link-field,
.json-key[data-is-link="true"],
.json-key.is-link,
.json-key.reference-field,
.json-key[class*="link"],
.json-key[class*="reference"],
.json-key[class*="related"] {
  color: #f59e0b !important;
  font-weight: 700 !important;
  background-color: transparent !important;
  border-left: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  position: static !important;
}

.json-key.linked-property:hover,
.json-key.link-field:hover,
.json-key[data-is-link="true"]:hover,
.json-key.is-link:hover,
.json-key.reference-field:hover,
.json-key[class*="link"]:hover,
.json-key[class*="reference"]:hover,
.json-key[class*="related"]:hover {
  color: #d97706 !important;
  background-color: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

/* CRITICAL: URL values - Pink/Red text MUST override everything */
.json-url,
.json-reference,
.json-link,
.expandable-text,
.json-viewer .json-url,
.json-renderer .json-url,
a[href].json-url,
span.json-url {
  color: #e91e63 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  background-color: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
}

.json-url:hover,
.json-reference:hover,
.json-link:hover,
.expandable-text:hover {
  color: #c2185b !important;
  text-decoration: underline !important;
  background-color: transparent !important;
}

/* Field toggle buttons for linked fields - Keep orange boxes for buttons */
.field-toggle.linked-field {
  background: #fef3c7 !important;
  border-left: 3px solid #f59e0b !important;
  color: #92400e !important;
  font-weight: 600 !important;
  position: relative;
  padding-right: 2rem;
}

.field-toggle.linked-field:hover {
  background: #f59e0b !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3) !important;
}

.field-toggle.linked-field .expand-icon {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.field-toggle.linked-field .expand-icon.expanded {
  transform: translateY(-50%) rotate(90deg);
}

.field-toggle.content-field {
  background: var(--border-color);
  color: var(--text-color);
}

.field-toggle.content-field:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(100, 116, 139, 0.3);
}

.field-toggle.hidden {
  background: var(--error-color);
  color: white;
  position: relative;
}

.field-toggle.hidden::before {
  content: '👁️‍🗨️ ';
  opacity: 0.8;
}

.field-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.json-container {
  max-height: 600px;
  overflow: auto;
  padding: 2rem;
}

.json-viewer {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}

.json-key {
  /* color: #8b5cf6; */
  color:var(--primary-color);
  font-weight: 600;
}

/* Force orange highlighting for ALL link indicators */
.json-key.linked-property::before,
.json-key.link-field::before,
.json-key[data-is-link="true"]::before,
.json-key.is-link::before,
.json-key.reference-field::before {
  content: '🔗 ' !important;
  color: #f59e0b !important;
  font-size: 0.9em !important;
  opacity: 0.8 !important;
}

.json-string {
  color: var(--success-color);
}

/* Link URLs and references - Pink/Red styling */
.json-url,
.json-reference,
.json-link,
.expandable-text {
  color: #e91e63 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  background-color: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.json-url:hover,
.json-reference:hover,
.json-link:hover,
.expandable-text:hover {
  color: #c2185b !important;
  text-decoration: underline !important;
  background-color: transparent !important;
}

.json-object-inline {
  color: var(--secondary-color);
  font-style: italic;
}

.json-key-link {
  color: var(--jsonld-color);
  text-decoration: none;
  cursor: pointer;
}

.json-key-link:hover {
  text-decoration: underline;
}

.json-number {
  /* color: #f59e0b; */
  /* color: var(--primary-color); */
  color: var(--jsonld-color);
}

.json-boolean {
  color: var(--error-color);
}

.json-null {
  color: var(--secondary-color);
}

.json-object, .json-array {
  border-left: 2px solid var(--border-color);
  padding-left: 1rem;
  margin-left: 1rem;
}

/* Inline array styling */
.json-array-inline {
  display: inline;
}

.json-array-inline .json-string,
.json-array-inline .json-number,
.json-array-inline .json-boolean,
.json-array-inline .json-null {
  margin: 0 2px;
}

.json-toggle {
  cursor: pointer;
  user-select: none;
  color: var(--secondary-color);
  font-weight: bold;
}

.json-toggle:hover {
  color: var(--primary-color);
}

/* JSON-LD toggle specifically for linked fields */
.json-toggle.linked-field {
  color: #f59e0b !important;
  font-weight: bold !important;
}

.json-toggle.linked-field::after {
  content: ' 🔗' !important;
  font-size: 0.8em !important;
  opacity: 0.7 !important;
  color: #f59e0b !important;
}

/* Expandable inline document links - Pink/Red theme */
.expandable-id-link {
  margin: 0.5rem 0;
  border-left: 3px solid #e91e63;
  padding-left: 0.5rem;
  background: rgba(233, 30, 99, 0.05);
  border-radius: 0 4px 4px 0;
}

.expandable-header {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.expandable-toggle {
  cursor: pointer;
  user-select: none;
  color: #e91e63 !important;
  font-weight: bold;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.expandable-toggle:hover {
  color: #c2185b !important;
}

.external-link-icon {
  color: #e91e63 !important;
  text-decoration: none;
  font-size: 0.8em;
  margin-left: 5px;
  transition: color 0.2s ease;
}

.external-link-icon:hover {
  color: #c2185b !important;
  text-decoration: none;
}

.expandable-content {
  margin-left: 20px;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.expandable-content .json-viewer {
  font-size: 0.85rem;
}

.error-message {
  background: #fee2e2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}

.prefix-examples {
  background: var(--code-background);
  /* position: relative; */
  /* padding: 1rem; */
  left:1em!important;
  border-radius: 6px;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.prefix-examples code {
  background: white;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: monospace;
}

.button-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  align-items: center;
  justify-content: flex-start;
}

.inline-checkbox {
  margin-left: auto;
  white-space: nowrap;
  padding: 0.75rem 1rem;
  background: var(--code-background);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.inline-checkbox label {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-color);
}

.options-section {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
}

.options-section.view-mode-section {
  border: none;
  padding: 0;
  margin-top: 0.5rem;
}

.workflow-note {
  background: #eff6ff;
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.workflow-note strong {
  color: var(--text-color);
}

.result-footer {
  background: var(--code-background);
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Override any other color schemes for link keys - Orange text only */
.json-key[class*="link"],
.json-key[class*="reference"],
.json-key[class*="related"] {
  color: #f59e0b !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Field toggle buttons still get orange boxes */
.field-toggle[class*="link"],
.field-toggle[class*="reference"] {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  border-left: 3px solid #f59e0b !important;
}

/* Additional overrides to ensure URL styling is pink/red */
.json-viewer .json-url,
.json-renderer .json-url,
a[href].json-url,
span.json-url,
.json-reference,
.json-link {
  color: #e91e63 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Additional overrides to ensure link key styling is orange text only */
.json-viewer .json-key.linked-property,
.json-renderer .json-key.linked-property,
.json-viewer .json-key.link-field,
.json-renderer .json-key.link-field {
  color: #f59e0b !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Data attributes for link keys - Orange text only */
[data-is-linked="true"],
[data-linked="true"],
[data-reference="true"] {
  color: #f59e0b !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Special case: If these are URLs, make them pink/red instead */
[data-is-url="true"],
[data-url="true"] {
  color: #e91e63 !important;
}

/* Enhanced substituted content boxes - bright green highlighting like copy 10 */
.json-substituted-link-container {
  border-left: 4px solid #10b981 !important;
  padding-left: 12px !important;
  background-color: #f0fdf4 !important;
  border-radius: 6px !important;
  margin: 8px 0 !important;
  padding: 12px !important;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1) !important;
  position: relative;
}

.json-substituted-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-bottom: 8px !important;
  transition: opacity 0.2s ease;
}

.json-substituted-header:hover {
  opacity: 0.8;
}

.json-substituted-content {
  border-top: 1px solid #d1fae5 !important;
  padding-top: 8px !important;
  margin-top: 8px !important;
  max-height: 400px !important;
  overflow-y: auto;
  box-shadow: none;
  font-size: 0.95em;
}

/* Unobtrusive broken link styling - minimal and inline like copy 10 */
.json-broken-link-container {
  margin: 4px 0 !important;
  padding: 8px !important;
  border-radius: 4px !important;
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  display: inline-block;
}

.json-error-details {
  font-family: monospace !important;
  font-size: 0.8em !important;
  color: #991b1b !important;
  margin-top: 4px !important;
  padding: 4px 8px !important;
  background-color: #fee2e2 !important;
  border-radius: 3px !important;
}

/* Animation for collapsible content */
.json-substituted-content,
.json-broken-content {
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Success and error indicators */
.json-success-indicator {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: #059669 !important;
  font-size: 1em;
}

.json-error-indicator {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: #dc2626 !important;
  font-size: 1em;
}

/* Focus and accessibility improvements */
.section-toggle-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
  background: rgba(37, 99, 235, 0.1);
}

.field-toggle:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .result-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .result-actions {
    width: 100%;
  }
  
  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .result-footer {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .field-section-content .field-section {
    padding: 0.75rem;
  }
  
  .section-toggle-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .field-toggle {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
    margin: 0.15rem;
  }
  
  .field-toggle.linked-field {
    padding-right: 1.8rem;
  }
  
  /* Mobile adaptations for substituted content boxes */
  .json-substituted-link-container {
    margin: 6px 0 !important;
    padding: 10px !important;
  }
  
  .json-substituted-header {
    margin-bottom: 6px !important;
  }
  
  .json-substituted-content {
    padding-top: 6px !important;
    margin-top: 6px !important;
    font-size: 0.9em !important;
  }
  
  /* Mobile broken link styling */
  .json-broken-link-container {
    margin: 3px 0 !important;
    padding: 6px !important;
    font-size: 0.85em !important;
  }
  
  .json-error-details {
    padding: 3px 6px !important;
    margin-top: 3px !important;
    font-size: 0.75em !important;
  }
}
