
:root{--gph:#2856e8;--ink:#12213b;--muted:#667085;--line:#dfe5ee}
.gph-shell{max-width:1160px;margin:0 auto;padding:34px 20px;color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.gph-shell h1{font-size:44px;line-height:1.08;letter-spacing:-.035em}
.gph-shell h2{font-size:30px}
.gph-shell label{font-weight:750;display:block;margin:15px 0 7px}
.gph-shell input,.gph-shell textarea,.gph-shell select{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:11px;padding:12px;background:#fff;font-size:15px}
.muted{color:var(--muted);line-height:1.7}
.gph-kicker{text-transform:uppercase;letter-spacing:.1em;font-size:12px;font-weight:850;color:var(--gph)}
.gph-btn{border:0;border-radius:10px;padding:12px 17px;background:var(--gph);color:#fff!important;text-decoration:none;font-weight:800;display:inline-block;cursor:pointer}
.gph-btn.secondary{background:#fff;color:var(--ink)!important;border:1px solid var(--line)}
.gph-btn[disabled]{opacity:.55;cursor:wait}
.gph-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.gph-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin:15px 0;box-shadow:0 7px 24px rgba(20,35,65,.04)}
.gph-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.gph-hero{display:grid;grid-template-columns:1.3fr .7fr;gap:38px;align-items:center;padding:58px 0}
.gph-hero h1{font-size:60px}
.gph-hero p{font-size:18px;line-height:1.7;color:var(--muted)}
.gph-hero-box{background:#101c38;color:#fff;border-radius:22px;padding:24px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gph-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.gph-stat{background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px}
.gph-stat b{display:block;font-size:30px;margin-top:5px}
.gph-status{padding:11px 13px;border-radius:10px;background:#fff4df;margin:12px 0}
.gph-status.ok{background:#eafaf0}
.gph-status.warn{background:#fff4df}
.gph-pre{white-space:pre-wrap;line-height:1.7;font-family:inherit}
.gph-filter-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.gph-options{display:flex;gap:22px;flex-wrap:wrap;margin:15px 0}
.gph-options label{display:flex;align-items:center;gap:7px;margin:0;font-weight:650}
.gph-options input{width:auto}
.gph-lit-row{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px;margin:10px 0}
.gph-lit-title{font-size:18px;font-weight:800;line-height:1.35}
.gph-meta{font-size:13px;color:var(--muted);margin:5px 0}
.gph-ai-badge{display:inline-block;background:#eef2ff;color:#2747b8;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:800;margin-top:7px}
.gph-ai-reason{font-size:14px;line-height:1.55;margin-top:7px}
.gph-lit-row a{word-break:break-word}
.gph-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0}
.gph-client-debug,.gph-debug{font-size:12px;line-height:1.55;background:#f7f9fc;border:1px dashed #cfd7e6;border-radius:10px;padding:10px;margin-top:10px;word-break:break-word}
.gph-debug code{white-space:pre-wrap;word-break:break-all}
.gph-journal h3{margin:8px 0}
.gph-score{font-size:30px;font-weight:900;color:var(--gph)}
@media(max-width:900px){
  .gph-hero{grid-template-columns:1fr}
  .gph-hero h1{font-size:44px}
  .gph-grid{grid-template-columns:1fr 1fr}
  .gph-filter-grid{grid-template-columns:1fr 1fr}
  .gph-stat-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .gph-grid,.gph-filter-grid{grid-template-columns:1fr}
  .gph-shell h1{font-size:36px}
  .gph-options{display:block}
  .gph-options label{margin:10px 0}
}

.gph-score-note{
  margin-top:8px;
  font-size:.9rem;
  line-height:1.45;
  opacity:.78;
}
.gph-meta-score{
  cursor:help;
}


/* v2.5.0 Outline Generator */
.gph-form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.gph-required{color:#b42318}
.gph-outline-mode{display:inline-block;background:#eef2ff;color:#2747b8;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800;margin-bottom:8px}
.gph-outline-head h2{margin:6px 0 12px}
.gph-outline-section h3{margin-top:0}
.gph-outline-section ul,.gph-outline-head ol{line-height:1.7}
.gph-chip-wrap{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.gph-chip{display:inline-block;padding:6px 9px;border:1px solid var(--line);border-radius:999px;background:#f8faff;font-size:13px}
@media(max-width:700px){.gph-form-grid-2{grid-template-columns:1fr}}

/* v2.5.1 Outline cleanup */
.gph-field-help{margin:-4px 0 12px;font-size:12px;color:#657188}.gph-input-adjustments{margin:14px 0;padding:12px 15px;border:1px solid #f2c94c;background:#fff9e8;border-radius:12px}.gph-input-adjustments ul{margin:8px 0 0 18px}.gph-bg-summary{padding:10px 12px;background:#f7f9fc;border-radius:10px;line-height:1.55}.gph-outline-app input[type="text"],.gph-outline-app textarea,.gph-outline-app select{width:100%;box-sizing:border-box}

.gph-source-note{margin:14px 0;padding:12px 14px;border-radius:10px;background:#f5f7fa;color:#4c566a;font-size:13px}.gph-assistant-app textarea{width:100%;box-sizing:border-box}


/* v2.7.0 AI Peer Reviewer */
.gph-peer-app textarea{width:100%;box-sizing:border-box}
.gph-peer-summary{position:relative}
.gph-peer-rec{display:inline-block;margin:4px 0 10px;padding:7px 11px;border-radius:999px;font-size:13px;font-weight:800}
.gph-peer-rec.accept{background:#eaf8ef;color:#18743b}
.gph-peer-rec.minor{background:#eef6ff;color:#235ca8}
.gph-peer-rec.major{background:#fff4d8;color:#8a5a00}
.gph-peer-rec.reject{background:#fdecec;color:#a32626}
.gph-peer-rec.insufficient{background:#f1f3f6;color:#586273}
.gph-peer-note{margin:14px 0;padding:12px 14px;border-radius:10px;background:#fff8e6;color:#6f5700;font-size:13px;line-height:1.55}
.gph-peer-app .gph-card ul{line-height:1.7}


/* v2.8.0 Dashboard & UI polish */
.gph-duplicate-title-hidden{display:none!important}
.gph-has-theme-title{padding-top:4px}
.gph-dashboard-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.gph-dashboard-hero h1{margin-bottom:6px}
.gph-health-pills{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.gph-health{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:800;background:#f1f3f6;color:#586273}
.gph-health.ok{background:#eaf8ef;color:#18743b}
.gph-health.warn{background:#fff4d8;color:#8a5a00}
.gph-quota-head{display:flex;justify-content:space-between;gap:20px;align-items:center}
.gph-progress{height:10px;border-radius:999px;background:#eef1f6;overflow:hidden;margin:12px 0 8px}
.gph-progress span{display:block;height:100%;background:currentColor;color:#315bf4;border-radius:inherit}
.gph-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.gph-tool-card{display:block;text-decoration:none!important;border:1px solid var(--line);border-radius:14px;padding:16px;background:#fff;color:inherit;transition:transform .16s ease,box-shadow .16s ease}
.gph-tool-card:hover{transform:translateY(-1px);box-shadow:0 8px 28px rgba(24,39,75,.08)}
.gph-tool-card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.gph-tool-card-top span{font-size:12px;color:#657188;white-space:nowrap}
.gph-tool-card p{margin:9px 0;color:#657188}
.gph-tool-open{font-weight:800;font-size:13px}
.gph-section-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.gph-section-head h2{margin:0}
.gph-history-list{margin-top:10px}
.gph-history-row{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-top:1px solid var(--line)}
.gph-history-row:first-child{border-top:0}
.gph-history-row div div{font-size:13px;color:#657188;margin-top:2px}
.gph-history-row time{font-size:12px;color:#7a8495;white-space:nowrap}
.gph-empty{padding:16px 0;color:#657188}
.gph-dashboard-note{margin-top:14px;padding:13px 15px;border-radius:12px;background:#fff8e6;color:#6f5700}
@media(max-width:760px){
  .gph-dashboard-hero{display:block}
  .gph-health-pills{justify-content:flex-start;margin-top:12px}
  .gph-tool-grid{grid-template-columns:1fr}
  .gph-history-row{display:block}
  .gph-history-row time{display:block;margin-top:5px}
}


/* v2.8.1 Dashboard data fix */
.gph-dashboard-app .gph-quota-card .gph-field-help{margin-top:8px}


/* v2.9.0 Usage & History Management */
.gph-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.gph-metric-card{border:1px solid var(--line);background:#fff;border-radius:14px;padding:15px}
.gph-metric-card span{display:block;font-size:12px;color:#657188;font-weight:700}
.gph-metric-card strong{display:block;font-size:28px;line-height:1.1;margin:7px 0}
.gph-metric-card small{display:block;color:#7a8495;line-height:1.4}
.gph-history-filter{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.gph-history-filter a{display:inline-block;text-decoration:none!important;border:1px solid var(--line);border-radius:999px;padding:7px 10px;font-size:12px;color:inherit;background:#fff}
.gph-history-filter a.active{background:#315bf4;color:#fff;border-color:#315bf4}
.gph-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.gph-pagination a{text-decoration:none;font-weight:700}
.gph-pagination a:last-child{text-align:right}
.gph-dashboard-admin-note{margin-top:14px;padding:13px 15px;border-radius:12px;background:#f3f5f8;color:#586273;font-size:13px}
@media(max-width:900px){.gph-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.gph-metric-grid{grid-template-columns:1fr}.gph-pagination{grid-template-columns:1fr;text-align:left}.gph-pagination a:last-child{text-align:left}}

/* v3.0.0 Beta RC polish */
.gph-admin-rc .gph-dashboard-app{max-width:1400px}.gph-admin-rc .gph-shell{padding-left:16px;padding-right:16px}@media(min-width:1500px){.gph-admin-rc .gph-metric-card{padding:18px}.gph-admin-rc .gph-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v3.0.1 Stable Beta polish */
.gph-section-head h2{margin:0 0 5px}
.gph-section-head .muted{display:block;line-height:1.45}
.gph-history-filter{margin-top:16px}
.gph-alert-warning{overflow-wrap:anywhere}


/* v3.0.2 Journal Match recall fix */
.gph-journal-evidence{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}
.gph-journal-evidence span{display:inline-block;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:#f7f9fc;font-size:12px;color:#596579}

/* v3.1.0 Research Projects */
.gph-projects{margin:18px 0 20px}
.gph-project-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:22px;margin-top:18px}
.gph-project-form{display:grid;gap:12px}
.gph-project-form label{display:grid;gap:6px;font-weight:650}
.gph-project-form input,.gph-project-form textarea{width:100%;box-sizing:border-box}
.gph-project-list h3{margin-top:0}
.gph-project-item{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.gph-project-item strong,.gph-project-item small{display:block}
.gph-project-item small{margin-top:4px;color:#667085}
.gph-project-item.is-active{padding-left:10px;border-left:3px solid #2f5bea}
.gph-project-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gph-link-btn{appearance:none;border:0;background:none;padding:3px;color:#214ed8;cursor:pointer;font:inherit}
.gph-link-btn.danger{color:#a12b2b}
.gph-active-chip{display:inline-block;padding:4px 8px;border-radius:999px;background:#eaf8ee;color:#16723b;font-size:12px;font-weight:700}
.gph-workflow-strip{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.gph-workflow-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:9px}
.gph-workflow-links a{padding:7px 10px;border:1px solid var(--line);border-radius:9px;text-decoration:none}
.gph-project-context{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 16px;padding:10px 12px;border:1px solid #dce4f2;border-radius:12px;background:#f8faff}
.gph-project-context>span:not(.gph-active-chip){color:#667085}
.gph-project-status{font-size:13px;color:#667085}
@media(max-width:760px){.gph-project-grid{grid-template-columns:1fr}.gph-project-item{align-items:flex-start;flex-direction:column}}


/* v3.1.1 hotfix */
.gph-projects .gph-section-head{align-items:flex-start}
.gph-projects .gph-section-head h2{margin:4px 0}
/* v3.2 Project Workflow */
.gph-tool-save{display:flex;align-items:center;gap:12px;margin:14px 0}.gph-save-status{font-size:13px;color:#52705d}.gph-project-flow{margin-top:18px}.gph-workflow-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:16px 0 20px}.gph-workflow-steps span{border:1px solid #dbe3ef;border-radius:999px;padding:9px 12px;text-align:center;font-size:13px}.gph-workflow-steps span.done{background:#eaf8ef;border-color:#bde8ca;color:#147a38;font-weight:700}.gph-saved-results>div{display:grid;grid-template-columns:120px 1fr auto auto;gap:12px;align-items:center;padding:10px 0;border-top:1px solid #e7edf5}.gph-link-btn.danger{color:#b42318}@media(max-width:760px){.gph-workflow-steps{grid-template-columns:1fr 1fr}.gph-saved-results>div{grid-template-columns:1fr}.gph-tool-save{align-items:flex-start;flex-direction:column}}

/* v3.3 Research Project Results */
.gph-result-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.gph-result-modal{position:fixed;inset:0;z-index:99999;background:rgba(15,23,42,.48);padding:5vh 18px;overflow:auto}.gph-result-modal[hidden]{display:none}.gph-result-modal-card{position:relative;max-width:920px;margin:auto;background:#fff;border-radius:18px;padding:28px;box-shadow:0 24px 70px rgba(15,23,42,.25)}.gph-result-close{position:absolute;right:16px;top:12px;border:0;background:transparent;font-size:30px;cursor:pointer}.gph-result-modal-card input,.gph-result-modal-card textarea{width:100%;box-sizing:border-box;margin:6px 0 14px}.gph-result-payload{margin-top:18px;max-height:60vh;overflow:auto;border-top:1px solid var(--line);padding-top:14px}.gph-result-field{padding:9px 0;border-bottom:1px solid #edf1f6}.gph-result-field>strong{display:block;text-transform:capitalize;font-size:12px;color:#596579;margin-bottom:4px}.gph-result-data{margin:4px 0 4px 18px}.gph-result-note{background:#f7f9fc;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:12px 0}.gph-result-note p{margin:5px 0 0}.gph-saved-results>div{grid-template-columns:120px minmax(180px,1fr) auto minmax(160px,auto)}@media(max-width:760px){.gph-result-modal-card{padding:22px 16px}.gph-result-actions{justify-content:flex-start}.gph-saved-results>div{grid-template-columns:1fr}}
.gph-report-builder{margin-top:18px}.gph-report-ready{margin:14px 0;padding:12px 14px;border-radius:12px;background:#ecfdf3;color:#087a37;font-weight:700}.gph-report-ready.warn{background:#fff7e6;color:#8a5a00}.gph-report-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.gph-report-actions .gph-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#2f5bea;color:#fff;border-radius:10px;padding:11px 16px;font-weight:700}.gph-report-actions .gph-btn.secondary{background:#fff;color:#2f5bea;border:1px solid #ccd7f5}

/* v4.0 SLR Workspace */
.gph-slr-list{display:grid;gap:12px}.gph-slr-record{border:1px solid #e3e7ee;border-radius:12px;padding:14px;background:#fff}.gph-slr-record>div{display:grid;gap:5px;margin-bottom:10px}.gph-slr-record small{color:#667085}.gph-slr-screen{display:grid;grid-template-columns:140px 1fr 1fr auto;gap:8px;align-items:center}.gph-slr-screen select,.gph-slr-screen input{min-height:40px}.gph-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media(max-width:800px){.gph-slr-screen,.gph-two{grid-template-columns:1fr}}

/* v4.1 Screening Workflow & PRISMA */
.gph-slr-metrics{margin-top:18px}.gph-slr-progress{margin:0 0 18px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff}.gph-slr-progress>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:9px}.gph-slr-progressbar{height:10px;border-radius:999px;background:#edf1f6;overflow:hidden}.gph-slr-progressbar i{display:block;height:100%;border-radius:999px;background:#315bf4}.gph-slr-filter{display:grid;grid-template-columns:minmax(220px,1fr) 180px auto auto;gap:8px;align-items:center;margin:14px 0}.gph-slr-filter input,.gph-slr-filter select{min-height:42px}.gph-slr-bulk{display:grid;grid-template-columns:auto 160px minmax(190px,1fr) minmax(180px,1fr) minmax(190px,1fr) auto;gap:8px;align-items:center;margin:12px 0 16px;padding:12px;border:1px solid #dce4f2;border-radius:12px;background:#f8faff}.gph-slr-bulk select,.gph-slr-bulk input{min-height:40px}.gph-slr-title{grid-template-columns:auto minmax(0,1fr) auto!important;align-items:start;gap:12px!important}.gph-slr-check{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#667085;font-weight:600}.gph-slr-status{display:inline-block;padding:5px 8px;border-radius:999px;background:#f1f3f6;color:#596579;font-size:12px;font-weight:700}.gph-slr-status.is-include{background:#ecfdf3;color:#087a37}.gph-slr-status.is-exclude{background:#fff1f0;color:#b42318}.gph-slr-status.is-maybe{background:#fff7e6;color:#8a5a00}.gph-slr-screen{grid-template-columns:130px minmax(180px,1fr) minmax(150px,1fr) minmax(180px,1fr) auto}.gph-prisma{margin-top:18px}.gph-prisma-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;gap:10px;align-items:stretch;margin-top:14px}.gph-prisma-flow>div{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff;display:grid;gap:5px}.gph-prisma-flow span{font-size:12px;color:#657188;font-weight:700}.gph-prisma-flow strong{font-size:28px}.gph-prisma-flow small{color:#7a8495}.gph-prisma-flow>b{align-self:center;color:#98a2b3;font-size:22px}@media(max-width:1050px){.gph-slr-bulk{grid-template-columns:1fr 1fr 1fr}.gph-slr-screen{grid-template-columns:1fr 1fr}.gph-prisma-flow{grid-template-columns:1fr}.gph-prisma-flow>b{transform:rotate(90deg);justify-self:center}}@media(max-width:700px){.gph-slr-filter,.gph-slr-bulk,.gph-slr-screen{grid-template-columns:1fr}.gph-slr-title{grid-template-columns:1fr!important}.gph-slr-progress>div:first-child{display:grid}}

/* v4.2 Data Extraction & Evidence Synthesis */
.gph-extraction{margin-top:18px}.gph-extraction-list{display:grid;gap:14px}.gph-extraction-record{border:1px solid var(--line);border-radius:14px;padding:16px;background:#fff}.gph-extraction-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.gph-extraction-form label{display:grid;gap:6px;font-weight:650}.gph-extraction-form input,.gph-extraction-form textarea,.gph-extraction-form select{width:100%;box-sizing:border-box}.gph-extraction-form .gph-wide{grid-column:1/-1}@media(max-width:760px){.gph-extraction-form{grid-template-columns:1fr}.gph-extraction-form .gph-wide{grid-column:auto}.gph-extraction .gph-section-head{align-items:flex-start;flex-direction:column}}

/* v5.1 Account & Onboarding UX */
.gph-account-gate .gph-account-actions,.gph-account-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:16px}.gph-account-page{max-width:980px;margin:0 auto}.gph-account-card{max-width:620px;margin:38px auto;background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:0 14px 40px rgba(15,23,42,.06)}.gph-account-card-wide{max-width:980px}.gph-account-card h1{margin:5px 0 8px}.gph-account-form{display:grid;gap:15px;margin-top:20px}.gph-account-form label{display:grid;gap:7px;font-weight:700}.gph-account-form input[type=text],.gph-account-form input[type=email],.gph-account-form input[type=password]{width:100%;box-sizing:border-box;min-height:46px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font:inherit}.gph-account-form small{font-weight:400;color:#667085}.gph-account-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;justify-content:flex-start;gap:8px!important;font-weight:500!important}.gph-account-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px}.gph-account-switch{margin-top:18px}.gph-account-notice{padding:11px 13px;border-radius:10px;margin:14px 0;font-weight:650}.gph-account-notice.is-error{background:#fff1f0;color:#a61b1b;border:1px solid #ffd1cc}.gph-account-notice.is-success{background:#ecfdf3;color:#087a37;border:1px solid #bce8ca}@media(max-width:700px){.gph-account-card{padding:20px 16px;margin:18px auto}.gph-account-links{display:grid}.gph-account-actions{align-items:stretch;flex-direction:column}.gph-account-actions .gph-btn{text-align:center}}
