/* Extend the original Workspace tokens, no remote assets. */
.trusted-role{font-size:12px;color:#345174;font-weight:700}
#screen .page-title{margin-bottom:8px}
#screen .subtitle{margin-bottom:20px}
.status-box{padding:24px;background:#fff;border:1px solid #e5ebf3;border-radius:14px}
.status-box h1{margin:0 0 10px;font-size:21px}
.status-box p{color:#63758d;font-size:14px;line-height:1.7}
.mini-stack{display:grid;gap:11px}
.secure-row{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid #e9eef5;align-items:center;justify-content:space-between}
.secure-row:last-child{border-bottom:0}
.secure-row strong{display:block;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.secure-row small{display:block;font-size:11px;color:#78869c;margin-top:6px}
.role-hint{font-size:11px;color:#6e819b}
.no-data{padding:28px;color:#7a8ea5;font-size:13px;text-align:center}
.static-badge{font-size:10px;color:#396191;border-radius:7px;padding:5px 9px;background:#ebf1fb;white-space:nowrap}
.state-error{background:#fff4ec;border-color:#f1d7bf}
.state-error h1{color:#96562b}
.read-only-note{font-size:11px;color:#536b8f;background:#eef4ff;border:1px solid #dae7fe;border-radius:9px;padding:10px 13px;margin-bottom:14px}
.topright #refresh{padding:8px 12px}
@media(max-width:740px){.trusted-role{font-size:11px}.topright{gap:8px}.status-box{padding:17px}}

/* native_v4: accessible, wrapping per-task actions on phones and desktops. */
.ph-task-row{flex-wrap:wrap;align-items:flex-start}
.ph-task-row .ph-task-detail{flex:1 1 240px;min-width:0}
.ph-task-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%}
.ph-task-actions .btn{min-height:40px;white-space:normal}
.ph-task-row .ph-task-feedback{flex:1 1 100%;font-size:12px;line-height:1.5;color:#506987}
.ph-task-feedback:empty{display:none}
@media(max-width:740px){
 .ph-task-row .ph-task-detail{flex-basis:100%}
 .ph-task-actions{width:100%}
 .ph-task-actions .btn{flex:1 1 130px}
}

/* PH-ADR-054: approved CURRENT palette confined to this protected shell. */
.ph-current{--ph-emerald:#103E36;--ph-gold:#D6B66A;--ph-ivory:#F4F0E6;--ph-graphite:#20272B;background:var(--ph-ivory);color:var(--ph-graphite)}
.ph-current .sidebar{background:var(--ph-emerald);color:var(--ph-ivory)}
.ph-current .brandmark{background:var(--ph-gold);color:var(--ph-graphite)}
.ph-current .sidebar-label,.ph-current .brand small,.ph-current .security small{color:#d3ddd7}
.ph-current .nav-button{color:#e3eae6}
.ph-current .nav-button.active,.ph-current .nav-button:hover{background:var(--ph-graphite);color:#fff;box-shadow:inset 3px 0 var(--ph-gold)}
.ph-current .nav-button[hidden],.ph-current #aiOpen[hidden],.ph-current .ph-ai-panel[hidden]{display:none!important}
.ph-current .content{background:var(--ph-ivory)}
.ph-current .topbar,.ph-current .panel{background:#fff;border-color:#d9d3c7}
.ph-current .btn{background:var(--ph-emerald);color:#fff}
.ph-current .btn.ghost{background:#eef2ef;color:var(--ph-emerald)}
.ph-current .btn:focus-visible,.ph-current .nav-button:focus-visible{outline:3px solid var(--ph-gold);outline-offset:2px}
.ph-current .trusted-role{color:var(--ph-emerald)}
.ph-current #screen .page-title{color:var(--ph-graphite)}
.ph-current .ph-truth-state{display:block;color:#75500f;margin:12px 0;line-height:1.7}
.ph-current .ph-ai-panel{max-height:calc(100dvh - 36px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;position:fixed;bottom:18px;right:18px;z-index:35;width:min(365px,calc(100vw - 36px));padding:18px;background:#fff;color:var(--ph-graphite);border:1px solid #d9d3c7;border-radius:14px;box-shadow:0 14px 35px #20272b33}
.ph-current .ph-ai-panel h2{font-size:16px;margin:0 0 8px}.ph-current .ph-ai-panel p{font-size:13px;line-height:1.6}
@media(max-width:740px){.ph-current .ph-ai-panel{bottom:8px;right:8px;width:calc(100vw - 16px)}.ph-current .topbar{height:auto;min-height:82px}.ph-current .topright{flex-wrap:wrap}}

/* Approved CURRENT unavailable panels; never render fake FACT values. */
.ph-current .ph-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0}
.ph-current .ph-card-grid .panel{min-width:0;padding:17px;margin:0}
.ph-current .ph-card-grid .panel h2{font-size:15px}
.ph-current .ph-card-grid .no-data{padding:13px 3px;line-height:1.6}
.ph-current .ph-kpi-empty{font-size:13px;line-height:1.8;color:#50635b}
.ph-current .ph-period{font-size:11px;color:#75500f;white-space:normal;max-width:165px}
@media(max-width:1120px){.ph-current .ph-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.ph-current .ph-card-grid{grid-template-columns:1fr}.ph-current .ph-period{flex:1 1 100%}}

/* CURRENT UX contract: unavailable actions never masquerade as server writes. */
.ph-current .ph-disabled-action:disabled{opacity:.58;cursor:not-allowed;box-shadow:none}
.ph-current .ph-period{display:flex;align-items:center;gap:6px;flex-wrap:wrap;max-width:265px}
.ph-current .ph-period label{display:flex;gap:4px;align-items:center}
.ph-current .ph-period input{width:100px;max-width:100%;padding:4px;border:1px solid #d9d3c7;border-radius:6px}
.ph-current .ph-period small{width:100%;line-height:1.4}
.ph-current .ph-kpi-deviation{display:block;font-size:23px;color:#103e36;margin:10px 0}
.ph-current .ph-block-ai{padding:10px;margin-top:9px;background:#f4f0e6;border-left:3px solid #d6b66a;font-size:12px;line-height:1.5}
.ph-current .ph-block-ai p{margin:5px 0}
.ph-current .ph-estimate,.ph-current .ph-results,.ph-current .ph-task-card{padding:10px;margin-top:10px;border:1px solid #d9d3c7;border-radius:8px}
.ph-current .ph-estimate small,.ph-current .ph-results p{display:block;color:#75500f;line-height:1.5}
.ph-current .ph-disabled-field{max-width:100%;padding:8px;background:#f4f0e6}
.ph-current .ph-task-card summary{cursor:pointer;font-weight:700;color:#103e36}
@media(max-width:740px){.ph-current .ph-period{max-width:100%;flex:1 1 100%}}

/* PH CURRENT exact source-only role layouts; all unverified controls stay disabled. */
.ph-current .ph-fact-row{font-size:12px;line-height:1.6;margin:7px 0;color:#526b64;overflow-wrap:anywhere}
.ph-current .ph-input-field{display:flex;flex-direction:column;gap:5px;margin:10px 0;font-size:12px}
.ph-current .ph-input-field input,.ph-current select,.ph-current textarea{padding:8px;border-radius:7px;border:1px solid #d9d3c7;max-width:100%;min-width:0}
.ph-current .ph-input-field input:disabled,.ph-current textarea:disabled,.ph-current select:disabled{opacity:.72;background:#f4f0e6}
.ph-current .ph-workflow-step{margin:6px 0;padding:8px 12px;background:#f4f0e6;border-radius:6px;font-size:12px}
.ph-current .ph-source-state{border:1px solid #d9d3c7;border-radius:8px;margin:12px 0;padding:12px;background:#f4f0e6;overflow-wrap:anywhere}
.ph-current .ph-cash-fields[hidden]{display:none!important}
.ph-current label{display:block;margin:6px 0}
.ph-current .ph-card-grid>.panel{min-width:0}

/* PH-ADR-049 CURRENT / approved 1A: same protected static/serviced login shell.
   No remote resources, scripts, hidden role selector or active preview login. */
.ph-current.ph-login{min-height:100vh;margin:0;display:flex;align-items:stretch;background:#f4f0e6;color:#20272b;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.ph-current .ph-login-frame{width:100%;min-height:100vh;display:grid;grid-template-columns:minmax(260px,42%) minmax(0,1fr)}
.ph-current .ph-login-brand{display:flex;flex-direction:column;justify-content:center;padding:clamp(30px,6vw,92px);background:#103e36;color:#f4f0e6}
.ph-current .ph-login-brand h1{color:#f4f0e6;font-size:clamp(32px,5vw,56px);letter-spacing:.05em;line-height:1.1;margin:0 0 17px}
.ph-current .ph-login-brand p{font-size:clamp(15px,1.75vw,20px);color:#d6b66a;line-height:1.5;margin:0}
.ph-current .ph-login-entry{display:flex;flex-direction:column;justify-content:center;max-width:620px;width:100%;padding:clamp(28px,6vw,80px);box-sizing:border-box}
.ph-current .ph-login-entry h2{font-size:clamp(22px,2.5vw,30px);line-height:1.25;margin:0 0 17px;color:#20272b}
.ph-current .ph-login-entry p{font-size:14px;line-height:1.6;color:#46544e}
.ph-current .ph-login-entry form{display:grid;gap:9px;width:100%;max-width:400px;margin-top:15px}
.ph-current .ph-login-entry label{font-size:13px;font-weight:650;margin:8px 0 0}
.ph-current .ph-login-entry input{width:100%;box-sizing:border-box;min-height:44px;padding:11px 13px;border:1px solid #b7c3bb;border-radius:8px;background:#fff;color:#20272b;font:inherit}
.ph-current .ph-login-entry input:focus-visible,.ph-current .ph-login-entry button:focus-visible{outline:3px solid #d6b66a;outline-offset:2px}
.ph-current .ph-login-entry button{min-height:46px;margin-top:15px;padding:12px 16px;border:0;border-radius:8px;background:#103e36;color:#fff;font-weight:700;cursor:pointer}
.ph-current .ph-login-entry button:disabled{opacity:.55;cursor:not-allowed}
.ph-current .ph-login-status{margin-top:21px;font-size:12px;color:#68736b}
@media(max-width:690px){
  .ph-current .ph-login-frame{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}
  .ph-current .ph-login-brand{padding:27px 25px;min-height:100px}
  .ph-current .ph-login-brand h1{font-size:30px;margin-bottom:9px}
  .ph-current .ph-login-entry{padding:28px 25px 44px}
}

/* Consistent current forms, local assets only. */
.ph-current #screen label:has(textarea),.ph-current #screen label:has(select),.ph-current .ph-ux-field{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:16px 0;font-size:14px;font-weight:600}
.ph-current #screen textarea,.ph-current #screen input:not([type=checkbox]):not([type=radio]),.ph-current #screen select{box-sizing:border-box;max-width:100%;width:100%;padding:12px 14px;border:1px solid #a7b5ae;border-radius:8px;background:#fff;color:#20272b;font:inherit;line-height:1.5}
.ph-current #screen textarea{min-height:160px;resize:vertical;font-weight:400}
.ph-current #screen input:focus-visible,.ph-current #screen textarea:focus-visible,.ph-current #screen select:focus-visible{outline:3px solid #D6B66A;outline-offset:2px;border-color:#103E36}
.ph-current #screen [aria-invalid=true]{border:2px solid #a92c22}
.ph-current .ph-field-counter{display:block;text-align:right;color:#50635b;font-size:13px;font-weight:400;margin-top:6px}
.ph-current [data-state=error]{color:#8b241c;background:#fff0ec;padding:12px;border-left:3px solid #a92c22}
.ph-current [data-state=success]{color:#103E36;background:#edf6f0;padding:12px;border-left:3px solid #26714e}
.ph-current .ph-ux-history-list li{padding:12px 0;line-height:1.7;overflow-wrap:anywhere}
.ph-current .ph-ux-history-list button{margin:6px 10px}
.ph-current .ph-kb-search{margin:16px 0;min-height:46px}
.ph-current #screen .btn{white-space:normal;min-height:44px;margin:4px 4px 4px 0;overflow-wrap:anywhere}
.ph-current .ph-plan-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
.ph-current .ph-block-ai{margin-top:10px}.ph-current .ph-block-ai summary{cursor:pointer;font-size:13px;font-weight:600}
.ph-current #screen p,.ph-current #screen small{overflow-wrap:anywhere}
@media(max-width:740px){.ph-current .ph-plan-fields{grid-template-columns:1fr}.ph-current #screen{padding:20px 12px}.ph-current .panel{padding:18px}.ph-current .topbar{flex-wrap:wrap;gap:12px}.ph-current .topright{max-width:100%}.ph-current #screen textarea{min-height:180px}.ph-current .ph-period{max-width:100%}}

.ph-current .ph-multiline { white-space: pre-wrap; }

/* The authenticated header must wrap at intermediate viewport widths too. */
.ph-current .topbar{height:auto;min-height:82px;flex-wrap:wrap}
.ph-current .breadcrumb{flex:1 0 180px;min-width:0;overflow-wrap:anywhere;word-break:normal}
.ph-current .topright{flex:1 1 660px;min-width:0;max-width:100%;flex-wrap:wrap;gap:12px}
.ph-current .topright>*{min-width:0}
.ph-current .topright .btn{flex-shrink:0;white-space:normal}
.ph-current .trusted-role{overflow-wrap:anywhere}
.ph-current .sidebar{max-width:100%;overflow-y:auto}
.ph-current .nav-button{min-width:0;padding-inline:10px;gap:8px;font-size:14px;overflow-wrap:anywhere}
.ph-current .nav-button .symbol{flex-shrink:0}
.ph-current #screen,.ph-current .table-scroll{min-width:0}
@media(max-width:1024px){
 .ph-current .shell{display:block}
 .ph-current .sidebar{display:none;position:static;width:100%;height:auto;padding:13px}
 .ph-current .sidebar.expanded{display:flex}
 .ph-current .sidebar .sidebar-bottom{display:none}
 .ph-current .brand{padding:4px 8px 12px}
 .ph-current .mobile-toggle{display:inline-block;border:0;border-radius:8px;background:#eaf0fa;padding:8px;color:#2d527f}
 .ph-current .topbar{padding:14px 16px}
 .ph-current .topright{flex-basis:100%;width:100%;justify-content:space-between}
}

/* PH_UNIFIED_PERIOD: scoped calendar, no global table overflow changes. */
.ph-current .ph-unified-period{position:relative;display:block;flex:0 1 300px;max-width:100%;width:300px;color:#174c40}
.ph-current .ph-unified-period>label{font-size:12px;margin-bottom:4px}
.ph-current .ph-period-control{display:flex;align-items:center;gap:6px;border:1px solid #bacac5;border-radius:9px;background:#fff;padding:0 8px}
.ph-current .ph-period-control #periodDisplay{width:100%;min-width:0;border:0;padding:10px 0;background:transparent;cursor:pointer;font-size:13px;color:#174c40}
.ph-current .ph-period-control button{border:0;background:none;font-size:22px;color:#52635e;cursor:pointer;padding:4px}
.ph-current .ph-period-dialog{position:absolute;top:62px;right:0;width:520px;max-width:calc(100vw - 32px);padding:16px;box-sizing:border-box;background:#fff;border:1px solid #bacac5;border-radius:14px;box-shadow:0 12px 35px #173d3226;z-index:100;display:grid;grid-template-columns:145px minmax(0,1fr);gap:12px;font-size:13px;color:#283e37;max-height:75vh;overflow:auto}
.ph-current .ph-period-dialog[hidden]{display:none}
.ph-current .ph-period-dialog button{font:inherit;border:0;border-radius:6px;padding:8px;cursor:pointer;background:#f1f5f3;color:#174c40;min-width:0}
.ph-current .ph-period-dialog button:disabled{opacity:.4;cursor:default}
.ph-current .ph-period-dialog button:focus-visible,.ph-current .ph-period-control :focus-visible,.ph-current .ph-period-dialog input:focus-visible{outline:3px solid #ba8c31;outline-offset:2px}
.ph-current .ph-period-presets{display:flex;flex-direction:column;gap:6px;border-right:1px solid #e4ebe7;padding-right:12px}
.ph-current .ph-period-presets button{text-align:left}.ph-current .ph-period-presets p{font-size:11px;line-height:1.5;color:#677b73}
.ph-current .ph-month-nav{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-bottom:10px}.ph-current .ph-month-nav strong{text-transform:capitalize;text-align:center}
.ph-current .ph-date-grid,.ph-current .ph-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center}.ph-current .ph-weekdays{margin-bottom:6px;color:#718078}
.ph-current .ph-date-grid .ph-date-day{padding:8px 0;background:transparent;border-radius:6px}.ph-current .ph-date-grid .outside{color:#99a69f}.ph-current .ph-date-grid .in-range{background:#e4efe9}.ph-current .ph-date-grid .endpoint{background:#174c40;color:#fff}.ph-current .ph-date-grid [aria-current=date]{box-shadow:inset 0 0 0 1px #bb943d}
.ph-current .ph-period-custom{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap}.ph-current .ph-period-custom label{display:flex;flex:1;flex-direction:column;align-items:stretch;gap:4px}.ph-current .ph-period-custom input{width:100%;min-width:0;box-sizing:border-box;padding:8px;font:inherit}
.ph-current #periodDraftStatus{grid-column:1/-1;margin:0;line-height:1.5}.ph-current .ph-period-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}.ph-current #periodApply{background:#174c40;color:#fff}
@media(max-width:600px){.ph-current .ph-unified-period{flex-basis:100%;width:100%}.ph-current .ph-period-dialog{position:fixed;top:12px;left:12px;right:12px;width:auto;max-width:none;max-height:calc(100dvh - 24px);grid-template-columns:minmax(0,1fr)}.ph-current .ph-period-presets{display:grid;grid-template-columns:1fr 1fr;border:0;padding:0}.ph-current .ph-period-presets p{grid-column:1/-1;margin:0}.ph-current .ph-period-calendar{min-width:0}}

/* PH_COMPACT_WB_TOKENS: one selected form, five scan-friendly rows. */
.ph-wb-token-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;padding:14px 0;border-top:1px solid #e3e6e2}
.ph-wb-token-row>small{grid-column:1;line-height:1.4}
.ph-wb-token-row>.ph-wb-token-controls{grid-column:2;grid-row:1 / span 2;align-self:center;margin:0}
.ph-wb-token-row>p{grid-column:1 / -1;margin:0;font-size:12px;line-height:1.5}
.ph-wb-token-row>p:empty{display:none}
.ph-wb-token-row>.panel{grid-column:1 / -1;margin:6px 0 0}
.ph-wb-token-dates{color:#586660}
@media(max-width:1050px){.ph-wb-token-row{grid-template-columns:minmax(0,1fr)}.ph-wb-token-row>.ph-wb-token-controls{grid-column:1;grid-row:auto;justify-self:start}}

/* R33 task attention and owner overview */
.ph-task-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;margin-left:8px;padding:0 6px;border-radius:999px;background:#b42318;color:#fff;font-weight:700;font-size:12px}.ph-task-badge[hidden]{display:none}.ph-task-summary-scroll{overflow-x:auto}.ph-task-summary-scroll table{width:100%;border-collapse:collapse}.ph-task-summary-scroll th,.ph-task-summary-scroll td{padding:10px;text-align:left;border-bottom:1px solid #d5dde7;white-space:nowrap}

/* R64: plan, evidence and next action. All styles scoped to this workspace. */
.ph-current .ph-plan-focus{border-top:4px solid var(--ph-gold)}
.ph-current .ph-plan-caption{color:#52645c;font-size:13px;line-height:1.5}
.ph-current .ph-plan-markets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:18px;margin:20px 0}
.ph-current .ph-plan-market{padding:20px;border:1px solid #d5e0d9;border-radius:14px;background:#fbfcfa;min-width:0}
.ph-current .ph-plan-market h3{margin:0 0 18px}.ph-current .ph-plan-market h4{margin:0 0 8px}
.ph-current .ph-plan-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}
.ph-current .ph-plan-metric,.ph-current .ph-plan-stage{display:flex;flex-direction:column;gap:6px;min-width:0}
.ph-current .ph-plan-metric strong{font-size:23px;line-height:1.3;overflow-wrap:anywhere}
.ph-current .ph-plan-label{font-size:12px;font-weight:600;color:#52645c}
.ph-current .ph-plan-metric small,.ph-current .ph-plan-stage small{font-size:12px;line-height:1.5;color:#52645c}
.ph-current .ph-plan-market progress{display:block;width:100%;height:12px;margin-top:18px;accent-color:#1b6551}
.ph-current .ph-plan-warning{border-left:3px solid #a76512;padding:8px 12px;background:#fff4dc;font-size:13px}
.ph-current .ph-plan-pace{font-weight:600;font-size:14px}
.ph-current .ph-plan-actions,.ph-current .ph-plan-next{background:#eaf2ed;padding:16px;border-radius:10px;margin:16px 0;line-height:1.6}
.ph-current .ph-plan-actions ul{margin:0;padding-left:20px}.ph-current .ph-plan-actions li+li{margin-top:8px}
.ph-current .ph-plan-disclosure,.ph-current .ph-plan-product{border-top:1px solid #d5e0d9;padding:12px 0}
.ph-current .ph-plan-focus summary{cursor:pointer;padding:8px 4px;font-weight:600;line-height:1.5}
.ph-current .ph-plan-focus summary:focus-visible{outline:3px solid #a47a24;outline-offset:3px}
.ph-current .ph-plan-table-scroll{overflow-x:auto;max-width:100%}
.ph-current .ph-plan-focus table{width:100%;border-collapse:collapse;font-size:13px}
.ph-current .ph-plan-focus th,.ph-current .ph-plan-focus td{padding:10px;text-align:left;border-bottom:1px solid #d5e0d9}
.ph-current .ph-plan-funnel{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:18px 0}
.ph-current .ph-plan-stage{border:1px solid #d5e0d9;border-top:4px solid #2c6b57;border-radius:10px;padding:14px;background:#f3f7f4}
.ph-current .ph-plan-stage strong{font-size:22px;overflow-wrap:anywhere}.ph-current .ph-plan-stage p{font-size:13px;margin:4px 0}
@media(max-width:850px){.ph-current .ph-plan-funnel{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.ph-current .ph-plan-market{padding:14px}.ph-current .ph-plan-metrics,.ph-current .ph-plan-funnel{grid-template-columns:1fr}.ph-current .ph-plan-metric strong{font-size:21px}}


/* R68: shared interaction language across every role and section. */
.ph-current button,.ph-current a[href],.ph-current summary,.ph-current select{touch-action:manipulation}
.ph-current button:not(.nav-button){border:1px solid #647e71;border-radius:9px;min-height:40px;padding:9px 14px;font:inherit;font-size:13px;font-weight:650;line-height:1.4;cursor:pointer;box-shadow:0 1px 2px #103e361a;white-space:normal}
.ph-current .btn{border-color:#103e36;background:#103e36;color:#fff}
.ph-current .btn.ghost{border-color:#81968b;background:#f5f8f5;color:#103e36}
.ph-current button:not(.nav-button):not(:disabled):not([aria-disabled=true]):hover{filter:brightness(.94);box-shadow:0 2px 5px #103e3626}
.ph-current button:not(:disabled):not([aria-disabled=true]):active{transform:translateY(1px);box-shadow:inset 0 1px 3px #103e3626}
.ph-current button[aria-pressed=true],.ph-current .btn[aria-pressed=true],.ph-current [role=tab][aria-selected=true]{background:#103e36;color:#fff;border-color:#103e36;box-shadow:inset 0 -3px #d6b66a}
.ph-current .nav-button{border:1px solid transparent;min-height:44px;border-radius:10px;cursor:pointer;font-weight:500}
.ph-current .nav-button:hover:not(.active){background:#24564b;color:#fff;box-shadow:none;border-color:#72968a}
.ph-current .nav-button.active,.ph-current .nav-button[aria-current=page]{background:#f4f0e6;color:#103e36;border-color:#d6b66a;box-shadow:inset 4px 0 #d6b66a;font-weight:750}
.ph-current .nav-button.active:hover{background:#fff9e9;color:#103e36}
.ph-current :is(button,a[href],summary,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #9b6d0d;outline-offset:3px}
.ph-current :is(button,input,select,textarea):disabled,.ph-current [aria-disabled=true]{opacity:.55;cursor:not-allowed;box-shadow:none;transform:none}
.ph-current details>summary{display:list-item;list-style:disclosure-closed inside;cursor:pointer;padding:12px 14px;min-height:44px;box-sizing:border-box;border:1px solid #91a79a;border-radius:9px;background:#f1f6f2;color:#103e36;font-size:14px;font-weight:650;line-height:1.5}
.ph-current details[open]>summary{list-style-type:disclosure-open;background:#e4eee6;border-color:#416f59;box-shadow:inset 3px 0 #416f59;margin-bottom:12px}
.ph-current details>summary:hover{background:#dceadf;border-color:#416f59}
.ph-current summary::marker{color:#34684e}
.ph-current a[href]:not(.btn){color:#145c46;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.ph-current a[href]:not(.btn):hover{text-decoration-thickness:2px;color:#093c2b}
.ph-current input:not([type=checkbox]):not([type=radio]),.ph-current select,.ph-current textarea{border:1px solid #82978b;border-radius:7px;background:#fff;color:#20272b;min-height:40px;box-sizing:border-box;font:inherit;font-size:14px;padding:8px 10px}
.ph-current select{cursor:pointer}.ph-current input[type=checkbox],.ph-current input[type=radio]{accent-color:#103e36;width:18px;height:18px;cursor:pointer}
.ph-current .ph-period-trigger{border-color:#647e71;cursor:pointer}
.ph-current .ph-period-dialog .ph-date-day{min-height:36px;padding:6px 0;border-color:transparent;box-shadow:none}
.ph-current .ph-period-dialog .endpoint{border-color:#103e36;background:#174c40;color:#fff}
.ph-current .ph-period-dialog .in-range:not(.endpoint){background:#e4efe9}
@media(forced-colors:active){.ph-current .nav-button.active,.ph-current button[aria-pressed=true],.ph-current details[open]>summary{outline:2px solid Highlight;outline-offset:-3px}.ph-current button,.ph-current summary{border:1px solid ButtonText}}

/* R71 profit gauge: colour plus text, no animation or external assets. */
.ph-profit-gauge{margin:16px auto;max-width:430px;width:100%;text-align:center;color:#163e38}
.ph-profit-gauge svg{display:block;width:100%;height:auto;overflow:visible}
.ph-gauge-band{fill:none;stroke-width:24}
.ph-gauge-loss{stroke:#15191e;background:#15191e}
.ph-gauge-below{stroke:#d4423c;background:#d4423c}
.ph-gauge-minimum{stroke:#e7bb27;background:#e7bb27}
.ph-gauge-optimal{stroke:#26996d;background:#26996d}
.ph-gauge-ambitious{stroke:#9954cc;background:#9954cc}
.ph-gauge-tick{stroke:#fff;stroke-width:2}
.ph-gauge-scale{fill:currentColor;font-size:17px;font-weight:750}
.ph-gauge-unit{fill:currentColor;font-size:12px}
.ph-gauge-needle-outline{stroke:#fff;stroke-width:9;stroke-linecap:round}
.ph-gauge-needle{stroke:#163e38;stroke-width:5;stroke-linecap:round}
.ph-gauge-hub{fill:#163e38;stroke:#fff;stroke-width:3}
.ph-gauge-value{fill:currentColor;font-size:24px;font-weight:750}
.ph-profit-gauge figcaption{font-weight:650;font-size:14px}
.ph-gauge-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 12px;list-style:none;margin:10px 0 0;padding:0;font-size:11px}
.ph-gauge-legend li{display:flex;align-items:center;gap:5px}
.ph-gauge-dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex-shrink:0}

/* Marketplace title images: secondary to the plan and financial values. */
.ph-product-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;grid-column:1/-1;margin:8px 0 16px}
.ph-product-photo-note{grid-column:1/-1;color:#52665d}
.ph-product-photo-card{display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid #d5ded9;border-radius:12px;padding:12px;background:#fff}
.ph-product-photo-button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px;border:2px solid #1e6255;border-radius:10px;background:#f4f8f5;color:#12483c;cursor:pointer;font:inherit;font-weight:600}
.ph-product-photo-button:hover{background:#e6f0e9;border-color:#123e33}
.ph-product-photo-button:focus-visible{outline:3px solid #bd8c2e;outline-offset:3px}
.ph-product-photo-button:disabled{cursor:default;opacity:.65}
.ph-product-photo-button img{display:block;width:160px;height:180px;object-fit:contain}
.ph-detail-dialog {
  box-sizing: border-box;
  width: min(960px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid var(--sku-line, #dedfd5);
  border-radius: 8px;
  background: #fff;
  color: var(--sku-ink, #20332c);
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 20px 70px #0c292530;
}
.ph-product-photo-dialog{width:fit-content;max-width:min(calc(100vw - 32px),800px);max-height:calc(100dvh - 32px);padding:16px}
.ph-product-photo-dialog::backdrop{background:rgb(0 0 0 / .65)}
.ph-product-photo-dialog img{display:block;max-width:100%;max-height:calc(100dvh - 118px);object-fit:contain;margin:0 auto}

/* R74: readable employee instructions; scoped to knowledge articles. */
.ph-kb-article{max-width:850px;margin:20px 0 32px;padding:24px;border:1px solid #dedbd2;border-radius:16px;background:#fff;}
.ph-kb-article>h3{font-size:24px;line-height:1.3;margin:0 0 20px;color:#123f37;}
.ph-kb-body{font-size:16px;line-height:1.65;overflow-wrap:anywhere;}
.ph-kb-body h4{font-size:19px;line-height:1.4;color:#123f37;margin:26px 0 10px;padding-top:16px;border-top:1px solid #e7ece8;}
.ph-kb-body p{margin:0 0 14px;}
.ph-kb-body ul{padding-left:24px;margin:12px 0 20px;}
.ph-kb-body li{margin:0 0 12px;padding-left:4px;}
.ph-kb-article>small{display:block;border-top:1px solid #e7ece8;padding-top:12px;margin-top:24px;color:#65716d;line-height:1.5;}
@media(max-width:600px){.ph-kb-article{padding:16px}.ph-kb-article>h3{font-size:21px}}

.ph-sku-profit-status{padding:16px;border-radius:12px;background:#f3f5f2;border-left:4px solid #b38a38;margin:12px 0 18px;}
.ph-sku-profit-status h3{font-size:16px;margin:0 0 10px;}.ph-sku-profit-status>strong{display:block;font-size:24px;color:#203f37;}.ph-sku-profit-status p{line-height:1.5;color:#53635e;}
.ph-sku-cost-details summary{cursor:pointer;font-weight:600;padding:12px;border:1px solid #ccd6d0;border-radius:8px;background:#f7f9f6;}

.fortnight-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;margin:12px 0}.fortnight-card{display:grid;align-content:start;gap:4px;padding:13px 15px;border:1px solid #d7dfda;border-radius:10px;background:#f8faf8;color:#173b36}.fortnight-card strong{font-size:clamp(1.2rem,2vw,1.65rem);font-variant-numeric:tabular-nums}.fortnight-main{background:#123e38;color:white}.fortnight-card small{color:inherit;opacity:.86}.fortnight-card progress{accent-color:#247763;width:100%;height:7px}

/* Desktop product table and detail drawer */
.ph-sku-workbench,
.ph-sku-drawer {
  --sku-ink: #20332c;
  --sku-muted: #56645c;
  --sku-line: #dedfd5;
  --sku-surface: #faf9f3;
  --sku-accent: #174e42;
  color: var(--sku-ink);
  font-size: 14px;
  line-height: 1.45;
}

.ph-sku-workbench > h2,
.ph-sku-drawer-header h2 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 650;
}

.ph-sku-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 14px 0 10px;
}

.ph-sku-tools .ph-input-field {
  display: grid;
  gap: 4px;
  flex: 1 1 230px;
  max-width: 340px;
  margin: 0;
  font-size: 12px;
}

.ph-sku-tools input[type="search"] {
  width: 100%;
  min-width: 0;
}

.ph-sku-tools input[type="search"],
.ph-current #screen .ph-sku-tools .btn,
.ph-current #screen .ph-sku-drawer .btn {
  box-sizing: border-box;
  min-height: 34px;
  margin: 0;
  padding: 5px 11px;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
}

.ph-current #screen .ph-sku-tools .btn,
.ph-current #screen .ph-sku-drawer-header .btn {
  height: 34px;
  white-space: nowrap;
}

.ph-sku-tools .ph-sku-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 34px;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid var(--sku-line);
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.ph-sku-filter input[type="checkbox"] {
  appearance: auto;
  width: 14px;
  height: 14px;
  min-width: 14px;
  margin: 0;
  padding: 0;
  accent-color: var(--sku-accent);
}

.ph-sku-filter:has(input:checked) {
  border-color: #86a89b;
  background: #eaf3ed;
}

.ph-sku-table-status {
  margin: 0 0 8px;
  color: var(--sku-muted);
  font-size: 12px;
}

.ph-sku-table-scroll {
  max-height: min(65vh, 720px);
  overflow: auto;
  border: 1px solid var(--sku-line);
  border-radius: 8px;
  background: #fff;
}

.ph-sku-workbench .ph-sku-table {
  width: 100%;
  min-width: 800px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font: inherit;
  font-size: 14px;
}

.ph-sku-table th:nth-child(1) { width: 25%; }
.ph-sku-table th:nth-child(2) { width: 11%; }
.ph-sku-table th:nth-child(3) { width: 16%; }
.ph-sku-table th:nth-child(4) { width: 13%; }
.ph-sku-table th:nth-child(5) { width: 10%; }
.ph-sku-table th:nth-child(6) { width: 25%; }

.ph-sku-table thead th,
.ph-sku-table tbody th,
.ph-sku-table tbody td {
  box-sizing: border-box;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid var(--sku-line);
  color: var(--sku-ink);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.ph-sku-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 40px;
  background: #eef0e9;
  font-size: 12px;
  font-weight: 650;
}

.ph-sku-table tbody tr {
  height: 48px;
  cursor: pointer;
  background: #fff;
}

.ph-sku-table tbody tr:nth-child(even) { background: #fafbf8; }
.ph-sku-table tbody tr:hover,
.ph-sku-table tbody tr:focus-within { background: #eaf3ed; }

.ph-sku-table tbody th,
.ph-sku-table tbody td {
  height: 48px;
  background: transparent;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-sku-table .ph-sku-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ph-current #screen .ph-sku-table .ph-sku-sort,
.ph-current #screen .ph-sku-table .ph-sku-row-title {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  cursor: pointer;
}

.ph-current #screen .ph-sku-table .ph-sku-sort { line-height: 24px; }
.ph-current #screen .ph-sku-table .ph-sku-row-title { line-height: 16px; font-weight: 650; }
.ph-sku-table [aria-sort] .ph-sku-sort { color: var(--sku-accent); }
.ph-current #screen .ph-sku-table .ph-sku-row-title:focus-visible,
.ph-current #screen .ph-sku-table .ph-sku-sort:focus-visible {
  outline: 2px solid #277363;
  outline-offset: 1px;
}

.ph-sku-item-id,
.ph-sku-cell-text {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ph-sku-item-id { color: var(--sku-muted); font-size: 12px; font-weight: 400; }

.ph-sku-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  box-sizing: border-box;
  width: min(46rem, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
  border-left: 1px solid var(--sku-line);
  background: var(--sku-surface);
  box-shadow: -12px 0 32px #13241b33;
}

.ph-sku-drawer::backdrop { background: #14251c33; }

.ph-sku-drawer-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sku-line);
  background: var(--sku-surface);
}

.ph-sku-drawer-header h2 { grid-area: 1 / 1; margin: 0; }
.ph-sku-drawer-header p {
  grid-area: 2 / 1;
  margin: 0;
  color: var(--sku-muted);
  font-size: 12px;
}

.ph-sku-drawer-header .btn { grid-area: 1 / 2 / span 2; align-self: center; }
.ph-sku-drawer-content { padding: 18px 20px; }
.ph-sku-drawer-content h2,
.ph-sku-drawer-content h3 { font-size: 16px; line-height: 1.35; font-weight: 650; }
.ph-sku-drawer-content h4 { font-size: 14px; line-height: 1.35; font-weight: 650; }
.ph-sku-drawer-content p { font-size: 14px; line-height: 1.45; }
.ph-sku-drawer-content small { color: var(--sku-muted); font-size: 12px; line-height: 1.4; }

.ph-sku-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ph-sku-metric {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--sku-line);
  border-radius: 8px;
  background: #fff;
}

.ph-sku-metric:first-child { background: #edf4ee; }
.ph-sku-metric > span { color: var(--sku-muted); font-size: 13px; font-weight: 600; }
.ph-sku-metric > strong {
  color: var(--sku-ink);
  font-size: 26px;
  font-weight: 650;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.ph-sku-metric.ph-sku-metric--text > strong { font-size: 16px; }

.ph-sku-next {
  margin: 12px 0 18px;
  padding: 13px 15px;
  border: 1px solid #dbe6dc;
  border-left: 3px solid #4c8673;
  border-radius: 8px;
  background: #edf4ee;
}

.ph-sku-next h3 { margin: 0 0 3px; font-size: 13px; }
.ph-sku-next > p { margin: 0; font-size: 16px; font-weight: 650; }
.ph-sku-experiment-dates {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid #d5e2d8;
  list-style: none;
}
.ph-sku-experiment-dates li { color: var(--sku-muted); font-size: 13px; }
.ph-sku-experiment-dates strong { display: block; color: var(--sku-ink); }

@media (max-width: 530px) {
  .ph-sku-metric-grid { grid-template-columns: 1fr; }
}

/* Finance overview and weekly detail */
.ph-finance-screen,
.ph-day-screen,
.ph-market-screen,
.ph-task-screen,
.ph-logistics-screen,
.ph-reputation-screen,
.ph-meeting-screen,
.ph-feedback-screen,
.ph-admin-screen,
.ph-sku-screen,
#screen:has(> .ph-kb-panel) {
  --sku-ink: #20332c;
  --sku-muted: #56645c;
  --sku-line: #dedfd5;
  --sku-surface: #faf9f3;
  --sku-accent: #174e42;
  color: var(--sku-ink);
  font-size: 14px;
  line-height: 1.45;
}

.ph-current #screen:is(.ph-finance-screen,.ph-day-screen,.ph-market-screen,.ph-task-screen,.ph-logistics-screen,.ph-reputation-screen,.ph-meeting-screen,.ph-feedback-screen,.ph-admin-screen,.ph-sku-screen,:has(> .ph-kb-panel)) > h1 {
  font-size: 24px;
  line-height: 1.3;
}
.ph-current #screen:is(.ph-finance-screen,.ph-day-screen,.ph-market-screen,.ph-task-screen,.ph-logistics-screen,.ph-reputation-screen,.ph-meeting-screen,.ph-feedback-screen,.ph-admin-screen,.ph-sku-screen,:has(> .ph-kb-panel)) .panel > h2 {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
}
.ph-current #screen:is(.ph-finance-screen,.ph-day-screen,.ph-market-screen,.ph-task-screen,.ph-logistics-screen,.ph-reputation-screen,.ph-meeting-screen,.ph-feedback-screen,.ph-admin-screen,.ph-sku-screen,:has(> .ph-kb-panel)) h3 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}
.ph-current #screen:is(.ph-finance-screen,.ph-day-screen,.ph-market-screen,.ph-task-screen,.ph-logistics-screen,.ph-reputation-screen,.ph-meeting-screen,.ph-feedback-screen,.ph-admin-screen,.ph-sku-screen,:has(> .ph-kb-panel)) p {
  font-size: 14px;
  line-height: 1.45;
}
.ph-current #screen:is(.ph-finance-screen,.ph-day-screen,.ph-market-screen,.ph-task-screen,.ph-logistics-screen,.ph-reputation-screen,.ph-meeting-screen,.ph-feedback-screen,.ph-admin-screen,.ph-sku-screen,:has(> .ph-kb-panel)) small {
  font-size: 12px;
  line-height: 1.4;
}
.ph-current #screen:is(.ph-finance-screen,.ph-day-screen,.ph-market-screen,.ph-task-screen,.ph-logistics-screen,.ph-reputation-screen,.ph-meeting-screen,.ph-feedback-screen,.ph-admin-screen,.ph-sku-screen,:has(> .ph-kb-panel)) .btn,
.ph-current #periodPicker .ph-finance-market-control .btn {
  box-sizing: border-box;
  min-height: 34px;
  margin: 0;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.3;
}
.ph-current #periodPicker .ph-finance-market-control .btn {
  width: 73px;
  height: 34px;
  white-space: nowrap;
}
.ph-current #screen.ph-finance-screen .ph-period-presets:not(.ph-workspace-months) > .btn {
  flex: 1 1 160px;
  max-width: 220px;
  min-width: 0;
}
.ph-finance-load:empty { display: none; }
.ph-finance-overview:empty { display: none; }
.ph-finance-overview { margin: 12px 0 14px; }
.ph-current #screen.ph-finance-screen .ph-finance-caption {
  margin: 0 0 8px;
  color: var(--sku-muted);
  font-size: 12px;
}
.ph-finance-overview .ph-sku-metric-grid { margin-bottom: 8px; }
.ph-finance-overview .ph-sku-metric {
  padding: 14px;
}
.ph-finance-overview .ph-sku-metric > strong {
  font-size: 28px;
}
.ph-finance-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}
.ph-finance-status-grid > .ph-plan-metric {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid var(--sku-line);
  border-radius: 6px;
  background: var(--sku-surface);
}
.ph-finance-status-grid .ph-plan-label,
.ph-finance-status-grid small {
  color: var(--sku-muted);
  font-size: 12px;
}
.ph-finance-status-grid > .ph-plan-metric > strong {
  font-size: 14px;
  line-height: 1.35;
}
.ph-finance-pending {
  padding: 9px 11px;
  border-left: 3px solid #b38f49;
  border-radius: 5px;
  background: #f8f3e6;
}
.ph-finance-chart { margin: 16px 0; }
.ph-finance-weeks {
  overflow: clip;
  border: 1px solid var(--sku-line);
  border-radius: 8px;
  background: #fff;
}
.ph-finance-week-row { margin: 0; }
.ph-finance-week-row + .ph-finance-week-row { border-top: 1px solid var(--sku-line); }
.ph-current #screen.ph-finance-screen .ph-finance-week-row > summary {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(150px, auto) minmax(105px, 1fr) 12px;
  gap: 9px;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 5px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--sku-ink);
  font-size: 14px;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.ph-current #screen.ph-finance-screen .ph-finance-week-row > summary::-webkit-details-marker {
  display: none;
}
.ph-current #screen.ph-finance-screen .ph-finance-week-row[open] > summary,
.ph-current #screen.ph-finance-screen .ph-finance-week-row > summary:hover {
  background: #edf4ee;
}
.ph-current #screen.ph-finance-screen .ph-finance-week-row > summary:focus-visible {
  outline: 2px solid #277363;
  outline-offset: -3px;
}
.ph-finance-week-row > summary::after {
  content: "";
  grid-column: 4;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--sku-muted);
  border-bottom: 2px solid var(--sku-muted);
  transform: rotate(-45deg);
}
.ph-finance-week-row[open] > summary::after { transform: rotate(45deg); }
.ph-finance-week-amount {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.ph-finance-week-meta {
  justify-self: end;
  color: var(--sku-muted);
  font-size: 12px;
}
.ph-finance-week-meta:empty { display: none; }
.ph-finance-week-body {
  padding: 9px 12px 12px;
  border-top: 1px solid var(--sku-line);
  background: #f9faf7;
}
.ph-finance-week-body > p { margin: 0 0 8px; }
.ph-finance-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px,100%),1fr));
  gap: 9px;
}
.ph-finance-breakdown > section {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--sku-line);
  border-radius: 6px;
  background: #fff;
}
.ph-finance-breakdown h3 { margin: 0 0 5px; }
.ph-finance-breakdown dl { margin: 0; }
.ph-finance-breakdown dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  padding: 4px 0;
  border-top: 1px solid #eceee6;
  font-size: 12px;
}
.ph-finance-breakdown dl > div:last-child { font-weight: 650; }
.ph-finance-breakdown dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .ph-finance-status-grid { grid-template-columns: 1fr; }
  .ph-current #screen.ph-finance-screen .ph-finance-week-row > summary {
    grid-template-columns: minmax(0, 1fr) auto 12px;
  }
  .ph-finance-week-row > summary::after { grid-column: 3; grid-row: 1; }
  .ph-finance-week-meta:not(:empty) { grid-column: 1 / span 2; justify-self: start; }
}

/* My Day */
.ph-day-profit { margin-bottom: 12px; }
.ph-current #screen.ph-day-screen .ph-day-period {
  margin: 0 0 10px;
  color: var(--sku-muted);
  font-size: 12px;
}
.ph-day-profit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ph-day-profit-grid .ph-sku-metric {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: #fff;
}
.ph-day-profit-grid .ph-sku-metric:first-child { background: #fff; }
.ph-day-profit-grid .ph-sku-metric > strong { font-size: 28px; }
.ph-day-profit-grid .ph-sku-metric--text > strong { font-size: 18px; }
.ph-current #screen.ph-day-screen .ph-day-profit-grid .btn {
  align-self: flex-start;
  margin-top: auto;
  width: 125px;
  height: 34px;
  white-space: nowrap;
}
.ph-day-decision-group + .ph-day-decision-group {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--sku-line);
}
.ph-day-decision-group > h3 { margin: 0 0 6px; }
.ph-current #screen.ph-day-screen .ph-day-decision-group p {
  margin: 0 0 6px;
  color: var(--sku-muted);
  font-size: 13px;
}
.ph-day-decision-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--sku-line);
  border-radius: 7px;
  background: #fff;
}
.ph-day-decision-list:empty { display: none; }
.ph-day-decision-list > li { margin: 0; padding: 0; }
.ph-day-decision-list > li + li { border-top: 1px solid var(--sku-line); }
.ph-current #screen.ph-day-screen .ph-day-decision-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 10px;
  gap: 10px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: var(--sku-ink);
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.ph-current #screen.ph-day-screen .ph-day-decision-row:hover {
  background: #edf4ee;
  box-shadow: none;
  filter: none;
  text-decoration: none;
}
.ph-current #screen.ph-day-screen .ph-day-decision-row:focus-visible {
  outline: 2px solid #277363;
  outline-offset: -3px;
}
.ph-day-decision-row::after {
  content: "";
  grid-column: 3;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--sku-muted);
  border-bottom: 2px solid var(--sku-muted);
  transform: rotate(-45deg);
}
.ph-day-decision-caption { min-width: 0; }
.ph-day-decision-caption strong,
.ph-day-decision-caption small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ph-day-decision-caption strong { font-weight: 650; }
.ph-day-decision-caption small { color: var(--sku-muted); font-weight: 400; }
.ph-day-decision-amount {
  color: #81502a;
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 530px) {
  .ph-day-profit-grid { grid-template-columns: 1fr; }
}

/* Marketplace reports */
.ph-market-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.ph-market-metrics .ph-sku-metric {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
}
.ph-market-metrics .ph-sku-metric > strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.ph-market-metrics .ph-sku-metric--text > strong { font-size: 16px; }
.ph-market-metrics .ph-indicator-help {
  display: grid;
  justify-items: start;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
}
.ph-market-metrics .ph-indicator-help details { font-size: 12px; }
.ph-current #screen.ph-market-screen .ph-market-metrics summary {
  min-height: 26px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}
.ph-current #screen.ph-market-screen .ph-market-metrics summary:hover { text-decoration: underline; }
.ph-current #screen.ph-market-screen .ph-market-result { margin-top: 10px; }
.ph-current #screen.ph-market-screen .ph-period-presets {
  flex-flow: row wrap;
  gap: 6px;
  padding: 0;
  border: 0;
}
.ph-current #screen.ph-market-screen .ph-period-presets > .btn {
  flex: 1 1 160px;
  max-width: 220px;
  min-width: 0;
  height: 34px;
  text-align: center;
}
.ph-current #screen.ph-market-screen .ph-market-promotion [role="tablist"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 6px;
}
.ph-current #screen.ph-market-screen .ph-market-promotion [role="tab"] { width: 100%; }
.ph-market-disclosure {
  margin: 8px 0;
  border: 1px solid var(--sku-line);
  border-radius: 7px;
  background: #fff;
}
.ph-current #screen.ph-market-screen .ph-market-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  color: var(--sku-ink);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.ph-current #screen.ph-market-screen .ph-market-disclosure > summary::-webkit-details-marker { display: none; }
.ph-current #screen.ph-market-screen .ph-market-disclosure > summary:hover,
.ph-current #screen.ph-market-screen .ph-market-disclosure[open] > summary { background: #edf4ee; }
.ph-current #screen.ph-market-screen .ph-market-disclosure > summary:focus-visible {
  outline: 2px solid #277363;
  outline-offset: -2px;
}
.ph-market-disclosure > summary::after {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin: 0 3px 0 auto;
  border-right: 2px solid var(--sku-muted);
  border-bottom: 2px solid var(--sku-muted);
  transform: rotate(-45deg);
}
.ph-market-disclosure[open] > summary::after { transform: rotate(45deg); }
.ph-market-breakdown .ph-market-disclosure { margin: 0; border: 0; border-radius: 0; border-top: 1px solid var(--sku-line); }
.ph-market-breakdown summary span {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ph-market-breakdown summary strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-market-line-detail { padding: 0 12px 10px; }
.ph-market-table-scroll {
  max-height: 390px;
  margin: 8px 0;
}
.ph-current #screen.ph-market-screen .ph-market-table {
  width: 100%;
  min-width: 600px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 14px;
}
.ph-market-table thead th:nth-child(1) { width: 34%; }
.ph-market-table thead th:nth-child(2) { width: 15%; }
.ph-market-table thead th:nth-child(n+3) { width: 17%; }
.ph-market-table thead th:last-child { width: 17%; }
.ph-market-table .ph-sku-row-title:hover { text-decoration: underline; }
.ph-market-table tr:last-child > * { border-bottom: 0; }
.ph-market-product-dialog {
  box-sizing: border-box;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 16px;
  border: 1px solid var(--sku-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sku-ink);
}
.ph-market-product-dialog::backdrop { background: rgb(32 51 44 / 45%); }
.ph-market-product-dialog > form { display: flex; justify-content: flex-end; }
@media (max-width: 1050px) {
  .ph-market-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .ph-market-metrics { grid-template-columns: 1fr; }
}

/* Task queue */
.ph-task-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.ph-task-metrics .ph-sku-metric > strong { font-size: 28px; }
.ph-task-list {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--sku-line);
  border-radius: 8px;
  background: #fff;
}
.ph-current #screen.ph-task-screen .ph-task-card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.ph-current #screen.ph-task-screen .ph-task-card + .ph-task-card {
  border-top: 1px solid var(--sku-line);
}
.ph-current #screen.ph-task-screen .ph-task-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21%) 105px 112px 8px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  padding: 5px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: var(--sku-ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  cursor: pointer;
}
.ph-current #screen.ph-task-screen .ph-task-card:nth-child(even) > .ph-task-line { background: #fafbf8; }
.ph-current #screen.ph-task-screen .ph-task-line:hover,
.ph-current #screen.ph-task-screen .ph-task-card[open] > .ph-task-line { background: #edf4ee; }
.ph-current #screen.ph-task-screen .ph-task-line:focus-visible {
  outline: 2px solid #277363;
  outline-offset: -3px;
}
.ph-task-line::-webkit-details-marker { display: none; }
.ph-task-line::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--sku-muted);
  border-bottom: 2px solid var(--sku-muted);
  transform: rotate(-45deg);
}
.ph-task-card[open] > .ph-task-line::after { transform: rotate(45deg); }
.ph-task-line-main,
.ph-task-line-assignee { min-width: 0; }
.ph-task-line-main > *,
.ph-task-line-assignee {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ph-task-line-main > strong { font-size: 14px; font-weight: 650; }
.ph-task-line-main > small { color: var(--sku-muted); }
.ph-task-line-due { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ph-task-line-overdue { color: #873e30; font-weight: 650; }
.ph-task-line-overdue > small { display: block; }
.ph-task-line-status {
  justify-self: start;
  padding: 3px 7px;
  border-radius: 5px;
  background: #f0f1eb;
  color: #44544a;
  font-size: 12px;
  font-weight: 600;
}
.ph-task-line-status.ph-task-line-review { background: #f5ebd1; color: #654913; }
.ph-task-card-body {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--sku-line);
}
.ph-task-card-body > h3 { margin: 0 0 8px; overflow-wrap: anywhere; }
.ph-task-card-body > p { margin: 0 0 8px; }
.ph-task-card-body > p:empty { display: none; }
.ph-task-card-body > details { margin: 8px 0; }
.ph-task-card-body > .btn + .btn { margin-inline-start: 6px; }
.ph-task-card-body .ph-task-actions:not(:empty) { margin-top: 10px; }
.ph-task-archive { margin-top: 10px; }
.ph-current #screen.ph-task-screen .ph-task-archive > summary {
  margin: 0;
  padding: 8px 12px;
  border-color: var(--sku-line);
  border-radius: 7px;
  box-shadow: none;
}
.ph-task-archive .ph-task-list { margin-top: 6px; }
.ph-task-screen .ph-task-summary-scroll th,
.ph-task-screen .ph-task-summary-scroll td { padding: 6px 10px; font-size: 13px; }
.ph-task-screen .ph-task-summary-scroll th:not(:first-child),
.ph-task-screen .ph-task-summary-scroll td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .ph-current #screen.ph-task-screen .ph-task-line {
    grid-template-columns: minmax(0, 1fr) 92px 8px;
    gap: 5px 10px;
  }
  .ph-task-line-assignee { grid-area: 2 / 1; }
  .ph-task-line-due { grid-area: 2 / 2; }
  .ph-task-line-status { grid-area: 1 / 2; }
  .ph-task-line::after { grid-area: 1 / 3 / span 2; }
}

/* Logistics shipments */
.ph-shipment-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}
.ph-shipment-metrics .ph-sku-metric > strong { font-size: 28px; }
.ph-current #screen.ph-logistics-screen .ph-shipment-coverage,
.ph-current #screen.ph-logistics-screen .ph-shipment-source {
  margin: 6px 0;
  color: var(--sku-muted);
  font-size: 12px;
}
.ph-shipment-group { margin: 10px 0; }
.ph-current #screen.ph-logistics-screen .ph-shipment-group > summary,
.ph-current #screen.ph-logistics-screen .ph-shipment-help > summary {
  margin: 0;
  padding: 8px 12px;
  border-color: var(--sku-line);
  border-radius: 7px;
  box-shadow: none;
}
.ph-shipment-table-scroll { max-height: 280px; }
.ph-current #screen.ph-logistics-screen .ph-shipment-table {
  width: 100%;
  min-width: 480px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 14px;
}
.ph-shipment-table thead th:nth-child(1) { width: 24%; }
.ph-shipment-table thead th:nth-child(2) { width: 46%; }
.ph-shipment-table thead th:nth-child(3) { width: 30%; }
.ph-shipment-table .ph-sku-row-title:hover { text-decoration: underline; }
.ph-shipment-table tbody td.ph-shipment-attention { color: #873e30; font-weight: 650; }
.ph-shipment-table tbody tr:last-child > * { border-bottom: 0; }
.ph-shipment-dialog {
  box-sizing: border-box;
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 16px;
  border: 1px solid var(--sku-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sku-ink);
}
.ph-shipment-dialog::backdrop { background: rgb(32 51 44 / 45%); }
.ph-shipment-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ph-shipment-dialog-head h3 { margin: 0; overflow-wrap: anywhere; }
.ph-shipment-dialog h4 { margin: 12px 0 8px; font-size: 14px; }
.ph-shipment-unit-table { overflow: auto; }
.ph-shipment-unit-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}
.ph-shipment-unit-table th,
.ph-shipment-unit-table td { padding: 7px 8px; border-bottom: 1px solid var(--sku-line); }
.ph-shipment-unit-table :is(td,th):nth-child(n+3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ph-shipment-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ph-shipment-actions:empty { display: none; }

/* Reputation review workspace */
.ph-reputation-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}
.ph-reputation-metrics .ph-sku-metric > strong { font-size: 28px; }
.ph-current #screen.ph-reputation-screen .ph-reputation-toolbar {
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.ph-current #screen.ph-reputation-screen .ph-reputation-toolbar > .btn { height: 34px; min-height: 34px; padding-block: 0; font-size: 13px; }
.ph-current #screen.ph-reputation-screen .ph-reputation-switch .btn { width: 122px; height: 34px; }
.ph-current #screen.ph-reputation-screen .ph-reputation-filters { align-items: end; }
.ph-current #screen.ph-reputation-screen .ph-reputation-filters label {
  flex: 0 1 172px;
  min-width: 0;
  gap: 4px;
  margin: 0;
  font-size: 13px;
}
.ph-current #screen.ph-reputation-screen .ph-reputation-filters label:has(input) { flex: 1 1 240px; }
.ph-current #screen.ph-reputation-screen .ph-reputation-filters :is(input,select) {
  box-sizing: border-box;
  min-height: 34px;
  height: 34px;
  min-width: 0;
  margin: 0;
  padding: 5px 8px;
  font-size: 13px;
}
.ph-reputation-pager .btn { min-width: 76px; }
.ph-reputation-table-scroll { max-height: min(58vh, 520px); }
.ph-current #screen.ph-reputation-screen .ph-reputation-table {
  width: 100%;
  min-width: 620px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 14px;
}
.ph-reputation-table thead th:nth-child(1) { width: 101px; }
.ph-reputation-table thead th:nth-child(2) { width: 25%; }
.ph-reputation-table thead th:nth-child(3) { width: auto; }
.ph-reputation-table thead th:nth-child(4) { width: 144px; }
.ph-reputation-table thead th:nth-child(5) { width: 102px; }
.ph-reputation-table :is(th,td) > small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--sku-muted);
}
.ph-reputation-table .ph-sku-row-title:hover { text-decoration: underline; }
.ph-reputation-stage {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 3px 6px;
  border-radius: 5px;
  background: #edf4ee;
  color: var(--sku-accent);
  font-size: 12px;
  vertical-align: middle;
  text-overflow: ellipsis;
}
.ph-current #screen.ph-reputation-screen .ph-reputation-dialog:not([open]) { display: none; }
.ph-reputation-dialog {
  box-sizing: border-box;
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--sku-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sku-ink);
}
.ph-reputation-dialog::backdrop { background: rgb(32 51 44 / 45%); }
.ph-current #screen.ph-reputation-screen .ph-reputation-dialog > .panel {
  margin: 0;
  padding: 16px;
  border: 0;
  box-shadow: none;
}
.ph-reputation-case-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ph-reputation-case-head h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.ph-reputation-review-text {
  padding: 10px 12px;
  border: 1px solid var(--sku-line);
  border-radius: 7px;
  background: var(--sku-surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ph-reputation-case-states { padding: 0 10px 10px; }
.ph-reputation-case-states .ph-reputation-state-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.ph-current #screen.ph-reputation-screen .ph-reputation-state-controls label { margin: 0; }

/* Meetings */
.ph-meeting-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}
.ph-meeting-metrics .ph-sku-metric > strong { font-size: 24px; }
.ph-meeting-metrics .ph-sku-metric + .ph-sku-metric > strong { font-size: 28px; }
.ph-meeting-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 8px 0;
}
.ph-meeting-toolbar .btn { min-width: 76px; }
.ph-meeting-pagination:has(.ph-meeting-page:empty) { display: none; }
.ph-meeting-status:empty { display: none; }
.ph-meeting-table-scroll { max-height: 490px; }
.ph-meeting-table-scroll:empty { display: none; }
.ph-meeting-empty { padding: 0 12px; color: var(--sku-muted); }
.ph-current #screen.ph-meeting-screen .ph-meeting-table {
  width: 100%;
  min-width: 540px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 14px;
}
.ph-meeting-table thead th:nth-child(1) { width: 58%; }
.ph-meeting-table thead th:nth-child(2) { width: 25%; }
.ph-meeting-table thead th:nth-child(3) { width: 17%; }
.ph-meeting-table .ph-sku-row-title:hover { text-decoration: underline; }
.ph-meeting-state {
  padding: 3px 6px;
  border-radius: 5px;
  background: #edf4ee;
  color: var(--sku-accent);
  font-size: 12px;
}
.ph-meeting-dialog {
  box-sizing: border-box;
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 16px;
  border: 1px solid var(--sku-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sku-ink);
}
.ph-meeting-dialog::backdrop { background: rgb(32 51 44 / 45%); }
.ph-meeting-dialog-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.ph-meeting-dialog-head h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.ph-meeting-dialog details { margin: 8px 0; }
.ph-current #screen.ph-meeting-screen .ph-meeting-editor > summary { margin-bottom: 0; }

/* Knowledge library */
.ph-kb-status:empty { display: none; }
.ph-kb-highlights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}
.ph-kb-highlight {
  align-content: start;
  padding: 12px;
}
.ph-kb-highlight h3 { margin: 0; }
.ph-kb-highlight small { color: var(--sku-muted); }
.ph-kb-highlight p { margin: 4px 0 0; }
.ph-kb-highlight ul { list-style: none; margin: 4px 0 0; padding: 0; }
.ph-kb-highlight li + li { border-top: 1px solid var(--sku-line); }
.ph-current #screen .ph-kb-highlight-link {
  display: flex;
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px;
  margin: 0;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  background: transparent;
  color: var(--sku-accent);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.ph-current #screen .ph-kb-highlight-link:hover { background: #e3ede5; box-shadow: none; filter: none; }
.ph-kb-highlight-link span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ph-kb-highlight-link time { flex: none; color: var(--sku-muted); font-size: 12px; font-weight: 400; }
.ph-current #screen .ph-kb-panel .ph-kb-search[type="search"] {
  display: block;
  width: min(100%,520px);
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
  padding: 5px 9px;
  margin: 0 0 10px;
  border-radius: 6px;
  font-size: 13px;
}
.ph-kb-table-scroll { max-height: 480px; }
.ph-current #screen .ph-kb-panel .ph-kb-table {
  width: 100%;
  min-width: 500px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 14px;
}
.ph-kb-table thead th:nth-child(1) { width: 64%; }
.ph-kb-table thead th:nth-child(2) { width: 22%; }
.ph-kb-table thead th:nth-child(3) { width: 14%; }
.ph-kb-table tr:last-child > * { border-bottom: 0; }
.ph-current #screen .ph-kb-panel .ph-kb-table tbody th { font-size: 14px; }
.ph-current #screen .ph-kb-panel .ph-kb-table tbody td { font-size: 13px; }
.ph-kb-table .ph-sku-row-title:hover { text-decoration: underline; }
.ph-kb-dialog {
  box-sizing: border-box;
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 16px 20px;
  border: 1px solid var(--sku-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sku-ink);
}
.ph-kb-dialog::backdrop { background: rgb(32 51 44 / 45%); }
.ph-kb-dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.ph-current #screen .ph-kb-dialog-head h2 {
  margin: 0;
  color: var(--sku-ink);
  font-size: 20px;
  overflow-wrap: anywhere;
}
.ph-kb-dialog-head .btn { flex: none; }
.ph-kb-dialog .ph-kb-body { margin: 10px 0; }
.ph-kb-dialog .ph-kb-body h4 { margin: 14px 0 8px; padding-top: 8px; font-size: 16px; }
.ph-kb-dialog .ph-kb-body li { margin-bottom: 5px; }
.ph-kb-article-evidence > small { display: block; margin: 8px 0; color: var(--sku-muted); }
@media (max-width: 620px) {
  .ph-kb-highlights { grid-template-columns: 1fr; }
}

/* Feedback inbox */
.ph-feedback-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}
.ph-feedback-metrics .ph-sku-metric > strong { font-size: 28px; }
.ph-current #screen.ph-feedback-screen .ph-feedback-criterion {
  margin: 6px 0 8px;
  color: var(--sku-muted);
  font-size: 12px;
}
.ph-feedback-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}
.ph-feedback-pager:has(.ph-feedback-page-label:empty),
.ph-feedback-table-scroll:empty,
.ph-feedback-inbox-status:empty { display: none; }
.ph-current #screen.ph-feedback-screen .ph-feedback-tabs .btn { min-width: 124px; }
.ph-current #screen.ph-feedback-screen .ph-feedback-table {
  width: 100%;
  min-width: 540px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.ph-feedback-table-scroll { max-height: 480px; }
.ph-feedback-table thead th:nth-child(1) { width: 27%; }
.ph-feedback-table thead th:nth-child(2) { width: 24%; }
.ph-feedback-table thead th:nth-child(3) { width: 27%; }
.ph-feedback-table thead th:nth-child(4) { width: 22%; }
.ph-current #screen.ph-feedback-screen .ph-feedback-table tbody th { font-size: 14px; }
.ph-current #screen.ph-feedback-screen .ph-feedback-table tbody td { font-size: 13px; }
.ph-feedback-table .ph-sku-row-title:hover { text-decoration: underline; }
.ph-feedback-state {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 5px;
  background: #edf4ee;
  color: var(--sku-accent);
  font-size: 12px;
  white-space: nowrap;
}
.ph-feedback-dialog {
  box-sizing: border-box;
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 16px 20px;
  border: 1px solid var(--sku-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sku-ink);
}
.ph-feedback-dialog::backdrop { background: rgb(32 51 44 / 45%); }
.ph-feedback-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.ph-feedback-dialog-head h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.ph-feedback-original { white-space: pre-wrap; overflow-wrap: anywhere; }
.ph-current #screen.ph-feedback-screen ul.ph-ux-history-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.ph-feedback-own-row { margin: 0 0 4px; }
.ph-current #screen.ph-feedback-screen .ph-feedback-own-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 6px 10px;
  margin: 0;
  border-color: var(--sku-line);
  border-radius: 7px;
  box-shadow: none;
}
.ph-feedback-own-body { padding: 2px 10px 6px; }

/* Integration directory */
.ph-current #screen.ph-admin-screen .ph-admin-tabs { margin-bottom: 10px; }
.ph-current #screen.ph-admin-screen .ph-admin-tab { width: 132px; height: 34px; }
.ph-integration-metrics {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin: 10px 0;
}
.ph-integration-metrics .ph-sku-metric > strong { font-size: 28px; }
.ph-current #screen.ph-admin-screen .ph-integration-note { color: var(--sku-muted); font-size: 12px; margin: 6px 0; }
.ph-integration-catalog:empty { display: none; }
.ph-integration-entry { border: 1px solid var(--sku-line); border-radius: 7px; background: #fff; margin: 4px 0; overflow: hidden; }
.ph-current #screen.ph-admin-screen .ph-integration-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto 8px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  margin: 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: var(--sku-ink);
  font-size: 14px;
  cursor: pointer;
}
.ph-current #screen.ph-admin-screen .ph-integration-row:hover,
.ph-current #screen.ph-admin-screen .ph-integration-entry[open] > .ph-integration-row { background: #edf4ee; }
.ph-current #screen.ph-admin-screen .ph-integration-row:focus-visible { outline: 2px solid #277363; outline-offset: -3px; }
.ph-integration-row::-webkit-details-marker { display: none; }
.ph-integration-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-integration-row::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--sku-muted);
  border-bottom: 2px solid var(--sku-muted);
  transform: rotate(-45deg);
}
.ph-integration-entry[open] > .ph-integration-row::after { transform: rotate(45deg); }
.ph-integration-badge { padding: 3px 7px; border-radius: 5px; background: #edf4ee; color: var(--sku-accent); font-size: 12px; }
.ph-integration-attention { background: #f5ebd1; color: #654913; }
.ph-integration-detail { padding: 8px 12px; border-top: 1px solid var(--sku-line); }
.ph-integration-detail .ph-wb-token-row { display: block; padding: 0; border: 0; }
.ph-integration-detail .ph-wb-token-controls { margin: 8px 0; gap: 6px; }
.ph-current #screen.ph-admin-screen .ph-integration-detail .ph-wb-token-controls .btn {
  width: 164px;
  height: 34px;
  white-space: nowrap;
}
.ph-integration-detail > .panel { margin: 0; border: 0; padding: 6px 0; box-shadow: none; }
.ph-current #screen .ph-integration-plan-wrap { max-height: 440px; }
.ph-current #screen .ph-integration-plan-table {
  width: 100%;
  min-width: 850px;
  margin: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.ph-current #screen .ph-integration-plan-table :is(th,td) { padding: 0 10px; }
.ph-current #screen .ph-integration-plan-table tbody :is(td,.ph-sku-row-title) { font-size: 14px; }
.ph-current #screen .ph-integration-plan-table thead th:nth-child(1) { width: 27%; }
.ph-current #screen .ph-integration-plan-table thead th:nth-child(2) { width: 12%; }
.ph-current #screen .ph-integration-plan-table thead th:nth-child(3) { width: 19%; }
.ph-current #screen .ph-integration-plan-table thead th:nth-child(4) { width: 22%; }
.ph-current #screen .ph-integration-plan-table thead th:nth-child(5) { width: 20%; }
.ph-current #screen .ph-integration-plan-table .ph-integration-badge {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.ph-current #screen .ph-integration-plan .ph-integration-badge[data-level="paused"] {
  background: #eef0e9;
  color: var(--sku-muted);
}
.ph-current #screen .ph-integration-plan > :is(p,.btn),
.ph-current #screen .ph-integration-load-dialog p { font-size: 14px; }
.ph-current #screen .ph-integration-plan > .btn {
  box-sizing: border-box;
  min-height: 34px;
  height: 34px;
  padding: 5px 11px;
}

.ph-current #screen.ph-admin-screen .ph-staff-table {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.ph-staff-table thead th:nth-child(1) { width: 18%; }
.ph-staff-table thead th:nth-child(2) { width: 22%; }
.ph-staff-table thead th:nth-child(3) { width: 15%; }
.ph-staff-table thead th:nth-child(4) { width: 12%; }
.ph-staff-table thead th:nth-child(5),
.ph-staff-table thead th:nth-child(6) { width: 10%; }
.ph-staff-table thead th:nth-child(7) { width: 13%; }

.ph-current #screen.ph-admin-screen .ph-staff-table :is(th, td),
.ph-current #screen.ph-admin-screen .ph-staff-table .ph-sku-row-title {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.ph-current #screen.ph-admin-screen .ph-staff-table :is(th, td) { padding: 6px 10px; }
.ph-current #screen.ph-admin-screen .ph-staff-table th { height: 48px; }
.ph-current #screen.ph-admin-screen .ph-staff-table td { font-size: 13px; }
.ph-current #screen.ph-admin-screen .ph-staff-table td:first-child { font-size: 14px; }
.ph-current #screen.ph-admin-screen .ph-staff-table td:nth-child(n + 5) {
  font-variant-numeric: tabular-nums;
}
.ph-current #screen.ph-admin-screen .ph-staff-table .ph-work-sort { gap: 3px; }

@media (max-width: 720px) {
  .ph-current #screen.ph-admin-screen .ph-staff-table {
    display: block;
  }
  .ph-staff-table thead { display: none; }
  .ph-staff-table tbody { display: block; }
  .ph-current #screen.ph-admin-screen .ph-staff-table tr {
    display: block;
    height: auto;
    padding: 8px 12px;
  }
  .ph-staff-table tr + tr { border-top: 1px solid var(--sku-line); }
  .ph-current #screen.ph-admin-screen .ph-staff-table td {
    display: grid;
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
    align-items: baseline;
    gap: 8px;
    width: 100%;
    height: auto;
    padding: 4px 0;
    border: 0;
    text-align: left;
  }
  .ph-staff-table td::before {
    content: attr(data-label);
    color: var(--sku-muted);
    font-size: 12px;
    font-weight: 600;
  }
}
@media (max-width: 640px) {
  .ph-integration-metrics { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .ph-current #screen .ph-sku-table tbody th { font-size: 14px; }
  .ph-current #screen .ph-sku-table tbody td { font-size: 13px; }
  .ph-current #screen :is(.ph-kb-panel,.ph-feedback-screen) .ph-sku-table tbody th { font-size: 14px; }
  .ph-current #screen .ph-sku-metric { padding: 13px; }
  .ph-current #screen .ph-sku-metric:not(.ph-sku-metric--text) > strong { font-size: 28px; }
  .ph-current #screen.ph-finance-screen .ph-finance-week-row > summary { min-height: 48px; }
  .ph-current :is(#refresh,#signOut,#aiOpen) {
    box-sizing: border-box;
    min-height: 34px;
    height: 34px;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.3;
  }
}

.ph-current #screen .ph-workspace-months {
  flex-flow: row wrap;
  gap: 6px;
  padding: 0;
  border: 0;
}
.ph-current #screen .ph-workspace-months > .btn {
  flex: 1 1 160px;
  max-width: 220px;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  text-align: center;
}
.ph-current #screen.ph-finance-screen .ph-market-table {
  width: 100%;
  min-width: 600px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.ph-current #screen.ph-admin-screen .ph-staff-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

/* Shared detail cards */
.ph-detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,132px),1fr));
  gap: 8px;
  margin: 10px 0 14px;
}
.ph-detail-fact {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--sku-line);
  border-radius: 8px;
  background: #fff;
}
.ph-detail-fact:first-child { background: #edf4ee; }
.ph-detail-fact dt { color: var(--sku-muted); font-size: 12px; font-weight: 600; }
.ph-detail-fact dd { margin: 0; color: var(--sku-ink); font-size: 16px; font-weight: 650; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ph-current #screen .ph-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
}
.ph-current #screen .ph-detail-head > :is(h2,h3),
.ph-current #screen .ph-task-card-body > .ph-detail-inline-title {
  margin: 0;
  color: var(--sku-ink);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ph-current #screen .ph-detail-head > .btn,
.ph-current #screen .ph-sku-drawer-header > .btn {
  flex: none;
  width: 116px;
  height: 34px;
  min-height: 34px;
  padding: 5px 9px;
  font-size: 13px;
  white-space: nowrap;
}
.ph-current #screen .ph-detail-dialog { padding: 16px 20px; }
.ph-current #screen .ph-detail-dialog.ph-reputation-dialog { padding: 0; }
.ph-detail-dialog::backdrop,.ph-sku-drawer::backdrop { background: rgb(32 51 44 / 45%); }
.ph-current #screen .ph-detail-staff .ph-staff-card-actions { margin: 0 0 12px; }
.ph-detail-staff > div > .panel { margin: 0; padding: 0; border: 0; box-shadow: none; }
.ph-current #screen .ph-detail-dialog .btn { margin-inline-end: 4px; }
.ph-current #screen .ph-detail-head > .btn { margin: 0; }

/* Search and filters above work lists */
.ph-current #screen .ph-list-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: end;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #dedfd5;
  border-radius: 8px;
  background: #faf9f3;
}
.ph-current #screen .ph-list-filters label:not(.ph-sku-filter) {
  display: grid;
  flex: 0 1 185px;
  min-width: 0;
  margin: 0;
  gap: 4px;
  font-size: 13px;
  line-height: 1.35;
}
.ph-current #screen .ph-list-filters label:has(input[type="search"]) { flex: 1 1 245px; max-width: 480px; }
.ph-current #screen .ph-list-filters :is(input[type="search"],select,.btn) {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  margin: 0;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.3;
}
.ph-current #screen .ph-list-filters :is(input[type="search"],select) {
  width: 100%;
  padding: 5px 8px;
}
.ph-current #screen .ph-list-filters .ph-list-filter-reset { flex: none; white-space: nowrap; }
.ph-current #screen .ph-list-filters .ph-sku-filter {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 34px;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 7px;
  font-size: 13px;
}
.ph-current #screen :is(.ph-sku-table,.ph-staff-table) tbody tr[hidden],
.ph-current #screen .ph-task-card[hidden],
.ph-current #screen .ph-task-archive[hidden],
.ph-current #screen .ph-integration-entry[hidden] { display: none; }
.ph-current #screen .ph-list-no-matches[hidden] { display: none; }

/* Loading, errors and empty lists */
.ph-current #screen .ph-list-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  box-sizing: border-box;
  min-height: 68px;
  margin: 8px 0;
  padding: 12px 14px;
  border: 1px solid #dedfd5;
  border-radius: 8px;
  background: #faf9f3;
  color: #20332c;
}
.ph-current #screen .ph-list-state[data-list-state="error"] {
  border-color: #e5c9bc;
  background: #fff7f3;
}
.ph-current #screen .ph-list-state[data-list-state="loading"] .ph-list-state-copy {
  position: relative;
  padding-left: 22px;
}
.ph-list-state[data-list-state="loading"] .ph-list-state-copy::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid #d1ded3;
  border-top-color: #286557;
  border-radius: 50%;
  content: "";
  animation: ph-list-state-spin .8s linear infinite;
}
@keyframes ph-list-state-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ph-list-state[data-list-state="loading"] .ph-list-state-copy::before { animation: none; }
}
.ph-current #screen .ph-list-state-copy > strong { font-size: 14px; font-weight: 650; line-height: 1.35; }
.ph-current #screen .ph-list-state-copy > p { margin: 4px 0 0; color: #56645c; font-size: 13px; line-height: 1.35; }
.ph-current #screen .ph-list-state > .btn {
  box-sizing: border-box;
  min-height: 34px;
  height: 34px;
  padding: 5px 11px;
  margin: 0;
  border-radius: 6px;
  font-size: 13px;
}
.ph-current #screen .ph-sku-table-scroll:has(> .ph-list-state) { border: 0; background: transparent; }
.ph-current #screen .ph-list-state-host:empty,
.ph-current #screen .ph-sku-table-scroll[hidden] { display: none; }


/* Shared controls for work tables */
.ph-work-sort {
 display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; min-height: 28px;
 font: inherit; color: inherit; text-align: inherit; background: transparent; border: 0; cursor: pointer;
}
.ph-work-sort:hover { color: var(--accent, #4ade80); }
.ph-work-sort:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 3px; }
.ph-work-sort-arrow { min-width: 1em; text-align: center; font-size: 14px; opacity: .55; }
th[aria-sort] .ph-work-sort-arrow { color: var(--accent, #4ade80); opacity: 1; }
.ph-work-pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin: 10px 0 2px; }
.ph-work-pager[hidden] { display: none; }
.ph-work-pager .btn { min-height: 34px; min-width: 72px; font-size: 13px; }
.ph-work-page { min-width: 110px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }

/* Keep the original table headers and sort buttons in both scroll contexts. */
.ph-current #screen .ph-sku-table-scroll {
  isolation: isolate;
  scroll-padding-block-start: calc(var(--ph-table-top, 0px) + var(--ph-table-head, 40px));
  scroll-padding-inline-start: var(--ph-table-first, 0px);
}
.ph-current #screen .ph-sku-table-scroll > .ph-sku-table > thead > tr > th {
  inset-block-start: var(--ph-table-top, 0px);
  z-index: 3;
}
.ph-current #screen .ph-sku-table-scroll[data-table-wide] > .ph-sku-table > :is(thead, tbody) > tr > :first-child {
  position: sticky;
  inset-inline-start: 0;
  box-shadow: 2px 0 0 -1px var(--sku-line);
}
.ph-current #screen .ph-sku-table-scroll[data-table-wide] > .ph-sku-table > tbody > tr > :first-child {
  z-index: 2;
  background-color: inherit;
}
.ph-current #screen .ph-sku-table-scroll[data-table-wide] > .ph-sku-table > thead > tr > :first-child {
  z-index: 4;
}
.ph-current #screen .ph-sku-table .ph-work-sort {
  min-height: 28px;
  padding: 2px 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  font: inherit;
  white-space: normal;
}
.ph-current #screen .ph-sku-table .ph-work-sort:hover,
.ph-current #screen .ph-sku-table .ph-work-sort:active {
  color: var(--sku-accent);
  box-shadow: none;
  filter: none;
  transform: none;
}
.ph-current #screen .ph-sku-table [aria-sort] .ph-work-sort-arrow {
  color: var(--sku-accent);
}

.ph-employee-day-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}
.ph-employee-day .ph-day-decision-group {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--sku-line);
  border-radius: 8px;
}
.ph-current #screen.ph-day-screen .ph-employee-day .ph-day-decision-group + .ph-day-decision-group {
  margin: 0;
  padding: 12px;
}
.ph-current #screen.ph-day-screen .ph-employee-day .ph-day-decision-caption :is(strong,small) {
  white-space: normal;
  overflow-wrap: anywhere;
}
.ph-employee-day .ph-list-state-host:not(:empty),
.ph-employee-day .ph-employee-day-upcoming { margin: 8px 0; }
@media (max-width: 880px) {
  .ph-employee-day-columns { grid-template-columns: minmax(0, 1fr); }
}


.ph-current #screen.ph-day-screen .ph-day-task-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0 10px 8px;
}
.ph-current #screen.ph-day-screen .ph-day-task-controls button {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 13px;
}
.ph-day-task-form { margin: 0 10px 8px; }
.ph-day-task-form:empty { display: none; }
.ph-day-task-form textarea { display: block; width: 100%; box-sizing: border-box; margin-bottom: 6px; }
.ph-day-task-form small { display: block; margin: 4px 0; }
.ph-day-task-form button + button { margin-inline-start: 6px; }
.ph-day-task-feedback { display: block; margin: 0 10px 6px; }
.ph-day-task-feedback:empty,.ph-day-action-status:empty { display: none; }
.ph-day-action-status { margin: 0 0 10px; }
.ph-day-action-status button { margin-inline-start: 8px; }

.ph-employee-review-history { margin-top: 16px; }
.ph-employee-review-history > h3 { margin-bottom: 4px; }
.ph-employee-review-history .ph-day-decision-group > h4 { margin: 0 0 6px; }
.ph-current #screen.ph-day-screen .ph-employee-review-list .ph-day-decision-caption small { white-space: pre-line; }


/* Review reply and feedback additions use the shared workspace dimensions. */
.ph-current #screen .ph-feedback-state[hidden],
.ph-current #screen .ph-review-template-list[hidden] {
  display: none;
}
.ph-current #screen .ph-feedback-table td:last-child {
  overflow: hidden;
}
.ph-current #screen .ph-feedback-state + .ph-feedback-state {
  margin-inline-start: 6px;
}
.ph-current #screen .ph-feedback-own-card > summary {
  flex-wrap: wrap;
  box-sizing: border-box;
}
.ph-feedback-own-card > summary > strong {
  flex: 1 1 160px;
  min-width: 0;
  font-size: 14px;
}
.ph-current #screen .ph-feedback-own-body :is(section,.ph-ux-field) {
  min-width: 0;
}
.ph-current #screen .ph-feedback-own-body textarea,
.ph-current #screen .ph-feedback-dialog textarea,
.ph-current #screen .ph-review-reply-panel textarea,
.ph-current #screen .ph-review-template-editor textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 112px;
  padding: 8px 10px;
  border: 1px solid var(--sku-line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  resize: vertical;
}
.ph-current #screen.ph-reputation-screen .ph-review-template-dialog > .panel {
  padding: 16px 20px;
  min-width: 0;
}
.ph-current #screen .ph-review-template-dialog .ph-detail-head {
  align-items: center;
}
.ph-current #screen .ph-review-template-dialog .ph-detail-head > .btn {
  width: auto;
  min-width: 116px;
}
.ph-current #screen .ph-review-template-dialog .btn,
.ph-current #screen .ph-review-reply-panel .btn {
  width: auto;
  max-width: 100%;
  min-height: 34px;
  height: auto;
  white-space: normal;
}
.ph-current #screen .ph-review-template-dialog .ph-detail-head > .btn {
  white-space: nowrap;
}
.ph-current #screen .ph-review-template-filters {
  align-items: end;
  margin-block: 12px;
}
.ph-current #screen .ph-review-template-filters label {
  flex: 1 1 220px;
  max-width: 100%;
}
.ph-review-template-list {
  margin-top: 12px;
  border: 1px solid var(--sku-line);
  border-radius: 8px;
  overflow: hidden;
}
.ph-review-template-list:empty { display: none; }
.ph-current #screen .ph-review-template-row {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.ph-review-template-row + .ph-review-template-row {
  border-top: 1px solid var(--sku-line);
}
.ph-current #screen .ph-review-template-row > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  min-height: 48px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--sku-ink);
  box-shadow: none;
  cursor: pointer;
}
.ph-current #screen .ph-review-template-row:nth-child(even) > summary {
  background: #fafbf8;
}
.ph-current #screen .ph-review-template-row > summary:hover,
.ph-current #screen .ph-review-template-row[open] > summary {
  background: #edf4ee;
}
.ph-current #screen .ph-review-template-row > summary:focus-visible {
  outline: 2px solid #277363;
  outline-offset: -3px;
}
.ph-review-template-row > summary > strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
}
.ph-review-template-meta {
  flex: none;
  color: var(--sku-muted);
  font-size: 12px;
  white-space: nowrap;
}
.ph-review-template-content {
  padding: 0 12px 12px;
}
.ph-review-template-content > small {
  display: block;
  margin-bottom: 8px;
}
.ph-current #screen .ph-review-template-editor {
  margin: 12px 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--sku-line);
  border-radius: 0;
  box-shadow: none;
}
.ph-current #screen .ph-review-template-editor label:has(select),
.ph-current #screen .ph-review-reply-controls > label {
  margin: 0;
  gap: 4px;
  min-width: 0;
  font-size: 13px;
}
.ph-current #screen .ph-review-template-editor select,
.ph-current #screen .ph-review-reply-controls select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  height: 34px;
  margin: 0;
  padding: 5px 8px;
  font-size: 13px;
}
.ph-current #screen .ph-review-template-editor label:has(select) {
  margin-bottom: 10px;
}
.ph-review-reply-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}
.ph-review-reply-controls > label { flex: 1 1 240px; }
.ph-current #screen label.ph-review-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
  font-weight: 400;
}
.ph-current #screen label.ph-review-checkbox > input {
  flex: none;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
}
.ph-current #screen.ph-reputation-screen .ph-reputation-table {
  width: 2185px;
  min-width: 2185px;
  table-layout: fixed;
}
.ph-reputation-table thead th {
  white-space: normal;
  line-height: 16px;
}
.ph-reputation-table thead th:nth-child(1) { width: 90px; }
.ph-reputation-table thead th:nth-child(2) { width: 200px; }
.ph-reputation-table thead th:nth-child(3) { width: 240px; }
.ph-reputation-table thead th:nth-child(4) { width: 125px; }
.ph-reputation-table thead th:nth-child(5) { width: 100px; }
.ph-reputation-table thead th:nth-child(6) { width: 140px; }
.ph-reputation-table thead th:nth-child(7) { width: 220px; }
.ph-reputation-table thead th:nth-child(8) { width: 140px; }
.ph-reputation-table thead th:nth-child(9) { width: 160px; }
.ph-reputation-table thead th:nth-child(10) { width: 140px; }
.ph-reputation-table thead th:nth-child(11) { width: 180px; }
.ph-reputation-table thead th:nth-child(12) { width: 260px; }
.ph-reputation-table thead th:nth-child(13) { width: 190px; }
@media (max-width: 600px) {
  .ph-current #screen.ph-reputation-screen .ph-review-template-dialog > .panel {
    padding: 12px;
  }
  .ph-current #screen .ph-review-template-dialog .ph-detail-head {
    align-items: start;
  }
  .ph-current #screen .ph-review-template-dialog .ph-detail-head > h2 {
    font-size: 18px;
  }
  .ph-current #screen .ph-review-template-row > summary {
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .ph-review-template-row > summary > strong {
    flex-basis: 100%;
    white-space: normal;
  }
  .ph-review-template-meta { white-space: normal; }
  .ph-current #screen .ph-feedback-own-card > summary {
    gap: 6px;
  }
}

.ph-review-template-row > summary::after {
 content: "";
 flex: none;
 width: 7px;
 height: 7px;
 border-right: 2px solid var(--sku-muted);
 border-bottom: 2px solid var(--sku-muted);
 transform: rotate(-45deg);
}
.ph-review-template-row[open] > summary::after { transform: rotate(45deg); }
.ph-review-template-meta { max-width: 48%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
 .ph-review-template-meta { max-width: calc(100% - 20px); }
}

.ph-current #screen.ph-reputation-screen .ph-reputation-switch .ph-review-library-launch {
 width: auto;
 min-width: 150px;
 white-space: nowrap;
}


.ph-current #screen .ph-review-connection [hidden] { display:none!important; }
.ph-current #screen .ph-review-connection .ph-ux-field {
 max-width:640px;
 margin:12px 0;
 gap:4px;
 font-size:13px;
}
.ph-current #screen .ph-review-connection :is(input:not([type="checkbox"]),select) {
 box-sizing:border-box;
 width:100%;
 min-width:0;
 min-height:34px;
 height:34px;
 margin:0;
 padding:5px 8px;
 border:1px solid var(--sku-line);
 border-radius:6px;
 font:inherit;
 font-size:14px;
}
.ph-current #screen .ph-review-connection .btn {
 width:auto;
 min-height:34px;
 max-width:100%;
 white-space:normal;
}
.ph-current #screen .ph-review-reply-panel > p {
 overflow-wrap:anywhere;
}

.ph-current #screen .ph-personal-todos [hidden] {display:none!important;}
.ph-current #screen .ph-personal-todos :is(select,input:not([type="checkbox"])) {box-sizing:border-box;max-width:100%;min-height:34px;font-size:14px;}
.ph-current #screen .ph-personal-todos select {padding:5px 8px;border:1px solid var(--sku-line);border-radius:6px;background:var(--sku-surface,#fff);font-family:inherit;}
.ph-current #screen .ph-personal-todos .ph-todo-history {overflow-wrap:anywhere;}
.ph-current #screen .ph-personal-todos .btn {min-height:34px;max-width:100%;white-space:normal;}

.ph-current #screen :is(.ph-personal-todos,.ph-team-personal-todos) .btn {box-sizing:border-box;padding:6px 10px;line-height:20px;font-size:14px;}
.ph-current #screen :is(.ph-personal-todos,.ph-team-personal-todos) .ph-sku-table :is(td,th) {font-size:14px;height:48px;box-sizing:border-box;}

.ph-current #screen :is(.ph-personal-todos,.ph-team-personal-todos) .ph-sku-table td {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;}
.ph-current #screen .ph-personal-todos .ph-personal-actions {display:flex;flex-wrap:wrap;gap:6px;}
.ph-current #screen .ph-personal-todos .ph-sku-table :is(td,th):last-child {width:30%;}

.ph-current #screen .ph-product-period-metrics {margin-block:18px;overflow-wrap:anywhere;}
.ph-current #screen .ph-product-period-metrics .ph-sku-metric-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));}
.ph-current #screen .ph-product-period-metrics .ph-sku-metric {min-width:0;}
.ph-current #screen .ph-product-period-metrics .ph-sku-metric small {white-space:normal;line-height:1.5;}
.ph-current #screen .ph-product-period-metrics .btn {box-sizing:border-box;min-height:34px;padding:6px 10px;line-height:20px;font-size:14px;white-space:normal;}

.ph-current #screen .ph-product-period-metrics :is(p,small,span,summary) {font-size:14px;}

.ph-current #screen :is(.ph-sku-workbench,.ph-product-facts) .ph-sku-table :is(td,th,button,.ph-sku-cell-text) {font-size:14px;}

/* Fulfillment inventory uses shared cards, work tables and field components. */
.ph-current #screen .ph-fulfillment-tiles { margin: 14px 0; }
.ph-current #screen .ph-fulfillment-tile {
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: #fff;
}
.ph-current #screen .ph-fulfillment-tile[aria-pressed="true"] {
  border-color: var(--sku-accent);
  background: #edf4ee;
}
.ph-current #screen .ph-fulfillment-tile:focus-visible {
  outline: 2px solid var(--sku-accent);
  outline-offset: 2px;
}
.ph-current #screen .ph-fulfillment-tile:disabled { cursor: wait; opacity: .72; }
.ph-current #screen .ph-fulfillment-form {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr));
  align-items: end;
  gap: 10px;
  margin: 12px 0;
}
.ph-current #screen .ph-fulfillment-form .ph-input-field { margin: 0; }
.ph-current #screen .ph-fulfillment-form [hidden] { display: none !important; }
.ph-current #screen .ph-fulfillment-panel input:not([type="checkbox"]):not([type="radio"]),
.ph-current #screen .ph-fulfillment-panel select {
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--sku-line);
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  font-size: 14px;
}
.ph-current #screen .ph-fulfillment-panel .ph-sku-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.ph-current #screen .ph-fulfillment-panel .ph-sku-table tbody tr { cursor: default; }
.ph-current #screen .ph-fulfillment-panel .ph-sku-table :is(th,td) {
  padding: 8px 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.4;
}
.ph-current #screen .ph-fulfillment-stock-table { min-width: 1060px; }
.ph-current #screen .ph-fulfillment-stock-table th:nth-child(1) { width: 220px; }
.ph-current #screen .ph-fulfillment-stock-table th:nth-child(n+2) { width: 120px; }
.ph-current #screen .ph-fulfillment-stock-table th:last-child { width: 240px; }
.ph-current #screen .ph-fulfillment-stock-table .ph-fulfillment-quantity { display: block; margin-top: 4px; }
.ph-current #screen .ph-fulfillment-article { display: block; color: var(--sku-muted); font-weight: 400; }
.ph-current #screen .ph-fulfillment-links-table { min-width: 600px; }
.ph-current #screen .ph-fulfillment-links-table th:nth-child(1) { width: 90px; }
.ph-current #screen .ph-fulfillment-links-table th:nth-child(2) { width: 44%; }
.ph-current #screen .ph-fulfillment-links-table th:nth-child(3) { width: auto; }
.ph-current #screen .ph-fulfillment-panel .ph-sku-table-scroll { margin: 12px 0; }

.ph-current #screen .ph-fulfillment-tile small { color: var(--sku-muted); }

.ph-current #screen .ph-fulfillment-panel input:not([type="checkbox"]):not([type="radio"]),
.ph-current #screen .ph-fulfillment-panel select { height: 34px; line-height: 20px; }
.ph-current #screen .ph-fulfillment-panel .ph-sku-table tbody th { text-transform: none; letter-spacing: normal; }
.ph-current #screen .ph-fulfillment-stock-table { min-width: 1140px; }
.ph-current #screen .ph-fulfillment-stock-table th:nth-child(5) { width: 140px; }
.ph-current #screen .ph-fulfillment-stock-table th:nth-child(6) { width: 180px; }
.ph-current #screen .ph-fulfillment-stock-table thead th { overflow-wrap: normal; letter-spacing: normal; }

/* Logistics source views follow the shared desktop work-table standard. */
.ph-current #screen.ph-logistics-screen .ph-logistics-filters {
 display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:12px 0;
}
.ph-current #screen.ph-logistics-screen .ph-logistics-filters > label {
 display:grid;gap:4px;flex:1 1 220px;min-width:0;max-width:440px;margin:0;font-size:13px;
}
.ph-current #screen.ph-logistics-screen :is(input:not([type="checkbox"]):not([type="radio"]),select) {
 box-sizing:border-box;max-width:100%;min-width:0;min-height:34px;height:34px;padding:5px 8px;font-size:14px;line-height:22px;
}
.ph-current #screen.ph-logistics-screen .ph-logistics-filters select {width:100%;margin:0;}
.ph-current #screen.ph-logistics-screen .ph-logistics-actions {
 display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;
}
.ph-current #screen.ph-logistics-screen .ph-logistics-data-table {
 width:100%;min-width:840px;margin:0;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:14px;
}
.ph-current #screen.ph-logistics-screen .ph-logistics-data-table :is(th,td) {
 box-sizing:border-box;padding:8px 10px;font-size:14px;line-height:20px;
}
.ph-current #screen.ph-logistics-screen .ph-logistics-data-table thead th {
 height:48px;white-space:normal;letter-spacing:normal;
}
.ph-current #screen.ph-logistics-screen .ph-logistics-data-table tbody :is(th,td) {
 height:48px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:none;letter-spacing:normal;
}
.ph-current #screen.ph-logistics-screen .ph-logistics-data-table tbody tr:has(.ph-sku-row-title) {cursor:pointer;}
.ph-current #screen.ph-logistics-screen .ph-logistics-data-table tbody tr:has(.ph-sku-row-title):hover > * {background:#edf4ee;}
.ph-current #screen.ph-logistics-screen .ph-logistics-data-table .ph-sku-row-title {
 display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.ph-current #screen.ph-logistics-screen .ph-purchase-table {min-width:1480px;}
.ph-current #screen.ph-logistics-screen .ph-purchase-table :is(th,td):first-child {width:280px;text-align:left;}
.ph-current #screen.ph-logistics-screen .ph-purchase-table :is(th,td):nth-child(n+2) {text-align:right;font-variant-numeric:tabular-nums;}
.ph-current #screen.ph-logistics-screen .ph-purchase-table tfoot th {background:#f1f6f2;text-transform:none;letter-spacing:normal;}
.ph-current #screen.ph-logistics-screen .ph-warehouse-table :is(th,td):first-child {width:180px;}
.ph-current #screen.ph-logistics-screen .ph-warehouse-table :is(th,td):nth-child(3) {width:220px;}
.ph-current #screen.ph-logistics-screen .ph-warehouse-table :is(th,td):nth-child(n+4) {text-align:right;font-variant-numeric:tabular-nums;}
.ph-current #screen.ph-logistics-screen .ph-warehouse-wide {min-width:1540px;}

.ph-current #screen.ph-logistics-screen .ph-fulfillment-stock-table tbody :is(th,td) {
 height:48px;padding:6px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ph-current #screen.ph-logistics-screen .ph-fulfillment-stock-table .ph-sku-row-title {
 display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.ph-current #screen.ph-logistics-screen .ph-fulfillment-panel .ph-sku-table tbody .ph-logistics-detail-row {cursor:pointer;}
.ph-current #screen.ph-logistics-screen .ph-logistics-detail-row:hover > * {background:#edf4ee;}
.ph-current #screen.ph-logistics-screen .ph-fulfillment-quantity {margin-top:2px;}

.ph-current #screen.ph-logistics-screen .ph-fulfillment-links-table thead th:first-child {width:110px;white-space:nowrap;}
.ph-current #screen.ph-logistics-screen .ph-fulfillment-links-table thead th {overflow-wrap:normal;}
.ph-current #screen.ph-logistics-screen .ph-fulfillment-links-table .ph-sku-row-title {display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ph-current #screen.ph-logistics-screen > .panel > select[aria-label] {width:100%;max-width:440px;}


.ph-current #screen.ph-logistics-screen .ph-fulfillment-links-table tbody td {
 height:48px;padding:6px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

.ph-current #screen.ph-logistics-screen .ph-detail-dialog .ph-detail-facts {
 grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));
}

/* Reputation audit — shared desktop fields and aligned edit actions. */
.ph-current #screen [data-reputation-case] :is(input:not([type=checkbox]),select),
.ph-current #screen .ph-reputation-create-form :is(input,select),
.ph-current #screen [data-wb-observations=reputation] > select {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 34px;
  height: 34px;
  margin: 0;
  padding: 5px 8px;
  font-size: 13px;
}
.ph-current #screen [data-reputation-case] label,
.ph-current #screen .ph-reputation-create-form label {
  min-width: 0;
  margin: 0;
  gap: 4px;
  font-size: 13px;
}
.ph-current #screen [data-reputation-case] textarea,
.ph-current #screen .ph-reputation-create-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 120px;
  padding: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.ph-current #screen .ph-reputation-edit-row {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-block: 8px;
}
.ph-current #screen .ph-reputation-edit-row > label { flex: 1; }
.ph-current #screen .ph-reputation-edit-row > .btn {
  flex: 0 0 168px;
  width: 168px;
  height: 34px;
  min-height: 34px;
  white-space: nowrap;
}
.ph-current #screen .ph-reputation-form-grid,
.ph-current #screen .ph-reputation-create-form {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: end;
  gap: 10px 12px;
  min-width: 0;
}
.ph-current #screen .ph-reputation-form-grid > :is(h3,p,.btn),
.ph-current #screen .ph-reputation-create-form > :is(h2,p,.btn,label:has(textarea)) {
  grid-column: 1 / -1;
}
.ph-current #screen .ph-reputation-form-grid > .btn,
.ph-current #screen .ph-reputation-create-form > .btn {
  justify-self: start;
  min-width: 116px;
  height: 34px;
}
.ph-current #screen [data-wb-observations=reputation] > select {
  max-width: 440px;
}
@media (max-width: 640px) {
 .ph-current #screen .ph-reputation-form-grid,
 .ph-current #screen .ph-reputation-create-form { grid-template-columns: minmax(0,1fr); }
 .ph-current #screen .ph-reputation-edit-row { flex-wrap: wrap; }
 .ph-current #screen .ph-reputation-edit-row > label { flex-basis: 100%; }
}
/* Six review facts form two aligned rows on desktop. */
.ph-current #screen [data-reputation-case] > .ph-detail-facts {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
@media (max-width: 640px) {
 .ph-current #screen [data-reputation-case] > .ph-detail-facts {
   grid-template-columns: repeat(2,minmax(0,1fr));
 }
}

@media (max-width: 640px) {
  .ph-current #screen .ph-integration-plan-table thead th:nth-child(1) { width: 148px; }
  .ph-current #screen .ph-integration-plan-table thead th:nth-child(2) { width: 100px; }
  .ph-current #screen .ph-integration-plan-table thead th:nth-child(3) { width: 190px; }
  .ph-current #screen .ph-integration-plan-table thead th:nth-child(4) { width: 264px; }
  .ph-current #screen .ph-integration-plan-table thead th:nth-child(5) { width: 148px; }
}

/* Existing role-scoped product overview and advertising details. */
.ph-current #screen .ph-product-overview .ph-market-table {
 min-width: 1040px;
 table-layout: fixed;
 width: 100%;
}
.ph-product-overview .ph-market-table thead th:nth-child(1) {width:16%;}
.ph-product-overview .ph-market-table thead th:nth-child(2) {width:12%;}
.ph-product-overview .ph-market-table thead th:nth-child(3),
.ph-product-overview .ph-market-table thead th:nth-child(4) {width:10%;}
.ph-product-overview .ph-market-table thead th:nth-child(5) {width:13%;}
.ph-product-overview .ph-market-table thead th:nth-child(7) {width:14%;}
.ph-product-overview .ph-market-table thead th:nth-child(6) {width:15%;}
.ph-product-overview .ph-market-table thead th:nth-child(8) {width:10%;}
.ph-current #screen .ph-product-overview .ph-market-table :is(th,td) {height:48px;font-size:14px;box-sizing:border-box;}
.ph-current #screen .ph-product-overview .ph-market-table thead th {white-space:normal;}
.ph-current #screen .ph-product-overview .ph-work-sort {white-space:normal;line-height:18px;}
.ph-product-overview-status {font-size:14px;line-height:1.5;}
.ph-advertising-detail > summary {min-height:34px;box-sizing:border-box;cursor:pointer;font-size:14px;padding:7px 0;}
.ph-product-advertising > p {font-size:14px;line-height:1.5;}

/* Meeting editor follows the shared desktop field and list dimensions. */
.ph-current #screen.ph-meeting-screen .ph-meeting-form {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  align-items: end;
}
.ph-current #screen.ph-meeting-screen .ph-meeting-form > :is(summary,div,p,button,label:has(textarea),label:has(input[type=checkbox])) {
  grid-column: 1 / -1;
}
.ph-current #screen.ph-meeting-screen .ph-meeting-form > label:has(input[type=hidden]) { display:none; }
.ph-current #screen.ph-meeting-screen :is(.ph-meeting-editor,.ph-meeting-dialog) label {
  margin: 0;
  gap: 4px;
  min-width: 0;
  font-size: 13px;
}
.ph-current #screen.ph-meeting-screen :is(.ph-meeting-editor,.ph-meeting-dialog) :is(input:not([type=checkbox]):not([type=hidden]),select) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 5px 8px;
  font-size: 13px;
}
.ph-current #screen.ph-meeting-screen .ph-meeting-editor textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 120px;
  height: 120px;
  padding: 8px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}
.ph-current #screen.ph-meeting-screen .ph-meeting-editor label:has(input[type=checkbox]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.ph-current #screen.ph-meeting-screen .ph-meeting-editor input[type=checkbox] {
  flex: none;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
}
.ph-current #screen.ph-meeting-screen .ph-meeting-form > button { justify-self:start; }
.ph-current #screen.ph-meeting-screen .ph-meeting-linked-row {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--sku-line);
  background: #fff;
  color: var(--sku-ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.ph-current #screen.ph-meeting-screen .ph-meeting-linked-row strong {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
}
.ph-current #screen.ph-meeting-screen .ph-meeting-linked-row span { flex:none; font-size:12px; }
.ph-current #screen.ph-meeting-screen .ph-meeting-linked-row:hover { background:#edf4ee; }
.ph-current #screen.ph-meeting-screen .ph-meeting-linked-row:focus-visible { outline:2px solid #277363; outline-offset:-3px; }
@media(max-width:640px) {
 .ph-current #screen.ph-meeting-screen .ph-meeting-form { grid-template-columns:minmax(0,1fr); }
}

.ph-current #screen.ph-meeting-screen .ph-meeting-editor label:has(input[type=checkbox]) { min-height:28px; }
.ph-current #screen.ph-meeting-screen .ph-meeting-editor input[type=checkbox] { order:-1; }

/* Complete task workspace audit — shared tables, dialogs and fields. */
.ph-current #screen .ph-task-dialog {
 box-sizing:border-box;
 width:min(960px,calc(100vw - 32px));
 max-height:calc(100dvh - 32px);
 padding:16px 20px;
 border:1px solid var(--sku-line);
 border-radius:8px;
 color:var(--sku-ink);
 background:#fff;
}
.ph-task-dialog::backdrop {background:rgb(32 51 44 / 45%);}
.ph-current #screen .ph-task-dialog > .ph-detail-head {margin-bottom:12px;}
.ph-current #screen .ph-task-dialog .ph-task-card {margin:0;padding:0;border:0;}
.ph-current #screen .ph-task-dialog .ph-task-card-body {padding:0;}
.ph-current #screen .ph-task-dialog .ph-task-card-body > .ph-detail-inline-title {display:none;}
.ph-current #screen.ph-task-screen :is(input:not([type=checkbox]):not([type=hidden]),select) {
 box-sizing:border-box;
 min-width:0;
 max-width:100%;
 width:100%;
 height:34px;
 min-height:34px;
 margin:0;
 padding:5px 8px;
 font-size:13px;
}
.ph-current #screen.ph-task-screen textarea {
 box-sizing:border-box;
 width:100%;
 min-height:100px;
 padding:8px;
 font-size:14px;
 line-height:1.5;
 resize:vertical;
}
.ph-current #screen.ph-task-screen label {min-width:0;margin:0;gap:4px;font-size:13px;}
.ph-current #screen.ph-task-screen label:has(input[type=checkbox]) {display:flex;flex-direction:row;align-items:center;gap:8px;min-height:28px;}
.ph-current #screen.ph-task-screen input[type=checkbox] {order:-1;width:16px;height:16px;min-height:0;flex:none;margin:0;}
.ph-current #screen.ph-task-screen .btn {box-sizing:border-box;height:34px;min-height:34px;font-size:13px;line-height:20px;}
.ph-current #screen.ph-task-screen .ph-task-form-grid,
.ph-current #screen.ph-task-screen .ph-task-personal-editor {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end;}
.ph-current #screen.ph-task-screen .ph-task-form-grid > label:has(textarea),
.ph-current #screen.ph-task-screen .ph-task-intake .ph-task-form-grid > label:first-child,
.ph-current #screen.ph-task-screen .ph-task-personal-editor > :is(h3,p,div,label:has(textarea),label:has(input[type=text])) {grid-column:1 / -1;}
.ph-current #screen.ph-task-screen .ph-task-form-grid {margin-block:12px;}
.ph-task-table-scroll {max-height:490px;}
.ph-current #screen.ph-task-screen .ph-task-table {min-width:760px;table-layout:fixed;}
.ph-task-table thead th:nth-child(1) {width:46%;}
.ph-task-table thead th:nth-child(2) {width:24%;}
.ph-task-table thead th:nth-child(3) {width:14%;}
.ph-task-table thead th:nth-child(4) {width:16%;}
.ph-task-table th > small {display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--sku-muted);}
.ph-current #screen.ph-task-screen .ph-task-summary-table {min-width:840px;table-layout:fixed;}
.ph-task-summary-table thead th:first-child {width:220px;}
.ph-current #screen.ph-task-screen .ph-task-summary-scroll .ph-sku-table :is(th,td) {height:48px;font-size:14px;box-sizing:border-box;}
.ph-current #screen.ph-task-screen :is(.ph-personal-todos,.ph-team-personal-todos) .ph-sku-table :is(td,th) {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:48px;font-size:14px;}
.ph-current #screen.ph-task-screen .ph-personal-todos .ph-sku-table {table-layout:fixed;min-width:600px;}
.ph-personal-todos .ph-sku-table thead th:nth-child(1) {width:58%;}
.ph-personal-todos .ph-sku-table thead th:nth-child(2) {width:25%;}
.ph-personal-todos .ph-sku-table thead th:nth-child(3) {width:17%;}
.ph-current #screen.ph-task-screen .ph-team-todo-table {min-width:760px;table-layout:fixed;}
.ph-team-todo-table thead th:nth-child(1) {width:29%;}
.ph-team-todo-table thead th:nth-child(2) {width:34%;}
.ph-team-todo-table thead th:nth-child(3) {width:23%;}
.ph-team-todo-table thead th:nth-child(4) {width:14%;}
.ph-current #screen .ph-task-dialog .ph-detail-facts {grid-template-columns:repeat(auto-fit,minmax(180px,1fr));}
.ph-current #screen .ph-task-dialog [data-task-materials] [data-material-case] > summary {
 box-sizing:border-box;min-height:48px;max-height:48px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;padding:12px;
}
.ph-task-material-metrics {grid-template-columns:repeat(3,minmax(0,1fr));}
.ph-current #screen.ph-task-screen .ph-task-archive[hidden],
.ph-current #screen.ph-task-screen .ph-task-table-scroll[hidden],
.ph-current #screen.ph-task-screen .ph-task-dialog [hidden] {display:none;}
@media(max-width:640px) {
 .ph-current #screen.ph-task-screen .ph-task-form-grid,
 .ph-current #screen.ph-task-screen .ph-task-personal-editor {grid-template-columns:minmax(0,1fr);}
 .ph-current #screen .ph-task-dialog .ph-detail-facts {grid-template-columns:repeat(2,minmax(0,1fr));}
}


/* Role handbook library: shared workspace controls and reading navigation. */
.ph-kb-library-summary {color:var(--sku-muted);font-size:13px;margin:8px 0 12px;}
.ph-kb-contents {padding:12px;margin:12px 0;background:var(--sku-soft,#f4f7f5);border:1px solid var(--sku-line);border-radius:8px;}
.ph-kb-contents>div {display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;}
.ph-current #screen .ph-kb-contents .btn {height:auto;min-height:34px;font-size:13px;white-space:normal;text-align:left;}
.ph-kb-body h4 {scroll-margin-top:70px;}
.ph-kb-body h4:focus {outline:2px solid var(--sku-accent);outline-offset:4px;}
.ph-kb-editor-controls,.ph-kb-editor-versions {display:flex;flex-wrap:wrap;gap:8px;margin:10px 0;}
.ph-kb-editor-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start;}
.ph-kb-editor-fields>.ph-input-field {display:grid;gap:5px;min-width:0;font-size:13px;}
.ph-kb-editor-fields>.ph-input-field:has(textarea),.ph-kb-editor-fields>h3,.ph-kb-editor-fields>p,.ph-kb-editor-fields>details {grid-column:1/-1;}
.ph-current #screen .ph-kb-editor-fields input:not([type=checkbox]),.ph-current #screen .ph-kb-editor-fields select {height:34px;min-height:34px;width:100%;box-sizing:border-box;font-size:13px;}
.ph-current #screen .ph-kb-editor-fields textarea {width:100%;min-height:220px;box-sizing:border-box;font-size:14px;line-height:1.55;resize:vertical;}
.ph-kb-editor-fields>label:has(input[type=checkbox]) {grid-column:1/-1;display:flex;gap:8px;align-items:center;font-size:13px;}
.ph-kb-editor-fields input[type=checkbox] {width:16px;height:16px;min-height:16px;flex:none;}
.ph-current #screen .ph-kb-editor .btn {min-height:34px;font-size:13px;}
@media(max-width:620px){.ph-kb-editor-fields{grid-template-columns:minmax(0,1fr);}.ph-kb-editor-versions>.btn{white-space:normal;height:auto;max-width:100%;}.ph-kb-highlights{grid-template-columns:minmax(0,1fr);}.ph-kb-highlight-link span{white-space:normal;overflow-wrap:anywhere;}}

/* Knowledge highlight intrinsic-width correction. */
.ph-kb-highlight{min-width:0;grid-template-columns:minmax(0,1fr);}
.ph-kb-highlight>*{min-width:0;max-width:100%;}

/* Reputation details: shared dialog layout and complete close label. */
.ph-current #screen.ph-reputation-screen .ph-reputation-dialog > .panel{padding:16px 20px;}
.ph-current #screen.ph-reputation-screen .ph-reputation-case-head > .btn{width:116px;height:34px;min-height:34px;white-space:nowrap;flex:none;}
.ph-current #screen.ph-reputation-screen .ph-reputation-case-head > h2{font-size:20px;min-width:0;}
.ph-reputation-source-note{color:var(--sku-muted);font-size:13px;line-height:1.5;}
.ph-current #screen .ph-reputation-dialog .ph-detail-fact dd{font-size:14px;}
.ph-current #screen .ph-reputation-dialog .ph-review-reply-panel{margin:16px 0;padding:16px;border-radius:8px;}
.ph-current #screen .ph-reputation-dialog .ph-review-reply-panel > h3{margin:0 0 12px;font-size:16px;}
.ph-current #screen .ph-reputation-dialog .ph-review-reply-controls{margin-block:10px;}
.ph-current #screen .ph-reputation-dialog .ph-feedback-toolbar{gap:8px;flex-wrap:wrap;}
@media(max-width:600px){.ph-current #screen.ph-reputation-screen .ph-reputation-dialog > .panel{padding:12px;}.ph-current #screen .ph-reputation-dialog .ph-detail-facts{grid-template-columns:1fr;}.ph-current #screen .ph-reputation-dialog .ph-review-reply-controls{flex-direction:column;align-items:stretch;}.ph-current #screen .ph-reputation-dialog .ph-review-reply-controls > label{flex:auto;}}

/* Review reply: draft actions followed by an explicit publication section. */
.ph-current #screen .ph-review-reply-panel .ph-review-draft-actions{display:flex;align-items:center;gap:8px;margin:12px 0 8px;}
.ph-current #screen .ph-review-reply-panel .ph-review-action-help{margin:0 0 16px;color:var(--sku-muted);font-size:13px;line-height:1.5;}
.ph-current #screen .ph-review-reply-panel .ph-review-publication{padding:16px 0 0;margin:16px 0 0;border-top:1px solid var(--sku-line);}
.ph-current #screen .ph-review-publication h4{margin:0 0 8px;font-size:16px;font-weight:650;color:var(--sku-ink);}
.ph-current #screen .ph-review-publication .ph-review-next-step{margin:0 0 12px;font-size:14px;line-height:1.5;}
.ph-current #screen .ph-review-publication-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.ph-current #screen .ph-review-reply-panel :is(.ph-review-draft-actions,.ph-review-publication-actions) > .btn{margin:0;height:34px;min-height:34px;padding:5px 12px;font-size:13px;white-space:nowrap;}
.ph-current #screen .ph-review-publication-confirm{grid-template-columns:18px minmax(0,1fr);align-items:start;gap:8px;margin:12px 0 0;padding:10px 12px;border:1px solid var(--sku-line);border-radius:6px;background:var(--sku-surface);font-size:13px;line-height:1.5;text-decoration:none;}
.ph-current #screen .ph-review-publication-confirm[hidden]{display:none;}
.ph-current #screen .ph-review-publication-confirm input[type=checkbox]{appearance:auto;position:static;width:16px;height:16px;min-height:16px;margin:2px 0 0;padding:0;flex:none;}
@media(max-width:600px){.ph-current #screen .ph-review-reply-panel :is(.ph-review-draft-actions,.ph-review-publication-actions){display:grid;grid-template-columns:minmax(0,1fr);}.ph-current #screen .ph-review-reply-panel :is(.ph-review-draft-actions,.ph-review-publication-actions) > .btn{width:100%;}}

.ph-current #screen .ph-review-send-actions{margin-top:12px;gap:8px;}
.ph-current #screen .ph-review-send-actions[hidden]{display:none;}
.ph-current #screen .ph-review-send-actions > .btn{margin:0;height:34px;min-height:34px;padding:5px 12px;font-size:13px;white-space:nowrap;}
@media(max-width:600px){.ph-current #screen .ph-review-send-actions > .btn{width:100%;}}

/* Review field evidence and source freshness use shared facts and table dimensions. */
.ph-current #screen .ph-review-freshness-facts{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0;}
.ph-current #screen .ph-review-freshness-facts dd{font-size:16px;}
.ph-current #screen .ph-review-field-source{display:block;color:var(--sku-muted);font-size:12px;line-height:1.4;font-weight:400;margin-top:4px;overflow-wrap:anywhere;}
.ph-current #screen .ph-reputation-table .ph-review-field-source{margin:2px 0 0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ph-review-period-warning:empty{display:none;}
.ph-current #screen .ph-review-period-warning{padding:12px 14px;border:1px solid var(--sku-line);border-left:3px solid var(--sku-accent);border-radius:6px;margin:12px 0;background:var(--sku-surface);font-size:14px;}
.ph-current #screen .ph-review-period-warning p{margin:6px 0 10px;line-height:1.5;}
.ph-current #screen .ph-review-period-warning .btn{height:34px;min-height:34px;font-size:13px;margin:0;}
.ph-current #screen .ph-review-visibility-check{border-top:1px solid var(--sku-line);margin-top:12px;padding-top:12px;}
.ph-current #screen .ph-review-visibility-check p{font-size:13px;line-height:1.5;margin:0 0 8px;}
.ph-current #screen .ph-review-visibility-check .btn{width:auto;height:34px;min-height:34px;max-width:100%;margin:0;white-space:nowrap;}
@media(max-width:600px){.ph-current #screen .ph-review-freshness-facts{grid-template-columns:1fr;}.ph-current #screen .ph-review-visibility-check .btn{width:100%;white-space:normal;height:auto;}}
.ph-current #screen .ph-penalty-alerts .ph-sku-metric-grid { grid-template-columns: minmax(0,1fr); }
.ph-current #screen .ph-penalty-attention .ph-sku-metric { border-color: #b78458; background: #fff2df; }
.ph-current #screen .ph-penalty-alerts .ph-day-decision-caption small { white-space: normal; overflow: visible; text-overflow: clip; }
.ph-current #screen .ph-penalty-alerts .ph-day-decision-row { min-height: 48px; }
.ph-current #screen .ph-penalty-table { width: 100%; min-width: 720px; margin: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.ph-current #screen .ph-penalty-table :is(th,td) { padding: 8px 10px; white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
.ph-current #screen .ph-penalty-table th:nth-child(1) { width: 110px; }
.ph-current #screen .ph-penalty-table th:nth-child(2) { width: 110px; }
.ph-current #screen .ph-penalty-table th:nth-child(3) { width: 120px; }
.ph-current #screen .ph-penalty-table th:nth-child(4) { width: auto; }



.ph-current #screen.ph-reputation-screen .ph-reputation-table tbody :is(td:nth-child(8),td:nth-child(9)) > span{display:block;font-size:14px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ph-current #screen.ph-reputation-screen .ph-reputation-table tbody :is(td:nth-child(8),td:nth-child(9)) > .ph-review-field-source{line-height:14px;}





/* Wildberries uses the shared workspace controls, lists and detail cards. */
.ph-current #screen.ph-wb-screen :is(p,li,summary){font-size:14px;line-height:1.5;}
.ph-current #screen.ph-wb-screen :is(small,.muted){font-size:13px;line-height:1.5;}
.ph-current #screen.ph-wb-screen .btn{height:34px;min-height:34px;padding:5px 12px;font-size:13px;line-height:22px;white-space:nowrap;box-sizing:border-box;margin:0;}
.ph-current #screen.ph-wb-screen .actions{gap:8px;align-items:center;flex-wrap:wrap;}
.ph-current #screen.ph-wb-screen :is(input,select,textarea){font-family:inherit;font-size:13px;box-sizing:border-box;max-width:100%;}
.ph-current #screen.ph-wb-screen :is(input:not([type=checkbox]),select){height:34px;min-height:34px;padding:5px 10px;}
.ph-current #screen.ph-wb-screen input[type=checkbox]{width:16px;height:16px;min-height:16px;padding:0;flex:none;}
.ph-current #screen.ph-wb-screen .ph-ozon-policy{padding:8px 0;color:var(--sku-muted);}
.ph-current #screen.ph-wb-screen .ph-ozon-policy p{margin:4px 0;font-size:13px;}
.ph-current #screen.ph-wb-screen .ph-ozon-automation{padding:16px 0;margin-block:12px;border-block:1px solid var(--sku-line);}
.ph-current #screen.ph-wb-screen .ph-ozon-tabs{margin:16px 0;}
.ph-current #screen.ph-wb-screen .ph-ozon-tabs .btn{min-width:116px;}
.ph-current #screen.ph-wb-screen .ph-ozon-work-list{margin-block:12px;min-width:0;}
.ph-current #screen.ph-wb-screen :is(.ph-ozon-table-scroll,.ph-ozon-work-list .ph-sku-table-scroll){max-width:100%;max-height:560px;overflow:auto;overscroll-behavior:contain;}
.ph-current #screen.ph-wb-screen .ph-ozon-work-table{table-layout:fixed;width:100%;min-width:650px;}
.ph-current #screen.ph-wb-screen .ph-ozon-work-table[data-columns="5"]{min-width:950px;}
.ph-current #screen.ph-wb-screen :is(.ph-ozon-work-table,.ph-ozon-data-table) :is(th,td){height:48px;max-height:48px;padding:8px 12px;font-size:14px;line-height:20px;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;}
.ph-current #screen.ph-wb-screen .ph-ozon-work-table th:first-child{width:36%;}
.ph-current #screen.ph-wb-screen .ph-ozon-work-table[data-columns="5"] th:first-child{width:32%;}
.ph-current #screen.ph-wb-screen :is(.ph-ozon-work-table,.ph-ozon-data-table) tbody tr{cursor:pointer;}
.ph-current #screen.ph-wb-screen :is(.ph-ozon-work-table,.ph-ozon-data-table) tbody tr:hover{background:var(--sku-tint);}
.ph-current #screen.ph-wb-screen :is(.ph-ozon-work-table,.ph-ozon-data-table) .ph-sku-row-title{font-size:14px;line-height:20px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;text-align:left;}
.ph-current #screen.ph-wb-screen .ph-ozon-data-table{min-width:650px;}
.ph-current #screen.ph-wb-screen .ph-ozon-data-table th:first-child{min-width:220px;max-width:320px;}
.ph-current #screen.ph-wb-screen .ph-ozon-dialog{width:min(960px,calc(100vw - 48px));max-width:calc(100vw - 48px);max-height:calc(100vh - 48px);padding:16px 20px;box-sizing:border-box;overflow:auto;}
.ph-current #screen.ph-wb-screen .ph-ozon-dialog > .ph-detail-head{display:flex;align-items:start;justify-content:space-between;gap:12px;margin:0 0 12px;}
.ph-current #screen.ph-wb-screen .ph-ozon-dialog > .ph-detail-head h2{font-size:20px;margin:0;min-width:0;overflow-wrap:anywhere;}
.ph-current #screen.ph-wb-screen .ph-ozon-dialog > .ph-detail-head .btn{width:116px;flex:none;}
.ph-current #screen.ph-wb-screen .ph-ozon-entry-body{border:0;padding:0;margin:0;box-shadow:none;background:transparent;}
.ph-current #screen.ph-wb-screen .ph-ozon-entry-body > :is(summary,h2,h3,h4):first-child{display:none;}
.ph-current #screen.ph-wb-screen .ph-ozon-dialog :is(.ph-detail-facts,.ph-sku-metric-grid){grid-template-columns:repeat(3,minmax(0,1fr));}
.ph-current #screen.ph-wb-screen .ph-ozon-dialog .ph-detail-fact dd{font-size:16px;overflow-wrap:anywhere;}
.ph-current #screen.ph-wb-screen .ph-ozon-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end;margin:16px 0;}
.ph-current #screen.ph-wb-screen .ph-ozon-form-grid > label{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0;}
.ph-current #screen.ph-wb-screen .ph-ozon-form-grid input{width:100%;}
.ph-current #screen.ph-wb-screen .ph-ozon-form-grid > .btn{width:160px;}
.ph-current #screen.ph-wb-screen .ph-ozon-source > select{width:min(400px,100%);margin:8px 8px 8px 0;}
.ph-current #screen.ph-wb-screen .ph-ozon-source > label:has(input[type=checkbox]){display:flex;gap:8px;align-items:start;margin:12px 0;font-size:13px;line-height:1.5;}
.ph-current #screen.ph-wb-screen .ph-ozon-source .ph-input-field{display:inline-flex;flex-direction:column;gap:6px;min-width:180px;margin:8px 8px 8px 0;font-size:13px;}
.ph-current #screen.ph-wb-screen .ph-ozon-source .ph-ozon-source-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;}
.ph-current #screen.ph-wb-screen .ph-ozon-source-actions .btn{width:160px;}
.ph-current #screen.ph-wb-screen [hidden]{display:none!important;}
@media(max-width:1100px){.ph-current #screen.ph-wb-screen .ph-ozon-tabs .btn{min-width:0;}.ph-current #screen.ph-wb-screen .ph-ozon-dialog .ph-detail-facts{grid-template-columns:repeat(2,minmax(0,1fr));}}
.ph-current #screen.ph-wb-screen .ph-ozon-dialog{border:1px solid var(--sku-line);border-radius:8px;box-shadow:0 20px 70px #0c292530;background:#fff;color:var(--sku-ink);}
.ph-current #screen.ph-wb-screen .ph-ozon-dialog::backdrop{background:rgb(12 41 37 / 40%);}
.ph-current #screen.ph-wb-screen .ph-ozon-entry-body > summary{display:none;}
.ph-current #screen.ph-wb-screen :is(.ph-ozon-work-table,.ph-ozon-data-table) .ph-work-sort{height:28px;min-height:28px;white-space:nowrap;}
.ph-current #screen.ph-wb-screen :is(.ph-ozon-work-table,.ph-ozon-data-table) .ph-work-sort > span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

.ph-current #screen.ph-wb-screen .ph-market-metrics{grid-template-columns:repeat(3,minmax(0,1fr));}
.ph-current #screen.ph-wb-screen .ph-market-metrics>.ph-sku-metric:first-child{grid-column:1/-1;}
.ph-current #screen.ph-wb-screen .ph-market-metrics>.ph-sku-metric:first-child>strong{font-size:32px;}
.ph-current #screen.ph-wb-screen .ph-wb-expense-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));}
.ph-current #screen.ph-wb-screen .ph-wb-expenses{margin-block:20px;}
.ph-current #screen.ph-wb-screen .ph-sku-metric .ph-indicator-help{display:flex;flex-wrap:wrap;gap:8px;align-items:start;margin-top:auto;padding-top:12px;}
.ph-current #screen.ph-wb-screen .ph-sku-metric .ph-indicator-help>.btn{max-width:100%;padding-inline:10px;}
.ph-current #screen.ph-wb-screen .ph-sku-journal .ph-list-filters{align-items:end;}
.ph-current #screen.ph-wb-screen .ph-list-filters>label{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0;}
.ph-current #screen.ph-wb-screen .ph-wb-product-dialog{width:min(960px,calc(100vw - 40px));max-width:calc(100vw - 40px);padding:20px;box-sizing:border-box;max-height:calc(100vh - 40px);overflow:auto;}
.ph-current #screen.ph-wb-screen .ph-wb-product-dialog>.ph-detail-head{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:12px;}
.ph-current #screen.ph-wb-screen .ph-wb-product-dialog>.ph-detail-head h2{font-size:20px;margin:0;min-width:0;overflow-wrap:anywhere;}
.ph-current #screen.ph-wb-screen .ph-wb-product-dialog>.ph-detail-head>.btn{width:116px;flex:none;}
.ph-current #screen.ph-wb-screen .ph-detail-facts{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));}
@media(max-width:600px){
 .ph-current #screen.ph-wb-screen .ph-market-metrics{grid-template-columns:1fr;}
 .ph-current #screen.ph-wb-screen :is(.ph-ozon-dialog,.ph-wb-product-dialog){width:calc(100vw - 24px);max-width:calc(100vw - 24px);padding:12px;}
 .ph-current #screen.ph-wb-screen .ph-ozon-dialog :is(.ph-detail-facts,.ph-sku-metric-grid){grid-template-columns:1fr;}
}

.ph-current #screen.ph-wb-screen .ph-market-table-scroll .ph-sku-table tbody :is(th,td,.ph-sku-row-title){font-size:14px;}



/* Finance uses the shared work-table, fields, metrics and detail-dialog standards. */
.ph-current #screen.ph-finance-screen .ph-finance-toolbar,
.ph-current #screen.ph-finance-screen .ph-finance-actions {
 display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; margin:12px 0;
}
.ph-current #screen.ph-finance-screen .ph-input-field {
 display:grid; gap:5px; min-width:0; max-width:100%; font-size:13px; font-weight:600;
}
.ph-current #screen.ph-finance-screen .ph-input-field > span {color:var(--sku-muted);}
.ph-current #screen.ph-finance-screen :is(input:not([type=checkbox]):not([type=radio]),select) {
 box-sizing:border-box; height:34px; min-height:34px; max-width:100%; padding:5px 10px; font-size:14px;
}
.ph-current #screen.ph-finance-screen .ph-finance-toolbar select {width:390px;}
.ph-current #screen.ph-finance-screen .ph-finance-statements .ph-sku-metric-grid,
.ph-current #screen.ph-finance-screen .ph-payroll .ph-sku-metric-grid {margin:12px 0;}
.ph-current #screen.ph-finance-screen .ph-finance-payroll-table {min-width:610px; table-layout:fixed;}
.ph-current #screen.ph-finance-screen .ph-finance-payroll-table :is(th,td) {box-sizing:border-box; height:48px; padding:6px 12px; font-size:14px;}
.ph-current #screen.ph-finance-screen .ph-finance-payroll-table :is(th,td):nth-child(1) {width:46%;}
.ph-current #screen.ph-finance-screen .ph-finance-payroll-table :is(th,td):nth-child(2) {width:27%;}
.ph-current #screen.ph-finance-screen .ph-finance-payroll-table :is(th,td):nth-child(3) {width:27%;}
.ph-current #screen.ph-finance-screen .ph-finance-payroll-table tbody tr {cursor:pointer;}
.ph-current #screen.ph-finance-screen .ph-finance-badge {
 display:inline-flex; align-items:center; min-height:24px; padding:3px 8px; border:1px solid var(--sku-line); border-radius:6px; background:#f3f6f4; color:var(--sku-ink); font-size:12px; line-height:16px;
}
.ph-current #screen.ph-finance-screen .ph-finance-calculation {white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; line-height:1.55;}
.ph-current #screen.ph-finance-screen .ph-payroll :is(.ph-task-actions,.ph-finance-toolbar) > .btn {width:auto; max-width:100%; white-space:normal;}
.ph-current #screen.ph-finance-screen .ph-payroll [hidden] {display:none!important;}
.ph-current #screen.ph-finance-screen .ph-finance-personal {margin-top:16px;}
@media(max-width:700px){
 .ph-current #screen.ph-finance-screen .ph-finance-toolbar {align-items:stretch;}
 .ph-current #screen.ph-finance-screen .ph-finance-toolbar > .ph-input-field {width:100%;}
 .ph-current #screen.ph-finance-screen .ph-finance-toolbar select {width:100%;}
 .ph-current #screen.ph-finance-screen .ph-sku-metric-grid {grid-template-columns:minmax(0,1fr);}
 .ph-current #screen.ph-finance-screen .ph-detail-dialog .ph-detail-facts {grid-template-columns:minmax(0,1fr);}
}



/* Ozon desktop workspace uses shared list, tile and detail primitives. */
.ph-current #screen.ph-ozon-screen{min-width:0;}
.ph-current #screen.ph-ozon-screen :is(h2,h3,h4){line-height:1.35;}
.ph-current #screen.ph-ozon-screen h2{font-size:20px;}
.ph-current #screen.ph-ozon-screen :is(h3,h4){font-size:16px;}
.ph-current #screen.ph-ozon-screen :is(p,li,summary){font-size:14px;line-height:1.5;}
.ph-current #screen.ph-ozon-screen :is(small,.muted){font-size:13px;line-height:1.5;}
.ph-current #screen.ph-ozon-screen .btn{height:34px;min-height:34px;padding:5px 12px;font-size:13px;line-height:22px;white-space:nowrap;box-sizing:border-box;margin:0;}
.ph-current #screen.ph-ozon-screen .actions{gap:8px;align-items:center;flex-wrap:wrap;}
.ph-current #screen.ph-ozon-screen :is(input,select,textarea){font-family:inherit;font-size:13px;box-sizing:border-box;max-width:100%;}
.ph-current #screen.ph-ozon-screen :is(input:not([type=checkbox]),select){height:34px;min-height:34px;padding:5px 10px;}
.ph-current #screen.ph-ozon-screen input[type=checkbox]{width:16px;height:16px;min-height:16px;padding:0;flex:none;}
.ph-current #screen.ph-ozon-screen .ph-ozon-policy{padding:8px 0;color:var(--sku-muted);}
.ph-current #screen.ph-ozon-screen .ph-ozon-policy p{margin:4px 0;font-size:13px;}
.ph-current #screen.ph-ozon-screen .ph-ozon-automation{padding:16px 0;margin-block:12px;border-block:1px solid var(--sku-line);}
.ph-current #screen.ph-ozon-screen .ph-ozon-tabs{margin:16px 0;}
.ph-current #screen.ph-ozon-screen .ph-ozon-tabs .btn{min-width:116px;}
.ph-current #screen.ph-ozon-screen .ph-ozon-work-list{margin-block:12px;min-width:0;}
.ph-current #screen.ph-ozon-screen :is(.ph-ozon-table-scroll,.ph-ozon-work-list .ph-sku-table-scroll){max-width:100%;max-height:560px;overflow:auto;overscroll-behavior:contain;}
.ph-current #screen.ph-ozon-screen .ph-ozon-work-table{table-layout:fixed;width:100%;min-width:650px;}
.ph-current #screen.ph-ozon-screen .ph-ozon-work-table[data-columns="5"]{min-width:950px;}
.ph-current #screen.ph-ozon-screen :is(.ph-ozon-work-table,.ph-ozon-data-table) :is(th,td){height:48px;max-height:48px;padding:8px 12px;font-size:14px;line-height:20px;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;}
.ph-current #screen.ph-ozon-screen .ph-ozon-work-table th:first-child{width:36%;}
.ph-current #screen.ph-ozon-screen .ph-ozon-work-table[data-columns="5"] th:first-child{width:32%;}
.ph-current #screen.ph-ozon-screen :is(.ph-ozon-work-table,.ph-ozon-data-table) tbody tr{cursor:pointer;}
.ph-current #screen.ph-ozon-screen :is(.ph-ozon-work-table,.ph-ozon-data-table) tbody tr:hover{background:var(--sku-tint);}
.ph-current #screen.ph-ozon-screen :is(.ph-ozon-work-table,.ph-ozon-data-table) .ph-sku-row-title{font-size:14px;line-height:20px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;text-align:left;}
.ph-current #screen.ph-ozon-screen .ph-ozon-data-table{min-width:650px;}
.ph-current #screen.ph-ozon-screen .ph-ozon-data-table th:first-child{min-width:220px;max-width:320px;}
.ph-current #screen.ph-ozon-screen .ph-ozon-dialog{width:min(960px,calc(100vw - 48px));max-width:calc(100vw - 48px);max-height:calc(100vh - 48px);padding:16px 20px;box-sizing:border-box;overflow:auto;}
.ph-current #screen.ph-ozon-screen .ph-ozon-dialog > .ph-detail-head{display:flex;align-items:start;justify-content:space-between;gap:12px;margin:0 0 12px;}
.ph-current #screen.ph-ozon-screen .ph-ozon-dialog > .ph-detail-head h2{font-size:20px;margin:0;min-width:0;overflow-wrap:anywhere;}
.ph-current #screen.ph-ozon-screen .ph-ozon-dialog > .ph-detail-head .btn{width:116px;flex:none;}
.ph-current #screen.ph-ozon-screen .ph-ozon-entry-body{border:0;padding:0;margin:0;box-shadow:none;background:transparent;}
.ph-current #screen.ph-ozon-screen .ph-ozon-entry-body > :is(summary,h2,h3,h4):first-child{display:none;}
.ph-current #screen.ph-ozon-screen .ph-ozon-dialog :is(.ph-detail-facts,.ph-sku-metric-grid){grid-template-columns:repeat(3,minmax(0,1fr));}
.ph-current #screen.ph-ozon-screen .ph-ozon-dialog .ph-detail-fact dd{font-size:16px;overflow-wrap:anywhere;}
.ph-current #screen.ph-ozon-screen .ph-ozon-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end;margin:16px 0;}
.ph-current #screen.ph-ozon-screen .ph-ozon-form-grid > label{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0;}
.ph-current #screen.ph-ozon-screen .ph-ozon-form-grid input{width:100%;}
.ph-current #screen.ph-ozon-screen .ph-ozon-form-grid > .btn{width:160px;}
.ph-current #screen.ph-ozon-screen .ph-ozon-source > select{width:min(400px,100%);margin:8px 8px 8px 0;}
.ph-current #screen.ph-ozon-screen .ph-ozon-source > label:has(input[type=checkbox]){display:flex;gap:8px;align-items:start;margin:12px 0;font-size:13px;line-height:1.5;}
.ph-current #screen.ph-ozon-screen .ph-ozon-source .ph-input-field{display:inline-flex;flex-direction:column;gap:6px;min-width:180px;margin:8px 8px 8px 0;font-size:13px;}
.ph-current #screen.ph-ozon-screen .ph-ozon-source .ph-ozon-source-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;}
.ph-current #screen.ph-ozon-screen .ph-ozon-source-actions .btn{width:160px;}
.ph-current #screen.ph-ozon-screen [hidden]{display:none!important;}
@media(max-width:1100px){.ph-current #screen.ph-ozon-screen .ph-ozon-tabs .btn{min-width:0;}.ph-current #screen.ph-ozon-screen .ph-ozon-dialog .ph-detail-facts{grid-template-columns:repeat(2,minmax(0,1fr));}}
.ph-current #screen.ph-ozon-screen .ph-ozon-dialog{border:1px solid var(--sku-line);border-radius:8px;box-shadow:0 20px 70px #0c292530;background:#fff;color:var(--sku-ink);}
.ph-current #screen.ph-ozon-screen .ph-ozon-dialog::backdrop{background:rgb(12 41 37 / 40%);}
.ph-current #screen.ph-ozon-screen .ph-ozon-entry-body > summary{display:none;}
.ph-current #screen.ph-ozon-screen :is(.ph-ozon-work-table,.ph-ozon-data-table) .ph-work-sort{height:28px;min-height:28px;white-space:nowrap;}
.ph-current #screen.ph-ozon-screen :is(.ph-ozon-work-table,.ph-ozon-data-table) .ph-work-sort > span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}



/* Data graphics share the existing interface typography and metric cards. */
.ph-current #screen .ph-data-meter{margin-top:10px;min-width:0;}
.ph-current #screen .ph-data-meter-track{position:relative;display:block;height:8px;border-radius:4px;background:#e5ece8;overflow:visible;}
.ph-current #screen .ph-data-meter-fill{display:block;height:100%;border-radius:inherit;background:#4b8377;}
.ph-current #screen .ph-data-meter-marker{position:absolute;top:-3px;width:2px;height:14px;background:#243e37;}
.ph-current #screen .ph-data-meter--warning .ph-data-meter-fill{background:#b44e43;}
.ph-current #screen .ph-data-meter--unknown .ph-data-meter-track{background:repeating-linear-gradient(135deg,#e5ece8 0 4px,#f5f7f5 4px 8px);}
.ph-current #screen .ph-data-meter--estimated .ph-data-meter-fill{background-image:repeating-linear-gradient(135deg,transparent 0 4px,#ffffff80 4px 7px);}
.ph-current #screen .ph-data-meter > small{display:block;margin-top:7px;font-size:13px;line-height:1.4;color:var(--sku-muted,#5d7067);white-space:normal;}
.ph-current #screen .ph-data-meter--compact{display:flex;gap:6px;align-items:center;margin-top:4px;height:12px;max-width:180px;}
.ph-current #screen .ph-data-meter--compact .ph-data-meter-track{height:4px;min-width:32px;flex:1;}
.ph-current #screen .ph-data-meter--compact .ph-data-meter-marker{top:-2px;height:8px;}
.ph-current #screen .ph-data-meter-note{font-size:13px;line-height:12px;color:var(--sku-muted,#5d7067);white-space:nowrap;}
.ph-current #screen .ph-profit-spark{margin:12px 0 0;min-width:0;}
.ph-current #screen .ph-profit-spark-plot{display:flex;position:relative;align-items:stretch;gap:3px;height:44px;border-bottom:1px solid var(--sku-line,#d9e1dc);}
.ph-current #screen .ph-profit-spark-plot::before{content:"";position:absolute;top:var(--graphic-zero);left:0;right:0;border-top:1px solid #b5c6bc;}
.ph-current #screen .ph-profit-spark-column{flex:1;min-width:1px;position:relative;}
.ph-current #screen .ph-profit-spark-bar{position:absolute;left:10%;right:10%;background:#4b8377;border-radius:2px;min-height:1px;}
.ph-current #screen .ph-profit-spark-loss{background:#b44e43;}
.ph-current #screen .ph-profit-spark-estimated{background-image:repeating-linear-gradient(135deg,transparent 0 3px,#ffffffa0 3px 5px);}
.ph-current #screen .ph-profit-spark-gap{border-bottom:2px dotted #9aa99f;}
.ph-current #screen .ph-profit-spark figcaption{font-size:13px;line-height:1.4;margin-top:7px;color:var(--sku-muted,#5d7067);}
.ph-current #screen .ph-plan-progress{display:block;width:100%;height:10px;border:0;border-radius:5px;accent-color:#397968;overflow:hidden;}
.ph-current #screen .ph-plan-progress::-webkit-progress-bar{background:#e5ece8;}
.ph-current #screen .ph-plan-progress::-webkit-progress-value{background:#397968;}
.ph-current #screen .ph-profit-waterfall{margin:20px 0;padding:16px;border:1px solid var(--sku-line,#d9e1dc);border-radius:10px;background:var(--sku-surface,#fff);}
.ph-current #screen .ph-profit-waterfall > figcaption{font-size:16px;font-weight:650;margin-bottom:14px;}
.ph-current #screen .ph-profit-waterfall-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(100px,1.8fr) minmax(130px,auto);gap:12px;align-items:center;min-height:38px;font-size:14px;line-height:1.4;}
.ph-current #screen .ph-profit-waterfall-row > strong{text-align:right;white-space:nowrap;font-size:14px;font-variant-numeric:tabular-nums;}
.ph-current #screen .ph-profit-waterfall-label{min-width:0;overflow-wrap:anywhere;}
.ph-current #screen .ph-profit-waterfall-track{display:block;position:relative;height:18px;background:#f1f5f2;}
.ph-current #screen .ph-profit-waterfall-axis{position:absolute;top:-5px;bottom:-5px;width:1px;background:#8da798;}
.ph-current #screen .ph-profit-waterfall-bar{position:absolute;top:0;bottom:0;border-radius:3px;background:#4b8377;}
.ph-current #screen .ph-profit-waterfall-loss{background:#b68161;}
.ph-current #screen .ph-profit-waterfall-zero{width:2px!important;background:#8da798;}
.ph-current #screen .ph-profit-waterfall-total{margin-top:10px;padding-top:10px;border-top:1px solid var(--sku-line,#d9e1dc);font-weight:650;}
.ph-current #screen .ph-profit-waterfall--estimated .ph-profit-waterfall-bar{background-image:repeating-linear-gradient(135deg,transparent 0 5px,#ffffff80 5px 8px);}
.ph-current #screen .ph-profit-waterfall > small{display:block;font-size:13px;color:var(--sku-muted,#5d7067);margin-top:10px;}
.ph-current #screen .ph-finance-breakdown .ph-profit-waterfall{padding:12px;}
.ph-current #screen .ph-finance-breakdown .ph-profit-waterfall-row{grid-template-columns:minmax(40px,1fr) minmax(100px,auto);gap:6px 10px;padding-block:5px;}
.ph-current #screen .ph-finance-breakdown .ph-profit-waterfall-label{grid-column:1/-1;}
.ph-current #screen .ph-experiment-timeline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:0;margin:12px 0;list-style:none;}
.ph-current #screen .ph-experiment-timeline > li{padding:8px;border-top:3px solid #d9e1dc;background:#f1f5f2;font-size:13px;line-height:1.4;overflow-wrap:anywhere;}
.ph-current #screen .ph-experiment-timeline > .ph-experiment-current{border-color:#397968;background:#e4eee7;font-weight:650;}
.ph-current #screen .ph-ab-comparisons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0;}
.ph-current #screen .ph-ab-comparison{margin:0;padding:14px;border:1px solid var(--sku-line,#d9e1dc);border-radius:8px;}
.ph-current #screen .ph-ab-comparison > figcaption{font-size:14px;font-weight:650;margin-bottom:12px;}
.ph-current #screen .ph-ab-row{display:grid;grid-template-columns:18px minmax(40px,1fr) minmax(90px,auto);gap:8px;align-items:center;margin-block:8px;font-size:14px;}
.ph-current #screen .ph-ab-row .ph-data-meter{margin:0;max-width:none;}
.ph-current #screen .ph-ab-row > span:last-child{text-align:right;font-variant-numeric:tabular-nums;}
.ph-current #screen .ph-ab-comparison > small{font-size:13px;color:var(--sku-muted,#5d7067);}
.ph-current #screen .ph-finance-readiness{margin:20px 0;padding:16px;border:1px solid var(--sku-line,#d9e1dc);border-radius:10px;}
.ph-current #screen .ph-finance-readiness > h3{font-size:16px;margin:0 0 12px;}
.ph-current #screen .ph-readiness-legend{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;font-size:13px;}
.ph-current #screen .ph-readiness-legend > span{padding:3px 8px;border-radius:4px;}
.ph-current #screen .ph-readiness-grid{display:grid;grid-template-columns:repeat(7,minmax(34px,1fr));gap:6px;max-width:560px;}
.ph-current #screen .ph-readiness-grid > span{text-align:center;font-size:13px;color:var(--sku-muted,#5d7067);}
.ph-current #screen .ph-readiness-day{height:40px;min-height:40px;padding:5px;position:relative;font:inherit;font-size:14px;border:1px solid #b6cbbb;border-radius:6px;cursor:pointer;}
.ph-current #screen .ph-readiness-day > span{position:absolute;right:3px;top:0;font-size:12px;}
.ph-current #screen .ph-readiness-reconciled{background:#e4eee7;color:#244d3e;}
.ph-current #screen .ph-readiness-preliminary{background:#fcf0d4;color:#76551b;border-style:dashed;}
.ph-current #screen .ph-readiness-pending{background:repeating-linear-gradient(135deg,#edf0ed 0 5px,#f9faf8 5px 10px);color:#566359;}
.ph-current #screen .ph-readiness-day[aria-pressed=true]{outline:2px solid #204d3c;outline-offset:1px;}
.ph-current #screen .ph-graphic-caption{display:block;margin:10px 0 0;font-size:13px;line-height:1.5;color:var(--sku-muted,#5d7067);}
@media(max-width:700px){.ph-current #screen .ph-profit-waterfall-row{grid-template-columns:minmax(40px,1fr) auto;gap:6px 10px;padding-block:5px;}.ph-current #screen .ph-profit-waterfall-label{grid-column:1/-1;}.ph-current #screen .ph-experiment-timeline{grid-template-columns:repeat(2,minmax(0,1fr));}.ph-current #screen .ph-ab-comparisons{grid-template-columns:minmax(0,1fr);}.ph-current #screen .ph-profit-waterfall{padding:12px;}}

/* Profit changes and shipment stages use the common cards and type scale. */
.ph-current #screen .ph-profit-change{margin:20px 0;padding:16px;border:1px solid var(--sku-line,#d9e1dc);border-radius:10px;background:var(--sku-surface,#fff);}
.ph-current #screen .ph-profit-change > h3{margin:0 0 10px;font-size:16px;}
.ph-current #screen .ph-profit-change-metrics{margin-top:14px;grid-template-columns:repeat(3,minmax(0,1fr));}
.ph-current #screen .ph-profit-change .ph-profit-waterfall{border:0;padding:0;margin-bottom:12px;}
.ph-current #screen .ph-profit-change .ph-profit-waterfall-row{grid-template-columns:minmax(170px,1.4fr) minmax(100px,1.5fr) minmax(130px,auto);}
.ph-current #screen .ph-supply-timeline{margin:16px 0;min-width:0;}
.ph-current #screen .ph-supply-timeline ol{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;list-style:none;padding:0;margin:0;}
.ph-current #screen .ph-supply-timeline li{font-size:13px;line-height:1.4;border-top:4px solid #d9e1dc;padding:8px 4px;background:#f1f5f2;overflow-wrap:anywhere;}
.ph-current #screen .ph-supply-timeline .ph-supply-current{border-color:#397968;background:#e4eee7;font-weight:650;}
.ph-current #screen .ph-supply-caption{margin:8px 0 0;font-size:13px;line-height:1.4;color:var(--sku-muted,#5d7067);}
.ph-current #screen .ph-supply-timeline--compact{margin:0;min-width:150px;max-width:320px;}
.ph-current #screen .ph-supply-timeline--compact li{height:4px;padding:0;border:0;background:#d9e1dc;}
.ph-current #screen .ph-supply-timeline--compact .ph-supply-current{background:#397968;}
.ph-current #screen .ph-supply-timeline--compact .ph-supply-caption{margin-top:5px;max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ph-current #screen .ph-shipment-table th:nth-child(1){width:18%;}
.ph-current #screen .ph-shipment-table th:nth-child(2){width:25%;}
.ph-current #screen .ph-shipment-table th:nth-child(3){width:20%;}
.ph-current #screen .ph-shipment-table th:nth-child(4){width:37%;}
@media(max-width:1100px){.ph-current #screen .ph-profit-change .ph-profit-waterfall-row{grid-template-columns:minmax(40px,1fr) auto;gap:6px 10px;padding-block:5px;}.ph-current #screen .ph-profit-change .ph-profit-waterfall-label{grid-column:1/-1;}}
@media(max-width:700px){.ph-current #screen .ph-profit-change-metrics{grid-template-columns:minmax(0,1fr);}.ph-current #screen .ph-supply-timeline:not(.ph-supply-timeline--compact) ol{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));}.ph-current #screen .ph-shipment-table{min-width:720px;}}

.ph-current #screen .ph-supply-caption.ph-shipment-attention{color:#873e30;font-weight:650;}

/* Product matrix uses role-bound product facts and the common interface type scale. */
.ph-current #screen .ph-product-matrix{margin:16px 0 20px;border:1px solid var(--sku-line,#d9e1dc);border-radius:10px;background:var(--sku-surface,#fff);}
.ph-current #screen .ph-product-matrix > summary{padding:12px 16px;font-size:16px;font-weight:650;cursor:pointer;}
.ph-current #screen .ph-product-matrix-body{padding:0 16px 16px;}
.ph-current #screen .ph-product-matrix-legend{display:flex;flex-wrap:wrap;gap:12px 20px;margin:12px 0;font-size:13px;}
.ph-current #screen .ph-product-matrix-key{display:inline-flex;gap:6px;align-items:center;}
.ph-current #screen .ph-product-matrix-key::before{content:'';display:block;box-sizing:border-box;width:12px;height:12px;border-radius:50%;background:#397968;border:1px solid #28594d;}
.ph-current #screen .ph-product-matrix-key--ozon::before{background:#a97045;border-color:#805333;}
.ph-current #screen .ph-product-matrix-key--unknown::before{background:transparent;border:2px dashed #506d61;}
.ph-current #screen .ph-product-matrix-key--estimated::before{border-radius:3px;background:repeating-linear-gradient(135deg,#397968 0 3px,#e4eee7 3px 5px);}
.ph-current #screen .ph-product-matrix-chart{padding:8px 0;}
.ph-current #screen .ph-product-matrix-axis-title{font-size:13px;line-height:1.4;color:var(--sku-muted,#5d7067);}
.ph-current #screen .ph-product-matrix-range{display:flex;justify-content:space-between;font-size:13px;font-variant-numeric:tabular-nums;line-height:1.5;gap:12px;color:var(--sku-muted,#5d7067);}
.ph-current #screen .ph-product-matrix-range > span{min-width:0;overflow-wrap:anywhere;}
.ph-current #screen .ph-product-matrix-x-title{text-align:center;margin-top:4px;}
.ph-current #screen .ph-product-matrix-plot{height:280px;position:relative;margin:8px 0;border:1px solid #cbd8d0;border-radius:6px;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(25% - 1px),#e5ece8 calc(25% - 1px),#e5ece8 25%),#f8faf7;}
.ph-current #screen .ph-product-matrix-zero{position:absolute;pointer-events:none;}
.ph-current #screen .ph-product-matrix-zero--x{left:0;right:0;border-top:1px dashed #6f8f7e;}
.ph-current #screen .ph-product-matrix-zero--y{top:0;bottom:0;border-left:1px dashed #6f8f7e;}
.ph-current #screen button.ph-product-matrix-dot{position:absolute;display:block;box-sizing:border-box;min-width:0;min-height:0;max-width:none;padding:0;margin:0;border:2px solid #28594d;border-radius:50%;background:#397968;transform:translate(-50%,-50%);cursor:pointer;box-shadow:0 1px 2px #183e3020;}
.ph-current #screen button.ph-product-matrix-dot--ozon{background-color:#a97045;border-color:#805333;}
.ph-current #screen button.ph-product-matrix-dot--estimated{background-image:repeating-linear-gradient(135deg,transparent 0 4px,#ffffff90 4px 6px);}
.ph-current #screen button.ph-product-matrix-dot--unknown{background:var(--sku-surface,#fff);border-style:dashed;}
.ph-current #screen button.ph-product-matrix-dot:hover,.ph-current #screen button.ph-product-matrix-dot:focus-visible,.ph-current #screen button.ph-product-matrix-selected{z-index:3;outline:2px solid #244e3c;outline-offset:3px;}
.ph-current #screen .ph-product-matrix-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin-top:12px;}
.ph-current #screen .ph-product-matrix-controls > label{font-size:13px;display:grid;gap:5px;min-width:0;flex:1;max-width:440px;}
.ph-current #screen .ph-product-matrix-controls select{width:100%;min-width:0;height:34px;padding:4px 8px;font:inherit;font-size:13px;border:1px solid #b8c9bd;border-radius:6px;background:#fff;}
.ph-current #screen .ph-product-matrix-controls > button{height:34px;font-size:13px;white-space:nowrap;}
.ph-current #screen .ph-product-matrix-info{font-size:13px;line-height:1.5;color:var(--sku-muted,#5d7067);margin:10px 0 0;}
@media(max-width:700px){.ph-current #screen .ph-product-matrix-plot{height:240px;}.ph-current #screen .ph-product-matrix-body{padding:0 12px 12px;}.ph-current #screen .ph-product-matrix-controls > label{flex-basis:100%;}.ph-current #screen .ph-product-matrix-legend{gap:8px 14px;}}
.ph-current #screen .ph-product-matrix-chart{display:grid;grid-template-columns:100px minmax(0,1fr);gap:0 8px;}
.ph-current #screen .ph-product-matrix-chart > .ph-product-matrix-axis-title:first-child{grid-column:1/-1;}
.ph-current #screen .ph-product-matrix-chart > .ph-product-matrix-range:nth-child(2){grid-row:2;grid-column:1;position:relative;display:block;margin:8px 0;height:280px;}
.ph-current #screen .ph-product-matrix-chart > .ph-product-matrix-range:nth-child(2) > span{position:absolute;right:0;text-align:right;transform:translateY(-50%);}
.ph-current #screen .ph-product-matrix-plot{grid-column:2;grid-row:2;}
.ph-current #screen .ph-product-matrix-chart > .ph-product-matrix-range:nth-child(4){grid-column:2;grid-row:3;position:relative;display:block;height:24px;}
.ph-current #screen .ph-product-matrix-chart > .ph-product-matrix-range:nth-child(4) > span{position:absolute;transform:translateX(-50%);}
.ph-current #screen .ph-product-matrix-x-title{grid-column:2;grid-row:4;}
@media(max-width:700px){.ph-current #screen .ph-product-matrix-chart{grid-template-columns:70px minmax(0,1fr);}.ph-current #screen .ph-product-matrix-chart > .ph-product-matrix-range:nth-child(2){height:240px;}}

.ph-current #screen .ph-product-matrix .ph-product-matrix-controls :is(select,button){height:34px;min-height:34px;max-height:34px;box-sizing:border-box;line-height:20px;padding:5px 10px;margin:0;}

.ph-current #screen .ph-product-matrix [hidden]{display:none!important;}

.ph-current #screen .ph-reputation-trend{margin:16px 0;padding:16px;border:1px solid #d6e1d8;border-radius:8px;background:#fafcf9;}
.ph-current #screen .ph-reputation-trend h3{font-size:16px;margin:0 0 12px;}
.ph-current #screen .ph-reputation-trend h4{font-size:14px;margin:0 0 10px;}
.ph-current #screen .ph-reputation-trend-layout{display:grid;grid-template-columns:minmax(200px,1fr) minmax(0,2fr);gap:24px;margin-top:20px;}
.ph-current #screen button.ph-review-rating-bar{display:grid;grid-template-columns:28px minmax(0,1fr) 42px;gap:10px;align-items:center;width:100%;height:34px;min-height:34px;box-sizing:border-box;margin:0 0 5px;padding:4px 8px;border:1px solid transparent;border-radius:5px;background:transparent;font-size:13px;color:#304e40;cursor:pointer;}
.ph-current #screen .ph-review-rating-track{height:8px;background:#e5ece5;border-radius:4px;overflow:hidden;}
.ph-current #screen .ph-review-rating-fill{display:block;height:100%;background:#83a795;border-radius:4px;}
.ph-current #screen .ph-review-rating-fill--negative{background:#88634c;}
.ph-current #screen .ph-review-daily-chart{display:flex;gap:6px;overflow-x:auto;align-items:end;padding:6px 3px;}
.ph-current #screen button.ph-review-daily-column{flex:1 0 36px;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:36px;min-height:0;box-sizing:border-box;margin:0;padding:4px 2px;border:1px solid transparent;border-radius:5px;background:transparent;color:#304e40;font-size:12px;cursor:pointer;}
.ph-current #screen .ph-review-daily-track{height:110px;width:min(100%,30px);display:flex;flex-direction:column;justify-content:end;background:#edf1eb;border-radius:3px;overflow:hidden;}
.ph-current #screen .ph-review-daily-part{display:block;width:100%;flex-shrink:0;}
.ph-current #screen .ph-review-daily-part--negative{background:#88634c;}
.ph-current #screen .ph-review-daily-part--positive{background:#83a795;}
.ph-current #screen .ph-review-daily-part--unknown{background:repeating-linear-gradient(135deg,#bbc4bd 0 3px,#f1f4ef 3px 6px);}
.ph-current #screen button:is(.ph-review-rating-bar,.ph-review-daily-column):is(:hover,:focus-visible){outline:2px solid #397968;outline-offset:1px;background:#eef4eb;}
.ph-current #screen .ph-review-daily-date{white-space:nowrap;font-variant-numeric:tabular-nums;}
.ph-current #screen .ph-reputation-trend [hidden]{display:none!important;}
@media(max-width:800px){.ph-current #screen .ph-reputation-trend-layout{grid-template-columns:minmax(0,1fr);gap:20px;}}

.ph-current #screen .ph-team-workload{margin:16px 0 20px;}
.ph-current #screen .ph-team-workload h3{font-size:16px;margin:0 0 8px;}
.ph-current #screen .ph-team-workload-legend{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:13px;margin:12px 0;}
.ph-current #screen .ph-team-workload-key::before{content:'';display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:2px;background:#829a8b;}
.ph-current #screen .ph-team-workload-key--assigned::before,.ph-current #screen .ph-team-workload-segment--assigned{background:#839f8d;}
.ph-current #screen .ph-team-workload-key--in_progress::before,.ph-current #screen .ph-team-workload-segment--in_progress{background:#315f50;}
.ph-current #screen .ph-team-workload-key--rework::before,.ph-current #screen .ph-team-workload-segment--rework{background:#9d684a;}
.ph-current #screen .ph-team-workload-key--in_review::before,.ph-current #screen .ph-team-workload-segment--in_review{background:#876e9c;}
.ph-current #screen .ph-team-workload-key--waiting::before,.ph-current #screen .ph-team-workload-segment--waiting{background:#67798c;}
.ph-current #screen .ph-team-workload-chart{border-top:1px solid #dce5dd;}
.ph-current #screen .ph-team-workload-row{display:grid;grid-template-columns:minmax(140px,190px) minmax(100px,1fr) 28px minmax(225px,260px);gap:12px;align-items:center;min-height:60px;padding:10px 0;border-bottom:1px solid #dce5dd;}
.ph-current #screen button.ph-team-workload-name{width:100%;height:auto;min-height:34px;box-sizing:border-box;padding:5px 8px;margin:0;text-align:left;font-size:14px;font-weight:600;line-height:20px;color:#274f3d;border:1px solid transparent;border-radius:5px;background:transparent;cursor:pointer;overflow-wrap:anywhere;}
.ph-current #screen .ph-team-workload-track{display:flex;align-items:center;min-width:0;height:34px;background:#edf2eb;border-radius:5px;}
.ph-current #screen button.ph-team-workload-segment{height:34px;min-height:34px;min-width:0;box-sizing:border-box;flex-shrink:0;overflow:hidden;padding:0;margin:0;border:1px solid #ffffff80;border-radius:3px;color:#fff;font-size:13px;font-weight:600;cursor:pointer;}
.ph-current #screen .ph-team-workload-total{text-align:right;font-size:18px;font-variant-numeric:tabular-nums;}
.ph-current #screen .ph-team-workload-attention{display:flex;gap:8px;}
.ph-current #screen .ph-team-workload-attention .btn{flex:1;white-space:nowrap;height:34px;min-height:34px;box-sizing:border-box;padding:5px 8px;margin:0;font-size:13px;line-height:20px;}
.ph-current #screen button:is(.ph-team-workload-name,.ph-team-workload-segment):is(:focus-visible,:hover){outline:2px solid #285e45;outline-offset:2px;}
.ph-current #screen .ph-team-workload-details{margin-top:16px;}
@media(max-width:1100px){.ph-current #screen .ph-team-workload-row{grid-template-columns:minmax(130px,180px) minmax(0,1fr) 28px;}.ph-current #screen .ph-team-workload-attention{grid-column:2/4;justify-self:end;}}
@media(max-width:600px){.ph-current #screen .ph-team-workload-row{grid-template-columns:minmax(0,1fr) 28px;gap:8px;}.ph-current #screen .ph-team-workload-name{grid-column:1/3;}.ph-current #screen .ph-team-workload-attention{grid-column:1/3;}}

.ph-current #screen .ph-product-funnel{margin:16px 0;padding:16px;border:1px solid #d3dfd5;border-radius:8px;background:#fafcf8;}
.ph-current #screen .ph-product-funnel h3{font-size:16px;margin:0 0 12px;}
.ph-current #screen .ph-product-funnel-stages{display:grid;gap:8px;margin-bottom:12px;}
.ph-current #screen .ph-product-funnel-stage{border:1px solid #dce5da;border-radius:6px;background:#fff;}
.ph-current #screen .ph-product-funnel-stage > summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:10px 12px;font-size:14px;cursor:pointer;}
.ph-current #screen .ph-product-funnel-stage > summary strong{font-size:18px;line-height:1.3;font-variant-numeric:tabular-nums;}
.ph-current #screen .ph-product-funnel-track{grid-column:1/-1;display:block;height:8px;background:#e7eee4;border-radius:4px;overflow:hidden;}
.ph-current #screen .ph-product-funnel-track > span{display:block;height:100%;background:#477960;border-radius:4px;}
.ph-current #screen .ph-product-funnel-stage > p{margin:8px 12px;font-size:13px;}
.ph-current #screen .ph-product-change-timeline{margin:16px 0;}
.ph-current #screen .ph-product-change-timeline > ol{list-style:none;margin:14px 0;padding:0 0 0 16px;border-left:2px solid #bdcfbf;}
.ph-current #screen .ph-product-change-timeline > ol > li{position:relative;margin:0 0 12px;padding:0 0 0 8px;}
.ph-current #screen .ph-product-change-timeline > ol > li::before{content:'';position:absolute;left:-22px;top:15px;width:8px;height:8px;border:2px solid #fff;border-radius:50%;background:#477960;}
.ph-current #screen .ph-product-change-timeline summary{cursor:pointer;font-size:14px;line-height:1.45;}
.ph-current #screen .ph-product-change-timeline > ol summary{display:grid;gap:4px;padding:8px 12px;border:1px solid #d3dfd5;border-radius:6px;background:#fafcf8;}
.ph-current #screen .ph-product-change-timeline .ph-product-event-date{font-size:12px;color:#617062;}
.ph-current #screen .ph-product-change-timeline h4{font-size:14px;margin:12px 0 6px;}
.ph-current #screen .ph-product-change-timeline li p,.ph-current #screen .ph-product-change-timeline li li{font-size:13px;line-height:1.5;}
.ph-current .ph-saved-list-views{grid-column:1/-1;display:flex;align-items:end;flex-wrap:wrap;gap:8px;width:100%;padding-top:8px;border-top:1px solid #dce3d7;}
.ph-current .ph-saved-list-views > label{display:grid;gap:4px;flex:1;min-width:160px;max-width:320px;font-size:13px;}
.ph-current .ph-saved-list-views :is(select,button){height:34px;min-height:34px;box-sizing:border-box;margin:0;font-size:13px;line-height:20px;padding:5px 10px;}
.ph-current .ph-saved-view-status{font-size:12px;line-height:1.4;color:#617062;}
.ph-current .ph-saved-view-dialog{width:min(520px,calc(100vw - 32px));}
.ph-current .ph-saved-view-dialog h2{font-size:20px;}
.ph-current .ph-global-search{width:min(820px,calc(100vw - 32px));max-height:calc(100vh - 40px);}
.ph-current .ph-global-search .ph-detail-head h2,.ph-current .ph-global-article .ph-detail-head h2{font-size:20px;}
.ph-current .ph-global-search-toolbar{display:flex;gap:8px;align-items:end;margin:12px 0;}
.ph-current .ph-global-search-toolbar label{flex:1;min-width:0;}
.ph-current .ph-global-search :is(input,button.btn){height:34px;min-height:34px;box-sizing:border-box;font-size:13px;}
.ph-current .ph-global-search-results{display:grid;gap:0;border-top:1px solid #dce5da;}
.ph-current button.ph-global-search-result{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;text-align:left;align-items:center;min-height:48px;width:100%;margin:0;padding:10px 12px;border:0;border-bottom:1px solid #dce5da;border-radius:0;background:#fff;cursor:pointer;color:#284d3e;}
.ph-current .ph-global-search-result > span{font-size:12px;color:#617062;}
.ph-current .ph-global-search-result > strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere;}
.ph-current button.ph-global-search-result:is(:hover,:focus-visible){background:#f0f5ec;outline:2px solid #477960;outline-offset:-2px;}
.ph-current .ph-global-article{width:min(820px,calc(100vw - 32px));max-height:calc(100vh - 40px);}
.ph-current .ph-period-comparison{margin:16px 0;border:1px solid #d5dfd4;border-radius:8px;background:#fafcf8;padding:12px;}
.ph-current .ph-period-comparison > summary{font-size:14px;font-weight:600;cursor:pointer;}
.ph-current .ph-comparison-controls{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:12px 0;}
.ph-current .ph-comparison-controls > label{min-width:0;flex:1;}
.ph-current .ph-comparison-controls :is(input,button){height:34px;min-height:34px;box-sizing:border-box;margin:0;font-size:13px;}
.ph-current .ph-comparison-delta{display:block;font-size:14px;font-weight:600;line-height:1.5;margin-top:8px;color:#315b45;}
.ph-current .ph-comparison-delta[data-sign="-1"]{color:#925d42;}
@media(max-width:600px){.ph-current .ph-comparison-controls > label{flex-basis:100%;}}

.ph-feedback-table th:first-child,.ph-feedback-table td:first-child{min-width:168px;white-space:nowrap}
.ph-customer-dialog{width:min(1100px,calc(100vw - 32px));max-height:90vh;overflow:auto}
.ph-customer-dialog .ph-sku-table{min-width:720px}
.ph-customer-dialog .ph-sku-table tbody tr{height:48px;font-size:14px}
.ph-customer-dialog button,.ph-customer-dialog input,.ph-customer-dialog select{min-height:34px;box-sizing:border-box}
.ph-customer-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ph-customer-form label{display:flex;flex-direction:column;gap:6px;min-width:0}
.ph-customer-form input,.ph-customer-form textarea{width:100%;box-sizing:border-box}
.ph-customer-form textarea{min-height:76px;resize:vertical}
@media(max-width:600px){.ph-customer-form{grid-template-columns:1fr}}

.ph-current #screen.ph-feedback-screen .ph-feedback-table{min-width:850px}
.ph-feedback-table thead th:nth-child(1){width:23%}
.ph-feedback-table thead th:nth-child(2){width:12%}
.ph-feedback-table thead th:nth-child(3){width:15%}
.ph-feedback-table thead th:nth-child(4){width:28%}
.ph-feedback-table thead th:nth-child(5){width:22%}
.ph-current #screen.ph-feedback-screen .ph-feedback-table tbody td{font-size:14px}

/* Mark review: shared workspace form geometry, typography and state components. */
.ph-current #screen :is(.ph-mark-inbox,.ph-mark-draft) {min-width:0;}
.ph-current #screen :is(.ph-mark-inbox,.ph-mark-draft) [hidden] {display:none!important;}
.ph-current #screen :is(.ph-mark-inbox,.ph-mark-draft) h2 {font-size:20px;line-height:1.3;}
.ph-current #screen .ph-mark-inbox h3 {font-size:16px;line-height:1.4;margin:0 0 12px;}
.ph-current #screen :is(.ph-mark-inbox,.ph-mark-draft) p {font-size:14px;line-height:1.5;overflow-wrap:anywhere;}
.ph-current #screen .ph-mark-meta {color:var(--sku-muted);font-size:13px;line-height:1.5;margin:12px 0;}
.ph-current #screen .ph-mark-proposal {padding:16px;margin:12px 0;border:1px solid var(--sku-line);border-radius:8px;background:var(--sku-surface,#fff);}
.ph-current #screen .ph-mark-protocol {margin:16px 0 0;border-top:1px solid var(--sku-line);padding-top:12px;}
.ph-current #screen .ph-mark-protocol summary {min-height:34px;font-size:14px;cursor:pointer;overflow-wrap:anywhere;}
.ph-current #screen .ph-mark-protocol pre {font-family:inherit;font-size:14px;line-height:1.6;max-height:360px;overflow:auto;}
.ph-current #screen :is(.ph-mark-inbox,.ph-mark-draft) .btn {box-sizing:border-box;height:34px;min-height:34px;max-width:100%;padding:6px 12px;margin:0;font-size:13px;line-height:20px;white-space:nowrap;}
.ph-current #screen .ph-mark-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0 0;}
.ph-current #screen .ph-mark-draft .ph-mark-actions > .btn {min-width:160px;}
.ph-current #screen .ph-mark-draft .ph-task-form-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;margin:16px 0;}
.ph-current #screen .ph-mark-draft .ph-task-form-grid > label {display:flex;flex-direction:column;gap:6px;margin:0;min-width:0;font-size:13px;line-height:1.4;}
.ph-current #screen .ph-mark-draft .ph-mark-title {grid-column:1/-1;order:0;}
.ph-current #screen .ph-mark-draft .ph-mark-description {grid-column:1/-1;order:1;}
.ph-current #screen .ph-mark-draft .ph-mark-role {order:2;}
.ph-current #screen .ph-mark-draft .ph-mark-deadline {order:3;}
.ph-current #screen .ph-mark-draft .ph-mark-acceptance {grid-column:1/-1;order:4;}
.ph-current #screen .ph-mark-draft :is(input:not([type=checkbox]),select) {box-sizing:border-box;width:100%;min-width:0;height:34px;min-height:34px;margin:0;padding:5px 8px;font-size:13px;}
.ph-current #screen .ph-mark-draft textarea {box-sizing:border-box;width:100%;min-width:0;min-height:112px;margin:0;padding:8px;font:inherit;font-size:14px;line-height:1.5;resize:vertical;}
.ph-current #screen .ph-mark-draft .ph-mark-ack {display:flex;align-items:center;flex-direction:row;gap:8px;min-height:34px;margin:16px 0 0;font-size:13px;line-height:1.5;}
.ph-current #screen .ph-mark-draft .ph-mark-ack input {width:16px;height:16px;min-height:16px;flex:none;order:-1;margin:0;}
@media(max-width:640px) {
 .ph-current #screen .ph-mark-draft .ph-task-form-grid {grid-template-columns:minmax(0,1fr);}
 .ph-current #screen .ph-mark-actions {align-items:stretch;}
 .ph-current #screen .ph-mark-draft .ph-mark-actions > .btn {flex:1 1 160px;}
 .ph-current #screen .ph-mark-inbox .ph-mark-actions > .btn {flex:1 1 auto;}
}
/* PH_ALL_ROLE_INTERFACE_STANDARD_20261126 */
.ph-current .topright > .btn {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  padding: 5px 11px;
  font-size: 13px;
  line-height: 20px;
}
.ph-current .ph-period-control {
  box-sizing: border-box;
  height: 34px;
  padding: 0 4px;
}
.ph-current .ph-period-control :is(#periodDisplay,button) {
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
  padding: 0 4px;
  line-height: 20px;
}
.ph-current .ph-period-control button {
  width: 32px;
  flex: 0 0 32px;
  font-size: 18px;
}
.ph-current #screen :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]),select:not([multiple]):not([size])),
.ph-current .ph-detail-dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]),select:not([multiple]):not([size])),
.ph-current .ph-period-dialog input {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 13px;
  line-height: 20px;
}
.ph-current #screen input:is([type=checkbox],[type=radio]) {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
}
@media (min-width: 761px) {
  .ph-current #screen.ph-admin-screen .ph-staff-table tbody :is(td,th) {
    line-height: 18px;
  }
}

/* Desktop staff rows retain two readable lines within the shared 48px row. */
@media (min-width: 761px) {
  .ph-current #screen.ph-admin-screen .ph-staff-table tbody :is(td,th) {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .ph-current #screen.ph-admin-screen .ph-staff-table tbody .ph-sku-row-title {
    line-height: 18px;
  }
}

/* Shared personal rows also apply to the dashboard preview. */
.ph-current #screen :is(.ph-personal-todos,.ph-team-personal-todos) .ph-sku-table {
  table-layout: fixed;
  min-width: 600px;
}
.ph-current #screen :is(.ph-personal-todos,.ph-team-personal-todos) .ph-sku-table tbody :is(td,th) {
  height: 48px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}
.ph-current #screen :is(.ph-personal-todos,.ph-team-personal-todos) .btn {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  align-self: center;
  font-size: 13px;
  line-height: 20px;
}
.ph-current #aiPanel > h2 {
  font-size: 20px;
  line-height: 1.3;
}
.ph-current #aiBody :is(h2,h3) {
  font-size: 16px;
  line-height: 1.4;
}
.ph-current #aiPanel .btn {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  padding: 5px 11px;
  font-size: 13px;
  line-height: 20px;
}
.ph-current #aiClose { width: 116px; }

/* Keep saved stock and the new count on the same compact working row. */
.ph-current #screen.ph-logistics-screen .ph-fulfillment-stock-table { min-width: 1260px; }
.ph-current #screen.ph-logistics-screen .ph-fulfillment-stock-table th:nth-child(2) { width: 210px; }
.ph-current #screen.ph-logistics-screen .ph-fulfillment-stock-table input.ph-fulfillment-quantity {
  display: inline-block;
  width: 76px;
  max-width: 76px;
  margin: 0 0 0 8px;
  vertical-align: middle;
}

/* Customer search uses the same compact toolbar as other working lists. */
.ph-current #screen .ph-customer-dialog .ph-list-filters { align-items: flex-end; }
.ph-current #screen .ph-customer-dialog .ph-list-filters .ph-input-field { margin: 0; flex: 1 1 240px; }
.ph-current #screen .ph-customer-dialog .btn {
  height: 34px;
  min-height: 34px;
  align-self: flex-end;
  padding: 5px 11px;
  font-size: 13px;
  line-height: 20px;
}

/* Task counters open local dialogs and retain the surrounding list. */
.ph-current #screen button.ph-task-metric-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ph-current #screen .ph-task-metric-button > .ph-sku-metric { height: 100%; box-sizing: border-box; }
.ph-current #screen .ph-task-metric-button:hover > .ph-sku-metric { border-color: #557d6d; background: #edf4ee; }
.ph-current #screen .ph-task-metric-button:focus-visible { outline: 3px solid #d6b66a; outline-offset: 3px; }

/* Shared role goals remain visible while the working section scrolls. */
.ph-current #screen > .ph-role-goals {
 grid-column:1 / -1; position:sticky; top:0; z-index:25; align-self:start;
 box-sizing:border-box; background:#f7f6f0; border:1px solid #cbd6ce; border-radius:12px;
 padding:12px 16px; margin:0 0 16px; box-shadow:0 4px 12px #203b3212;
}
.ph-current #screen .ph-goal-head {display:flex;align-items:center;gap:12px;margin-bottom:8px;flex-wrap:wrap;}
.ph-current #screen .ph-goal-head h2 {font-size:14px;line-height:20px;margin:0;font-weight:700;}
.ph-current #screen .ph-goal-period {font-size:13px;color:#52665e;}
.ph-current #screen .ph-goal-head .btn {margin:0 0 0 auto;height:34px;min-height:34px;padding:6px 12px;font-size:13px;}
.ph-current #screen .ph-goal-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;}
.ph-current #screen .ph-goal-card {display:grid;gap:4px;align-content:start;width:100%;min-width:0;box-sizing:border-box;padding:10px 12px;border:1px solid #d1d9d2;border-radius:8px;background:#fff;color:#243b31;text-align:left;font:inherit;cursor:pointer;}
.ph-current #screen .ph-goal-card:hover {border-color:#557d6d;background:#f0f6f1;}
.ph-current #screen .ph-goal-card:focus-visible {outline:3px solid #b99b4b;outline-offset:2px;}
.ph-current #screen .ph-goal-label {font-size:13px;line-height:18px;font-weight:600;}
.ph-current #screen .ph-goal-value {font-size:24px;line-height:30px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.ph-current #screen .ph-goal-caption,.ph-current #screen .ph-goal-card small {font-size:12px;line-height:16px;color:#52665e;}
.ph-current #screen .ph-goal-card progress,.ph-current #screen .ph-goal-track {display:block;width:100%;height:6px;margin:2px 0;border:0;border-radius:6px;background:#e4e9e3;appearance:none;overflow:hidden;}
.ph-current #screen .ph-goal-card progress::-webkit-progress-bar {background:#e4e9e3;border-radius:6px;}
.ph-current #screen .ph-goal-card progress::-webkit-progress-value {background:#b18b35;border-radius:6px;}
.ph-current #screen .ph-goal-card[data-goal-state=met] progress::-webkit-progress-value {background:#2e735a;}
.ph-current #screen .ph-goal-card progress::-moz-progress-bar {background:#b18b35;}
.ph-current #screen .ph-goal-card[data-goal-state=met] progress::-moz-progress-bar {background:#2e735a;}
.ph-current #screen .ph-goal-message {font-size:13px;line-height:20px;margin:8px 0;}
.ph-current #screen .ph-goal-detail {padding:12px 0;border-bottom:1px solid #e0e4dd;}
@media(max-width:740px){.ph-current #screen>.ph-role-goals{position:static;padding:12px;}.ph-current #screen .ph-goal-grid{grid-template-columns:1fr;}}

.ph-current #screen .ph-goal-card small {font-size:14px;line-height:18px;font-weight:650;color:#243b31;}
.ph-current #screen .ph-goal-card[data-goal-state=danger] {border-color:#ba5548;}
.ph-current #screen .ph-goal-card[data-goal-state=danger] .ph-goal-caption {color:#a13227;}
.ph-current #screen .ph-goal-card[data-goal-state=warning] .ph-goal-caption {color:#8d661b;}
.ph-current #screen .ph-goal-card[data-goal-state=danger] progress::-webkit-progress-value {background:#b84436;}
.ph-current #screen .ph-goal-card[data-goal-state=danger] progress::-moz-progress-bar {background:#b84436;}

/* All approved profit levels share one compact, accessible treatment. */
.ph-current .ph-role-goals .ph-goal-levels,.ph-current dialog .ph-goal-levels {display:grid;gap:7px;width:100%;margin-top:4px;}
.ph-current .ph-goal-level {display:grid;grid-template-columns:minmax(80px,1fr) auto 46px;gap:2px 8px;align-items:center;font-size:12px;line-height:16px;font-variant-numeric:tabular-nums;}
.ph-current .ph-goal-level-name {font-weight:600;}
.ph-current .ph-goal-level-target,.ph-current .ph-goal-level-percent {text-align:right;white-space:nowrap;}
.ph-current .ph-goal-level progress {grid-column:1/-1;display:block;width:100%;height:5px;margin:0;border:0;border-radius:4px;appearance:none;overflow:hidden;background:#e4e9e3;}
.ph-current .ph-goal-level progress::-webkit-progress-bar {background:#e4e9e3;}
.ph-current .ph-goal-level progress::-webkit-progress-value {background:#b18b35;}
.ph-current .ph-goal-level[data-met=true] progress::-webkit-progress-value {background:#2e735a;}
.ph-current .ph-goal-level progress::-moz-progress-bar {background:#b18b35;}
.ph-current .ph-goal-level[data-met=true] progress::-moz-progress-bar {background:#2e735a;}
.ph-current .ph-goal-evidence {width:100%;border-collapse:collapse;font-size:13px;line-height:18px;margin:12px 0;}
.ph-current .ph-goal-evidence th,.ph-current .ph-goal-evidence td {padding:7px 10px;text-align:left;border-bottom:1px solid #e0e4dd;}
.ph-current .ph-goal-evidence tr[data-risk=true] td:last-child {color:#a13227;font-weight:600;}

.ph-current #screen .ph-goal-card .ph-goal-level[data-met=true] progress::-webkit-progress-value {background:#2e735a;}
.ph-current #screen .ph-goal-card .ph-goal-level[data-met=false] progress::-webkit-progress-value {background:#b18b35;}
.ph-current #screen .ph-goal-card .ph-goal-level[data-met=true] progress::-moz-progress-bar {background:#2e735a;}
.ph-current #screen .ph-goal-card .ph-goal-level[data-met=false] progress::-moz-progress-bar {background:#b18b35;}

.ph-current .ph-goal-detail > small {display:block;margin-top:4px;}

/* Role KPI source metadata stays readable inside compact detail rows. */
.ph-goal-evidence td small{display:block;margin-top:3px;color:var(--muted);font-size:12px;line-height:1.35}

.ph-current #screen .ph-goal-detail .ph-sku-metric[data-goal-state=danger]{background:#fff0ed;border-color:#ba5548}
.ph-current #screen .ph-goal-detail .ph-sku-metric[data-goal-state=danger] strong{color:#a13227}
.ph-current #screen .ph-goal-detail .ph-sku-metric:is([data-goal-state=warning],[data-goal-state=below]){background:#fff8e8;border-color:#d2b267}
.ph-current #screen .ph-goal-detail .ph-sku-metric[data-goal-state=unknown]{background:#f4f5f4;border-color:#d2d8d4}

/* Meeting calendar: shared table, semantic states and compact responsive cards. */
.ph-current #screen.ph-meeting-screen .ph-meeting-table { min-width:700px; }
.ph-current #screen.ph-meeting-screen .ph-meeting-table thead th:nth-child(1) {width:25%;}
.ph-current #screen.ph-meeting-screen .ph-meeting-table thead th:nth-child(2) {width:39%;}
.ph-current #screen.ph-meeting-screen .ph-meeting-table thead th:nth-child(3) {width:20%;}
.ph-current #screen.ph-meeting-screen .ph-meeting-table thead th:nth-child(4) {width:16%;}
.ph-current #screen.ph-meeting-screen .ph-meeting-table tbody :is(td,th) {height:48px;font-size:14px;box-sizing:border-box;}
.ph-current #screen.ph-meeting-screen .ph-meeting-table-scroll {max-width:100%;overflow:auto;overscroll-behavior:contain;}
.ph-current #screen.ph-meeting-screen .ph-meeting-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}
.ph-current #screen.ph-meeting-screen .ph-meeting-metrics .ph-sku-metric--text > strong {font-size:20px;line-height:1.35;overflow-wrap:anywhere;}
.ph-current #screen.ph-meeting-screen .ph-meeting-state {display:inline-flex;align-items:center;white-space:nowrap;line-height:18px;}
.ph-current #screen.ph-meeting-screen .ph-meeting-state[data-state=completed] {background:#edf4ee;color:var(--sku-accent);}
.ph-current #screen.ph-meeting-screen .ph-meeting-state[data-state=planned] {background:#eef2f7;color:#354b68;}
.ph-current #screen.ph-meeting-screen .ph-meeting-state[data-state=cancelled] {background:#f4eeee;color:#80514c;}
.ph-current #screen.ph-meeting-screen .ph-meeting-source {color:var(--sku-muted);}
@media(max-width:600px){
 .ph-current #screen.ph-meeting-screen .ph-meeting-metrics {grid-template-columns:minmax(0,1fr);}
 .ph-current #screen.ph-meeting-screen .ph-meeting-dialog .ph-detail-facts {grid-template-columns:minmax(0,1fr);}
 .ph-current #screen.ph-meeting-screen .ph-meeting-dialog-head {align-items:flex-start;}
 .ph-current #screen.ph-meeting-screen .ph-meeting-dialog-head .btn {flex:none;}
}

/* Compact role workspaces */
html body #screen.ph-compact-screen > [data-work-visible="false"]{display:none!important}
.ph-work-pages{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 16px;padding:10px 0;border-bottom:1px solid #d9e3de}
.ph-work-pages .ph-work-page{height:34px;min-height:34px;padding:0 12px;font-size:14px;font-weight:600}
.ph-work-page.active,.ph-work-subpage.active{background:#dcece4!important;color:#194b39!important;border-color:#8cb6a0!important}
.ph-work-subnav{display:grid;gap:3px;padding:4px 0 10px 24px}
.ph-work-subpage{font-family:inherit;font-size:13px;line-height:1.35;font-weight:500;text-align:left;border:0;border-left:2px solid transparent;border-radius:0;background:transparent;color:inherit;padding:7px 9px;cursor:pointer}
.ph-work-subpage:focus-visible,.ph-work-page:focus-visible{outline:2px solid #23674d;outline-offset:2px}
.ph-compact-screen [class*="table-scroll"]{max-height:440px;overflow:auto}
.ph-goal-band{position:relative;display:block;height:9px;margin:12px 6px 7px;border-radius:5px;background:linear-gradient(90deg,#f1d2c7 0 96%,#b4d6bf 96% 100%)}
.ph-current #screen.ph-reputation-screen:has(> .ph-reputation-ratings) > .ph-role-goals{position:static;}
.ph-goal-band[data-metric="rating"]{background:linear-gradient(90deg,#f1d2c7 0 40%,#efdfaa 40% 60%,#b4d6bf 60% 100%);}
.ph-rating-scale-labels{display:flex;justify-content:space-between;padding:0 6px;font-size:12px;line-height:16px;color:#52665e;}
.ph-rating-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;}
.ph-rating-count{display:flex;flex-direction:column;gap:2px;font-size:12px;line-height:16px;color:#52665e;min-width:0;}
.ph-rating-count strong{font-size:13px;color:#243b31;font-variant-numeric:tabular-nums;}
.ph-current #screen .ph-rating-count .ph-review-rating-track{height:4px;}
.ph-goal-band[data-metric="localization"]{background:linear-gradient(90deg,#f1d2c7 0 33.333%,#efdfaa 33.333% 50%,#d2e2c3 50% 66.667%,#9dc4ad 66.667% 83.333%,#5b9a76 83.333% 100%)}
.ph-localization-scale-labels{display:flex;justify-content:space-between;gap:4px;margin:0 6px;font-size:11px;color:inherit}
.ph-goal-band[data-metric="turnover"]{background:linear-gradient(90deg,#efdfaa 0 25%,#b4d6bf 25% 50%,#ecc1b6 50% 100%)}
.ph-goal-target{position:absolute;top:-5px;width:2px;height:19px;background:#284d3b;transform:translateX(-50%)}
.ph-goal-actual{position:absolute;top:-2px;width:13px;height:13px;border:2px solid white;border-radius:50%;background:#203f32;box-shadow:0 0 0 1px #203f32;transform:translateX(-50%)}
@media(min-width:1100px){.ph-work-pages{position:relative}.ph-work-subnav[hidden]{display:none}}

@media(min-width:1100px){#screen > .ph-work-pages{display:none!important}}

.ph-promotion-more{display:inline-block;vertical-align:top;margin:6px 8px 12px 0;border:1px solid #b7cbc0;border-radius:7px;background:#f5f8f5}
.ph-promotion-more > summary{min-height:34px;padding:7px 11px;font-size:14px;font-weight:600;cursor:pointer}

html body #screen.ph-compact-screen [class*="table-scroll"]{max-height:min(320px,28vh)!important;overflow:auto!important}
html body #screen .ph-promotion-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
html body #screen .ph-market-promotion .ph-promotion-more{display:inline-block!important;vertical-align:top;margin:0!important}
html body #screen .ph-promotion-more > summary{min-height:34px;padding:7px 11px;font-size:14px;line-height:18px}
html body #screen .ph-filter-saved-more{display:inline-block!important;margin:0!important;border:1px solid #b7cbc0;border-radius:6px;background:#f6f8f6;align-self:end}
html body #screen .ph-filter-saved-more > summary{padding:7px 10px;min-height:34px;font-size:14px;line-height:18px;font-weight:600;cursor:pointer}
.ph-work-detail .ph-saved-list-views{display:flex;flex-wrap:wrap;gap:8px;width:100%}
@media(min-width:1100px){html body #screen .ph-goal-grid:has(>.ph-goal-card:only-child) .ph-goal-levels{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}}

html body #screen.ph-compact-screen > .panel[data-work-visible]{padding:18px!important}
html body #screen.ph-reputation-screen .ph-reputation-switch{display:flex!important;align-items:end;flex-wrap:wrap;gap:8px}
html body #screen.ph-reputation-screen .ph-reputation-switch > label{display:grid!important;min-width:150px;max-width:220px;width:auto!important;flex:1 1 150px}
html body #screen.ph-reputation-screen .ph-reputation-filters .ph-input-field{flex:1 1 230px!important;max-width:320px!important;min-width:200px!important}
html body #screen.ph-reputation-screen .ph-reputation-filters > label{width:auto!important;min-width:130px;max-width:180px;flex:1 1 140px}

html body #screen .ph-work-secondary{margin:10px 0;border:1px solid #c7d6cc;border-radius:7px;background:#f5f8f5}
html body #screen .ph-work-secondary > summary{min-height:34px;padding:7px 11px;font-size:14px;font-weight:600;line-height:20px;cursor:pointer}

@media(min-width:1100px){html body #screen .ph-sku-metric-grid:has(>.ph-sku-metric:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))!important}}

@media(min-width:1100px){
 html body #screen .ph-goal-levels{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 html body #screen .ph-finance-report{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 html body #screen .ph-finance-report > :not(section.panel){grid-column:1/-1}
 html body #screen .ph-finance-report > section.panel{margin:0;padding:16px;min-width:0}
 html body #screen .ph-finance-report > section.panel:only-of-type{grid-column:1/-1}
 html body #screen .ph-finance-report > section.panel .ph-sku-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(min-width:1100px){
 html body #screen .ph-goal-level{grid-template-columns:minmax(0,1fr);min-width:0;gap:3px}
 html body #screen .ph-goal-level > *{grid-column:1;min-width:0;max-width:100%}
 html body #screen .ph-goal-level-target,html body #screen .ph-goal-level-percent{text-align:left}
}

@media(min-width:1100px){
 html body #screen .ph-goal-grid:has(>.ph-goal-card:only-child) .ph-goal-level{grid-template-columns:minmax(80px,1fr) auto 46px;gap:2px 8px}
 html body #screen .ph-goal-grid:has(>.ph-goal-card:only-child) .ph-goal-level > *{grid-column:auto}
 html body #screen .ph-goal-grid:has(>.ph-goal-card:only-child) .ph-goal-level progress{grid-column:1/-1}
 html body #screen .ph-goal-grid:has(>.ph-goal-card:only-child) .ph-goal-level-target,html body #screen .ph-goal-grid:has(>.ph-goal-card:only-child) .ph-goal-level-percent{text-align:right}
}

html body #screen .ph-promotion-overview[hidden]{display:none!important}

html body #screen.ph-compact-screen > .panel.ph-market-promotion[data-work-visible]{padding:12px 18px!important}

html body #screen.ph-compact-screen > .panel[data-work-visible]:not(.ph-market-promotion){padding:14px!important}
html body #screen.ph-compact-screen > .ph-role-goals{margin-bottom:8px}

@media(min-width:1100px){
 html body #screen .ph-finance-report > section.panel .ph-sku-metric-grid:has(>.ph-sku-metric:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body #screen .ph-finance-report .ph-sku-metric strong{font-size:24px;line-height:1.2;white-space:nowrap;word-break:normal;overflow-wrap:normal}
}

@media(min-width:1100px){html body #screen .ph-finance-report .ph-sku-metric strong{font-size:24px!important}}

/* Compact staff product plans and personal feedback keep the original row nodes. */
.ph-plan-product-list,.ph-compact-screen .ph-ux-history-list{max-height:min(336px,40vh);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.ph-plan-product-list>.ph-plan-product,.ph-compact-screen .ph-feedback-own-row,.ph-compact-screen .ph-feedback-own-card{margin:0;padding:0;border-radius:0}
.ph-plan-product-list>.ph-plan-product[hidden]{display:none!important}
.ph-plan-product-list>.ph-plan-product>summary,.ph-compact-screen .ph-feedback-own-card>summary{min-height:48px;box-sizing:border-box;padding:10px 12px;font-size:14px;line-height:20px;cursor:pointer}
.ph-compact-screen .ph-feedback-own-card>summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap}

/* Reputation keeps date, product and review text visible during horizontal scrolling. */
.ph-current #screen .ph-reputation-table-scroll {
 --review-date-width:90px; --review-product-width:200px; --review-text-width:240px;
}
.ph-current #screen.ph-reputation-screen .ph-reputation-table {
 width:calc(var(--review-date-width) + var(--review-product-width) + var(--review-text-width) + 1825px);
 min-width:calc(var(--review-date-width) + var(--review-product-width) + var(--review-text-width) + 1825px);
 border-collapse:separate; border-spacing:0;
}
.ph-current #screen.ph-reputation-screen .ph-reputation-table-scroll > .ph-reputation-table > :is(thead,tbody) > tr > :nth-child(-n+3) {
 position:sticky; z-index:3; background:#fff; overflow:hidden; box-sizing:border-box;
}
.ph-current #screen.ph-reputation-screen .ph-reputation-table-scroll > .ph-reputation-table > :is(thead,tbody) > tr > :nth-child(1) {left:0;width:var(--review-date-width);min-width:var(--review-date-width);max-width:var(--review-date-width);}
.ph-current #screen.ph-reputation-screen .ph-reputation-table-scroll > .ph-reputation-table > :is(thead,tbody) > tr > :nth-child(2) {left:var(--review-date-width);width:var(--review-product-width);min-width:var(--review-product-width);max-width:var(--review-product-width);}
.ph-current #screen.ph-reputation-screen .ph-reputation-table-scroll > .ph-reputation-table > :is(thead,tbody) > tr > :nth-child(3) {left:calc(var(--review-date-width) + var(--review-product-width));width:var(--review-text-width);min-width:var(--review-text-width);max-width:var(--review-text-width);box-shadow:3px 0 4px #103e3617;}
.ph-current #screen.ph-reputation-screen .ph-reputation-table-scroll > .ph-reputation-table > thead > tr > :nth-child(-n+3) {z-index:6;inset-block-start:var(--ph-table-top,0px);background:#eef0e9;}
.ph-current #screen.ph-reputation-screen .ph-reputation-table-scroll > .ph-reputation-table > tbody > tr:nth-child(even) > :nth-child(-n+3) {background:#fafbf8;}
.ph-current #screen.ph-reputation-screen .ph-reputation-table-scroll > .ph-reputation-table > tbody > tr:is(:hover,:focus-within) > :nth-child(-n+3) {background:#eaf3ed;}
.ph-current #screen.ph-reputation-screen .ph-reputation-table-scroll > .ph-reputation-table > thead > tr > :nth-child(14) {width:170px;}
.ph-current #screen .ph-reputation-table tbody :is(th,td) {font-size:14px;}
.ph-current #screen .ph-reputation-table .ph-review-row-send {height:34px;min-height:34px;box-sizing:border-box;width:110px;padding:5px 8px;margin:0;font-size:13px;white-space:nowrap;}
.ph-current #screen .ph-reputation-table .ph-review-row-publication {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ph-current #screen .ph-review-date-short {display:none;}
.ph-current #screen .ph-review-money-help {grid-column:1 / -1;margin:0 0 8px;font-size:14px;line-height:1.5;}
@media(max-width:740px){
 .ph-current #screen .ph-reputation-table-scroll {--review-date-width:44px;--review-product-width:74px;--review-text-width:76px;}
 .ph-current #screen.ph-reputation-screen .ph-reputation-table-scroll > .ph-reputation-table > :is(thead,tbody) > tr > :nth-child(-n+3) {padding-left:4px;padding-right:4px;}
 .ph-current #screen .ph-reputation-table .ph-review-row-publication {text-align:right;padding-left:4px;padding-right:4px;}
 .ph-current #screen .ph-reputation-table .ph-review-row-send {width:98px;}
 .ph-current #screen .ph-review-date-wide {display:none;}
 .ph-current #screen .ph-review-date-short {display:inline;}
 .ph-current #screen .ph-reputation-table .ph-review-published {font-size:11px;}
}

/* Keep financial freshness visible beside its weekly chart on desktop. */
@media (min-width:1000px){
 .ph-current #screen.ph-compact-screen [data-weekly-finance]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
 .ph-current #screen.ph-compact-screen [data-weekly-finance]> *{grid-column:1/-1;min-width:0}
 .ph-current #screen.ph-compact-screen [data-weekly-finance]>.ph-finance-status-grid{grid-column:1;grid-row:3;grid-template-columns:1fr;margin:0}
 .ph-current #screen.ph-compact-screen [data-weekly-finance]>.ph-finance-pending{grid-column:1;grid-row:4;margin:0}
 .ph-current #screen.ph-compact-screen [data-weekly-finance]>.ph-finance-chart{grid-column:2;grid-row:3/span 2;margin:0}
 .ph-current #screen.ph-compact-screen [data-weekly-finance]>.ph-finance-status-grid>.ph-plan-metric{grid-template-columns:minmax(110px,.8fr) minmax(0,1.2fr);align-items:start}
 .ph-current #screen.ph-compact-screen [data-weekly-finance]>.ph-finance-status-grid>.ph-plan-metric>small{grid-column:2}
}

.ph-current #screen .ph-market-promotion [role=tabpanel] a.btn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:34px;min-height:34px}

@media(min-width:1000px){.ph-current #screen.ph-compact-screen [data-weekly-finance]{gap:8px}}

/* Purchase overview keeps the marketplace calculation readable in the working panel. */
.ph-current #screen.ph-logistics-screen .ph-purchase-table {min-width:0;width:100%;table-layout:fixed;}
.ph-current #screen.ph-logistics-screen .ph-purchase-table :is(th,td) {white-space:normal;overflow-wrap:anywhere;}
.ph-current #screen.ph-logistics-screen .ph-purchase-table :is(th,td):first-child {width:28%;}
.ph-current #screen.ph-logistics-screen .ph-purchase-table :is(th,td):nth-child(n+2) {width:24%;}
.ph-current #screen.ph-logistics-screen .ph-purchase-table .ph-sku-row-title {white-space:normal;overflow-wrap:anywhere;}
.ph-current #screen.ph-logistics-screen .ph-purchase-line {display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 8px;line-height:1.5;}
.ph-current #screen.ph-logistics-screen .ph-purchase-line span {font-size:12px;color:var(--muted,#52615d);}
.ph-current #screen.ph-logistics-screen .ph-purchase-line strong {font-size:13px;font-variant-numeric:tabular-nums;}
.ph-current #screen.ph-logistics-screen .ph-purchase-secondary {display:block;color:var(--muted,#52615d);font-size:12px;line-height:15px;}
.ph-current #screen.ph-logistics-screen .ph-purchase-table tbody td.ph-purchase-market {padding-block:5px;}
.ph-current #screen.ph-logistics-screen .ph-purchase-table tbody th[scope="row"] {padding-block:7px;}
.ph-current #screen.ph-logistics-screen .ph-purchase-total {font-weight:700;}

/* The period popover uses the shared desktop control dimensions. */
.ph-current .ph-period-dialog { border-radius: 8px; }
.ph-current .ph-period-dialog button {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  padding: 5px 8px;
  font-size: 13px;
  line-height: 1.3;
}
.ph-current .ph-period-actions button { width: 116px; }
.ph-current .ph-month-nav button { width: 34px; }
.ph-current .ph-period-custom input { height: 34px; padding: 5px 8px; }

.ph-current #screen .ph-confirm-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:16px; }
.ph-current #screen .ph-confirm-actions .btn { width:116px; height:34px; margin:0; }

/* Keep task names and row data readable in the employee task queue. */
.ph-current #screen.ph-task-screen .ph-task-table tbody :is(th,td,.ph-sku-row-title) {font-size:14px;}


/* Goal priorities and reconciled period reasons share existing detail components. */
.ph-home-goal-priorities .ph-day-decision-row{min-height:48px;height:auto;white-space:normal}
.ph-home-goal-priorities .ph-day-decision-caption{min-width:0}
.ph-home-goal-priorities .ph-day-decision-caption small{display:block;white-space:pre-line;overflow:visible;text-overflow:clip;font-size:12px;line-height:1.4}
.ph-home-goal-priorities :is([data-priority="-1"],[data-priority="0"]){border-left:3px solid var(--danger,#b74332)}
.ph-home-goal-priorities .ph-graphic-caption{margin:4px 0 8px}
.ph-current #screen .ph-profit-waterfall-row[role="button"]{cursor:pointer;border-radius:6px;min-height:48px}
.ph-current #screen .ph-profit-waterfall-row[role="button"]:hover{background:#f0f5f2}
.ph-current #screen .ph-profit-waterfall-row[role="button"]:focus-visible{outline:2px solid #26735e;outline-offset:2px}
.ph-comparison-grid .btn{margin-top:8px;align-self:flex-start}

.ph-current #screen .ph-detail-record-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 16px;padding:10px 0;border-bottom:1px solid #d9dfdb;font-size:13px}
.ph-current #screen .ph-detail-record-nav .btn{height:34px;min-width:132px;font-size:13px;font-weight:600}
.ph-current #screen .ph-detail-record-nav small{flex-basis:100%;font-size:12px;color:#a33b2d}
.ph-current #screen .ph-field-error{display:block;font-size:12px;color:#a33b2d;margin-top:4px}
.ph-current #screen .ph-field-error[hidden]{display:none}
.ph-current #screen [aria-invalid="true"]{border-color:#a33b2d}

.ph-current #screen .ph-sku-drawer > .ph-detail-record-nav{margin:0 20px}

/* Goal actions, three-level pace and saved daily product history. */
.ph-current .ph-goal-actions,.ph-current .ph-goal-pace,.ph-current .ph-product-history{margin:16px 0;padding:16px;border:1px solid #dce5df;border-radius:12px;background:#fafbf8}
.ph-current .ph-goal-actions h3,.ph-current .ph-goal-pace h3,.ph-current .ph-product-history h3{font-size:16px;margin:0 0 12px}
.ph-current .ph-goal-pace-daily{font-size:13px;font-weight:600;margin:8px 0;color:#145e47}
.ph-current .ph-goal-pace progress{width:100%;height:6px;accent-color:#1e7257}
.ph-current .ph-metric-history-plot{position:relative;display:flex;isolation:isolate;height:160px;margin:16px 0 8px;border-bottom:1px solid #cbd7ce;align-items:stretch;background:#eef3ef;border-radius:4px}
.ph-current .ph-metric-history-column{position:relative;display:flex;flex:1 1 0;min-width:0;flex-direction:column;justify-content:flex-start;align-items:stretch;border:0;background:transparent;padding:0;color:#36483f;cursor:pointer;font-family:inherit;font-size:12px}
.ph-current .ph-metric-history-column:focus-visible{outline:2px solid #155c46;outline-offset:2px}
.ph-current .ph-metric-history-track{position:relative;display:block;flex:0 0 136px;width:100%}

.ph-current .ph-metric-history-column[data-missing="true"] .ph-metric-history-track{background:repeating-linear-gradient(135deg,#fafbf8,#fafbf8 4px,#d8dfd9 4px,#d8dfd9 5px)}
.ph-current .ph-metric-history-event{position:absolute;top:0;left:50%;transform:translateX(-50%);color:#987120;background:#fff8db;border-radius:3px;padding:0 2px}
.ph-current .ph-metric-history-day{font-size:11px;line-height:22px}
.ph-current .ph-goal-actions .ph-day-decision-list{max-height:300px;overflow:auto}

/* History controls retain the shared 34px working-control size in drawers. */
.ph-current #screen .ph-product-history > .ph-period-actions{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:12px}
.ph-current #screen .ph-product-history > .ph-period-actions > label{display:flex;flex-direction:column;align-items:stretch;gap:4px;margin:0;flex:1 1 220px;min-width:220px;max-width:360px;font-size:13px;text-align:left}
.ph-current #screen .ph-product-history > .ph-period-actions > label > select{height:34px;min-height:34px;width:100%;font-size:13px}
.ph-current #screen .ph-product-history > .ph-period-actions > button.btn{flex:0 0 auto;align-self:flex-end;height:34px;min-height:34px;max-height:34px;width:auto;white-space:nowrap;padding:0 12px;font-size:13px;line-height:18px}

.ph-current .ph-metric-history-line{position:absolute;inset:0 0 auto;width:100%;height:136px;pointer-events:none;z-index:1}
.ph-current .ph-metric-history-line path{fill:none;stroke:#23735a;stroke-width:2;stroke-dasharray:4 3;vector-effect:non-scaling-stroke}
.ph-current .ph-metric-history-dot{position:absolute;left:50%;width:8px;height:8px;border:2px solid #23735a;border-radius:50%;background:#fafbf8;transform:translate(-50%,-50%);z-index:2}
.ph-current .ph-metric-history-day{background:#fafbf8}
.ph-current .ph-metric-history-event{z-index:2}

.ph-current #screen .ph-metric-history-plot > button.ph-metric-history-column{
 box-sizing:border-box;padding:0;border:0;border-radius:0;background:transparent;
}
.ph-current #screen .ph-metric-history-plot > button.ph-metric-history-column:hover{
 background:rgba(35,115,90,.08);
}
