/* =====================================================================
     DESIGN SYSTEM — Image Compressor Pro
     A precision instrument aesthetic: calm neutral surfaces, a single
     measured accent, and monospace used deliberately for every number
     (sizes, dimensions, percentages) to read as an engineering tool
     rather than a marketing page.
     ===================================================================== */

  :root {
    /* Neutral surface scale */
    --bg-body: #08090b;
    --bg-surface: #131418;
    --bg-surface-raised: #1a1c21;
    --bg-surface-hover: #202226;
    --border: #212328;
    --border-strong: #34373d;
    --text-main: #f2f3f5;
    --text-muted: #9a9ea8;
    --text-faint: #63666e;

    /* Accent — measured technical blue */
    --accent: #4c8dff;
    --accent-hover: #3d78e6;
    --accent-active: #6ea1ff;
    --accent-glow: rgba(76, 141, 255, 0.14);
    --accent-glow-strong: rgba(76, 141, 255, 0.28);
    --accent-contrast: #051225;

    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.12);
    --danger: #f5555a;
    --danger-glow: rgba(245, 85, 90, 0.12);

    /* Radius scale */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;

    /* Elevation — layered, not single-blur */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 10px -2px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px -12px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-focus: 0 0 0 3px var(--accent-glow-strong);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', ui-monospace, 'SF Mono', Consolas, monospace;

    --max-width: 1440px;
    --header-h: 68px;
  }

  [data-theme="light"] {
    --bg-body: #f5f6f8;
    --bg-surface: #ffffff;
    --bg-surface-raised: #ffffff;
    --bg-surface-hover: #f0f1f4;
    --border: #e4e6ea;
    --border-strong: #d3d6dc;
    --text-main: #14161a;
    --text-muted: #62666f;
    --text-faint: #94979e;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-active: #3b76f0;
    --accent-glow: rgba(37, 99, 235, 0.08);
    --accent-glow-strong: rgba(37, 99, 235, 0.22);
    --accent-contrast: #ffffff;

    --success: #16a34a;
    --success-glow: rgba(22, 163, 74, 0.08);
    --danger: #dc2626;
    --danger-glow: rgba(220, 38, 38, 0.08);

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 6px 16px -4px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 44px -16px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.06);
    --shadow-focus: 0 0 0 3px var(--accent-glow-strong);
  }

  * { box-sizing: border-box; }
  h1, h2, h3, h4, h5, h6, p { margin: 0; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    margin: 0; background: var(--bg-body); color: var(--text-main);
    font-family: var(--font-sans); line-height: 1.5; font-size: 15px;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    transition: background 0.25s ease, color 0.25s ease; overflow-x: hidden;
    background-image:
      linear-gradient(var(--border) 1px, transparent 1px),
      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: center top;
    background-attachment: fixed;
  }
  [data-theme="light"] body { background-image: none; }
  ::selection { background: var(--accent); color: #fff; }

  a { color: inherit; }

  /* Accessible focus ring everywhere, mouse clicks stay clean */
  :focus { outline: none; }
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
  }
  select:focus-visible, input:focus-visible, button:focus-visible { outline-offset: 1px; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  }

  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 2px solid var(--bg-body); }
  ::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

  /* ---------- Navigation ---------- */
  .navbar {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: var(--bg-surface);
    background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
  }
  .navbar-inner {
    width: 100%; max-width: var(--max-width); margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
  }
  .nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-main); min-width: 0; }
  .nav-brand .logo {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 9px;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; letter-spacing: -0.02em; color: #fff;
    font-family: var(--font-mono);
    box-shadow: 0 2px 8px var(--accent-glow-strong);
  }
  .nav-brand > div { min-width: 0; }
  .nav-brand h1, .nav-brand p { margin: 0; }
  .nav-brand h1 {
    font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .nav-brand p { font-size: 11.5px; color: var(--text-faint); margin-top: 1px; font-family: var(--font-mono); }
  .nav-brand p a { color: inherit; text-decoration: none; }
  .nav-brand p a:hover { color: var(--accent); text-decoration: underline; }

  .nav-links { display: flex; align-items: center; gap: 4px; }
  .nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: 13.5px; font-weight: 500;
    padding: 8px 12px; border-radius: var(--radius-sm); transition: color 0.15s, background 0.15s;
  }
  .nav-links a:hover { color: var(--text-main); background: var(--bg-surface-hover); }
  .nav-links a.active { color: var(--accent); background: var(--accent-glow); }

  .theme-toggle {
    flex-shrink: 0; background: transparent; border: 1px solid var(--border-strong); color: var(--text-muted);
    width: 36px; height: 36px; border-radius: 9px; cursor: pointer; margin-left: 4px;
    display: flex; align-items: center; justify-content: center; transition: all 0.15s;
  }
  .theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
  .theme-toggle svg { width: 17px; height: 17px; }

  /* ---------- Page Views ---------- */
  .app-main { animation: fadeIn 0.35s ease-out; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

  /* ---------- Main App Layout ---------- */
  .app-container { max-width: var(--max-width); margin: 0 auto; padding: var(--space-6) clamp(16px, 4vw, 40px) 60px; }

  /* Dynamic Dropzone */
  .drop-area {
    border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--bg-surface);
    padding: 44px 20px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    margin-bottom: var(--space-6);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  .drop-area:hover { border-color: var(--text-faint); }
  .drop-area.dragover { border-color: var(--accent); background: var(--accent-glow); box-shadow: var(--shadow-focus); }
  .drop-area svg {
    width: 24px; height: 24px; color: var(--accent); margin-bottom: 14px; padding: 12px;
    background: var(--accent-glow); border-radius: 12px; box-sizing: content-box; transition: all 0.2s;
  }
  .drop-area h3 { font-size: 15.5px; font-weight: 600; margin: 0 0 4px; transition: all 0.2s; letter-spacing: -0.01em; }
  .drop-area p { color: var(--text-faint); font-size: 13px; margin: 0; }

  /* Compact state when files exist */
  .drop-area.compact { padding: 14px 20px; flex-direction: row; gap: 14px; border-style: solid; }
  .drop-area.compact svg { width: 15px; height: 15px; margin: 0; padding: 9px; border-radius: 9px; }
  .drop-area.compact h3 { font-size: 13.5px; margin: 0; color: var(--text-muted); font-weight: 500; }
  .drop-area.compact p { display: none; }

  /* Two Column Layout — reflows via named areas so gallery leads on mobile */
  .workspace-grid {
    display: grid; grid-template-columns: 296px 1fr; grid-template-areas: "sidebar gallery";
    gap: var(--space-6); align-items: start;
  }
  .settings-panel { grid-area: sidebar; }
  .workspace-grid > section { grid-area: gallery; min-width: 0; }

  @media (max-width: 960px) {
    .workspace-grid { grid-template-columns: 1fr; grid-template-areas: "gallery" "sidebar"; }
  }

  /* ---------- Settings Sidebar ---------- */
  .settings-panel {
    background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px);
    display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-sm);
  }

  .settings-scroll-area { padding: 6px 22px 20px; overflow-y: auto; flex-grow: 1; }

  .settings-footer {
    padding: 14px 22px; background: var(--bg-surface-raised); border-top: 1px solid var(--border);
    display: none; flex-direction: column; gap: 8px; z-index: 10;
  }
  .settings-footer.active { display: flex; }

  /* Accordion Styles */
  details.accordion { border-bottom: 1px solid var(--border); padding: 16px 0; }
  details.accordion:first-child { padding-top: 18px; }
  details.accordion:last-child { border-bottom: none; padding-bottom: 4px; }

  summary.acc-title {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
    font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; user-select: none;
    transition: color 0.15s;
  }
  summary.acc-title:hover { color: var(--text-main); }
  summary.acc-title::-webkit-details-marker { display: none; }
  summary.acc-title::after {
    content: '+'; font-size: 15px; font-weight: 500; line-height: 1; color: var(--text-faint);
    transition: transform 0.2s, color 0.2s; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  }
  details[open] > summary.acc-title { color: var(--text-main); }
  details[open] summary.acc-title::after { transform: rotate(45deg); color: var(--accent); }

  .acc-content { padding-top: 18px; animation: slideDown 0.18s ease-out; }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

  /* Form Elements */
  .field { margin-bottom: 16px; }
  .field:last-child { margin-bottom: 0; }
  .field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-main); margin-bottom: 7px; }

  select, input[type=text], input[type=number] {
    width: 100%; background: var(--bg-body); border: 1px solid var(--border-strong); color: var(--text-main);
    padding: 9px 11px; border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: 13px;
    transition: border-color 0.15s, box-shadow 0.15s; min-height: 38px;
  }
  select { cursor: pointer; }
  input[type=color] { padding: 0; height: 38px; width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); cursor: pointer; overflow: hidden; }
  input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
  input[type=color]::-webkit-color-swatch { border: none; }

  select:focus, input:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-focus); }

  input[type=range] { width: 100%; accent-color: var(--accent); height: 4px; cursor: pointer; background: var(--border-strong); border-radius: 2px; -webkit-appearance: none; margin: 6px 0; }
  input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; background: var(--accent); border: 2px solid var(--bg-surface); border-radius: 50%; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
  input[type=range]::-moz-range-thumb { width: 15px; height: 15px; background: var(--accent); border: 2px solid var(--bg-surface); border-radius: 50%; cursor: pointer; }

  .flex-row { display: flex; gap: 10px; }
  .flex-row > * { min-width: 0; }
  .range-labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); margin-top: 4px; }
  .range-labels b { color: var(--accent); font-weight: 600; }

  .check-label { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; cursor: pointer; margin-bottom: 8px; color: var(--text-main); }
  .check-label input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }

  .hint-text { font-size: 11px; color: var(--text-faint); margin-top: 6px; line-height: 1.5; }
  .disabled-block { opacity: 0.4; pointer-events: none; filter: grayscale(60%); }

  .btn {
    width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-sans); font-weight: 600; font-size: 13.5px; border: none; border-radius: var(--radius-sm);
    padding: 11px 20px; cursor: pointer; transition: all 0.15s; text-decoration: none; min-height: 40px;
  }
  .btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-primary:active { background: var(--accent); transform: scale(0.98); }
  .btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; }
  .btn-ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text-muted); }
  .btn-ghost:hover { background: var(--bg-surface-hover); border-color: var(--text-faint); color: var(--text-main); }

  /* ---------- Summary Bar & Gallery ---------- */
  .summary-bar {
    display: none; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 18px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: var(--space-6);
    box-shadow: var(--shadow-sm);
  }
  .summary-bar.active { display: flex; }
  .stat-group { display: flex; gap: 30px; flex-wrap: wrap; }
  .stat-box { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; font-weight: 700; letter-spacing: 0.06em; }
  .stat-box b { display: block; font-family: var(--font-mono); color: var(--text-main); font-size: 19px; font-weight: 600; margin-top: 4px; text-transform: none; letter-spacing: -0.01em; }
  .stat-box.highlight b { color: var(--success); }
  .stat-box.increased b { color: var(--danger); }

  .image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
  .empty-state {
    text-align: center; color: var(--text-faint); font-size: 13.5px; margin-top: 60px;
    padding: 40px 20px; border: 1px dashed var(--border); border-radius: var(--radius-lg);
  }

  /* ---------- Image Cards & Slider ---------- */
  .img-card {
    background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    position: relative; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  }
  .img-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }

  .canvas-wrap {
    position: relative; width: 100%; aspect-ratio: 4/3;
    background: #000 url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3hNE4/DFA2wYtYAxGgZGIhBqEFE8wG4UwwMYzYQRjB8xYAQAR08EAhj+Rj0AAAAASUVORK5CYII=');
    overflow: hidden;
  }
  .canvas-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
  .canvas-wrap .layer-after { clip-path: inset(0 50% 0 0); }

  /* Signature detail: viewfinder-style corner brackets, echoing the crop/measure tool */
  .canvas-wrap::before, .canvas-wrap::after,
  .img-card .corner-tl, .img-card .corner-br { content: ''; }
  .canvas-wrap { --bracket: 14px; }
  .canvas-wrap::before {
    position: absolute; top: 8px; left: 8px; width: var(--bracket); height: var(--bracket);
    border-top: 2px solid rgba(255,255,255,0.7); border-left: 2px solid rgba(255,255,255,0.7);
    z-index: 6; opacity: 0; transition: opacity 0.2s; pointer-events: none;
  }
  .canvas-wrap::after {
    position: absolute; bottom: 8px; right: 8px; width: var(--bracket); height: var(--bracket);
    border-bottom: 2px solid rgba(255,255,255,0.7); border-right: 2px solid rgba(255,255,255,0.7);
    z-index: 6; opacity: 0; transition: opacity 0.2s; pointer-events: none;
  }
  .img-card:hover .canvas-wrap::before, .img-card:hover .canvas-wrap::after { opacity: 1; }

  .slider-bar { position: absolute; top: 0; left: 50%; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 4px rgba(0,0,0,0.5); pointer-events: none; z-index: 10; transform: translateX(-50%); }
  .slider-bar::after { content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; background: #fff; color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
  .canvas-wrap input[type=range] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; z-index: 11; cursor: col-resize; margin: 0; }

  .badge {
    position: absolute; top: 10px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 8px;
    border-radius: 5px; background: rgba(0,0,0,0.65); color: #fff; z-index: 5;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-family: var(--font-mono);
  }
  .badge.left { left: 10px; } .badge.right { right: 10px; }

  .card-body { padding: 14px; }
  .card-title { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 10px; color: var(--text-main); }

  .card-status { min-height: 40px; display: flex; flex-direction: column; justify-content: center; }
  .loading-text { font-size: 11.5px; color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); }
  .loading-text::before { content: ''; width: 12px; height: 12px; border: 2px solid var(--accent-glow); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
  @keyframes spin { to { transform: rotate(360deg); } }

  .data-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: 11.5px; margin-bottom: 3px; gap: 8px; }
  .data-row .orig { color: var(--text-faint); text-decoration: line-through; }
  .data-row .new { color: var(--success); font-weight: 700; }
  .data-row .new.larger { color: var(--danger); }
  .meta-text { font-size: 10.5px; color: var(--text-faint); font-family: var(--font-mono); }

  .action-row { margin-top: 12px; display: flex; gap: 8px; }
  .btn-del {
    position: absolute; top: 10px; left: 10px; z-index: 20; width: 26px; height: 26px; border-radius: 50%;
    background: rgba(20,20,22,0.75); color: #fff; border: 1px solid rgba(255,255,255,0.15); cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1;
    transition: all 0.15s; opacity: 0; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  }
  .img-card:hover .btn-del { opacity: 1; }
  .btn-del:hover { background: var(--danger); border-color: var(--danger); }
  @media (hover: none) { .btn-del { opacity: 1; } }

  /* ---------- Content Pages ---------- */
  .content-section { max-width: 760px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 40px) 80px; }
  .content-section h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; margin: 0 0 12px; letter-spacing: -0.02em; color: var(--text-main); }
  .content-section > p:first-of-type { font-size: 16px; color: var(--text-muted); line-height: 1.65; margin-bottom: 8px; }
  .content-section h3 { font-size: 16px; font-weight: 700; margin-top: 36px; margin-bottom: 12px; color: var(--text-main); letter-spacing: -0.01em; }
  .content-section p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
  .content-section ul { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; padding-left: 0; margin: 0; list-style: none; }
  .content-section li {
    margin-bottom: 12px; padding: 14px 16px; background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius); border-left: 2px solid var(--accent);
  }
  .content-section li strong { color: var(--text-main); }

  footer {
    text-align: center; padding: 28px 5%; border-top: 1px solid var(--border);
    font-size: 12px; color: var(--text-faint); margin-top: 40px; font-family: var(--font-mono);
  }
  footer a { color: var(--text-faint); }
  footer a:hover { color: var(--accent); }
  .footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; flex-wrap: wrap; }
  .footer-links a { text-decoration: none; font-weight: 600; }

  @media (max-width: 640px) {
    .hidden-mobile { display: none !important; }
    .navbar-inner { padding: 0 16px; }
    .nav-brand p { display: none; }
    .app-container { padding-top: var(--space-4); }
    .drop-area { padding: 32px 16px; }
    .summary-bar { padding: 16px; }
    .stat-group { gap: 20px; width: 100%; justify-content: space-between; }
    .summary-bar > .btn { width: 100%; }
    .image-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  }

  @media (max-width: 960px) {
    .settings-panel {
      position: relative;
      top: 0;
      max-height: none;
      overflow: visible;
    }
    .settings-scroll-area {
      overflow-y: visible; /* Prevents double scrollbars on mobile */
    }
  }

  /* Tooltip & Info Icon */
  .info-icon-wrap { position: relative; display: inline-flex; align-items: center; margin-left: 6px; cursor: help; color: var(--text-faint); }
  .info-icon-wrap svg { width: 13px; height: 13px; }
  .info-icon-wrap:hover { color: var(--accent); }
  .tooltip {
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(-8px);
    background: var(--bg-surface-raised); border: 1px solid var(--border-strong); color: var(--text-main);
    padding: 8px 12px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 400; width: max-content;
    max-width: 200px; line-height: 1.4; opacity: 0; visibility: hidden; transition: all 0.15s;
    z-index: 50; box-shadow: var(--shadow-lg); pointer-events: none; text-align: left;
  }
  .info-icon-wrap:hover .tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-4px); }
