
@media (max-width: 640px){
  #top-navbar{ height:auto; min-height:4.5rem; flex-wrap:wrap; padding:0.4rem 0.75rem; row-gap:0.3rem; }
  #top-navbar h1{ font-size:0.78rem !important; }
  #top-navbar p{ font-size:0.6rem !important; }
  #top-db-login{ font-size:0.62rem !important; padding:0.35rem 0.55rem !important; }
}


      body, button, input, select, textarea, .btn { font-family: 'Cairo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif !important; }
      input:focus, select:focus, textarea:focus { outline: none; border-color: #0c4a6e !important; box-shadow: 0 0 0 3px rgba(12,74,110,0.25); }
      .btn, button { transition: transform 0.15s ease, filter 0.15s ease, background 0.2s ease; }
      .btn:hover, button:hover { filter: brightness(1.08); }
      .btn:active, button:active { transform: scale(0.98); }
      .card { box-shadow: 0 10px 30px rgba(2,6,23,0.35); }
      .nav-link { transition: background 0.2s ease, transform 0.15s ease; border-radius: 14px; }
      .nav-link:hover { transform: translateX(-3px); }
      .nav-link.active { box-shadow: 0 6px 18px rgba(12,74,110,0.35); }
      ::-webkit-scrollbar { width: 10px; height: 10px; }
      ::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
      ::-webkit-scrollbar-thumb { background: rgba(12,74,110,0.45); border-radius: 8px; }
      ::-webkit-scrollbar-thumb:hover { background: rgba(12,74,110,0.7); }
      .notif-item { transition: background 0.2s ease; }
      @media (max-width: 768px) {
        .card { border-radius: 18px; }
        input, select, textarea { font-size: 16px !important; }
      }
    

      body.light { background: #f7f5f0 !important; }
      .light .glass { background: rgba(255, 253, 249, 0.92) !important; border: 1px solid rgba(15, 118, 110, 0.16) !important; box-shadow: 0 10px 34px rgba(60, 48, 24, 0.08), inset 0 1px 0 rgba(255,255,255,0.9) !important; }
      .light #landing-screen > div { border: 1px solid rgba(15, 118, 110, 0.22) !important; box-shadow: 0 0 0 1px rgba(12,74,110,0.06), 0 40px 80px -30px rgba(60, 48, 24, 0.25), inset 0 1px 0 rgba(255,255,255,0.9) !important; }
      .light .text-sky-200, .light .text-sky-700 { color: #082f49 !important; }
      .light .text-sky-100 { color: #082f49 !important; }
      .light #top-navbar { border-bottom: 3px solid #d97706 !important; }
      .light .bg-slate-900 { background-color: #ffffff; }
      .light .bg-slate-800 { background-color: #eef2ef; color: #0f172a; }
      .light .border-white\/10 { border-color: rgba(15, 118, 110, 0.15) !important; }
      .light input, .light textarea { border: 1px solid rgba(15,118,110,0.2); }
      .light .active-tab { box-shadow: 0 4px 15px rgba(12, 74, 110, 0.35); }
      body.dark { background-color: #081222 !important; }
      .dark .glass { background: rgba(15, 28, 48, 0.72) !important; border-color: rgba(255,255,255,0.08) !important; }
      .dark input, .dark textarea { background-color: rgba(8, 17, 32, 0.85); }
      .dark select { background-color: rgba(8, 17, 32, 0.95) !important; }
      .dark select option { background-color: #0b1729 !important; }
      .dark .solid-dropdown { background-color: #12233c !important; }
      ::selection { background: rgba(217, 119, 6, 0.25); }
      .mob-extra { display: none; }
      /* v6 mobile roster: stacked member cards, no horizontal scroll */
      @media (max-width: 768px) {
        #page-db .overflow-x-auto, #page-suspended .overflow-x-auto, #page-blacklist .overflow-x-auto { overflow-x: visible !important; }
        #page-db table, #page-suspended table, #page-blacklist table { white-space: normal !important; }
        #page-db thead, #page-suspended thead, #page-blacklist thead { display: none !important; }
        #page-db table, #page-db tbody, #page-db tr, #page-db td,
        #page-suspended table, #page-suspended tbody, #page-suspended tr, #page-suspended td,
        #page-blacklist table, #page-blacklist tbody, #page-blacklist tr, #page-blacklist td { display: block !important; width: 100% !important; max-width: none !important; height: auto !important; }
        #page-db tbody, #page-suspended tbody, #page-blacklist tbody { display: flex !important; flex-direction: column; gap: 12px; padding: 10px; }
        #page-db tbody tr { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09) !important; border-radius: 18px; padding: 8px 0; }
        body.light #page-db tbody tr { background: rgba(255,255,255,0.75); border-color: rgba(12,74,110,0.14) !important; }
        #page-db td, #page-suspended td, #page-blacklist td { padding: 8px 14px !important; }
        #page-db td span.truncate { max-width: none !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
        #page-db td > .flex.flex-wrap, #page-suspended td > .flex, #page-suspended td.flex { justify-content: flex-start !important; height: auto !important; }
        #page-db td > .flex.flex-wrap button { flex: 1 1 45%; text-align: center; }
        #page-db td > div, #page-db td > span { height: auto !important; }
        .mob-extra { display: block; margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,0.14); font-size: 13px; font-weight: 700; line-height: 2; opacity: 0.88; }
        body.light .mob-extra { border-top-color: rgba(12,74,110,0.15); }
      }
      #page-db .text-sky-700, #page-suspended .text-sky-700 { color: #7dd3fc !important; }
      body.light #page-db .text-sky-700, body.light #page-suspended .text-sky-700 { color: #0369a1 !important; }

      /* v6 app1 admin structural restyle: navy sidebar + gold accents */
      #sidebar { background: linear-gradient(180deg, #0c4a6e 0%, #082f49 100%) !important; border-left: 1px solid rgba(251, 191, 36, 0.25) !important; }
      #sidebar nav button:not(.text-amber-400):not(.text-red-400):not(.text-emerald-400) { color: #e2e8f0 !important; }
      #sidebar .active-tab { background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important; color: #ffffff !important; box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35) !important; }
      #sidebar button[onclick="switchToApp2()"] { background: rgba(251, 191, 36, 0.15) !important; color: #fbbf24 !important; border-color: rgba(251, 191, 36, 0.35) !important; }
      #page-dash h2 { background: linear-gradient(90deg, #f1f5f9, #c9a227) !important; -webkit-background-clip: text !important; background-clip: text !important; }
      body.light #page-dash h2 { background: linear-gradient(90deg, #0c4a6e, #b8912f) !important; -webkit-background-clip: text !important; background-clip: text !important; }
      #page-dash [class*="border-sky-800"] { border-color: #c9a227 !important; }
      #page-dash .glass [class*="bg-sky-800\/20"], #page-dash .glass [class*="bg-sky-900\/20"] { background: rgba(201, 162, 39, 0.15) !important; }
      #page-dash .glass [class*="text-sky-700"] { color: #f0d060 !important; }
      body.light #page-dash .glass [class*="text-sky-700"] { color: #b8912f !important; }
      .dark #page-dash > div:first-child { background: rgba(15, 28, 48, 0.6) !important; border: 1px solid rgba(255,255,255,0.07) !important; }

            /* v5.8 login tidy: single card, labels, clear fields. Layout only, no auth behavior change. */
      #app2-container .jq-auth-one { display:block; padding:32px 30px !important; max-width:440px !important; border-radius:24px !important; }
      #app2-container .jq-auth-head { text-align:center; padding-bottom:18px; margin-bottom:18px; border-bottom:1px solid rgba(255,255,255,.08); }
      #app2-container .jq-auth-logo { display:block; margin:0 auto; width:150px; height:auto; border-radius:14px; background:#fff; padding:6px; box-shadow:0 8px 20px rgba(0,0,0,.25); }
      #app2-container .jq-auth-brandname { font-weight:900; font-size:18px; margin-top:12px; color:var(--text-main,#fff); }
      #app2-container .jq-auth-branddesc { font-size:12px; font-weight:700; color:var(--text-dim); line-height:1.9; margin-top:4px; }
      #app2-container .jq-auth-one .jq-auth-form { padding:0; }
      #app2-container .jq-auth-title { text-align:center; font-weight:900; font-size:22px; margin:0 0 4px; }
      #app2-container .jq-auth-sub { text-align:center; color:var(--text-dim); font-size:13px; font-weight:600; margin:0 0 20px; }
      #app2-container .jq-auth-lbl { display:block; font-size:13px; font-weight:800; margin:14px 0 6px; color:var(--text-main,#fff); }
      #app2-container .jq-auth-one input { width:100%; padding:14px 16px; font-size:16px; border-radius:12px; margin:0; }
      #app2-container .jq-auth-pw { position:relative; }
      #app2-container .jq-auth-pw input { padding-inline-end:70px; }
      #app2-container .jq-auth-eye { position:absolute; inset-inline-end:10px; top:50%; transform:translateY(-50%); background:none; border:0; color:var(--text-dim); font-size:12px; font-weight:800; cursor:pointer; padding:6px 8px; font-family:inherit; }
      #app2-container .jq-auth-go { width:100%; margin-top:22px; padding:15px; font-size:16px; }
      #app2-container .jq-auth-links { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:16px; }
      #app2-container .jq-auth-links a { color:var(--text-dim); text-decoration:none; font-size:13px; font-weight:800; }
      #app2-container .jq-auth-links a:hover { color:var(--primary); }
      #app2-container .jq-auth-back { display:block; margin:18px auto 0; background:none; border:0; color:var(--text-dim); font-size:12px; font-weight:700; cursor:pointer; text-decoration:underline; font-family:inherit; }
      @media (max-width:480px) { #app2-container .jq-auth-one { padding:24px 18px !important; } #app2-container .jq-auth-logo { width:120px; } }
      #app2-container .jq-auth-split { display: flex; padding: 0 !important; max-width: 880px !important; overflow: hidden; border-radius: 28px !important; align-items: stretch; }
      #app2-container .jq-auth-brand { flex: 1; background: linear-gradient(160deg, #0c4a6e 0%, #082f49 100%); padding: 44px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; min-width: 260px; }
      #app2-container .jq-auth-form { flex: 1.15; padding: 40px 36px; }
      @media (max-width: 720px) { #app2-container .jq-auth-split { flex-direction: column; } #app2-container .jq-auth-brand { padding: 28px 24px; } #app2-container .jq-auth-form { padding: 28px 24px; } }
      #app2-container aside { background: linear-gradient(180deg, #0c4a6e 0%, #082f49 100%) !important; border-left: 1px solid rgba(251,191,36,0.25) !important; }
      #app2-container aside .nav-link { color: #cbd5e1 !important; }
      #app2-container aside .nav-link:hover { background: rgba(255,255,255,0.08) !important; color: #ffffff !important; }
      #app2-container aside .nav-link.active { background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important; color: #ffffff !important; box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.4) !important; }
      #app2-container aside .text-white, #app2-container aside .text-white * { color: #ffffff !important; }
      body.light #app2-container .card { background: #ffffff !important; border: 1px solid rgba(12, 74, 110, 0.1) !important; box-shadow: 0 8px 24px rgba(12, 74, 110, 0.06) !important; }
      body.light #app2-container main > div:first-child { background: #ffffff !important; border: 1px solid rgba(12, 74, 110, 0.1) !important; box-shadow: 0 8px 24px rgba(12, 74, 110, 0.06); }

      .light [class*="bg-sky-900"].text-white, .light [class*="bg-sky-950"].text-white { color: #ffffff !important; }
      .light [class*="bg-sky-900"] .text-white, .light [class*="bg-sky-950"] .text-white { color: #ffffff !important; }
      .light [class*="bg-sky-900"] .text-sky-200, .light [class*="bg-sky-950"] .text-sky-200 { color: #bae6fd !important; }
      .light .notif-card { color: #ffffff !important; }

      #login-screen, #public-search-screen { background: radial-gradient(1000px 600px at 80% -10%, rgba(201,162,39,0.08), transparent 60%), linear-gradient(160deg,#0b1729 0%,#050c17 100%) !important; }
      .light .bg-slate-900\/50 { background: rgba(12, 74, 110, 0.05) !important; }
      .light .bg-slate-800\/80 { background: rgba(255,255,255,0.9) !important; color: #0c4a6e !important; }
      .light .text-white\/70 { color: rgba(12, 74, 110, 0.7) !important; }
      .light .text-white\/50 { color: rgba(12, 74, 110, 0.55) !important; }
      .light .shadow-inner { box-shadow: inset 0 2px 6px rgba(12,74,110,0.08); }


    

        /* GQ stage-2: structural interior redesign (navy/white/gold, dark default) */
        #app2-container aside { width: 288px; padding: 26px 20px; background: linear-gradient(180deg, rgba(8,20,38,0.92), rgba(6,15,30,0.96)); border-left: 1px solid rgba(217,119,6,0.16); }
        #app2-container aside::-webkit-scrollbar { width: 6px; }
        #app2-container aside::-webkit-scrollbar-thumb { background: rgba(217,119,6,0.25); border-radius: 6px; }
        #app2-container .nav-link { padding: 12px 14px; border-radius: 14px; gap: 12px; margin-bottom: 6px; border: 1px solid transparent; }
        #app2-container .nav-link > span:first-child { display: inline-flex; width: 36px; height: 36px; border-radius: 11px; align-items: center; justify-content: center; background: rgba(255,255,255,0.045); color: #d97706; flex-shrink: 0; }
        #app2-container .nav-link:hover { background: rgba(217,119,6,0.08); transform: none; border-color: rgba(217,119,6,0.18); }
        #app2-container .nav-link.active, #app2-container aside .nav-link.active { background: linear-gradient(135deg, rgba(217,119,6,0.18), rgba(217,119,6,0.07)) !important; color: #fbbf24 !important; box-shadow: none !important; transform: none !important; border-color: rgba(217,119,6,0.4); }
        #app2-container .nav-link.active > span:first-child { background: #d97706; color: #0b1729; }
        #user-sidebar-card .avatar { border: 3px solid rgba(217,119,6,0.55); box-shadow: 0 0 0 5px rgba(217,119,6,0.12); }
        #app2-container main > div:first-child { border-radius: 18px !important; border-bottom: 2px solid rgba(217,119,6,0.35) !important; }
        #app2-main-title { background: linear-gradient(90deg, #fbbf24, #d97706) !important; -webkit-background-clip: text !important; background-clip: text !important; }
        #app2-container .card { border-radius: 22px; padding: 28px; border: 1px solid rgba(255,255,255,0.07); box-shadow: 0 14px 34px -14px rgba(0,0,0,0.45); }
        #app2-container .stat-item { border-bottom-color: #d97706; border-radius: 18px; padding: 24px 16px; }
        #app2-container table th { color: #fbbf24; }
        #app2-container .sidebar-search { border-radius: 12px !important; border: 1px solid rgba(217,119,6,0.2) !important; }
        @media (max-width: 768px) {
            #public-search-screen h2 { white-space: normal; overflow: visible; font-size: 20px; line-height: 1.4; }
            #app2-container main { padding: 18px; }
        }
    

#app2-container .gq-dash-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;background:linear-gradient(120deg,rgba(201,162,39,0.14),rgba(12,74,110,0.22) 60%,rgba(255,255,255,0.03));border:1px solid rgba(201,162,39,0.25);border-radius:22px;padding:22px 26px;margin-bottom:26px}
#app2-container .gq-dash-hello{font-size:26px;font-weight:900;color:#fff}
#app2-container .gq-dash-sub{color:rgba(255,255,255,0.65);font-weight:700;font-size:14px;margin-top:4px}
#app2-container .gq-dash-date{color:rgba(255,255,255,0.4);font-weight:700;font-size:12px;margin-top:6px}
#app2-container .gq-dash-score{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:110px;padding:14px 18px;background:rgba(0,0,0,0.3);border:1px solid rgba(16,185,129,0.35);border-radius:18px}
#app2-container .gq-dash-score span{font-size:34px;font-weight:900;color:#10b981;line-height:1;direction:ltr;unicode-bidi:isolate}
#app2-container .gq-dash-score small{color:rgba(255,255,255,0.55);font-weight:800;font-size:11px;margin-top:6px}
#app2-container .gq-sec-title{font-weight:900;font-size:18px;color:#f5c518;margin:26px 0 14px;display:flex;align-items:center;gap:8px}
#app2-container .gq-kpi-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:12px}
#app2-container .gq-kpi{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:16px;padding:14px 16px;position:relative;overflow:hidden}
#app2-container .gq-kpi::before{content:'';position:absolute;inset-inline-start:0;top:0;bottom:0;width:4px;background:var(--kc,#f5c518)}
#app2-container .gq-kpi b{display:block;font-size:26px;font-weight:900;color:var(--kc,#fff);direction:ltr;unicode-bidi:isolate}
#app2-container .gq-kpi span{color:rgba(255,255,255,0.6);font-weight:700;font-size:12px}
#app2-container .gq-kpi-sub{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
#app2-container .gq-kpi2{background:rgba(0,0,0,0.25);border:1px solid rgba(255,255,255,0.07);border-radius:14px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}
#app2-container .gq-kpi2 span{color:rgba(255,255,255,0.65);font-weight:700;font-size:13px}
#app2-container .gq-kpi2 b{font-size:20px;font-weight:900;direction:ltr;unicode-bidi:isolate}
#app2-container .gq-eval-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;padding:18px}
#app2-container .gq-axis{background:rgba(0,0,0,0.25);border:1px solid rgba(255,255,255,0.06);border-radius:12px;padding:10px 14px}
#app2-container .gq-axis-top{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;font-weight:700;color:rgba(255,255,255,0.75);margin-bottom:8px}
#app2-container .gq-axis-top b{color:#fff;font-weight:900;direction:ltr;unicode-bidi:isolate;white-space:nowrap}
#app2-container .gq-bar{height:7px;background:rgba(255,255,255,0.08);border-radius:99px;overflow:hidden}
#app2-container .gq-bar i{display:block;height:100%;border-radius:99px;transition:width .5s ease}
#app2-container .gq-mem-band{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px;align-items:center}
#app2-container .gq-mem-chip{cursor:pointer;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);border-radius:99px;padding:8px 18px;font-weight:800;font-size:13px;color:rgba(255,255,255,0.75);transition:all .2s;display:inline-flex;align-items:center;gap:7px}
#app2-container .gq-mem-chip:hover{border-color:rgba(245,197,24,0.4)}
#app2-container .gq-mem-chip.on{background:rgba(245,197,24,0.15);border-color:rgba(245,197,24,0.55);color:#f5c518}
#app2-container .gq-mem-chip.static{cursor:default;border-color:rgba(239,68,68,0.35);color:#ef4444}
#app2-container .gq-dot{width:8px;height:8px;border-radius:99px;background:var(--dc,#94a3b8);display:inline-block;flex:none}
#app2-container .gq-mem-toolbar{position:sticky;top:0;z-index:20;background:rgba(10,18,32,0.92);backdrop-filter:blur(8px);padding:10px 0;border-bottom:1px solid rgba(255,255,255,0.07);margin-bottom:14px}
@media (max-width:640px){
#app2-container .gq-mem-toolbar .search-box{flex-direction:column;align-items:stretch}
#app2-container .gq-mem-toolbar .search-box select{width:100% !important}
#app2-container .gq-mem-toolbar .search-box input{flex:1 1 100%;width:100%}
#app2-container .gq-dash-hero{padding:18px}
#app2-container .gq-dash-hello{font-size:21px}
}

/* gq member cards */
#app2-container .gq-mcard{padding:16px 18px !important;display:flex;flex-direction:column;gap:10px}
#app2-container .gq-mcard-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
#app2-container .gq-mcard{width:100%;justify-content:flex-start;align-items:stretch}
#app2-container .gq-mcard-head{width:100%;justify-content:flex-start;direction:rtl}
#app2-container .gq-mcard-meta{width:100%;justify-content:flex-start}
#app2-container .gq-mcard-actions{width:100%;justify-content:flex-start}

#app2-container .gq-mcard-ava{position:relative;display:inline-flex;padding:3px;border-radius:50%;border:2px solid var(--st,#334155);background:rgba(255,255,255,0.03)}
#app2-container .gq-mcard-ava .avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;margin:0}
#app2-container .gq-mcard-id{flex:1;min-width:160px}
#app2-container .gq-mcard-name{font-size:17px;font-weight:900;color:var(--text-main);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#app2-container .gq-mcard-sub{color:var(--text-dim);font-size:12.5px;font-weight:700;margin-top:2px}
#app2-container .gq-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:var(--st);background:color-mix(in srgb,var(--st) 12%,transparent);border:1px solid color-mix(in srgb,var(--st) 35%,transparent);padding:4px 12px;border-radius:999px}
#app2-container .gq-sdot{width:7px;height:7px;border-radius:50%;background:var(--st);display:inline-block}
#app2-container .gq-mcard-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:2px 2px 0}
#app2-container .gq-chip{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:var(--text-dim);background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.07);padding:3px 10px;border-radius:8px;font-weight:700}
#app2-container .gq-chip-amber{background:rgba(245,158,11,0.15);color:#fbbf24;border-color:rgba(245,158,11,0.3)}
#app2-container .gq-num{font-family:monospace;direction:ltr;unicode-bidi:isolate;color:var(--text-main)}
#app2-container .gq-admin-badge{display:inline-flex;align-items:center;gap:4px;color:#fbbf24;font-size:11px;background:rgba(245,158,11,0.12);border:1px solid rgba(245,158,11,0.3);padding:2px 8px;border-radius:6px;font-weight:800}
#app2-container .gq-mcard-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,0.06);padding-top:10px}
#app2-container .gq-icn-btn{display:inline-flex;align-items:center;gap:6px}
#app2-container .gq-ic{width:14px;height:14px;flex:none;vertical-align:-2px}
#app2-container .gq-chip .gq-ic{width:12px;height:12px}
#app2-container .gq-admin-badge .gq-ic{width:11px;height:11px}
@media (max-width:640px){
  #app2-container .gq-mcard-head{gap:10px}
  #app2-container .gq-status{width:100%;justify-content:center}
  #app2-container .gq-mcard-actions .btn{flex:1 1 45%;justify-content:center}
}


/* gq mobile flows fix (user evidence: eval table clipped columns, cert date field overflow/blank, footer contrast) */
/* gq tasks composition: collapsible create, status stat strip, priority edges */
#app2-container .gq-create-toggle { width:100%; margin-bottom:18px; padding:14px; font-size:15px; font-weight:900; display:flex; align-items:center; justify-content:center; gap:8px; }
#app2-container .gq-create-toggle svg { transition:transform .3s; }
#app2-container .gq-create-toggle.gq-open svg { transform:rotate(45deg); }
#app2-container #gq-task-create-wrap { margin-bottom:20px; }
#app2-container .gq-stat-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:20px; }
#app2-container .gq-stat { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.07); border-radius:16px; padding:14px 8px; text-align:center; cursor:pointer; border-top:3px solid transparent; color:var(--text-main); }
#app2-container .gq-stat b { display:block; font-size:22px; font-weight:900; }
#app2-container .gq-stat span { font-size:11px; font-weight:700; color:var(--text-dim); }
#app2-container .gq-st-pending { border-top-color:#64748b; }
#app2-container .gq-st-progress { border-top-color:#f59e0b; }
#app2-container .gq-st-submitted { border-top-color:#38bdf8; }
#app2-container .gq-st-completed { border-top-color:#10b981; }
#app2-container .task-card.gq-prio-high { border-right:4px solid #ef4444; }
#app2-container .task-card.gq-prio-med { border-right:4px solid #f59e0b; }
#app2-container .task-card.gq-prio-low { border-right:4px solid #64748b; }
@media (max-width: 768px) {
  #app2-container .gq-stat-strip { grid-template-columns:repeat(2,1fr); }
  #app2-container .search-box { flex-direction:column; align-items:stretch; }
  #app2-container .search-box input, #app2-container .search-box select { width:100% !important; flex:1 1 100% !important; margin:0; }
  #app2-container .search-box label { width:100%; }
}
#app2-container input, #app2-container select, #app2-container textarea { max-width:100%; box-sizing:border-box; }
#app2-container input[type="date"] { min-width:0; width:100%; }
#app2-container footer { color:#8fb8d8 !important; opacity:1 !important; }
#app2-container .gq-field { display:flex; flex-direction:column; gap:4px; }
#app2-container .gq-field-label { font-size:11px; font-weight:900; color:var(--text-dim); }
/* eval history: low-contrast title + total column (primary navy on dark bg) */
#app2-container .gq-eval-hist-title { color:#7dd3fc !important; }
#app2-container #eval-history-table th:last-child, #app2-container #eval-history-table td:last-child { color:#38bdf8 !important; }
@media (max-width: 768px) {
  #app2-container .grid-2 { gap:10px; }
  /* evaluations log: table -> stacked cards, every field visible without horizontal drag */
  #app2-container #eval-log-table, #app2-container #eval-log-table tbody, #app2-container #eval-log-table tr, #app2-container #eval-log-table td { display:block; width:100%; }
  #app2-container #eval-log-table thead { display:none; }
  #app2-container #eval-log-table tr.eval-log-row { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:14px; margin:0 0 12px 0; padding:12px 14px; }
  #app2-container #eval-log-table td { padding:5px 0 !important; border:none !important; text-align:right !important; }
  #app2-container #eval-log-table td::before { display:block; font-size:11px; font-weight:900; color:var(--text-dim); margin-bottom:2px; }
  #app2-container #eval-log-table td:nth-of-type(1)::before { content:'العضو'; }
  #app2-container #eval-log-table td:nth-of-type(2)::before { content:'الإجمالي'; }
  #app2-container #eval-log-table td:nth-of-type(3)::before { content:'حالة التقييم الإداري'; }
  #app2-container #eval-log-table td:nth-of-type(4)::before { content:'المقيّم'; }
  #app2-container #eval-log-table td:nth-of-type(5)::before { content:'إجراء'; }
  #app2-container #eval-log-table td .btn { width:100%; }
  /* certificates register: table -> stacked cards, no hidden columns */
  #app2-container #cert-table, #app2-container #cert-table tbody, #app2-container #cert-table tr, #app2-container #cert-table td { display:block; width:100%; }
  #app2-container #cert-table thead { display:none; }
  #app2-container #cert-table tbody tr { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:14px; margin:0 0 12px 0; padding:12px 14px; }
  #app2-container #cert-table td { padding:5px 0 !important; border:none !important; text-align:right !important; }
  #app2-container #cert-table td::before { display:block; font-size:11px; font-weight:900; color:var(--text-dim); margin-bottom:2px; }
  #app2-container #cert-table td:nth-of-type(1)::before { content:'اسم صاحب الشهادة'; }
  #app2-container #cert-table td:nth-of-type(2)::before { content:'كود الشهادة'; }
  #app2-container #cert-table td:nth-of-type(3)::before { content:'اسم التدريب'; }
  #app2-container #cert-table td:nth-of-type(4)::before { content:'تاريخ الشهادة'; }
  #app2-container #cert-table td:nth-of-type(5)::before { content:'جهة التدريب'; }
  #app2-container #cert-table td:nth-of-type(6)::before { content:'الإجراء'; }
  #app2-container #cert-table td[colspan]::before { content:none; }
  #app2-container #eval-log-table td[colspan]::before { content:none; }
  /* personal evaluation history: 11-column table -> stacked labeled card per month */
  #app2-container #eval-history-table, #app2-container #eval-history-table tbody, #app2-container #eval-history-table tr, #app2-container #eval-history-table td { display:block; width:100%; min-width:0 !important; }
  #app2-container #eval-history-table thead { display:none; }
  #app2-container #eval-history-table { min-width:0 !important; }
  #app2-container #eval-history-table tbody tr { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:14px; margin:0 0 12px 0; padding:12px 14px; }
  #app2-container #eval-history-table td { padding:5px 0 !important; border:none !important; text-align:right !important; font-family:inherit !important; }
  #app2-container #eval-history-table td::before { display:block; font-size:11px; font-weight:900; color:var(--text-dim); margin-bottom:2px; }
  #app2-container #eval-history-table td:nth-of-type(1)::before { content:'الشهر'; }
  #app2-container #eval-history-table td:nth-of-type(1) { white-space:normal; }
  #app2-container #eval-history-table td:nth-of-type(2)::before { content:'مهام (15%)'; }
  #app2-container #eval-history-table td:nth-of-type(3)::before { content:'اجتماعات (15%)'; }
  #app2-container #eval-history-table td:nth-of-type(4)::before { content:'فعاليات (15%)'; }
  #app2-container #eval-history-table td:nth-of-type(5)::before { content:'متابعة (10%)'; }
  #app2-container #eval-history-table td:nth-of-type(6)::before { content:'تواصل (10%)'; }
  #app2-container #eval-history-table td:nth-of-type(7)::before { content:'سلوك (5%)'; }
  #app2-container #eval-history-table td:nth-of-type(8)::before { content:'ميديا (10%)'; }
  #app2-container #eval-history-table td:nth-of-type(9)::before { content:'تعاون (10%)'; }
  #app2-container #eval-history-table td:nth-of-type(10)::before { content:'أهداف (10%)'; }
  #app2-container #eval-history-table td:nth-of-type(11)::before { content:'الإجمالي (100%)'; }
  #app2-container #eval-history-table td:nth-of-type(11) { font-size:20px !important; }
}

body:has(#app1-container:not([style*="display: none"]) #landing-screen:not(.hide)) > footer.text-sky-700 { display:none !important; }

.gq-meeting-card{padding:0!important;background:#111c30!important;border:1px solid #3d506b;border-radius:20px;overflow:visible;box-shadow:0 8px 24px #02061744;color:#f1f5f9}
#app2-container .gq-meeting-summary{list-style:none;padding:20px!important;cursor:pointer;border-radius:18px;min-height:76px}
.gq-meeting-summary::-webkit-details-marker{display:none}
.corr-item>summary::-webkit-details-marker{display:none}
.corr-item>summary::marker{content:''}
.gq-meeting-summary:focus-visible{outline:3px solid #67e8f9;outline-offset:3px}
.gq-meeting-summary>div{gap:16px;flex-wrap:wrap}
.gq-meeting-summary>div>div:first-child{flex:1;min-width:0}
.gq-meeting-summary h3{font-size:19px;line-height:1.8;overflow-wrap:anywhere;color:#f8fafc}
.gq-meeting-summary h3 span{color:#cbd5e1!important}
.gq-meeting-summary>div>div:last-child{gap:10px!important}
.gq-meeting-summary>div>div:last-child>span:first-child{color:#e2e8f0!important;background:#1c3543!important;font-size:12px!important;white-space:nowrap}
.gq-meeting-arrow{font-size:24px;line-height:1;color:#67e8f9;transition:transform .15s}
.gq-meeting-card[open] .gq-meeting-arrow{transform:rotate(180deg)}
.gq-meeting-card[open] .gq-meeting-summary{border-bottom:1px solid #3d506b;border-radius:18px 18px 0 0}
#app2-container .gq-meeting-details{padding:20px!important;font-size:14px;line-height:1.8}
.gq-meeting-details>div:first-child{box-sizing:border-box;background:#0b1425!important;border-color:#334155!important;display:block!important;padding:16px!important;margin-bottom:18px!important}
.gq-meeting-dates{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.gq-meeting-dates>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.gq-meeting-dates span{color:#a5b4c8;font-size:12px;font-weight:700}
.gq-meeting-dates time{color:#f1f5f9;font-size:14px;unicode-bidi:plaintext;overflow-wrap:anywhere}
.gq-meeting-attendance{color:#99f6e4;margin:0 0 12px}
.gq-meeting-details p{color:#cbd5e1!important}
.gq-meeting-details p span{color:#bae6fd!important;background:transparent!important}
.gq-meeting-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.gq-meeting-actions>.btn,.gq-meeting-actions>div>.btn{min-height:46px;padding:10px 16px!important;font-size:14px!important;line-height:1.5;justify-content:center;border-radius:12px}
.gq-meeting-actions>div>.btn{color:#bae6fd!important;background:#123750!important;border:1px solid #3884a4!important}
.gq-meeting-actions>a{color:#fff!important;background:#096580!important;border:1px solid #39a2bb!important}
.gq-meeting-actions .action-dropdown-menu{background:#142238!important;border-color:#52647c!important;max-width:calc(100vw - 72px);box-sizing:border-box}
.gq-meeting-actions .action-dropdown-menu .btn{white-space:normal;text-align:right;min-height:44px}
#app2-container .gq-completed-fold{display:block!important;align-self:flex-start} .gq-completed-fold>summary{list-style:none;cursor:pointer;font-weight:900;gap:12px;min-height:48px}.gq-completed-fold>summary::-webkit-details-marker{display:none}.gq-completed-fold>summary:focus-visible{outline:3px solid #67e8f9}.gq-task-fold-arrow{color:#67e8f9;font-size:22px}.gq-completed-fold[open] .gq-task-fold-arrow{transform:rotate(180deg)}
@media(max-width:520px){.gq-meeting-summary{padding:16px}.gq-meeting-summary>div{gap:12px}.gq-meeting-summary>div>div:last-child{width:100%;justify-content:space-between}.gq-meeting-details{padding:16px}.gq-meeting-dates{grid-template-columns:1fr;gap:12px}.gq-meeting-actions>*{flex:1 1 100%;width:100%}.gq-meeting-actions>div>.btn{width:100%}.gq-meeting-actions .action-dropdown-menu{right:0!important;width:100%;max-width:100%}}
@media (max-width:480px){
 #top-navbar{padding-left:8px;padding-right:8px;gap:6px}
 #top-navbar > div:first-child{min-width:0;gap:6px}
 #top-navbar img{height:34px}
 #top-navbar h1{font-size:13px;white-space:nowrap}
 #top-bar-subtitle{font-size:9px;white-space:nowrap}
 #top-navbar > div:last-child{gap:6px;flex-shrink:0}
 #top-navbar > div:last-child > button:not(#top-db-login){width:40px;height:40px;min-width:40px;padding:0;font-size:18px}
 #top-db-login{white-space:nowrap;height:40px;padding:0 10px !important;font-size:11px !important;flex-shrink:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
 #top-navbar .notif-bell{padding:0 2px;min-width:30px}
}
@media (max-width:430px){
 #top-navbar > div:first-child > div{display:none}
}


/* tidy v5.1: compact header, small guide icon, tighter chips, secondary numbering button (layout only) */
#view-app main > div:first-child{margin-bottom:14px!important;padding:10px 16px!important;border-radius:16px!important;gap:10px}
#view-app main > div:first-child > div{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:12px;row-gap:0;min-width:0;flex:1}
#app2-main-title{font-size:18px!important;line-height:1.3!important}
#page-title{font-size:13px!important;margin-top:0!important;opacity:.85}
#gq-guide-isolated-open{width:34px!important;height:34px!important;min-width:34px;padding:0!important;margin:0!important;border-radius:50%!important;font-size:16px!important;font-weight:900;line-height:1;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto}
#app2-container .gq-mem-chip{padding:5px 11px;font-size:12px;gap:5px}
#app2-container .gq-mem-band{gap:6px!important}
#gq-task-number-btn{font-size:11px!important;padding:4px 10px!important;margin-bottom:8px!important;opacity:.7;background:transparent!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:none!important;color:#cbd5e1!important}
@media (max-width:720px){#view-app main > div:first-child{padding:8px 12px!important;margin-bottom:10px!important}#app2-main-title{font-size:16px!important}}

@media (max-width:640px){#scrollTopBtn,#gq-copy-page-link,#gq-my-qr,#gq-qr-fab{width:34px!important;height:34px!important;min-width:0!important;padding:0!important;opacity:.55;left:6px!important;font-size:11px!important}#scrollTopBtn svg{width:16px;height:16px}#scrollTopBtn:active,#gq-copy-page-link:active,#gq-my-qr:active{opacity:1}}

        .gq-jf-sec { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 1rem; padding: 1rem 1.25rem; }
        .gq-jf-label { display:block; color: rgba(255,255,255,0.85); font-weight: 800; font-size: 0.9rem; margin-bottom: 0.4rem; }
        .gq-jf-in { width: 100%; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.12); border-radius: 0.75rem; color: #fff; padding: 0.7rem 1rem; font-size: 0.95rem; }
        .gq-jf-in:focus { outline: none; border-color: rgba(245,197,24,0.5); }
        .gq-jf-h { color: #f5c518; font-weight: 900; font-size: 1.05rem; padding-top: 0.5rem; }
        #jf_submit { display: block; width: 100%; min-height: 52px; padding: 0.9rem 1rem; border: 0; border-radius: 1rem; background: linear-gradient(270deg,#f5c518,#d9a406); color: #0b1220; font-family: inherit; font-weight: 900; font-size: 1.05rem; line-height: 1.5; cursor: pointer; box-shadow: 0 8px 22px rgba(245,197,24,0.22); transition: transform .15s, opacity .15s; }
        #jf_submit:hover { opacity: 0.92; }
        #jf_submit:active { transform: translateY(1px); }
        #jf_submit:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
        #jf_submit:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
        .gq-pledge-intro { color: #fff; font-weight: 800; font-size: 0.95rem; line-height: 1.9; margin: 0 0 0.75rem; }
        .gq-pledge-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
        .gq-pledge-card { display: flex; align-items: flex-start; gap: 0.75rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-inline-start: 3px solid #f5c518; border-radius: 0.9rem; padding: 0.8rem 0.9rem; }
        .gq-pledge-n { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: rgba(245,197,24,0.16); color: #f5c518; font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
        .gq-pledge-t { color: rgba(255,255,255,0.88); font-size: 0.88rem; line-height: 2; min-width: 0; overflow-wrap: anywhere; }
        .gq-jf-err { color: #f87171; font-size: 0.8rem; font-weight: 700; margin-top: 0.3rem; min-height: 0; }
        .gq-chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
        .gq-chk { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 700; cursor: pointer; }
        .gq-chk input { accent-color: #f5c518; width: 18px; height: 18px; }
        

body:has(#public-join-screen:not(.hide)) #gq-copy-page-link,body:has(#public-join-screen:not(.hide)) #scrollTopBtn,body:has(#public-join-screen:not(.hide)) #gq-qr-fab,body:has(#event-bridge:not(.hide)) #gq-copy-page-link,body:has(#event-bridge:not(.hide)) #scrollTopBtn,body:has(#event-bridge:not(.hide)) #gq-qr-fab{display:none!important}
.gq-confirm-overlay{position:fixed;inset:0;background:rgba(2,8,20,.72);display:flex;align-items:center;justify-content:center;z-index:99999;direction:rtl}
.gq-confirm-box{background:#0b2447;border:1px solid #f5c518;border-radius:16px;padding:22px;max-width:430px;width:92%;box-shadow:0 14px 44px rgba(0,0,0,.55)}
.gq-confirm-msg{white-space:pre-wrap;font-weight:700;font-size:15px;line-height:1.9;color:#fff;margin-bottom:18px}
.gq-confirm-btns{display:flex;gap:10px;justify-content:flex-start}
.gq-confirm-btns button{padding:10px 24px;border-radius:12px;font-weight:900;font-size:14px;cursor:pointer;font-family:inherit}
.gq-confirm-ok{background:#f5c518;color:#0b2447;border:1px solid #f5c518}
.gq-confirm-cancel{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.3)}
