/* reelax-manual.css — extracted from reelax-manual.html */
/* Bump ?v= in reelax-manual.html after every deploy */

:root {
    --bg: #0e0e0e;
    --surface: #161616;
    --panel: #1c1c1c;
    --border: #2a2a2a;
    --border-light: #222;
    --text: #f0f0f0;
    --muted: #888;
    --subtle: #555;
    --accent: #fff;
    --green: #1D9E75;
    --amber: #BA7517;
    --red: #E24B4A;
    --blue: #4a9eff;
    --tag-bg: #222;
    --tag-text: #aaa;
    --nav-w: 260px;
    --header-h: 60px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
  }

  /* ── HEADER ── */
  .site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: #0e0e0e;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
    z-index: 100;
  }
  .site-header img { height: 22px; }
  .header-divider { width: 1px; height: 20px; background: var(--border); }
  .header-title { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
  .header-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--subtle);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 20px;
  }

  /* ── LAYOUT ── */
  .layout {
    display: flex;
    padding-top: var(--header-h);
    min-height: 100vh;
  }

  /* ── NAV ── */
  .sidebar {
    width: var(--nav-w);
    flex-shrink: 0;
    position: fixed;
    top: var(--header-h);
    bottom: 0;
    left: 0;
    overflow-y: auto;
    padding: 28px 0 40px;
    border-right: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
  .sidebar::-webkit-scrollbar { width: 4px; }
  .sidebar::-webkit-scrollbar-track { background: transparent; }
  .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

  .nav-group-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--subtle);
    padding: 0 24px 8px;
    margin-top: 20px;
  }
  .nav-group-label:first-child { margin-top: 0; }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color .12s, background .12s;
    cursor: pointer;
    border-left: 2px solid transparent;
  }
  .nav-link:hover { color: var(--text); background: #181818; }
  .nav-link.active { color: var(--text); border-left-color: var(--accent); background: #181818; }
  .nav-link svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .7; }
  .nav-link.active svg { opacity: 1; }

  .nav-sub-link {
    display: flex;
    align-items: center;
    padding: 5px 24px 5px 46px;
    font-size: 12px;
    color: var(--subtle);
    text-decoration: none;
    transition: color .12s;
    cursor: pointer;
  }
  .nav-sub-link:hover { color: var(--muted); }

  /* ── MAIN ── */
  .main {
    margin-left: var(--nav-w);
    flex: 1;
    padding: 52px 64px 100px;
    max-width: 900px;
  }

  /* ── SECTION ── */
  .doc-section { margin-bottom: 72px; }
  .doc-section:last-child { margin-bottom: 0; }

  /* ── HERO ── */
  .hero {
    margin-bottom: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
  }
  .hero-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--subtle);
    margin-bottom: 16px;
  }
  .hero h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -.02em;
  }
  .hero p {
    font-size: 15px;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.7;
  }

  /* ── TOOL HEADER ── */
  .tool-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
  }
  .tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .tool-icon svg { width: 22px; height: 22px; color: var(--muted); }
  .tool-meta { flex: 1; }
  .tool-name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
  .tool-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
  .tool-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
  .tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid var(--border);
  }
  .tag.rs { border-color: #1D9E7540; color: var(--green); background: #1D9E7510; }
  .tag.beta { border-color: #BA751740; color: var(--amber); background: #BA751710; }

  /* ── HEADINGS ── */
  h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 20px;
    color: var(--text);
  }
  h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 28px 0 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 11px;
    color: var(--muted);
  }
  h3:first-child { margin-top: 0; }

  p { margin-bottom: 14px; color: var(--muted); line-height: 1.7; }
  p:last-child { margin-bottom: 0; }
  strong { color: var(--text); font-weight: 600; }

  /* ── STEPS ── */
  .steps { counter-reset: step; display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; }
  .step {
    display: flex;
    gap: 16px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    position: relative;
  }
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    bottom: -2px;
    width: 1px;
    height: 2px;
    background: var(--border);
  }
  .step-num {
    counter-increment: step;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
    font-family: 'DM Mono', monospace;
  }
  .step-content { flex: 1; padding-top: 2px; }
  .step-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
  .step-body { font-size: 13px; color: var(--muted); line-height: 1.6; }
  .step-body strong { color: var(--text); }

  /* ── INFO CARDS ── */
  .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
  .info-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 16px 18px;
  }
  .info-card-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--subtle);
    margin-bottom: 6px;
  }
  .info-card-value { font-size: 13px; color: var(--text); line-height: 1.5; }

  /* ── CALLOUT ── */
  .callout {
    display: flex;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
  }
  .callout svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
  .callout-content { flex: 1; }
  .callout.tip { background: #1D9E7510; border: 1px solid #1D9E7530; color: #4ecda0; }
  .callout.tip svg { color: var(--green); }
  .callout.warn { background: #BA751710; border: 1px solid #BA751730; color: #d4961f; }
  .callout.warn svg { color: var(--amber); }
  .callout.info { background: #4a9eff10; border: 1px solid #4a9eff30; color: #7ab8ff; }
  .callout.info svg { color: var(--blue); }
  .callout strong { color: inherit; }

  /* ── FEATURE LIST ── */
  .feature-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
  .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 13px;
  }
  .feature-item svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
  .feature-item-text { color: var(--muted); line-height: 1.5; }
  .feature-item-text strong { color: var(--text); display: block; margin-bottom: 2px; }

  /* ── TABLE ── */
  .data-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 13px; }
  .data-table th {
    text-align: left;
    padding: 8px 14px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--subtle);
    border-bottom: 1px solid var(--border);
  }
  .data-table td {
    padding: 11px 14px;
    color: var(--muted);
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
  }
  .data-table td:first-child { color: var(--text); font-weight: 500; }
  .data-table tr:last-child td { border-bottom: none; }

  /* ── CODE ── */
  code {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 5px;
    color: #c9d1d9;
  }

  /* ── DIVIDER ── */
  .divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

  /* ── TOOL OVERVIEW GRID ── */
  .tools-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 32px;
  }
  .tool-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    text-decoration: none;
    display: block;
  }
  .tool-card:hover { border-color: var(--subtle); background: #181818; }
  .tool-card-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
  .tool-card-desc { font-size: 12px; color: var(--subtle); line-height: 1.5; }
  .tool-card-tags { display: flex; gap: 5px; margin-top: 10px; }

  /* ── RS BADGE ── */
  .rs-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    color: var(--green);
    background: #1D9E7512;
    border: 1px solid #1D9E7530;
    padding: 2px 8px;
    border-radius: 20px;
  }
  .rs-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
  }

  /* ── SYNC STATUS DEMO ── */
  .sync-demo {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .sync-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--muted);
  }
  .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
  .dot.green { background: var(--green); }
  .dot.amber { background: var(--amber); }
  .dot.red { background: var(--red); }

  /* ── PRINT / EXPORT NOTE ── */
  @media print {
    .sidebar { display: none; }
    .main { margin-left: 0; padding: 32px; }
    .site-header { position: relative; }
  }

  /* ── SCROLLBAR ── */
  html { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
