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

    :root {
      --bg: #ffffff;
      --bg2: #f7f7f5;
      --bg3: #efefeb;
      --border: #e2ddd8;
      --border2: #c5c0b8;
      --text: #111111;
      --muted: #666660;
      --faint: #b0ada6;
      --c-mkt: #c44a00;
      --c-des: #4c30b8;
      --c-dev: #0a6e52;
      --c-pes: #9e2050;
      --c-neg: #1050a0;
      --c-ldr: #7a4e00;
      --c-edu: #286028;
      --c-fin: #b03010;
      --c-rel: #6a2080;
      --c-sau: #106868;
    }

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

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Poppins', sans-serif;
      font-weight: 400;
      min-height: 100vh;
      overflow-x: hidden
    }

    .hero {
      padding: 72px 40px 20px;
      max-width: 1340px;
      margin: 0 auto
    }

    .hero-eyebrow {
      font-family: 'Montserrat', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.2em;
      color: var(--faint);
      text-transform: uppercase;
      margin-bottom: 18px
    }

    .hero h1 {
      font-family: 'Montserrat', sans-serif;
      font-size: clamp(34px, 5vw, 62px);
      font-weight: 800;
      line-height: 1.07;
      margin-bottom: 16px;
      color: var(--text);
      letter-spacing: -0.03em
    }

    .hero h1 span {
      color: var(--faint)
    }

    .hero-desc {
      font-size: 15px;
      color: var(--muted);
      max-width: 480px;
      line-height: 1.75;
      margin-bottom: 32px;
      font-weight: 300
    }

    .hero-stats {
      display: flex;
      gap: 36px;
      flex-wrap: wrap;
      padding-bottom: 40px;
      border-bottom: 1px solid var(--border)
    }

    .stat {
      display: flex;
      flex-direction: column;
      gap: 2px
    }

    .stat-num {
      font-family: 'Montserrat', sans-serif;
      font-size: 28px;
      font-weight: 800;
      color: var(--text)
    }

    .stat-label {
      font-size: 10px;
      color: var(--faint);
      font-weight: 600;
      letter-spacing: 0.05em;
      text-transform: uppercase
    }

    .search-wrap {
      max-width: 1340px;
      margin: 0 auto;
      padding: 28px 40px 20px
    }

    .search-inner {
      position: relative
    }

    .search-input {
      width: 100%;
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 13px 18px 13px 44px;
      font-family: 'Poppins', sans-serif;
      font-size: 14px;
      color: var(--text);
      outline: none;
      transition: border-color 0.2s;
    }

    .search-input::placeholder {
      color: var(--faint)
    }

    .search-input:focus {
      border-color: var(--border2)
    }

    .search-icon {
      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--faint);
      font-size: 15px;
      pointer-events: none;
      line-height: 1
    }

    .tabs {
      display: flex;
      gap: 5px;
      width: max-content
    }

    .tab {
      padding: 7px 15px;
      border-radius: 7px;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      border: 1px solid var(--border);
      color: var(--muted);
      background: transparent;
      font-family: 'Montserrat', sans-serif;
      transition: all 0.15s;
      white-space: nowrap;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }

    .tab:hover {
      border-color: var(--border2);
      color: var(--text)
    }

    .tab.active {
      color: #fff;
      border-color: transparent
    }

    .tab[data-area="all"].active {
      background: #111
    }

    .tab[data-area="mkt"].active {
      background: var(--c-mkt)
    }

    .tab[data-area="des"].active {
      background: var(--c-des)
    }

    .tab[data-area="dev"].active {
      background: var(--c-dev)
    }

    .tab[data-area="pes"].active {
      background: var(--c-pes)
    }

    .tab[data-area="neg"].active {
      background: var(--c-neg)
    }

    .tab[data-area="ldr"].active {
      background: var(--c-ldr)
    }

    .tab[data-area="edu"].active {
      background: var(--c-edu)
    }

    .tab[data-area="fin"].active {
      background: var(--c-fin)
    }

    .tab[data-area="rel"].active {
      background: var(--c-rel)
    }

    .tab[data-area="sau"].active {
      background: var(--c-sau)
    }

    .area-header {
      padding-bottom: 0
    }

    .area-title-row {
      display: flex;
      align-items: baseline;
      gap: 10px;
      margin-bottom: 4px
    }

    .area-title {
      font-family: 'Montserrat', sans-serif;
      font-size: 22px;
      font-weight: 800;
      color: var(--text)
    }

    .area-count {
      font-size: 11px;
      color: var(--faint);
      font-weight: 600
    }

    .area-tagline {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.6;
      font-weight: 300
    }

    .no-results {
      display: none;
      text-align: center;
      padding: 60px 20px;
      color: var(--faint);
      font-size: 14px;
      grid-column: 1/-1;
      font-weight: 300
    }

    .card {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 17px 17px 14px;
      cursor: pointer;
      transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .card-hint {
      font-size: 10px;
      font-weight: 700;
      color: var(--faint);
      letter-spacing: 0.06em;
      text-transform: uppercase;
      font-family: 'Montserrat', sans-serif
    }

    .card:hover {
      border-color: var(--border2);
      box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07);
      transform: translateY(-2px)
    }

    .card-top {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px
    }

    .card-top .card-num,
    .card-top .card-tag {
      display: block;
      width: 100%;
    }

    .card-num {
      font-family: 'Montserrat', sans-serif;
      font-size: 10px;
      font-weight: 700;
      color: var(--faint);
      letter-spacing: 0.1em
    }

    .card-tag {
      font-size: 10px;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 4px;
      font-family: 'Montserrat', sans-serif;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      display: inline-block;
      margin-top: 12px;
    }

    .card-title {
      font-family: 'Montserrat', sans-serif;
      font-size: 14px;
      font-weight: 800;
      color: var(--text);
      line-height: 1.3
    }

    .card-hook {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.65;
      font-weight: 300
    }

    .card-refline {
      font-size: 10px;
      color: var(--faint);
      font-weight: 600;
      font-family: 'Montserrat', sans-serif
    }

    .tag-mkt {
      background: #feeee4;
      color: var(--c-mkt)
    }

    .tag-des {
      background: #eeebfb;
      color: var(--c-des)
    }

    .tag-dev {
      background: #e4f4ee;
      color: var(--c-dev)
    }

    .tag-pes {
      background: #fce6ee;
      color: var(--c-pes)
    }

    .tag-neg {
      background: #e4eefb;
      color: var(--c-neg)
    }

    .tag-ldr {
      background: #f9eedd;
      color: var(--c-ldr)
    }

    .tag-edu {
      background: #e6f2e6;
      color: var(--c-edu)
    }

    .tag-fin {
      background: #fce8e4;
      color: var(--c-fin)
    }

    .tag-rel {
      background: #f4e6fb;
      color: var(--c-rel)
    }

    .tag-sau {
      background: #e4f4f4;
      color: var(--c-sau)
    }

    /* MODAL */
    .overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.42);
      z-index: 9999;
      align-items: flex-end;
      justify-content: center;
      padding: 0
    }

    .overlay.open {
      display: flex
    }

    @media(min-width:601px) {
      .overlay {
        align-items: center;
        padding: 20px
      }
    }

    .modal {
      background: #fff;
      border-radius: 16px 16px 0 0;
      padding: 0;
      width: 100%;
      max-width: 580px;
      max-height: 78vh;
      overflow-y: auto;
      box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.14);
    }

    @media(min-width:601px) {
      .modal {
        border-radius: 16px;
        max-height: 74vh
      }
    }

    .modal-handle {
      width: 40px;
      height: 4px;
      background: var(--border2);
      border-radius: 2px;
      margin: 12px auto 0
    }

    .modal-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 18px 0
    }

    .modal-nav-btn {
      background: none;
      border: 1px solid var(--border);
      border-radius: 7px;
      padding: 5px 12px;
      font-family: 'Montserrat', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.15s
    }

    .modal-nav-btn:hover {
      background: var(--bg2);
      border-color: var(--border2);
      color: var(--text)
    }

    .modal-nav-btn:disabled {
      opacity: 0.3;
      cursor: default;
      pointer-events: none
    }

    .modal-nav-pos {
      font-family: 'Montserrat', sans-serif;
      font-size: 10px;
      font-weight: 700;
      color: var(--faint);
      letter-spacing: 0.06em
    }

    .modal-head {
      padding: 20px 22px 16px;
      border-bottom: 1px solid var(--border)
    }

    .modal-close {
      float: right;
      background: var(--bg2);
      border: 1px solid var(--border);
      width: 28px;
      height: 28px;
      border-radius: 6px;
      font-size: 14px;
      cursor: pointer;
      color: var(--muted);
      line-height: 26px;
      text-align: center;
      margin-top: -2px
    }

    .modal-area-badge {
      display: inline-block;
      font-size: 10px;
      font-weight: 700;
      padding: 3px 9px;
      border-radius: 4px;
      margin-bottom: 10px;
      font-family: 'Montserrat', sans-serif;
      letter-spacing: 0.04em;
      text-transform: uppercase
    }

    .modal-title {
      font-family: 'Montserrat', sans-serif;
      font-size: 19px;
      font-weight: 800;
      color: var(--text);
      line-height: 1.25;
      margin-bottom: 7px
    }

    .modal-hook {
      font-size: 13px;
      color: var(--muted);
      font-weight: 300;
      line-height: 1.7
    }

    .modal-body {
      padding: 18px 22px 22px
    }

    .ms {
      margin-bottom: 18px
    }

    .ms-label {
      font-family: 'Montserrat', sans-serif;
      font-size: 9px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: var(--faint);
      margin-bottom: 7px
    }

    .ms p {
      font-size: 13px;
      color: var(--text);
      line-height: 1.8;
      font-weight: 300
    }

    .ref-box {
      background: var(--bg2);
      border-left: 3px solid var(--border2);
      border-radius: 0 8px 8px 0;
      padding: 10px 13px;
      font-size: 12px;
      color: var(--muted);
      line-height: 1.65;
      font-style: italic
    }

    .caption-box {
      background: var(--bg2);
      border-radius: 8px;
      padding: 13px 14px;
      font-size: 12px;
      color: var(--text);
      line-height: 1.9;
      white-space: pre-wrap;
      word-break: break-word;
      font-family: 'Poppins', sans-serif;
      font-weight: 300;
      max-height: 180px;
      overflow-y: auto
    }

    .cta-box {
      background: var(--text);
      border-radius: 10px;
      padding: 14px 16px;
      font-size: 13px;
      color: #fff;
      line-height: 1.65;
      font-weight: 300
    }

    .cta-box strong {
      font-weight: 600
    }

    .copy-btn {
      display: inline-block;
      margin-top: 8px;
      padding: 8px 16px;
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 7px;
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      cursor: pointer;
      font-family: 'Montserrat', sans-serif;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      transition: all 0.15s
    }

    .copy-btn:hover {
      background: var(--bg3);
      border-color: var(--border2);
      color: var(--text)
    }

    .copy-btn.done {
      background: #e6f2e6;
      border-color: #a8d4a8;
      color: var(--c-edu)
    }

    .no-results {
      display: none;
      text-align: center;
      padding: 60px 20px;
      color: var(--faint);
      font-size: 14px;
      grid-column: 1/-1;
      font-weight: 300
    }

    .divider {
      border: none;
      border-top: 1px solid var(--border);
      max-width: 1340px;
      margin: 0 auto
    }

    .footer {
      max-width: 1340px;
      margin: 0 auto;
      padding: 22px 40px;
      font-size: 11px;
      color: var(--faint);
      font-weight: 500
    }

    @media(max-width:600px) {

      .hero,
      .search-wrap,
      .tabs-wrap,
      .area-header,
      .grid-wrap {
        padding-left: 16px;
        padding-right: 16px
      }

      .hero {
        padding-top: 40px
      }

      .grid {
        grid-template-columns: 1fr
      }
    }

    .fade-in {
      animation: fi 0.2s ease
    }

    @keyframes fi {
      from {
        opacity: 0;
        transform: translateY(4px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    /* LAYOUT COM SIDEBAR */
    .main-layout {
      display: flex;
      gap: 28px;
      max-width: 1340px;
      margin: 0 auto;
      padding: 0 32px 80px;
      align-items: flex-start
    }

    .main-content {
      flex: 1;
      min-width: 0
    }

    .grid-wrap {
      padding: 0 0 40px
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px
    }

    /* SIDEBAR */
    .sidebar {
      display: none
    }

    .sidebar-block {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px 18px;
      margin-bottom: 12px
    }

    .sidebar-title {
      font-family: 'Montserrat', sans-serif;
      font-size: 9px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: var(--faint);
      margin-bottom: 12px
    }

    .kw-list {
      display: flex;
      flex-wrap: wrap;
      gap: 5px
    }

    .kw-tag {
      font-size: 10px;
      font-weight: 600;
      padding: 3px 8px;
      border-radius: 4px;
      background: var(--bg3);
      color: var(--muted);
      font-family: 'Montserrat', sans-serif;
      letter-spacing: 0.02em;
      cursor: pointer;
      border: 1px solid var(--border);
      transition: all 0.15s
    }

    .kw-tag:hover {
      background: var(--border);
      color: var(--text)
    }

    .author-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 5px
    }

    .author-list li {
      font-size: 12px;
      color: var(--text);
      font-weight: 400;
      line-height: 1.4;
      padding-bottom: 5px;
      border-bottom: 1px solid var(--border)
    }

    .author-list li:last-child {
      border-bottom: none;
      padding-bottom: 0
    }

    .author-name {
      font-weight: 600;
      display: block;
      font-size: 11px;
      color: var(--text);
      font-family: 'Montserrat', sans-serif
    }

    .author-works {
      font-size: 11px;
      color: var(--muted);
      font-style: italic;
      line-height: 1.4
    }

    .ref-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 6px
    }

    .ref-list li {
      font-size: 11px;
      color: var(--muted);
      line-height: 1.5;
      padding-bottom: 6px;
      border-bottom: 1px solid var(--border);
      font-style: italic
    }

    .ref-list li:last-child {
      border-bottom: none;
      padding-bottom: 0
    }

    .ref-list li strong {
      display: block;
      font-style: normal;
      font-size: 10px;
      font-weight: 700;
      color: var(--text);
      font-family: 'Montserrat', sans-serif;
      margin-bottom: 1px
    }

    .sidebar-count-badge {
      display: inline-block;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 4px;
      font-size: 9px;
      font-weight: 700;
      color: var(--faint);
      padding: 1px 6px;
      margin-left: 4px;
      font-family: 'Montserrat', sans-serif;
      letter-spacing: 0.05em;
      vertical-align: middle
    }

    /* TABS CARROSSEL */
    .tabs-outer {
      max-width: 1340px;
      margin: 0 auto;
      padding: 4px 32px 24px;
      position: relative;
      display: flex;
      align-items: center;
      gap: 8px
    }

    .tabs-scroll {
      flex: 1;
      overflow-x: auto;
      scrollbar-width: none;
      position: relative
    }

    .tabs-scroll::-webkit-scrollbar {
      display: none
    }

    .tabs {
      display: flex;
      gap: 5px;
      width: max-content
    }

    .tab-arrow {
      width: 30px;
      height: 30px;
      border-radius: 7px;
      border: 1px solid var(--border);
      background: var(--bg2);
      color: var(--muted);
      font-size: 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.15s;
      user-select: none;
      font-weight: 700;
    }

    .tab-arrow:hover {
      background: var(--bg3);
      border-color: var(--border2);
      color: var(--text)
    }

    /* CARD COPY BTN */
    .card-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 4px;
      padding-top: 8px;
      border-top: 1px solid var(--border)
    }

    .card-actions-btns {
      display: flex;
      align-items: center;
      gap: 5px;
      flex-wrap: wrap
    }

    .card-hint {
      font-size: 10px;
      font-weight: 700;
      color: var(--faint);
      letter-spacing: 0.06em;
      text-transform: uppercase;
      font-family: 'Montserrat', sans-serif
    }

    .card-copy {
      background: none;
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 3px 8px;
      font-size: 9px;
      font-weight: 700;
      color: var(--faint);
      cursor: pointer;
      font-family: 'Montserrat', sans-serif;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      transition: all 0.15s
    }

    .card-copy:hover {
      background: var(--bg2);
      border-color: var(--border2);
      color: var(--text)
    }

    .card-copy.done {
      background: #e6f2e6;
      border-color: #a8d4a8;
      color: var(--c-edu)
    }

    .card-remove-btn,
    .card-ver,
    .card-page {
      background: none;
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 3px 8px;
      font-size: 9px;
      font-weight: 700;
      color: var(--faint);
      cursor: pointer;
      font-family: 'Montserrat', sans-serif;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      transition: all 0.15s
    }

    .card-ver:hover,
    .card-page:hover {
      background: var(--bg2);
      border-color: var(--border2);
      color: var(--text)
    }

    .card-remove-btn:hover {
      background: #fce8e4;
      border-color: #f4a49a;
      color: #b03010
    }

    /* FLOATING BUTTONS */
    .float-btns {
      position: fixed;
      bottom: 28px;
      right: 28px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      z-index: 8888
    }

    .float-btn {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 9px 15px;
      border-radius: 10px;
      font-family: 'Montserrat', sans-serif;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      border: 1px solid var(--border);
      cursor: pointer;
      transition: all 0.18s;
      white-space: nowrap;
      text-decoration: none;
      box-shadow: 0 2px 14px rgba(0, 0, 0, 0.09);
    }

    .float-btn-top {
      background: #111;
      color: #fff;
      border-color: #111
    }

    .float-btn-top:hover {
      background: #333;
      border-color: #333
    }

    .float-btn-home {
      background: #fff;
      color: var(--text);
      border-color: var(--border2)
    }

    .float-btn-home:hover {
      background: var(--bg2);
      border-color: var(--text)
    }

    .float-icon {
      font-size: 12px;
      line-height: 1
    }

    /* SEARCH + HERO + AREA-HEADER: ajuste para novo max-width */
    .hero,
    .search-wrap,
    .area-header-wrap {
      max-width: 1340px;
      margin: 0 auto;
      padding-left: 32px;
      padding-right: 32px
    }

    .search-wrap {
      padding-top: 28px;
      padding-bottom: 20px
    }

    .area-header-wrap {
      padding-bottom: 20px
    }

    @media(max-width:1080px) {
      .sidebar {
        display: none
      }

      .main-layout {
        padding: 0 16px 80px
      }
    }

    @media(max-width:600px) {

      .hero,
      .search-wrap,
      .area-header-wrap {
        padding-left: 16px;
        padding-right: 16px
      }

      .tabs-outer {
        padding-left: 16px;
        padding-right: 16px
      }

      .hero {
        padding-top: 40px
      }

      .grid {
        grid-template-columns: 1fr
      }

      .float-btns {
        bottom: 16px;
        right: 12px
      }

      .float-btn {
        padding: 8px 11px;
        font-size: 9px
      }
    }

    /* === DARK MODE === */
    [data-theme="dark"] {
      --bg: #111111;
      --bg2: #1a1a1a;
      --bg3: #252525;
      --border: #2e2e2e;
      --border2: #404040;
      --text: #e8e8e4;
      --muted: #9a9a94;
      --faint: #555550
    }

    [data-theme="dark"] .modal,
    [data-theme="dark"] .modal-head,
    [data-theme="dark"] .modal-body {
      background: #1a1a1a
    }

    [data-theme="dark"] .search-input {
      background: #1a1a1a;
      color: #e8e8e4
    }

    [data-theme="dark"] .float-btn-home {
      background: #1a1a1a;
      color: #e8e8e4;
      border-color: #3a3a3a
    }

    [data-theme="dark"] .float-btn-home:hover {
      background: #252525
    }

    [data-theme="dark"] .caption-box {
      background: #222
    }

    [data-theme="dark"] .cta-box {
      background: #333;
      color: #e8e8e4
    }

    [data-theme="dark"] .copy-btn {
      color: #9a9a94;
      background: #252525
    }

    [data-theme="dark"] .copy-btn:hover {
      background: #333
    }

    [data-theme="dark"] .mal-btn {
      background: #252525;
      color: #9a9a94;
      border-color: #404040
    }

    [data-theme="dark"] .mal-btn:hover {
      background: #333;
      color: #e8e8e4
    }

    [data-theme="dark"] .qi {
      background: #1a1a1a;
      border-color: #2e2e2e
    }

    [data-theme="dark"] .queue-box {
      background: #252525;
      border-color: #404040
    }

    [data-theme="dark"] .ref-box {
      background: #222;
      border-color: #404040
    }

    [data-theme="dark"] .float-btn-dark {
      background: #252525;
      color: #e8e8e4;
      border-color: #404040
    }

    /* === FAVORITO === */
    .card-fav-btn {
      background: none;
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 3px 8px;
      font-size: 9px;
      font-weight: 700;
      color: var(--faint);
      cursor: pointer;
      font-family: 'Montserrat', sans-serif;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      transition: all 0.15s;
      flex-shrink: 0
    }

    .card-fav-btn:hover {
      background: #fff8e0;
      border-color: #e8a200;
      color: #a07000
    }

    .card-fav-btn.faved {
      background: #fff8e0;
      border-color: #e8a200;
      color: #a07000
    }

    .tabs-divider {
      display: inline-block;
      width: 1px;
      background: var(--border2);
      height: 22px;
      margin: 0 6px;
      align-self: center;
      flex-shrink: 0
    }

    .tab-personal {
      border-style: dashed
    }

    .tab[data-area="saved"].active {
      background: #e8a200;
      color: #111;
      border-color: #e8a200
    }

    /* === USADO === */
    .card-used-badge {
      font-size: 9px;
      font-weight: 700;
      color: var(--c-dev);
      background: #e4f4ee;
      border-radius: 4px;
      padding: 2px 6px;
      font-family: 'Montserrat', sans-serif;
      letter-spacing: 0.02em
    }

    /* === COPY COUNT === */
    .card-copy-count {
      font-size: 9px;
      color: var(--faint);
      font-family: 'Montserrat', sans-serif;
      font-weight: 700
    }

    /* === QUEUE === */
    .card-in-queue {
      border-color: var(--c-neg) !important;
      box-shadow: 0 0 0 2px rgba(16, 80, 160, 0.12) !important
    }

    .tab[data-area="queue"].active {
      background: var(--c-neg)
    }

    .tab[data-area="usados"].active {
      background: var(--c-dev)
    }

    .queue-pill {
      display: inline-block;
      min-width: 16px;
      height: 16px;
      line-height: 16px;
      background: var(--c-neg);
      color: #fff;
      border-radius: 8px;
      font-size: 9px;
      font-weight: 800;
      text-align: center;
      padding: 0 4px;
      margin-left: 4px;
      font-family: 'Montserrat', sans-serif;
      vertical-align: middle
    }

    /* === MODAL ACTIONS === */
    .modal-actions {
      display: flex;
      align-items: center;
      gap: 7px;
      flex-wrap: wrap;
      padding: 11px 22px;
      border-bottom: 1px solid var(--border)
    }

    .mal-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 6px 12px;
      border-radius: 7px;
      border: 1px solid var(--border);
      background: var(--bg2);
      font-family: 'Montserrat', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.15s;
      white-space: nowrap
    }

    .mal-btn:hover {
      background: var(--bg3);
      border-color: var(--border2);
      color: var(--text)
    }

    .mal-btn.fav-on {
      background: #fff8e0;
      border-color: #e8a200;
      color: #a07000
    }

    .mal-btn.used-on {
      background: #e4f4ee;
      border-color: #a8d4a8;
      color: var(--c-dev)
    }

    .mal-btn.queue-on {
      background: #e4eefb;
      border-color: #a8c4f4;
      color: var(--c-neg)
    }

    .modal-copy-count {
      font-size: 11px;
      color: var(--faint);
      font-weight: 300;
      margin-left: auto;
      white-space: nowrap
    }

    /* === QUEUE SECTION === */
    .queue-section {
      max-width: 1340px;
      margin: 0 auto;
      padding: 0 32px 16px;
      display: none
    }

    .queue-section.visible {
      display: block
    }

    .queue-box {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px
    }

    .queue-box-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
      flex-wrap: wrap;
      gap: 8px
    }

    .queue-box-title {
      font-family: 'Montserrat', sans-serif;
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--text)
    }

    .queue-btns {
      display: flex;
      gap: 7px
    }

    .q-btn {
      padding: 6px 13px;
      border-radius: 7px;
      font-family: 'Montserrat', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.15s;
      border: 1px solid var(--border)
    }

    .q-export {
      background: #111;
      color: #fff;
      border-color: #111
    }

    .q-export:hover {
      background: #333;
      border-color: #333
    }

    .q-clear {
      background: var(--bg);
      color: var(--muted)
    }

    .q-clear:hover {
      background: var(--bg3);
      color: var(--text)
    }

    .queue-items {
      display: flex;
      flex-direction: column;
      gap: 6px
    }

    .qi {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 9px 12px;
      cursor: pointer;
      transition: border-color 0.15s
    }

    .qi:hover {
      border-color: var(--border2)
    }

    .qi-num {
      font-size: 10px;
      font-weight: 800;
      color: var(--faint);
      font-family: 'Montserrat', sans-serif;
      width: 18px;
      flex-shrink: 0;
      text-align: center
    }

    .qi-title {
      flex: 1;
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      font-family: 'Montserrat', sans-serif;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap
    }

    .qi-area {
      font-size: 9px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 4px;
      font-family: 'Montserrat', sans-serif;
      flex-shrink: 0
    }

    .qi-mv,
    .qi-rm {
      background: none;
      border: 1px solid var(--border);
      border-radius: 5px;
      width: 22px;
      height: 22px;
      cursor: pointer;
      font-size: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.15s;
      padding: 0
    }

    .qi-mv {
      color: var(--muted)
    }

    .qi-mv:hover {
      background: var(--bg2);
      color: var(--text)
    }

    .qi-rm {
      color: var(--faint)
    }

    .qi-rm:hover {
      background: #fce8e4;
      border-color: #f4a49a;
      color: #b03010
    }

    .queue-empty-msg {
      text-align: center;
      padding: 24px;
      color: var(--faint);
      font-size: 13px;
      font-weight: 300
    }

    /* === SUBTAG ACTIVE === */
    .kw-tag.kw-active {
      background: var(--text);
      color: var(--bg);
      border-color: var(--text)
    }

    [data-theme="dark"] .kw-tag.kw-active {
      background: var(--text);
      color: var(--bg)
    }

    /* === FLOAT DARK / PDF === */
    .float-btn-dark {
      background: var(--bg2);
      color: var(--text);
      border-color: var(--border2)
    }

    .float-btn-dark:hover {
      background: var(--bg3);
      border-color: var(--text)
    }

    .float-btn-pdf {
      background: #fff;
      color: #b03010;
      border-color: #f4a49a
    }

    .float-btn-pdf:hover {
      background: #fce8e4;
      border-color: #b03010
    }

    /* === PRINT === */
    @media print {

      .hero,
      .search-wrap,
      .tabs-outer,
      .area-header-wrap,
      .sidebar,
      .float-btns,
      .overlay,
      .modal-actions,
      .card-actions,
      .footer,
      .queue-section,
      .card-fav-btn,
      .card-copy {
        display: none !important
      }

      .main-layout {
        display: block !important;
        padding: 0 16px !important
      }

      .grid {
        grid-template-columns: repeat(2, 1fr) !important
      }

      .card {
        break-inside: avoid !important;
        box-shadow: none !important;
        transform: none !important;
        margin-bottom: 8px
      }

      body {
        overflow: auto !important
      }
    }

    @media(max-width:600px) {
      .queue-section {
        padding-left: 16px;
        padding-right: 16px
      }
    }

    /* === MODAL MOBILE === */
    @media(max-width:600px) {
      .overlay {
        align-items: flex-end;
        padding: 0;
        background: #000
      }

      .modal {
        height: 100dvh;
        height: 100vh; /* fallback */
        max-height: 100dvh;
        max-height: 100vh;
        border-radius: 0;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: env(safe-area-inset-bottom, 0px)
      }

      .modal-handle {
        width: 48px;
        height: 5px;
        margin: 14px auto 0
      }

      .modal-nav {
        padding: 12px 16px 4px
      }

      .modal-nav-btn {
        padding: 10px 14px;
        font-size: 11px;
        min-height: 40px
      }

      .modal-close {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 18px;
        line-height: 38px;
        margin-top: -4px
      }

      .modal-head {
        padding: 16px 18px 14px
      }

      .modal-title {
        font-size: 17px
      }

      .modal-hook {
        font-size: 14px;
        line-height: 1.6
      }

      .modal-actions {
        padding: 10px 16px;
        gap: 8px
      }

      .mal-btn {
        padding: 10px 14px;
        font-size: 11px;
        min-height: 40px
      }

      .modal-body {
        padding: 16px 18px 28px
      }

      .caption-box {
        max-height: 220px;
        font-size: 13px
      }

      .ms p {
        font-size: 14px
      }

      .cta-box {
        font-size: 14px
      }
    }
