.ph-wh-header,.ph-wh-header-actions,.ph-wh-toolbar,.ph-wh-switch,.ph-wh-actions,.ph-wh-section-heading,.ph-wh-entry-meta,.ph-wh-task-top{display:flex;align-items:center;gap:10px}
#work-hub-tab{--hub-cream:#fbf8f1;--hub-cream-deep:#f3eddf;--hub-green:var(--green,#264c3b);--hub-green-soft:var(--green-soft,#e4eee7)}
#work-hub-tab input,#work-hub-tab select,#work-hub-tab textarea{box-sizing:border-box}#work-hub-tab select{display:block;width:100%;min-height:48px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:10px 36px 10px 11px;color:var(--ink);font:inherit}#work-hub-tab select:focus-visible{outline:3px solid #8aad91;outline-offset:2px}
.ph-wh-header{justify-content:space-between;margin-bottom:8px}.ph-wh-header h1{margin:3px 0}.ph-wh-header p{margin:0}
.ph-wh-header-actions{flex-wrap:wrap;justify-content:flex-end}.ph-wh-import-picker{position:relative;overflow:hidden;cursor:pointer}.ph-wh-import-picker input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.ph-wh-notice{min-height:36px;padding:7px 0;color:var(--hub-green)}.ph-wh-notice.bad{color:var(--danger)}.ph-wh-notice .button{margin-left:10px;min-height:30px}
.ph-wh-import-preview{margin:4px 0 18px;padding:15px 16px;border:1px solid var(--hub-green);border-radius:12px;background:var(--hub-green-soft)}.ph-wh-import-preview>div:first-child{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}.ph-wh-import-preview p{margin:8px 0 12px}.ph-wh-import-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ph-wh-import-count{padding:10px;border:1px solid rgba(38,76,59,.2);border-radius:8px;background:var(--paper)}.ph-wh-import-count strong,.ph-wh-import-count span{display:block}.ph-wh-import-count span{margin-top:3px;color:var(--muted);font-size:.85rem}
.ph-wh-switch{margin:12px 0 18px;border-bottom:1px solid var(--line)}.ph-wh-switch .button{border:0;border-radius:0;background:transparent}.ph-wh-switch .button.active{border-bottom:3px solid var(--hub-green);color:var(--hub-green);font-weight:700}
.ph-wh-toolbar{flex-wrap:wrap;margin-bottom:16px}.ph-wh-toolbar input,#work-hub-tab .ph-wh-toolbar select{width:auto;min-width:min(250px,100%)}.ph-wh-toolbar .button{margin-left:auto}.ph-wh-summary{margin:0 0 12px;color:var(--muted);font-size:.88rem}
.ph-wh-layout{display:grid;grid-template-columns:minmax(230px,.72fr) minmax(0,1.45fr);gap:18px;align-items:start}.ph-wh-list,.ph-wh-detail,.ph-wh-task-list{min-width:0}
.ph-wh-contact-row{display:block;width:100%;margin-bottom:8px;padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);text-align:left;cursor:pointer}.ph-wh-contact-row:hover{border-color:var(--hub-green)}.ph-wh-contact-row.selected{border-color:var(--hub-green);box-shadow:0 0 0 2px var(--hub-green-soft)}.ph-wh-contact-row span,.ph-wh-contact-row small{display:block;margin-top:4px;color:var(--muted);overflow-wrap:anywhere}
.ph-wh-empty{padding:26px;border:1px dashed var(--line);border-radius:12px;background:var(--hub-cream);color:var(--muted)}
.ph-wh-detail{padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}.ph-wh-detail-heading{grid-column:1/-1;margin-bottom:2px;font-size:1.2rem;font-weight:700}
.ph-wh-form,.ph-wh-task-form,.ph-wh-entry-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.ph-wh-field{min-width:0;margin:8px 0}.ph-wh-field>label{display:block;margin:0 0 5px;font-size:.88rem;font-weight:650}.ph-wh-field input,.ph-wh-field select,.ph-wh-field textarea{width:100%;max-width:100%}.ph-wh-field textarea{min-height:92px;resize:vertical}
.ph-wh-form>.ph-wh-actions,.ph-wh-form>.ph-wh-links,.ph-wh-task-form>h3,.ph-wh-task-form>.ph-wh-actions,.ph-wh-task-form>.ph-wh-field:last-of-type,.ph-wh-entry-form>h3,.ph-wh-entry-form>.ph-wh-actions,.ph-wh-entry-form>.ph-wh-field:nth-of-type(4),.ph-wh-entry-form>.ph-wh-field:nth-of-type(5){grid-column:1/-1}
.ph-wh-links{margin:13px 0 4px;border:1px solid var(--line);border-radius:10px;background:var(--hub-cream)}.ph-wh-links summary{padding:11px 13px;color:var(--hub-green);font-weight:700;cursor:pointer}.ph-wh-link-rows{padding:0 12px}.ph-wh-link-row{display:grid;grid-template-columns:minmax(100px,.65fr) minmax(180px,1.35fr) auto;gap:8px;margin-bottom:8px}.ph-wh-link-row input{min-width:0;width:100%}.ph-wh-links>.button{margin:2px 12px 12px}
.ph-wh-actions{grid-column:1/-1;flex-wrap:wrap;margin-top:10px}.button.quiet{min-height:34px;padding:6px 10px;background:transparent}.button.link{display:block;padding:5px 0;border:0;background:transparent;color:var(--hub-green);text-decoration:underline}
.ph-wh-timeline{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.ph-wh-section-heading{justify-content:space-between}.ph-wh-section-heading h2{margin:0;font-size:1.05rem}
.ph-wh-entry,.ph-wh-task,.ph-wh-entry-form,.ph-wh-task-form{margin:10px 0;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--hub-cream)}.ph-wh-entry-meta{justify-content:space-between;flex-wrap:wrap}.ph-wh-entry time{color:var(--muted);font-size:.84rem}.ph-wh-entry p,.ph-wh-task-notes{white-space:pre-wrap;overflow-wrap:anywhere}.ph-wh-source{display:inline-block;margin-top:2px;overflow-wrap:anywhere}.ph-wh-inactive{opacity:.62}
.ph-wh-provenance,.ph-wh-entry-content{margin-top:16px;border:1px solid var(--line);border-radius:10px;background:var(--hub-cream)}.ph-wh-provenance>summary,.ph-wh-entry-content>summary{padding:11px 13px;color:var(--hub-green);font-weight:700;cursor:pointer}.ph-wh-provenance dl,.ph-wh-entry-source-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0 13px 12px}.ph-wh-provenance dl>div,.ph-wh-entry-source-meta>div{min-width:0}.ph-wh-provenance dt,.ph-wh-entry-source-meta dt{color:var(--muted);font-size:.78rem;font-weight:700;text-transform:uppercase}.ph-wh-provenance dd,.ph-wh-entry-source-meta dd{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.ph-wh-provenance>p{margin:0;padding:0 13px 13px}.ph-wh-entry-content{margin:10px 0}.ph-wh-entry-source-meta{padding-top:2px}.ph-wh-current-summary-label{display:block;margin-top:12px;color:var(--hub-green);font-size:.82rem;text-transform:uppercase}.ph-wh-current-summary{white-space:pre-wrap;overflow-wrap:anywhere}.ph-wh-imported-text{max-height:32rem;margin:0;padding:13px;border-top:1px solid var(--line);overflow:auto;background:var(--paper);white-space:pre-wrap;overflow-wrap:anywhere}.ph-wh-imported-label{color:var(--muted);font-size:.82rem}
.ph-wh-task-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:12px}.ph-wh-task-summary,.ph-wh-task-list>.ph-wh-empty{grid-column:1/-1}.ph-wh-task{margin:0;background:var(--paper)}.ph-wh-task-top{justify-content:space-between;align-items:flex-start}.ph-wh-task-title{font-weight:750;overflow-wrap:anywhere}.ph-wh-task p{margin:9px 0}.ph-wh-task>.button:not(.link){margin-top:8px}
.ph-wh-status,.ph-wh-badge{display:inline-block;margin-top:8px;padding:3px 8px;border-radius:999px;background:var(--hub-green-soft);color:var(--hub-green);font-size:.78rem;font-weight:700}.ph-wh-badge{flex:0 0 auto;margin-top:0}.ph-wh-badge.priority-urgent{background:#f8dfda;color:#823528}.ph-wh-badge.priority-high{background:#f5e8c9;color:#704c08}.ph-wh-badge.priority-low{background:var(--hub-cream-deep);color:var(--muted)}
@media(max-width:760px){.ph-wh-layout,.ph-wh-form,.ph-wh-task-form,.ph-wh-entry-form{display:block}.ph-wh-toolbar input,#work-hub-tab .ph-wh-toolbar select,.ph-wh-toolbar .button{width:100%;min-width:0;margin-left:0}.ph-wh-detail{margin-top:16px;padding:15px}.ph-wh-header{align-items:flex-start}.ph-wh-header-actions{max-width:170px}.ph-wh-header-actions .button{width:100%;justify-content:center}.ph-wh-import-counts,.ph-wh-provenance dl,.ph-wh-entry-source-meta{grid-template-columns:1fr}.ph-wh-link-row{grid-template-columns:1fr;padding-bottom:10px;border-bottom:1px solid var(--line)}.ph-wh-link-row .button{justify-self:start}.ph-wh-task-list{grid-template-columns:1fr}}

