#project-builder{color:#30343b;font-size:14px;--pb-blue:#1677ff}#project-builder button,#project-builder select{font:inherit}#project-builder button{cursor:pointer}#project-builder button:disabled{cursor:not-allowed;opacity:.48}#project-builder button:focus-visible,#project-builder select:focus-visible{outline:3px solid #9ecbff;outline-offset:3px}.pb-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.pb-heading h1{font-size:25px;margin:0 0 8px}.pb-heading p,.pb-heading>span{color:#7b8391;margin:0}.pb-overview{background:white;border:1px solid #e6e8ec;border-radius:6px;overflow:hidden}.pb-account{display:flex;align-items:center;gap:16px;padding:24px;border-bottom:1px solid #e6e8ec}.pb-account select{width:min(620px,65%);height:42px;padding:0 12px;border:1px solid #d9dde5;border-radius:4px;background:white}.pb-account button,.pb-footer-actions button{padding:10px 24px;border:1px solid #d9dde5;background:white;border-radius:4px}.pb-project{width:min(580px,100%);border-right:1px solid #e6e8ec;min-height:420px;display:flex;flex-direction:column}.pb-project>header{padding:20px 24px;border-bottom:1px solid #e6e8ec;display:flex;justify-content:space-between;align-items:center}.pb-project h2{font-size:17px;margin:0;font-weight:500}.pb-project header span{color:#9a9fa8}.pb-empty{display:grid;place-content:center;flex:1;min-height:250px;color:#8c96a5}.pb-edit{margin-top:auto;padding:15px;color:var(--pb-blue);background:white;border:0;border-top:1px solid #e6e8ec}.pb-summary{padding:22px 24px}.pb-summary h3{font-size:15px;margin:0 0 18px}.pb-summary dl{margin:0}.pb-summary dl>div{display:flex;gap:16px;line-height:2.2}.pb-summary dt{width:90px;color:#777f8c}.pb-summary dd{margin:0}.pb-summary>p{font-size:12px;color:#8c96a5}.pb-status{margin-top:16px;color:#238658}.pb-error{color:#b43b37}.pb-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(1160px,85vw);height:100dvh;max-width:none;max-height:none;padding:0;border:0;background:#f5f6f8;color:#30343b;box-shadow:-8px 0 32px #1c2b4626}.pb-drawer[open]{display:flex;flex-direction:column}.pb-drawer::backdrop{background:#172b4c66}.pb-drawer>header{display:flex;justify-content:space-between;align-items:center;background:white;padding:22px 30px;border-bottom:1px solid #e8ebef}.pb-drawer h2{font-size:22px;margin:0}.pb-drawer header p{margin:6px 0 0;color:#9299a5;font-size:13px}.pb-drawer header>button{font-size:27px;border:0;background:none;color:#8792a1}.pb-drawer-scroll{overflow-y:auto;flex:1;padding:24px 28px}.pb-section{border:1px solid #e1e5eb;background:white;border-radius:6px;overflow:hidden}.pb-section>h3{margin:0;padding:22px 24px;border-bottom:1px solid #e8ebef;font-size:21px}.pb-section-body{padding:24px}.pb-purposes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:38px}.pb-purpose{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;min-height:125px;padding:18px;border:1px solid #d9dde5;background:white;border-radius:4px}.pb-purpose[aria-pressed=true]{border:2px solid var(--pb-blue);padding:17px;background:#f8fbff}.pb-purpose strong{display:block;font-size:17px;font-weight:500}.pb-purpose small{display:block;font-size:13px;line-height:1.6;color:#8b919a;margin-top:8px}.pb-purpose b{font-size:30px;color:#3575ff}.pb-purpose em{display:block;font-size:11px;font-style:normal;color:#9a9fa8;margin-top:5px}.pb-row{display:grid;grid-template-columns:150px 1fr;align-items:start;gap:16px;margin:26px 0}.pb-row>span{padding-top:12px;font-size:16px;color:#606975}.pb-row p{margin:12px 0}.pb-segment{display:inline-flex;flex-wrap:wrap}.pb-segment button{border:1px solid #d7dce4;background:white;min-width:116px;padding:12px 20px;color:#626a75;margin-left:-1px}.pb-segment button:first-child{border-radius:3px 0 0 3px;margin-left:0}.pb-segment button:last-child{border-radius:0 3px 3px 0}.pb-segment button[aria-pressed=true]{color:var(--pb-blue);border-color:var(--pb-blue);background:#e8f3ff;position:relative;z-index:1}.pb-row small{display:block;margin-top:10px;color:#949ba6;font-size:12px}.pb-hint{padding:12px 15px;background:#fff8e9;color:#966d22;border:1px solid #ffe7b6;border-radius:4px;line-height:1.7;font-size:13px}.pb-scope{color:#8a929d;font-size:13px;margin:20px 0}.pb-drawer footer{background:white;border-top:1px solid #e2e6ec;padding:16px 28px}.pb-drawer footer>div[role=status]{color:#84909f;font-size:12px}.pb-drawer footer [role=alert]{color:#b43b37}.pb-footer-actions{display:flex;justify-content:flex-end;gap:16px;margin-top:12px}.pb-footer-actions .pb-primary{color:white;background:var(--pb-blue);border-color:var(--pb-blue);min-width:112px}
/* Project sections and reusable asset chooser. */
#project-builder input,#project-builder textarea{font:inherit;box-sizing:border-box}#project-builder input:focus-visible,#project-builder textarea:focus-visible{outline:3px solid #9ecbff;outline-offset:2px}.pb-section+.pb-section{margin-top:24px}.pb-section{scroll-margin-top:14px}.pf-nav{display:flex;flex-wrap:wrap;gap:4px;background:#fff;padding:10px 24px;border-bottom:1px solid #e8ebef}.pf-nav button{background:transparent;border:0;color:#657080;padding:8px 10px;font-size:13px}.pf-nav button:hover{color:#1677ff;background:#eef5ff}.pb-row input:not([type=checkbox]):not([type=radio]),.pb-row select,.pb-row textarea{border:1px solid #d9dde5;border-radius:4px;background:#fff;color:#30343b;padding:10px 12px;max-width:100%;min-height:40px}.pb-row input[type=text]{width:480px}.pb-row input[type=date]{width:185px}.pb-row select{min-width:220px;max-width:440px;margin-right:10px}.pb-row input[type=number]{width:200px}.pb-row textarea{width:100%;resize:vertical}.pf-button,.pf-search button{padding:10px 18px;border:1px solid #d9dde5;background:#fff;color:#1677ff;border-radius:4px;margin:0 8px 6px 0}.pf-selected{display:inline-block;vertical-align:middle;min-width:240px;margin:0 16px 12px 0;padding:12px 16px;border:1px solid #e4e8ee;background:#fafbfd;border-radius:4px}.pf-selected small{margin-top:6px}.pf-checks{display:flex;flex-wrap:wrap;gap:12px 22px;padding:12px 0}.pf-checks label{display:flex;align-items:center;gap:8px;cursor:pointer}.pf-checks input{accent-color:#1677ff;width:16px;height:16px}.pf-static{display:block;padding:12px 0}.pf-time-scroll{overflow:auto;padding-bottom:10px}.pf-time-day{display:grid;grid-template-columns:44px repeat(48,minmax(11px,1fr));gap:2px;min-width:730px;margin:3px 0;align-items:center}.pf-time-day>span{font-size:12px;color:#7d8794}.pf-time-day button{padding:0;height:24px;border:1px solid #d8e0eb;background:#f5f7fa;border-radius:2px}.pf-time-day button[aria-pressed=true]{background:#91c5ff;border-color:#72b4ff}.pf-time-head{display:grid;grid-template-columns:44px repeat(24,minmax(24px,1fr));min-width:730px;font-size:10px;color:#8290a2;line-height:24px}.pf-time-tools{display:flex;gap:6px}.pf-time-tools button{font-size:12px;padding:7px 12px}.pf-issues{margin-top:22px;padding:18px 24px;background:#fff8eb;border:1px solid #ffe0a3;border-radius:6px}.pf-issues h3{font-size:16px}.pf-issues button{display:block;text-align:left;background:none;color:#9c6425;border:0;padding:8px 0;line-height:1.6}.pf-picker{position:fixed;inset:0;margin:auto;width:min(850px,80vw);max-height:80vh;border:0;border-radius:6px;padding:0;box-shadow:0 20px 80px #172b4c40;color:#30343b}.pf-picker[open]{display:flex;flex-direction:column}.pf-picker::backdrop{background:#172b4c55}.pf-picker>header{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;border-bottom:1px solid #e2e6ec}.pf-picker h3{margin:0;font-size:20px}.pf-picker>header>button{font-size:24px;border:0;background:transparent}.pf-picker-body{padding:22px 24px;overflow:auto;min-height:300px}.pf-search{display:flex;gap:12px;margin-bottom:18px}.pf-search input{border:1px solid #d9dde5;border-radius:4px;padding:10px 12px;min-width:260px;flex:1}.pf-picker [role=status]{color:#7c8796;line-height:1.6}.pf-picker [role=alert]{color:#b43b37}.pf-options>label{display:flex;gap:14px;align-items:center;padding:16px;border-bottom:1px solid #edf0f4;cursor:pointer}.pf-options strong{font-weight:500}.pf-options small{display:block;margin-top:8px;color:#8c95a4}.pf-options input{accent-color:#1677ff}.pf-pagination{display:flex;align-items:center;gap:14px;justify-content:flex-end;margin-top:20px}.pf-picker footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid #e2e6ec}.pf-picker [data-pf-action=picker-confirm]{color:white;background:#1677ff;border-color:#1677ff}.pb-summary h3:not(:first-child){margin-top:24px}.pb-summary dd{overflow-wrap:anywhere;flex:1}.pb-footer-actions{align-items:center}.pb-drawer footer>div[role=status]{line-height:1.5;max-height:48px;overflow:auto}

.pa-options{max-height:340px;overflow:auto;border:1px solid #e4e8ee}.pa-options>label{padding:10px 12px}.pa-selected{margin:16px 0}.pa-selected>div{max-height:120px;overflow:auto;display:flex;flex-wrap:wrap;gap:6px;padding-top:10px}.pa-selected button{border:1px solid #cfe0f8;background:#f1f7ff;color:#245b9d;border-radius:4px;padding:6px 10px}.pf-search select{max-width:200px;min-width:140px;border:1px solid #d9dde5;background:#fff}.pf-picker .pf-search{flex-wrap:wrap}

/* Name tokens stay next to the input; editing never replaces the input node. */
.name-tools{margin:8px 0 14px;max-width:760px}.name-tokens{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap;color:#7b8494;font-size:13px}.name-tokens button,.us-drawer .name-tokens button{border:0;background:transparent;padding:5px 0;color:#1677ff;font:inherit;cursor:pointer}.name-tokens button:focus-visible{outline:2px solid #1677ff;outline-offset:3px}.name-tools .name-example{margin:8px 0;color:#59677c;font-size:13px;overflow-wrap:anywhere}.name-tools small{display:block;color:#8a96a7;font-size:12px;line-height:1.7}

/* Batch time selection: day and hour labels operate on the same 336 bits. */
.pf-time-scroll{user-select:none}.pf-time-day [data-pf-slot]{touch-action:none;cursor:crosshair}.pf-time-head{grid-template-columns:44px repeat(48,minmax(11px,1fr));gap:2px;align-items:center}.pf-time-head button{grid-column:span 2;font:inherit;font-size:11px;height:26px;padding:0;border:0;border-radius:3px;color:#52647c;background:#edf3fa;cursor:pointer}.pf-time-day .pf-time-label{font-size:12px;border:0;color:#52647c;background:#edf3fa;cursor:pointer}.pf-time-head button[aria-pressed=true],.pf-time-day .pf-time-label[aria-pressed=true]{background:#dcecff;color:#1677ff}.pf-time-head button[aria-pressed=mixed],.pf-time-day .pf-time-label[aria-pressed=mixed]{box-shadow:inset 0 -2px #72b4ff}.pf-time-scroll button:focus-visible{outline:2px solid #1677ff;outline-offset:1px}.pf-time-help{margin:6px 0 12px;line-height:1.7}

/* Hierarchical official region picker: compact rows, independent scrolling. */
.pa-region-tree{max-height:390px;min-height:180px;overflow:auto;border:1px solid #e4e9f1;border-radius:8px;padding:8px;background:#fff}
.pa-region-row{display:flex;align-items:center;gap:6px;min-height:38px;padding-left:calc(var(--region-depth)*24px)}
.pa-region-row:hover{background:#f5f8fe}
.pa-region-row>button,.pa-region-spacer{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex-shrink:0}
.pa-region-row>button{border:0;background:transparent;color:#526881;border-radius:4px;cursor:pointer}
.pa-region-row>button:focus-visible{outline:2px solid #2176ff}
.pa-region-row label{display:flex;align-items:center;gap:8px;cursor:pointer;flex:1;min-height:34px}
.pa-region-row input{width:16px;height:16px;accent-color:#2176ff}
.pa-region-row small{color:#718096;padding-right:12px}
.pa-selected>div{max-height:120px;overflow:auto}

.pa-region-tools{display:flex;align-items:center;gap:10px;margin:10px 0}.pa-region-tools small{color:#718096}
