/* ═══════════════════════════════════════════════════
   JSONTools.tools — Global Stylesheet
   Theme: Light + blue accent (matches hashgenerator.tools)
   ═══════════════════════════════════════════════════ */
/* Fonts (Outfit, JetBrains Mono, Space Mono) are loaded by each HTML page
   via <link rel="preload"> + <link rel="stylesheet"> for fastest paint. */

:root {
  --bg:         #f0f4ff;
  --bg2:        #e8eeff;
  --bg3:        #dde4ff;
  --panel:      #ffffff;
  --panel2:     #f5f7ff;
  --border:     rgba(26,111,223,0.15);
  --border2:    rgba(26,111,223,0.08);
  --accent:     #1a6fdf;
  --accent2:    #1558b0;
  --accent-dim: rgba(26,111,223,0.07);
  --accent-mid: rgba(26,111,223,0.15);
  --accent-glow: 0 0 20px rgba(26,111,223,0.25);
  --cyan:       #0ea5e9;
  --yellow:     #f59e0b;
  --red:        #ef4444;
  --green-ok:   #16a34a;
  --white:      #0f172a;
  --muted:      #475569;
  --muted2:     #94a3b8;
  --text:       #1e293b;
  --mono:       'JetBrains Mono', 'Courier New', monospace;
  --sans:       'Outfit', system-ui, sans-serif;
  --display:    'Space Mono', monospace;
  --radius:     8px;
  --radius-lg:  14px;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { scroll-behavior:smooth }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 1rem;
  line-height: 1.7;
}

/* Bright background gradient (matches hashgenerator) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 5% 0%, rgba(26,111,223,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 95% 100%, rgba(14,165,233,0.05) 0%, transparent 60%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--accent2); }

::selection { background: rgba(26,111,223,0.25); color: var(--text); }

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240,244,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.nav-logo-text { color: var(--accent); font-weight: 700; }
.nav-logo-domain { color: var(--muted); font-size: 0.85rem; margin-left: 2px; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links li { margin: 0; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.85rem; font-weight: 500;
  padding: 6px 12px; border-radius: 6px;
  transition: all 0.2s; white-space: nowrap;
  font-family: var(--mono);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--accent-dim);
  color: var(--accent);
  text-decoration: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.4rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 70px;
  right: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  z-index: 99;
  box-shadow: 0 12px 32px rgba(26,111,223,0.15);
  min-width: 220px;
}
.mobile-menu a {
  color: var(--text);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--mono);
  text-decoration: none;
}
.mobile-menu a:hover {
  background: var(--accent-dim);
  text-decoration: none;
}
.mobile-menu a.active { color: var(--accent); background: var(--accent-dim); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .mobile-menu.open { display: flex; }
  nav { padding: 0 1rem; }
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  background: var(--accent-dim);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  color: var(--white);
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .dim { color: var(--muted2); }
.hero-desc {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   TOOL CONTAINER
   ═══════════════════════════════════════════════════ */
.tool-container {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 880px) {
  .tool-grid { grid-template-columns: 1fr; }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26,111,223,0.04);
}
.panel-header {
  background: var(--panel2);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
}
.panel-header span.label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.panel-header .indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted2);
}
.panel-header.valid .indicator { background: var(--green-ok); box-shadow: 0 0 6px var(--green-ok); }
.panel-header.invalid .indicator { background: var(--red); box-shadow: 0 0 6px var(--red); }

.panel-body { padding: 0; }

/* Input/output textarea + line numbers */
.editor-wrap {
  position: relative;
  display: flex;
  background: var(--panel);
  min-height: 380px;
  max-height: 600px;
}
.line-numbers {
  background: var(--panel2);
  border-right: 1px solid var(--border);
  color: var(--muted2);
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.55;
  padding: 0.9rem 0.6rem 0.9rem 0.85rem;
  text-align: right;
  user-select: none;
  white-space: pre;
  overflow: hidden;
  min-width: 3.5rem;
}
.editor {
  flex: 1;
  background: var(--panel);
  color: var(--text);
  border: none;
  outline: none;
  resize: none;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.55;
  padding: 0.9rem 1rem;
  width: 100%;
  overflow: auto;
  tab-size: 2;
}
.editor::placeholder { color: var(--muted2); }

/* Output viewer */
.output-view {
  padding: 0.9rem 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.55;
  white-space: pre;
  overflow: auto;
  min-height: 380px;
  max-height: 600px;
  color: var(--text);
  background: var(--panel);
}

/* JSON syntax highlighting (tuned for LIGHT bg) */
.tok-key   { color: #0550ae; font-weight: 500; }
.tok-str   { color: #166534; }
.tok-num   { color: #c2410c; }
.tok-bool  { color: #7c2d92; }
.tok-null  { color: var(--muted); }
.tok-punc  { color: var(--muted); }

/* ═══════════════════════════════════════════════════
   ACTION BAR — buttons, format options
   ═══════════════════════════════════════════════════ */
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.8rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  align-items: center;
  box-shadow: 0 1px 3px rgba(26,111,223,0.04);
}
.btn {
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s;
}
.btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #fff;
}
.btn-danger {
  background: transparent;
  color: var(--muted);
}
.btn-danger:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(239,68,68,0.05);
}

.action-bar select,
.action-bar input[type=text] {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.88rem;
  cursor: pointer;
}
.action-bar input[type=text] {
  font-family: var(--mono);
  cursor: text;
}
.action-bar input[type=text]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.action-bar .divider-v {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 0.3rem;
}

.action-bar .spacer { flex: 1; }

/* Status / error message */
.status-message {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--mono);
  display: none;
}
.status-message.show { display: block; }
.status-message.success {
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.3);
  color: #15803d;
}
.status-message.error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  color: #b91c1c;
}
.status-message.info {
  background: var(--accent-dim);
  border: 1px solid var(--border);
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════
   SECTION
   ═══════════════════════════════════════════════════ */
.section {
  max-width: 1100px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-heading {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.02em;
  color: var(--white);
}
.section-heading .accent { color: var(--accent); }
.section-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 720px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* Info cards (features) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.info-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: all 0.2s;
}
.info-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(26,111,223,0.08);
  transform: translateY(-1px);
}
.info-card h3 {
  font-family: var(--display);
  font-size: 1rem;
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
}
.info-card .icon-bullet {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.info-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.6;
}

/* Other-tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.tool-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  opacity: 0;
  transition: opacity 0.2s;
}
.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,111,223,0.12);
  text-decoration: none;
}
.tool-card:hover::before { opacity: 1; }
.tool-card h3 {
  font-family: var(--display);
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--white);
}
.tool-card p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════ */
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.faq-q {
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}
.faq-q::after {
  content: '+';
  color: var(--accent);
  font-size: 1.3rem;
  transition: transform 0.2s;
}
.faq-q.open::after { transform: rotate(45deg); }
.faq-q:hover { background: var(--accent-dim); }
.faq-a {
  padding: 0 1.1rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  display: none;
  line-height: 1.7;
}
.faq-a code {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.88em;
}

/* ═══════════════════════════════════════════════════
   NETWORK STRIP
   ═══════════════════════════════════════════════════ */
.network-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 0;
  font-size: 0.82rem;
}
.network-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted2);
  font-size: 0.72rem;
}
.network-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.1rem;
}
.network-links a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}
.network-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.6rem;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.85rem;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted2);
}
.footer-bottom a {
  color: var(--muted2);
}

/* ═══════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--white);
  color: #fff;
  border: 1px solid var(--white);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--mono);
  box-shadow: 0 8px 24px rgba(15,23,42,0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero { padding: 2rem 1rem 1rem; }
  .tool-container { padding: 0 1rem; }
  .section { padding: 0 1rem; margin: 2.5rem auto; }
  .footer-inner { padding: 0 1rem; }
  .action-bar { padding: 0.6rem; }
  .btn { padding: 0.45rem 0.7rem; font-size: 0.82rem; }
}

/* ═══════════════════════════════════════════════════
   TREE VIEW
   ═══════════════════════════════════════════════════ */
.tree-view {
  padding: 0.9rem 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.55;
  overflow: auto;
  min-height: 380px;
  max-height: 600px;
  color: var(--text);
  background: var(--panel);
}
.tree-view .tv-empty {
  color: var(--muted2);
  font-style: italic;
  padding: 0.5rem 0;
}
.tv-node { position: relative; }
.tv-row {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
  padding: 1px 0;
  cursor: default;
  border-radius: 3px;
}
.tv-row:hover {
  background: var(--accent-dim);
}
.tv-chev {
  display: inline-block;
  width: 12px;
  flex-shrink: 0;
  color: var(--muted2);
  cursor: pointer;
  user-select: none;
  font-size: 0.75rem;
  margin-right: 2px;
  transition: color 0.1s;
}
.tv-chev:hover { color: var(--accent); }
.tv-chev-empty { cursor: default; visibility: hidden; }
.tv-key {
  color: #0550ae;
  font-weight: 500;
  cursor: pointer;
  border-radius: 3px;
  padding: 0 2px;
}
.tv-key:hover {
  background: var(--accent-mid);
  color: var(--accent);
}
.tv-key-idx {
  color: var(--muted2);
  font-weight: 400;
}
.tv-colon { color: var(--muted); margin-right: 4px; }
.tv-val { white-space: pre; }
.tv-str  { color: #166534; }
.tv-num  { color: #c2410c; }
.tv-bool { color: #7c2d92; }
.tv-null { color: var(--muted2); font-style: italic; }
.tv-other { color: var(--text); }
.tv-summary {
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.tv-summary:hover { color: var(--accent); }
.tv-count {
  color: var(--muted2);
  font-size: 0.78rem;
  margin: 0 2px;
}
.tv-children {
  margin-left: 16px;
  border-left: 1px dashed var(--border);
  padding-left: 8px;
}
.tv-collapsed > .tv-children { display: none; }

/* Root node — no extra indent */
.tv-root-node > .tv-row > .tv-chev { margin-right: 4px; }
.tv-root-node > .tv-children { margin-left: 6px; }

/* ─── View toggle (Text / Tree) ─── */
.view-toggle {
  display: inline-flex;
  gap: 0;
  margin-left: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.vt-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 2px 9px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.15s;
}
.vt-btn:not(:last-child) { border-right: 1px solid var(--border); }
.vt-btn:hover { background: var(--accent-dim); color: var(--accent); }
.vt-btn.vt-active {
  background: var(--accent);
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   ERROR LINE HIGHLIGHTING OVERLAY
   ═══════════════════════════════════════════════════
   A transparent div positioned behind the textarea that highlights
   problem lines with a red tint. Both elements share font and padding
   so the highlights align with the actual text.
*/
.input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  min-height: 0;
}
.error-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 0.9rem 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.55;
  color: transparent;
  pointer-events: none;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow: hidden;
  z-index: 0;
  box-sizing: border-box;
  border: none;
  background: transparent;
}
.error-overlay .overlay-line {
  min-height: 1.55em;
  padding-left: 3px;
  margin-left: -3px;
  border-left: 3px solid transparent;
}
.error-overlay .overlay-line.error-line {
  background: rgba(220, 38, 38, 0.13);
  border-left-color: #dc2626;
}
.input-wrap > textarea {
  position: relative;
  z-index: 1;
  background: transparent;
  width: 100%;
}

/* ═══════════════════════════════════════════════════
   STRUCTURED ERROR LIST
   ═══════════════════════════════════════════════════ */
.error-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.error-list-header {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--red);
}
.error-list-item {
  padding: 0.35rem 0.5rem 0.35rem 1.5rem;
  margin-bottom: 0.25rem;
  position: relative;
  border-left: 2px solid var(--red);
  background: rgba(220, 38, 38, 0.05);
  border-radius: 0 4px 4px 0;
  font-size: 0.85rem;
  line-height: 1.45;
}
.error-list-item .ei-num {
  position: absolute;
  left: 0.5rem;
  color: var(--red);
  font-weight: 600;
}
.error-list-item .ei-loc {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-left: 0.4rem;
  cursor: pointer;
  text-decoration: underline dotted;
}
.error-list-item .ei-loc:hover {
  color: var(--accent);
}
