/* FirstMarket Design System - shared tokens only */
:root{
 --fm-bg:#f5f7fb;--fm-card:#fff;--fm-text:#172033;--fm-muted:#7b8798;--fm-line:#e7edf3;
 --fm-primary:#00b894;--fm-primary-dark:#07997c;--fm-primary-soft:#e9fbf6;
 --fm-danger:#ef4444;--fm-warning:#f59e0b;--fm-blue:#2563eb;
 --fm-shadow:0 12px 34px rgba(15,23,42,.06);
 --fm-radius-sm:10px;--fm-radius-md:14px;--fm-radius-lg:18px;
 --fm-font:Tahoma,"Segoe UI",system-ui,-apple-system,sans-serif;
}
html{box-sizing:border-box;-webkit-text-size-adjust:100%;text-size-adjust:100%}
*,*::before,*::after{box-sizing:inherit}
body{font-family:var(--fm-font);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
img,svg{max-width:100%}

/* Project Hub */

    body[data-page="project-hub"][data-page="project-hub"]{
      --bg: #f4f7fb;
      --card: #fff;
      --text: #172033;
      --muted: #6f7e90;
      --line: #e5ebf1;
      --primary: #00b894;
      --primary-dark: #08745d;
      --soft: #e9fbf6;
      --navy: #0f172a;
      --blue: #2563eb;
      --shadow: 0 14px 38px rgba(15, 23, 42, .07)
    }

    body[data-page="project-hub"] *{
      box-sizing: border-box
    }

    html:has(body[data-page="project-hub"]){
      scroll-behavior: smooth
    }

    body[data-page="project-hub"]{
      margin: 0;
      font-family: Tahoma, "Segoe UI", system-ui, sans-serif;
      background: var(--bg);
      color: var(--text)
    }

    body[data-page="project-hub"] a{
      text-decoration: none;
      color: inherit
    }

    body[data-page="project-hub"] .header{
      background: linear-gradient(145deg, #0f172a, #17355c);
      color: #fff;
      padding: 34px 22px 28px
    }

    body[data-page="project-hub"] .header-inner{
      max-width: 1400px;
      margin: auto
    }

    body[data-page="project-hub"] .brand{
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap
    }

    body[data-page="project-hub"] .brand h1{
      font-size: 34px;
      margin: 0
    }

    body[data-page="project-hub"] .brand p{
      font-size: 15px;
      color: #c2cfdb;
      line-height: 1.9;
      max-width: 760px;
      margin: 8px 0 0
    }

    body[data-page="project-hub"] .home-link{
      background: rgba(255, 255, 255, .1);
      border: 1px solid rgba(255, 255, 255, .15);
      padding: 10px 14px;
      border-radius: 12px;
      font-size: 14px
    }

    body[data-page="project-hub"] .stats{
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 10px;
      margin-top: 22px
    }

    body[data-page="project-hub"] .stat{
      background: rgba(255, 255, 255, .08);
      border: 1px solid rgba(255, 255, 255, .1);
      border-radius: 14px;
      padding: 13px
    }

    body[data-page="project-hub"] .stat span{
      font-size: 12px;
      color: #b8c7d7;
      display: block
    }

    body[data-page="project-hub"] .stat strong{
      font-size: 23px;
      display: block;
      margin-top: 4px
    }

    body[data-page="project-hub"] .nav{
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255, 255, 255, .96);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--line)
    }

    body[data-page="project-hub"] .nav-inner{
      max-width: 1400px;
      margin: auto;
      padding: 10px 22px;
      display: flex;
      gap: 8px;
      overflow: auto
    }

    body[data-page="project-hub"] .nav a{
      white-space: nowrap;
      padding: 9px 12px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      font-size: 13px;
      font-weight: 700
    }

    body[data-page="project-hub"] .container{
      max-width: 1400px;
      margin: auto;
      padding: 28px 22px 50px
    }

    body[data-page="project-hub"] .section{
      margin-bottom: 34px
    }

    body[data-page="project-hub"] .section-title{
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 16px;
      margin-bottom: 14px
    }

    body[data-page="project-hub"] .section-title h2{
      font-size: 26px;
      margin: 0
    }

    body[data-page="project-hub"] .section-title p{
      font-size: 13px;
      color: var(--muted);
      margin: 0
    }

    body[data-page="project-hub"] .file-grid{
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px
    }

    body[data-page="project-hub"] .file-card{
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 14px;
      display: flex;
      gap: 12px;
      box-shadow: var(--shadow);
      min-width: 0
    }

    body[data-page="project-hub"] .file-icon{
      width: 42px;
      height: 42px;
      flex: 0 0 42px;
      border-radius: 12px;
      background: var(--soft);
      display: grid;
      place-items: center;
      font-size: 20px
    }

    body[data-page="project-hub"] .file-main{
      min-width: 0;
      flex: 1
    }

    body[data-page="project-hub"] .file-main h4{
      font-size: 15px;
      margin: 0 0 5px;
      direction: ltr;
      text-align: left;
      overflow-wrap: anywhere
    }

    body[data-page="project-hub"] .file-main p{
      font-size: 13px;
      color: var(--muted);
      line-height: 1.7;
      margin: 0
    }

    body[data-page="project-hub"] .file-actions{
      margin-top: 10px;
      display: grid;
      gap: 6px
    }

    body[data-page="project-hub"] .file-actions a{
      border: 1px solid var(--line);
      background: #fbfcfe;
      border-radius: 9px;
      padding: 8px 9px;
      font-size: 12px;
      overflow-wrap: anywhere
    }

    body[data-page="project-hub"] .file-actions a:hover{
      background: var(--soft);
      color: var(--primary-dark);
      border-color: #bce7dc
    }

    body[data-page="project-hub"] .domain-link{
      direction: ltr;
      text-align: left;
      color: var(--blue) !important
    }

    body[data-page="project-hub"] .tree-card{
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 18px;
      box-shadow: var(--shadow)
    }

    body[data-page="project-hub"] .tree-card pre{
      direction: ltr;
      text-align: left;
      margin: 0;
      background: #0b1220;
      color: #d9e8f7;
      border-radius: 14px;
      padding: 18px;
      overflow: auto;
      font-family: Consolas, monospace;
      font-size: 13px;
      line-height: 1.9;
      white-space: pre
    }

    body[data-page="project-hub"] .note{
      margin-top: 14px;
      border: 1px solid #bce7dc;
      background: #f4fffb;
      color: #37665a;
      border-radius: 13px;
      padding: 13px 14px;
      font-size: 13px;
      line-height: 1.8
    }

    body[data-page="project-hub"] .footer{
      padding: 20px;
      text-align: center;
      color: #8491a3;
      font-size: 12px
    }

    @media(max-width:1100px) {
      body[data-page="project-hub"] .file-grid{
        grid-template-columns: repeat(2, 1fr)
      }

      body[data-page="project-hub"] .stats{
        grid-template-columns: repeat(3, 1fr)
      }
    }

    @media(max-width:700px) {
      body[data-page="project-hub"] .header{
        padding: 24px 14px
      }

      body[data-page="project-hub"] .brand h1{
        font-size: 27px
      }

      body[data-page="project-hub"] .brand p{
        font-size: 14px
      }

      body[data-page="project-hub"] .container{
        padding: 20px 12px 40px
      }

      body[data-page="project-hub"] .file-grid{
        grid-template-columns: 1fr
      }

      body[data-page="project-hub"] .stats{
        grid-template-columns: repeat(2, 1fr)
      }

      body[data-page="project-hub"] .section-title{
        align-items: start;
        flex-direction: column
      }

      body[data-page="project-hub"] .section-title h2{
        font-size: 22px
      }
    }
  

/* === FirstMarket Readability Lock v5 === */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-size: 15px !important; line-height: 1.65 !important; }
body[data-role="seller"], body[data-role="admin"], body[data-role="courier"], body[data-role="customer"] { font-size: 15px !important; }
body :where(p,span,small,label,td,th,li,a,input,select,textarea,button) { font-size: max(13px, 0.86rem) !important; }
body :where(button,input,select,textarea) { font-size: 14px !important; }
body :where(td,th) { font-size: 13.5px !important; line-height: 1.55 !important; }
body :where(.nav-item,.menu-item,.tab,.filter-btn,.action-btn,.primary,.secondary,.ghost-btn,.primary-btn,.desktop-btn) { font-size: 14px !important; }
body :where(.card-title,.section-title strong,.panel-title,.modal h3,.drawer h3,.drawer h4) { font-size: 16px !important; }
body :where(h1) { font-size: clamp(24px,2.5vw,34px) !important; line-height: 1.35 !important; }
body :where(h2) { font-size: clamp(20px,2vw,28px) !important; line-height: 1.4 !important; }
body :where(h3) { font-size: clamp(18px,1.7vw,23px) !important; line-height: 1.45 !important; }
@media (max-width:700px){ body{font-size:15px !important;} body :where(td,th){font-size:13px !important;} }
