/* ===========================================================
   MYR.SH — estilos compartilhados
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #d4d4d8; --surface: #e7e7ea; --surface-2: #dcdce0;
    --ink: #1a1a1e; --ink-2: #45454c; --ink-3: #6e6e77;
    --line: #1a1a1e; --line-soft: #b0b0b8;
    --mono: 'JetBrains Mono', monospace;
    --foot-h: 200px;
  }
  html, body { min-height: 100%; }
  body {
    background: #c8c8cc; color: var(--ink); font-family: var(--mono); font-size: 14px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-image:
      linear-gradient(#bcbcc1 1px, transparent 1px),
      linear-gradient(90deg, #bcbcc1 1px, transparent 1px);
    background-size: 40px 40px;
    padding: 2.5rem;
    min-height: 100vh;
    display: flex;
  }
  .frame { max-width: 1180px; margin: auto; width: 100%; min-height: calc(100vh - 5rem); border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.18); }

  /* TOPBAR */
  .topbar { border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 1.25rem; background: var(--ink); color: var(--bg); }
  .topbar-left { display: flex; align-items: center; gap: 0.6rem; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
  .dots { display: flex; gap: 5px; }
  .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--bg); display: block; transition: transform 0.18s ease, opacity 0.18s ease; }
  .topbar:hover .dots i { opacity: 0.55; }
  .topbar:hover .dots i:hover { opacity: 1; transform: scale(1.35); }
  .dots i:nth-child(1):hover { background: #ff5f56; }
  .dots i:nth-child(2):hover { background: #ffbd2e; }
  .dots i:nth-child(3):hover { background: #27c93f; }
  .topbar-right { font-size: 11px; letter-spacing: 0.05em; display: flex; align-items: center; gap: 1rem; }
  .topbar-right .path { opacity: 0.7; }
  .lang-toggle { display: flex; border: 1px solid var(--bg); }
  .lang-btn { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; background: transparent; color: var(--bg); border: none; padding: 3px 8px; cursor: pointer; }
  .lang-btn.active { background: var(--bg); color: var(--ink); }

  /* MAIN SPLIT: hero (left) + content (right) */
  .split { flex: 1; display: grid; grid-template-columns: 360px 1fr; min-height: 0; }
  .right { min-height: 0; display: flex; flex-direction: column; }
  .ext-zone { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .apoie-zone { height: var(--foot-h); box-sizing: border-box; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
  .apoie-zone .sec-head { border-bottom: 1px solid var(--line); }
  .apoie-zone .support-grid { flex: 1; }
  .hero { border-right: 1px solid var(--line); padding: 0; display: flex; flex-direction: column; }
  .hero-top { padding: 1.75rem 1.5rem; }
  .hero-about { flex: 1; padding: 1.75rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
  .about-head { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 0.7rem; }
  .about-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; max-width: 30ch; }
  .hero-top h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 0.95; text-transform: uppercase; }
  .hero-top h1 span { color: var(--ink-3); }
  .hero-meta { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: 11px; letter-spacing: 0.04em; }
  .meta-cmd { color: var(--ink); font-weight: 700; margin-bottom: 0.5rem; }
  .meta-row { display: flex; justify-content: space-between; max-width: 220px; color: var(--ink-3); }
  .meta-row .mk { color: var(--ink-2); }
  .meta-row .mv { color: var(--ink); font-weight: 700; }
  .meta-foot { margin-top: 0.5rem; color: var(--ink-3); font-size: 10px; }

  .hero-feedback { margin-top: auto; height: var(--foot-h); padding: 1.25rem 1.5rem; box-sizing: border-box; }
  .fb-head { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 0.7rem; }
  .fb-text { font-size: 12px; color: var(--ink-2); line-height: 1.55; margin-bottom: 1rem; }
  .fb-options { display: flex; flex-direction: column; gap: 0.5rem; }
  .fb-opt { font-size: 12px; font-weight: 500; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem; transition: color 0.13s; }
  .fb-opt:hover { color: var(--ink-3); }
  .fb-opt:hover .fb-mark { background: var(--ink); color: var(--bg); }
  .fb-mark { width: 18px; height: 18px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; flex-shrink: 0; transition: background 0.13s, color 0.13s, transform 0.13s; }
  .fb-opt:hover .fb-mark { transform: translateX(2px); }
  .frame-foot { border-top: 1px solid var(--line); padding: 0.9rem 1.25rem; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); text-align: center; }
  .frame-foot .cursor { display: inline-block; width: 8px; height: 12px; background: var(--ink-3); margin-left: 3px; vertical-align: middle; animation: blink 1.1s steps(2) infinite; }

  /* ===== MODAL DE FEEDBACK ===== */
  .modal-overlay { position: fixed; inset: 0; background: rgba(20,20,24,0.55); display: none; align-items: center; justify-content: center; padding: 2rem; z-index: 50; }
  .modal-overlay.open { display: flex; }
  .modal { width: 100%; max-width: 460px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0,0,0,0.3); }
  .modal-bar { background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 1.1rem; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
  .modal-title { display: inline-flex; align-items: center; gap: 0.6rem; }
  .modal-title-text { line-height: 1; }
  .modal-bar .dots { display: flex; gap: 5px; }
  .modal-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--bg); display: block; }
  .modal-close { background: transparent; border: none; color: var(--bg); font-family: var(--mono); font-size: 14px; cursor: pointer; line-height: 1; padding: 0 2px; }
  .modal-close:hover { opacity: 0.7; }
  .modal-body { padding: 1.5rem 1.25rem; }
  .modal-prompt { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 1.1rem; }
  .modal-types { display: flex; gap: 0; margin-bottom: 1.1rem; }
  .modal-ext { display: flex; gap: 0; margin-bottom: 1rem; }
  .ext-choice { flex: 1; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; margin-right: -1px; transition: all 0.13s; }
  .ext-choice:hover { color: var(--ink); }
  .ext-choice.active { background: var(--ink); color: var(--bg); }
  .mt-btn { flex: 1; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); cursor: pointer; margin-right: -1px; transition: all 0.13s; }
  .mt-btn.active { background: var(--ink); color: var(--bg); }
  .modal label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.4rem; }
  .modal textarea, .modal input[type=text] { width: 100%; font-family: var(--mono); font-size: 12.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 0.7rem 0.8rem; margin-bottom: 1rem; resize: vertical; }
  .modal textarea:focus, .modal input:focus { outline: none; border-color: var(--ink); }
  .modal textarea { min-height: 110px; }
  .hp { position: absolute; left: -9999px; }
  .modal-submit { width: 100%; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 11px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); cursor: pointer; transition: all 0.13s; }
  .modal-submit:hover { background: var(--bg); color: var(--ink); }
  .modal-submit:disabled { opacity: 0.5; cursor: default; }
  .modal-status { font-size: 11px; margin-top: 0.85rem; text-align: center; min-height: 14px; }
  .modal-status.ok { color: #2e7d32; }
  .modal-status.err { color: #c62828; }
  .hero-foot .cursor { display: inline-block; width: 8px; height: 13px; background: var(--ink); margin-left: 2px; vertical-align: middle; animation: blink 1.1s steps(2) infinite; }
  @keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

  .right { display: flex; flex-direction: column; }

  .sec-head { border-bottom: 1px solid var(--line); padding: 0.6rem 1.25rem; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; display: flex; justify-content: space-between; background: var(--surface); }
  .sec-head span { color: var(--ink-3); font-weight: 400; }

  /* EXTENSIONS — stacked rows in the right column */
  .ext-list { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .ext { flex: 1 1 0; min-height: 0; border-bottom: 1px solid var(--line); padding: 1.5rem 1.25rem; transition: background 0.15s; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
  .ext:last-child { border-bottom: none; }
  .ext:hover { background: var(--surface); }
  .ext-id { font-size: 11px; color: var(--ink-3); font-weight: 700; margin-bottom: 0.4rem; letter-spacing: 0.05em; }
  .ext-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
  .ext-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; max-width: 60ch; margin-bottom: 1rem; margin-top: 0; }
  .ext-version { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--ink-3); }
  .ext-content { display: flex; flex-direction: column; }
  .ext-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.6rem; min-width: 150px; }
  .btn { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 10px 20px; border: 1px solid var(--line); cursor: pointer; transition: all 0.13s; text-align: center; }
  .btn-primary { background: var(--ink); color: var(--bg); }
  .btn-primary:hover { background: var(--bg); color: var(--ink); }
  .docs-link { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); text-align: center; }
  .docs-link:hover { color: var(--ink); text-decoration: underline; }

  /* SUPPORT row */
  .support-note { padding: 1rem 1.25rem; font-size: 12px; color: var(--ink-2); border-bottom: 1px dashed var(--line-soft); }
  .support-note b { color: var(--ink); }
  .support-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .support-item { padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 0.9rem; text-decoration: none; color: inherit; transition: background 0.15s; }
  .support-item:first-child { border-right: 1px solid var(--line); }
  .support-item:hover { background: var(--surface); }
  .support-item svg { width: 19px; height: 19px; flex-shrink: 0; }
  .si-name { font-size: 12px; font-weight: 700; letter-spacing: 0.03em; }
  .si-desc { font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }
  .foot { padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; font-size: 11px; margin-top: auto; }
  .foot a { color: var(--ink); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 0.5rem; }
  .foot a:hover { text-decoration: underline; }
  .foot svg { width: 13px; height: 13px; }

  @media (max-width: 820px) {
    .frame { border: none; }
    .split { grid-template-columns: 1fr; }
    .hero { border-right: none; border-bottom: 1px solid var(--line); }
    .support-grid { grid-template-columns: 1fr; }
    .support-item:first-child { border-right: none; border-bottom: 1px solid var(--line); }
    .foot { flex-direction: column; gap: 0.6rem; text-align: center; }
  }

  .doc-scroll { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
  .doc-panel { display: none; flex-direction: column; flex: 1; min-height: 0; animation: docfade 0.25s ease; }
  .doc-panel.active { display: flex; }
  @keyframes docfade { from { opacity: 0; } to { opacity: 1; } }
  /* blocos com altura proporcional para padronizar entre docs */
  .doc-panel .doc-block:nth-child(1) { flex: 0 0 auto; }
  .doc-panel .doc-block:nth-child(2) { flex: 1 1 auto; }
  .doc-panel .doc-block:nth-child(3) { flex: 1 1 auto; }
  .doc-panel .doc-block:nth-child(4) { flex: 0 0 auto; }
  .doc-tab { cursor: pointer; font-family: var(--mono); }
  .doc-block { padding: 1.5rem 1.25rem; border-bottom: 1px solid var(--line); }
  .doc-block:last-child { border-bottom: none; }
  .doc-block-label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 0.9rem; }
  .doc-block p { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 0.7rem; }
  .doc-block p:last-child { margin-bottom: 0; }
  .doc-limit { font-size: 12px; color: var(--ink-2); line-height: 1.6; padding-left: 1.1rem; position: relative; margin-bottom: 0.5rem; }
  .doc-limit:last-child { margin-bottom: 0; }
  .doc-limit::before { content: ">"; position: absolute; left: 0; color: var(--ink-3); font-weight: 700; }
  .doc-clog { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: baseline; }
  .doc-clog .ver { font-size: 11px; font-weight: 700; color: var(--ink); }
  .doc-clog .notes span { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.55; padding-left: 1rem; position: relative; margin-bottom: 0.2rem; }
  .doc-clog .notes span::before { content: "+"; position: absolute; left: 0; color: var(--ink-3); }
  .doc-hero-id { font-size: 11px; color: var(--ink-3); font-weight: 700; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
  .doc-hero-name { font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1; margin-bottom: 0.85rem; }
  .doc-hero-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
  .doc-tabs { display: flex; border-bottom: 1px solid var(--line); }
  .doc-tab { flex: 1; text-align: center; padding: 0.7rem; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--ink-3); border-right: 1px solid var(--line); transition: all 0.13s; }
  .doc-tab:last-child { border-right: none; }
  .doc-tab:hover { background: var(--surface); color: var(--ink); }
  .doc-tab.active { background: var(--ink); color: var(--bg); }
