/* Pherogent workspace refresh. Shared tokens and shell, loaded after feature styles. */
:root {
  --ink:#202724; --muted:#717976; --green:#24654e; --green-hover:#174c39;
  --green-soft:#eef5f1; --paper:#fff; --surface:#f7f8f7; --canvas:#fff;
  --line:#e7eae8; --line-strong:#d4dad6; --sidebar:#f8f9f8; --sidebar-width:216px;
  --accent:#24654e; --radius:12px; --studio-header:64px;
  --studio-white:#fff; --studio-canvas:#fff; --studio-line:#e7eae8;
  --studio-soft:#f5f7f5; --studio-muted:#717976;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px; color:var(--ink); background:var(--canvas);
}
body { background:#fff; }
button,input,textarea,select { font-family:inherit; }
h1,h2,h3,h4,.document-title { font-family:inherit; color:var(--ink); }
h1,.page-head h1,.product-head h1 { font-size:28px; font-weight:600; letter-spacing:-1px; }
h2 { font-size:19px; font-weight:600; letter-spacing:-.45px; }
.eyebrow { color:var(--muted); font-size:10px; letter-spacing:.1em; font-weight:550; }
:focus-visible { outline:2px solid #518a72; outline-offset:3px; }
.topbar { height:64px; min-height:64px; padding:0 24px; gap:20px; flex-wrap:nowrap; background:#fff; border-color:var(--line); }
.topbar .brand { min-width:171px; gap:9px; font-family:inherit; font-size:21px; font-weight:600; line-height:1.2; letter-spacing:-.8px; color:#243e32; }
.topbar .brand-symbol { width:27px; height:29px; border-radius:8px; font:italic 26px/1 Georgia,serif; padding:0 3px 3px 0; background:#24654e; box-shadow:none; }
.topbar .brand-caption { display:none; }
.header-divider { height:21px; background:var(--line); }
.project-switcher-wrap { gap:17px; }
.topbar .project-switcher { min-height:35px; padding:6px 9px; font-size:12px; max-width:370px; border-radius:7px; }
.project-folder { color:#909a94; }
.topbar .top-actions { gap:8px; }
.topbar .top-actions .btn { min-height:34px; border-radius:7px; padding:6px 10px; font-size:11px; box-shadow:none; }
.topbar .help-button { width:34px; padding:7px; color:#737b76!important; }
.topbar .help-button span { display:none; }
.topbar .export-button { background:#fff; border-color:var(--line); color:#4b5650; }
.topbar .usage-button { min-width:0; padding:7px 10px; border:0; background:transparent; border-radius:7px; }
.topbar .usage-button:hover { background:#f5f6f5; }
.usage-value { color:#747d77; font-size:11px; }
.usage-value strong { color:#45534b; font-size:12px; font-weight:550; }
.topbar .usage-connection { display:none; }
.account-trigger { border:1px solid var(--line); background:#fff; min-height:34px; padding:5px 9px; border-radius:7px; gap:6px; }
.account-trigger-copy strong { font-size:11px; font-weight:550; }
.account-trigger-copy small { display:none; }
.account-avatar { width:21px; height:21px; font-size:11px; color:#596e60; background:#f0f4f1; }
.account-trigger>span:last-child { color:#8d9790; font-size:11px; }
.account-menu { top:calc(100% + 12px); border-color:var(--line); border-radius:12px; box-shadow:0 16px 45px #15241a15,0 2px 8px #15241a05; }
.account-menu h2 { color:var(--ink); }
.account-credit-card { border-color:#e0e8e2; background:#f5f8f5; }
.account-boot { background:#fafbfa; }
.app-layout { grid-template-columns:var(--sidebar-width) minmax(0,1fr); min-height:calc(100dvh - 64px); }
.sidebar { top:64px; height:calc(100dvh - 64px); padding:23px 13px 16px; gap:21px; border-right:1px solid var(--line); background:var(--sidebar); }
.sidebar .new-project-button { min-height:36px; padding:8px 12px; border:1px solid #dfe5e0; background:#fff; color:#45574b; border-radius:7px; box-shadow:0 1px 2px #00000003; font-size:12px; font-weight:500; justify-content:flex-start; }
.sidebar .new-project-button:hover { transform:none; background:#f0f4f1; border-color:#ccd8cf; }
.sidebar .new-project-button svg { width:16px; height:16px; }
.mobile-project-switcher { display:none; }
.sidebar #navigation { gap:4px; padding:0; scrollbar-color:#d7ddd8 transparent; }
#navigation button,#navigation .studio-nav-item { min-height:37px; padding:8px 11px; margin:0; color:#68726b; border:1px solid transparent; border-radius:7px; font-size:13px; font-weight:450; gap:10px; box-shadow:none; }
#navigation button:hover,#navigation .studio-nav-item:hover { background:#eff2ef; color:#314c3c; }
#navigation button.active,#navigation button[aria-current="page"],#navigation .studio-nav-item[aria-current="page"] { background:#eaf0eb; color:#264c37; border-color:transparent; font-weight:550; box-shadow:none; }
#navigation .studio-nav-icon,#navigation .nav-icon { color:#8a968d; width:17px; height:17px; flex-basis:17px; }
#navigation .studio-nav-icon svg { width:17px; height:17px; }
#navigation .studio-nav-item[aria-current="page"] .studio-nav-icon { color:#407653; }
#navigation .nav-count { min-width:19px; height:19px; font-size:10px; color:#78837b; background:#e9ede9; border-radius:4px; }
#navigation .studio-section-label,#navigation .nav-label { color:#98a199; font-size:9px; margin:15px 11px 7px; }
#navigation .studio-nav-home { border-color:var(--line); padding-bottom:12px; }
#navigation .studio-tools-nav,#navigation .studio-paper-nav { border:0; border-top:1px solid var(--line); border-radius:0; margin-top:12px; padding-top:7px; }
#navigation .studio-tools-nav>summary,#navigation .studio-paper-nav>summary { color:#7e8981; padding:10px 11px; font-size:11px; }
#navigation .studio-paper-nav summary strong { font-size:11px; font-weight:500; }
#navigation .studio-paper-nav summary small { color:#929c94; }
#navigation .studio-paper-sections { border-color:#dce3dd; }
#navigation .studio-nav-chevron { color:#98a299; }
#navigation summary:hover { background:#f0f3f0; }
#navigation summary:focus-visible { outline:2px solid #518a72; }
.sidebar-bottom { border-top:1px solid var(--line); padding-top:14px; }
.sidebar-tutorial,.sidebar-tutorial:hover { min-height:36px; padding:8px 10px; border:0; background:transparent; color:#566e5f; box-shadow:none; transform:none; border-radius:7px; }
.sidebar-tutorial:hover,.sidebar-sample:hover { background:#edf2ee; }
.sidebar-tutorial strong { font-size:11px; font-weight:500; }
.sidebar-tutorial small { display:none; }
.sidebar-tutorial>span:last-child { display:none; }
.tutorial-launch-icon { color:#7c9383; }
.tutorial-launch-icon svg { width:17px; height:17px; }
.sidebar-sample { margin-top:0; min-height:35px; font-size:11px; padding:8px 10px; color:#68736c; }
.sidebar-local { font-size:10px; margin:15px 11px 0; color:#68736c; }
.sidebar-local small { display:none; }
.local-dot { background:#91aa98; }
.app-content,body.map-mode .app-content,body.usage-mode .app-content { background:#fff; }
.project-context,body.map-mode .project-context { background:#fafbf9; border-color:#eff1ed; color:#68736c; padding:6px 32px; font-size:10px; justify-content:flex-start; gap:12px; }
.sample-badge { color:#778c71; font-size:10px; font-weight:500; }
.sample-badge::before { background:#a1b290; width:4px; height:4px; }
.page,.product-page { padding:32px 38px 40px; max-width:1320px; }
.page-head,.product-head { margin-bottom:24px; }
.page-head p,.product-head p { font-size:12px; color:#68736c; line-height:1.6; }
.page-head .eyebrow { margin-bottom:7px; }
.btn { border-radius:7px; min-height:37px; font-size:12px; padding:8px 13px; box-shadow:none; font-weight:500; border-color:#dce2dd; background:#fff; color:#425e4e; }
.btn:hover:not(:disabled) { background:#f4f7f4; border-color:#c6d3ca; }
.btn.primary,.btn.primary:hover { box-shadow:none; }
.btn.primary { background:#24654e; border-color:#24654e; color:#fff; }
.btn.primary:hover:not(:disabled) { background:#194e3a; border-color:#194e3a; }
.btn.small { min-height:32px; padding:6px 10px; font-size:11px; }
.btn.ghost { border-color:transparent; background:transparent; color:#78817a; }
.field>input,.field>textarea,.field>select,input[type="text"],textarea,select { border-color:#dfe5df; border-radius:8px; background:#fff; color:var(--ink); }
textarea:focus,input:focus,select:focus { border-color:#99b4a2; }
.workspace,.product-panel,.brief-editor,.draft-editor,.source-card,.paper-result,.source-list,.log-list,.notebook-card { background:#fff; border-color:var(--line); border-radius:10px; box-shadow:none; }
.evidence-panel { background:#fafbf9; border-color:var(--line); }
.disclosure { background:#f6f8f5; border-color:#e7ece4; padding:10px 14px; font-size:11px; border-radius:7px; }
.empty-state { background:#fbfcfa; border:1px dashed #dfe5dc; border-radius:10px; }
.source-grid { gap:14px; }
.source-passage { background:#f6f8f4; border-color:#c9d8c4; }
.product-metrics,.workspace-shortcuts { gap:12px; }
.product-metric,.shortcut-card,.tutorial-launch-card { background:#fafbf9; border-color:var(--line); box-shadow:none; }
.shortcut-card:hover { transform:none; background:#f5f8f3; }
.product-metric strong { color:#344c3b; }
.project-badge,.scope-pill { color:#829077; border-color:#e3e9db; background:#f6f8f1; }
.site-footer,body.map-mode .site-footer { padding:12px 38px 20px; color:#68736c; font-size:10px; }
.site-footer>span:last-child { color:#68736c; }
dialog { border:1px solid #e5e9e3; border-radius:15px; background:#fff; box-shadow:0 28px 90px #18271b29; }
dialog::backdrop { background:#16251d55; backdrop-filter:blur(3px); }
.dialog-head h2 { font-family:inherit; font-size:20px; letter-spacing:-.5px; }
.icon-button { background:#f4f6f2; color:#7e8979; border-radius:7px; }
.agent-status,.agent-limits,.agent-history { border-color:var(--line); }
.agent-project { color:#68736c; font-size:11px; }
.agent-limit-copy { font-size:10px; color:#68736c; }
.agent-evidence { background:#fff; border-color:var(--line); border-radius:10px; box-shadow:none; }
.agent-summary { border-color:var(--line); }
.dl-heading h1,.outputs-heading h1,.meter-page-head h1 { font-family:inherit; color:var(--ink); font-weight:600; letter-spacing:-.9px; }
.data-lab { --dl-ink:#25342a; --dl-muted:#778473; --dl-line:#e4e9df; --dl-soft:#f7f9f3; --dl-green:#35694c; }
.dl-card,.dl-example,.dl-result-card,.dl-review,.output-card,.meter-card { box-shadow:none; border-color:var(--line); background:#fff; }
.dl-example { background:#f7f9f2; }
.meter-page,.meter-stats,.meter-main-grid { background:transparent; }
.meter-stats>div,.meter-card { border-radius:10px; }
.meter-card-head h2 { color:#394b38; }
.account-control a:focus-visible,.account-control button:focus-visible { outline-color:#518a72; }
@media(min-width:1440px) { .page,.product-page { padding-left:48px; padding-right:48px; } }
@media(max-width:1100px) { .topbar { gap:12px; padding-inline:18px; }.topbar .brand { min-width:170px; }.topbar .project-switcher { max-width:270px; }.page,.product-page { padding:28px; } }
@media(max-width:900px) { :root { --sidebar-width:194px; }.topbar .brand { min-width:148px; }.topbar .project-switcher { max-width:220px; }.topbar .usage-button { display:none; }.sidebar { padding-inline:10px; } }
@media(max-width:700px) {
  :root { --studio-header:60px; }
  .topbar { height:60px; min-height:60px; padding:0 13px; gap:10px; flex-wrap:nowrap; }
  .topbar .brand { min-width:0; font-size:20px; order:1; gap:7px; }
  .topbar .brand-symbol { width:24px; height:26px; font-size:23px; }
  .topbar .mobile-menu-toggle { display:flex; order:0; width:30px; min-height:30px; height:30px; padding:6px; color:#5c7060; background:transparent; border:0; }
  .topbar .top-actions { order:2; gap:5px; }
  .topbar .project-switcher-wrap { display:none; }
  .topbar .help-button { display:none; }
  .topbar .top-actions .export-button { min-height:30px; font-size:10px; padding:6px 8px; }
  .topbar .account-trigger { min-height:31px; padding:4px 7px; border:1px solid var(--line); }
  .account-trigger-copy { display:flex; max-width:65px; }.account-trigger-copy strong { font-size:10px; }
  .account-avatar { display:none; }.account-menu { top:61px; }
  .app-layout { display:block; min-height:calc(100dvh - 60px); }
  .sidebar { top:60px; width:236px; height:calc(100dvh - 60px); padding:20px 15px; position:fixed; left:0; z-index:60; transform:translateX(-102%); visibility:hidden; box-shadow:12px 0 40px #2336220a; transition:transform .18s,visibility .18s; }
  body.nav-open .sidebar { transform:none; visibility:visible; }
  body.nav-open .nav-backdrop { display:block; position:fixed; inset:60px 0 0; z-index:50; border:0; background:#17291f44; }
  .sidebar #navigation { display:flex; }
  .sidebar .mobile-project-switcher { display:flex; align-items:center; gap:10px; min-height:36px; margin-top:-12px; padding:8px 12px; border:0; background:transparent; color:#526258; font-size:12px; text-align:left; }
  .project-context,body.map-mode .project-context { padding:7px 18px; font-size:9px; line-height:1.5; gap:5px; }
  .project-context>span:not(.sample-badge) { display:none; }
  .page,.product-page { padding:25px 18px 30px; }
  h1,.page-head h1,.product-head h1 { font-size:25px; }
  .site-footer,body.map-mode .site-footer { padding:12px 18px; }
  .site-footer>span:last-child { display:none; }
  .account-control { margin-left:0; }
  dialog { width:calc(100% - 24px); padding:20px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; animation:none!important; } }
