/* v659 — local workspace, continue and cross-tool workflow */
.portal-continue-v659{display:none;align-items:center;justify-content:center;min-height:40px;padding:0 13px;border:1px solid #c7ddce;border-radius:11px;background:#fff;color:#176f3b;font:800 12px/1 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer;white-space:nowrap}.portal-continue-v659.is-visible{display:inline-flex}.portal-continue-v659:before{content:"↻";margin-right:6px;font-size:16px}
.portal-workspace-dialog-v659{width:min(760px,calc(100vw - 28px));max-height:min(820px,calc(100vh - 28px));padding:0;border:0;border-radius:22px;background:#fff;color:#173b29;box-shadow:0 28px 90px rgba(16,48,31,.28);overflow:hidden}.portal-workspace-dialog-v659::backdrop{background:rgba(13,31,21,.42);backdrop-filter:blur(2px)}.portal-ws-head-v659{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:22px 24px 18px;border-bottom:1px solid #e3ece6}.portal-ws-head-v659 small{display:block;margin-bottom:5px;color:#168044;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.portal-ws-head-v659 h2{margin:0;font-size:26px;letter-spacing:-.03em}.portal-ws-close-v659{width:38px;height:38px;border:1px solid #d9e6dd;border-radius:11px;background:#fff;font-size:22px;cursor:pointer}.portal-ws-body-v659{max-height:calc(100vh - 150px);padding:22px 24px 26px;overflow:auto}.portal-ws-note-v659{margin:0 0 18px;padding:12px 14px;border-radius:13px;background:#f1f8f3;color:#52685a;font-size:12.5px;line-height:1.55}.portal-ws-grid-v659{display:grid;grid-template-columns:1fr 1fr;gap:10px}.portal-ws-grid-v659 label{display:grid;gap:6px;color:#496052;font-size:12px;font-weight:800}.portal-ws-grid-v659 label.span2{grid-column:1/-1}.portal-ws-grid-v659 input{min-height:42px;padding:9px 11px;border:1px solid #d4e3d9;border-radius:11px;background:#fff;color:#173b29;font:inherit}.portal-ws-actions-v659{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.portal-ws-btn-v659{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 13px;border:1px solid #c8dfd0;border-radius:11px;background:#fff;color:#176f3a;font-weight:900;cursor:pointer;text-decoration:none}.portal-ws-btn-v659.primary{border-color:#14723b;background:#14723b;color:#fff}.portal-ws-btn-v659.danger{margin-left:auto;border-color:#efd4cf;color:#98483d}.portal-ws-section-v659{margin-top:22px}.portal-ws-section-v659 h3{margin:0 0 10px;font-size:18px}.portal-recent-v659{display:grid;gap:8px}.portal-recent-v659 a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:12px 13px;border:1px solid #deebe2;border-radius:13px;background:#fbfdfb;color:#1b3f2c;text-decoration:none}.portal-recent-v659 b{font-size:13px}.portal-recent-v659 span{color:#6a7b71;font-size:11px}.portal-workflow-mini-v659{padding:15px;border:1px solid #d9e8de;border-radius:15px;background:#f8fbf9}.portal-workflow-mini-v659 b{display:block;margin-bottom:5px}.portal-workflow-mini-v659 p{margin:0 0 10px;color:#607168;font-size:12.5px;line-height:1.55}.portal-workflow-mini-v659 nav{display:flex;flex-wrap:wrap;gap:6px}.portal-workflow-mini-v659 a{padding:7px 9px;border-radius:9px;background:#eaf5ed;color:#176f3a;font-size:11px;font-weight:900;text-decoration:none}.portal-workflow-mini-v659 a.is-current{background:#14723b;color:#fff}
.portal-contextbar-v659,.portal-handoffbar-v659,.portal-progress-v659{width:min(1180px,calc(100% - 36px));margin:16px auto;padding:14px 16px;border:1px solid #d4e5da;border-radius:15px;background:linear-gradient(135deg,#f6fbf7,#fff);box-shadow:0 8px 20px rgba(20,63,38,.035)}.portal-contextbar-v659{display:flex;gap:16px;align-items:center;justify-content:space-between}.portal-contextbar-v659 b,.portal-handoffbar-v659 b,.portal-progress-v659 b{display:block;color:#173e2a}.portal-contextbar-v659 p,.portal-handoffbar-v659 p,.portal-progress-v659 p{margin:4px 0 0;color:#61736a;font-size:12.5px;line-height:1.5}.portal-context-actions-v659{display:flex;flex:none;gap:7px;flex-wrap:wrap}.portal-context-actions-v659 button{min-height:38px;padding:0 12px;border:1px solid #c8dfd0;border-radius:10px;background:#fff;color:#176f3a;font-weight:900;cursor:pointer}.portal-context-actions-v659 button.primary{background:#14723b;border-color:#14723b;color:#fff}
.portal-progress-v659{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}.portal-progress-track-v659{display:flex;gap:6px;margin-top:9px;overflow:auto}.portal-progress-track-v659 a{flex:none;padding:7px 10px;border:1px solid #d9e7dd;border-radius:9px;background:#fff;color:#426151;font-size:11px;font-weight:850;text-decoration:none}.portal-progress-track-v659 a.is-current{background:#14723b;border-color:#14723b;color:#fff}.portal-progress-track-v659 a.is-visited:not(.is-current){background:#eaf6ed;color:#176f3a}.portal-progress-next-v659{display:flex;gap:7px}.portal-progress-next-v659 a{display:inline-flex;align-items:center;min-height:40px;padding:0 12px;border-radius:10px;background:#14723b;color:#fff;font-size:12px;font-weight:900;text-decoration:none}
.portal-handoffbar-v659{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}.portal-handoff-values-v659{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.portal-handoff-values-v659 span{padding:5px 8px;border-radius:8px;background:#edf7f0;color:#36604a;font-size:11px;font-weight:800}.portal-handoffbar-v659 button{min-height:40px;padding:0 13px;border:1px solid #14723b;border-radius:10px;background:#14723b;color:#fff;font-weight:900;cursor:pointer}.portal-handoffbar-v659 button.secondary{border-color:#d3e3d8;background:#fff;color:#176f3a}
.portal-workflow-section-v659{padding:56px 0;border-top:1px solid #edf2ee;background:#f8fbf9}.portal-workflow-section-v659 .wrap{width:min(1180px,calc(100% - 36px));margin:auto}.portal-workflow-section-v659 h2{margin:8px 0 10px;font-size:clamp(30px,3.3vw,46px);letter-spacing:-.04em}.portal-workflow-section-v659>div>p{max-width:920px;color:#5f7167;line-height:1.65}.portal-workflow-steps-v659{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:22px}.portal-workflow-steps-v659 a{display:flex;flex-direction:column;min-height:170px;padding:18px;border:1px solid #d9e8de;border-radius:17px;background:#fff;color:#173b29;text-decoration:none}.portal-workflow-steps-v659 i{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eaf6ed;color:#176f3a;font-style:normal;font-size:12px;font-weight:950}.portal-workflow-steps-v659 b{margin:14px 0 6px;font-size:17px}.portal-workflow-steps-v659 span{color:#62736a;font-size:12.5px;line-height:1.5}.portal-workflow-steps-v659 em{margin-top:auto;padding-top:12px;color:#14723b;font-style:normal;font-size:12px;font-weight:900}.portal-workflow-warning-v659{margin-top:16px;padding:13px 15px;border-left:4px solid #c59a32;border-radius:12px;background:#fff8e7;color:#665527;font-size:12.5px;line-height:1.55}
@media(max-width:900px){.portal-workflow-steps-v659{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-progress-v659,.portal-handoffbar-v659{grid-template-columns:1fr}.portal-progress-next-v659{justify-content:flex-start}}
@media(max-width:680px){.portal-continue-v659{width:40px;padding:0;font-size:0}.portal-continue-v659:before{margin:0;font-size:18px}.portal-contextbar-v659,.portal-handoffbar-v659,.portal-progress-v659{width:min(100% - 26px,1180px);margin:12px auto}.portal-contextbar-v659{align-items:flex-start;flex-direction:column}.portal-ws-grid-v659{grid-template-columns:1fr}.portal-ws-grid-v659 label.span2{grid-column:auto}.portal-workflow-steps-v659{grid-template-columns:1fr}.portal-workflow-section-v659 .wrap{width:min(100% - 26px,1180px)}.portal-ws-body-v659{padding:18px}.portal-ws-head-v659{padding:18px}.portal-ws-actions-v659{display:grid;grid-template-columns:1fr}.portal-ws-btn-v659.danger{margin-left:0}}
@media print{.portal-continue-v659,.portal-contextbar-v659,.portal-handoffbar-v659,.portal-progress-v659,.portal-workflow-section-v659,.portal-workspace-dialog-v659{display:none!important}}


/* v701 — shared project context */
.portal-projectbar-v701{width:min(1180px,calc(100% - 36px));margin:20px auto 24px;padding:16px 18px;border:1px solid #cfe2d5;border-radius:16px;background:linear-gradient(135deg,#f4faf6,#fff);box-shadow:0 8px 24px rgba(20,63,38,.04);display:flex;align-items:center;justify-content:space-between;gap:18px;clear:both}.portal-projectbar-v701 small{display:block;margin-bottom:4px;color:#168044;font-size:10px;font-weight:950;letter-spacing:.09em}.portal-projectbar-v701 b{display:block;color:#173e2a;font-size:16px}.portal-projectbar-v701 p{margin:5px 0 0;color:#607168;font-size:12.5px;line-height:1.5}.portal-projectbar-actions-v701{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.portal-projectbar-actions-v701 button{min-height:40px;padding:0 12px;border:1px solid #c8dfd0;border-radius:10px;background:#fff;color:#176f3a;font-weight:900;cursor:pointer}.portal-projectbar-actions-v701 button.primary{border-color:#14723b;background:#14723b;color:#fff}.portal-projectbar-actions-v701 button:disabled{opacity:.48;cursor:not-allowed}
.portal-project-dialog-v701{width:min(760px,calc(100vw - 28px));max-height:min(840px,calc(100vh - 28px));padding:0;border:0;border-radius:22px;background:#fff;color:#173b29;box-shadow:0 28px 90px rgba(16,48,31,.28);overflow:hidden}.portal-project-dialog-v701::backdrop{background:rgba(13,31,21,.44);backdrop-filter:blur(2px)}.portal-project-head-v701{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:22px 24px 18px;border-bottom:1px solid #e3ece6}.portal-project-head-v701 small{display:block;margin-bottom:5px;color:#168044;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.portal-project-head-v701 h2{margin:0;font-size:26px;letter-spacing:-.03em}.portal-project-head-v701 button{width:38px;height:38px;border:1px solid #d9e6dd;border-radius:11px;background:#fff;font-size:22px;cursor:pointer}.portal-project-body-v701{max-height:calc(100vh - 120px);padding:22px 24px 26px;overflow:auto}.portal-project-note-v701,.portal-project-empty-v701,.portal-project-warn-v701{margin:0 0 16px;padding:12px 14px;border-radius:13px;background:#f1f8f3;color:#52685a;font-size:12.5px;line-height:1.55}.portal-project-warn-v701{background:#fff8e8;color:#755f2a}.portal-project-list-v701{display:grid;gap:9px}.portal-project-list-v701 label{display:grid;grid-template-columns:auto minmax(0,1fr);gap:11px;align-items:flex-start;padding:12px 13px;border:1px solid #dce9e0;border-radius:13px;background:#fbfdfb;cursor:pointer}.portal-project-list-v701 label.is-conflict{border-color:#ead9b4;background:#fffaf0}.portal-project-list-v701 input[type=checkbox]{width:18px;height:18px;margin-top:3px;accent-color:#14723b}.portal-project-list-v701 span{display:grid;gap:3px}.portal-project-list-v701 b{font-size:12px}.portal-project-list-v701 em{font-style:normal;font-size:14px;color:#173e2a}.portal-project-list-v701 small{color:#74847a;font-size:11px;line-height:1.4}.portal-project-edit-v701{display:grid;grid-template-columns:1fr 1fr;gap:10px}.portal-project-edit-v701 label{display:grid;gap:5px}.portal-project-edit-v701 label span{font-size:11px;font-weight:900;color:#496052}.portal-project-edit-v701 input{min-height:42px;padding:9px 11px;border:1px solid #d4e3d9;border-radius:11px;background:#fff;color:#173b29;font:inherit}.portal-project-edit-v701 small{min-height:28px;color:#7b897f;font-size:10px;line-height:1.35}.portal-project-actions-v701{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.portal-project-actions-v701 button{min-height:42px;padding:0 14px;border:1px solid #c8dfd0;border-radius:11px;background:#fff;color:#176f3a;font-weight:900;cursor:pointer}.portal-project-actions-v701 button.primary{border-color:#14723b;background:#14723b;color:#fff}.portal-project-actions-v701 button.danger{margin-left:auto;border-color:#efd4cf;color:#98483d}.portal-project-actions-v701 button:disabled{opacity:.5;cursor:not-allowed}.portal-project-summary-v701{padding-top:4px}.portal-project-toast-v701{position:fixed;z-index:10050;left:50%;bottom:24px;transform:translate(-50%,16px);padding:10px 14px;border-radius:11px;background:#173e2a;color:#fff;font-size:12px;font-weight:800;opacity:0;pointer-events:none;transition:.2s ease}.portal-project-toast-v701.is-visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:760px){.portal-projectbar-v701{width:min(100% - 26px,1180px);align-items:flex-start;flex-direction:column;margin:14px auto 18px}.portal-projectbar-actions-v701{width:100%;display:grid;grid-template-columns:1fr 1fr}.portal-projectbar-actions-v701 button:last-child{grid-column:1/-1}.portal-project-edit-v701{grid-template-columns:1fr}.portal-project-body-v701{padding:18px}.portal-project-head-v701{padding:18px}.portal-project-actions-v701{display:grid;grid-template-columns:1fr}.portal-project-actions-v701 button.danger{margin-left:0}}
@media print{.portal-projectbar-v701,.portal-project-dialog-v701,.portal-project-toast-v701,.portal-project-summary-v701{display:none!important}}


/* v701 guided handoff status */
.portal-projectbar-main-v701{min-width:0;flex:1}.portal-project-status-v701{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.portal-project-status-v701 span{display:inline-flex;align-items:center;min-height:27px;padding:4px 8px;border:1px solid #d9e6dd;border-radius:999px;background:#fff;color:#5d6f64;font-size:10.5px;font-weight:900;white-space:nowrap}.portal-project-status-v701 span.ready{border-color:#b8d9c3;background:#eaf7ee;color:#176f3a}.portal-project-status-v701 span.ok{border-color:#cfe4d6;background:#f3faf5;color:#3f6d50}.portal-project-status-v701 span.warn{border-color:#ead8ae;background:#fff8e8;color:#7b6025}.portal-projectbar-actions-v701 button.warn{border-color:#dcc88f;background:#fffaf0;color:#795d1f}.portal-projectbar-actions-v701 button[hidden]{display:none!important}
.portal-project-compare-v701{display:grid;gap:10px}.portal-project-compare-v701 article{display:grid;grid-template-columns:minmax(130px,.65fr) 1fr 1fr;gap:10px;padding:12px 13px;border:1px solid #ead9b4;border-radius:13px;background:#fffaf0}.portal-project-compare-v701 article>b{align-self:center;color:#614f27;font-size:12px}.portal-project-compare-v701 article>div{display:grid;gap:3px;min-width:0}.portal-project-compare-v701 article span{color:#88754c;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.portal-project-compare-v701 article em{font-style:normal;color:#2c3f33;font-size:12.5px;line-height:1.45;overflow-wrap:anywhere}
@media(max-width:760px){.portal-project-status-v701{width:100%;overflow:auto;flex-wrap:nowrap;padding-bottom:2px}.portal-project-status-v701 span{flex:none}.portal-project-compare-v701 article{grid-template-columns:1fr}.portal-project-compare-v701 article>b{padding-bottom:3px}.portal-projectbar-actions-v701{grid-template-columns:1fr 1fr}.portal-projectbar-actions-v701 button:last-child{grid-column:auto}}


/* v867 — project details toolbar: prevent flex text-column collapse on PTO forms.
   The toolbar may be hosted inside a narrow editor even on wide desktops.
   Keep content and controls on separate rows regardless of viewport width. */
.portal-projectbar-v701{
  box-sizing:border-box;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:start;
  justify-items:stretch;
  gap:12px;
  max-width:100%;
}
.portal-projectbar-v701 .portal-projectbar-main-v701{
  box-sizing:border-box;
  min-width:0;
  width:100%;
  max-width:100%;
  flex:none;
}
.portal-projectbar-main-v701 > :is(small,b,p){
  max-width:100%;
  word-break:normal;
  overflow-wrap:break-word;
  hyphens:none;
}
.portal-projectbar-v701 .portal-projectbar-actions-v701{
  box-sizing:border-box;
  display:flex;
  width:100%;
  min-width:0;
  max-width:100%;
  flex-wrap:wrap;
  justify-content:flex-start;
  align-items:stretch;
  gap:8px;
}
.portal-projectbar-v701 .portal-projectbar-actions-v701 button{
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
  min-height:44px;
  white-space:normal;
  word-break:normal;
  overflow-wrap:break-word;
}
@media(max-width:760px){
  .portal-projectbar-v701 .portal-projectbar-actions-v701{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .portal-projectbar-v701 .portal-projectbar-actions-v701 button:last-child{grid-column:auto}
}
@media(max-width:420px){
  .portal-projectbar-v701 .portal-projectbar-actions-v701{grid-template-columns:minmax(0,1fr)}
}
