/* Approved UI baseline, migrated from design/approved-ui.html. */
html{color-scheme:light dark}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif} [hidden]{display:none!important}

#ph-mobile-flow{--ph-bg:light-dark(#f0f6fc,#17212c);--ph-panel:light-dark(#fff,#202d3b);--ph-nav:light-dark(#e6f0fa,#1b2938);--ph-text:light-dark(#263c53,#e7eff8);--ph-muted:light-dark(#5f748a,#a9bbce);--ph-line:light-dark(#dbe6f1,#35485c);--ph-accent:light-dark(#356ba5,#a5cdf4);--ph-tint:light-dark(#e0edf9,#294560);--ph-amber:light-dark(#86501e,#efc190);--ph-warm:light-dark(#fbf1e6,#493827);color:var(--ph-text);background:var(--ph-bg);font-family:system-ui,-apple-system,'PingFang SC',sans-serif;font-size:14px;line-height:1.6;border:1px solid var(--ph-line);border-radius:16px;position:relative;isolation:isolate;overflow-wrap:anywhere}
#ph-mobile-flow *{box-sizing:border-box}#ph-mobile-flow button,#ph-mobile-flow input,#ph-mobile-flow select{font:inherit;color:inherit}#ph-mobile-flow button{cursor:pointer;border:1px solid var(--ph-line);background:var(--ph-panel);border-radius:8px;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px}#ph-mobile-flow button:hover{background:var(--ph-tint)}#ph-mobile-flow button[aria-pressed=true],#ph-mobile-flow .ph-primary{background:var(--ph-accent);color:var(--ph-panel);border-color:var(--ph-accent)}#ph-mobile-flow input,#ph-mobile-flow select{max-width:100%;min-width:0;background:var(--ph-panel);border:1px solid var(--ph-line);border-radius:8px;padding:8px 10px}#ph-mobile-flow input[type=checkbox]{accent-color:var(--ph-accent)}#ph-mobile-flow h1,#ph-mobile-flow h2,#ph-mobile-flow h3,#ph-mobile-flow p{margin:0}#ph-mobile-flow h1{font-size:27px;line-height:1.3;font-weight:500;letter-spacing:-.5px}#ph-mobile-flow h2{font-size:16px;font-weight:500}#ph-mobile-flow h3{font-size:14px;font-weight:500}#ph-mobile-flow small,.ph-muted{color:var(--ph-muted)}#ph-mobile-flow small{font-size:12px}#ph-mobile-flow svg{flex-shrink:0}#ph-mobile-flow [hidden]{display:none!important}.ph-shell{display:grid;grid-template-columns:177px minmax(0,1fr)}.ph-sidebar{padding:25px 13px;background:var(--ph-nav);border-right:1px solid var(--ph-line);border-radius:16px 0 0 16px;display:flex;flex-direction:column;gap:26px}.ph-brand{display:flex;align-items:center;gap:10px;padding:0 8px;font-weight:500;font-size:20px;letter-spacing:-.5px}.ph-mark{display:grid;place-items:center;background:var(--ph-accent);color:var(--ph-panel);border-radius:9px;width:31px;height:31px;font-size:18px}.ph-nav-label{padding:0 12px 8px;font-size:11px;color:var(--ph-muted);letter-spacing:2px}.ph-nav{display:grid;gap:4px}#ph-mobile-flow .ph-nav button{width:100%;justify-content:start;border:0;background:transparent;padding:9px 12px;color:var(--ph-muted)}#ph-mobile-flow .ph-nav button[aria-current=page]{background:var(--ph-panel);color:var(--ph-text)}.ph-count{margin-left:auto;background:var(--ph-tint);color:var(--ph-accent);border-radius:5px;min-width:21px;text-align:center;font-size:12px}.ph-profile{margin-top:auto;padding:20px 9px 0;border-top:1px solid var(--ph-line);display:flex;gap:9px;align-items:center}.ph-avatar{background:var(--ph-panel);border-radius:50%;width:30px;height:30px;display:grid;place-items:center}.ph-workspace{min-width:0}.ph-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 25px;border-bottom:1px solid var(--ph-line);flex-wrap:wrap}.ph-topbar small{display:flex;align-items:center;gap:7px}.ph-preview-dot{width:6px;height:6px;border-radius:50%;background:var(--ph-amber)}.ph-main{padding:29px 27px 22px;min-height:645px}.ph-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;flex-wrap:wrap}.ph-heading p{color:var(--ph-muted);margin-top:7px!important}.ph-eyebrow{color:var(--ph-muted);font-size:11px;letter-spacing:2px;margin-bottom:8px}.ph-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(220px,1fr);gap:18px}.ph-stack{display:grid;gap:18px;align-content:start}.ph-panel{background:var(--ph-panel);border:1px solid var(--ph-line);border-radius:12px;padding:19px}.ph-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px;flex-wrap:wrap}#ph-mobile-flow .ph-text-button{border:0;padding:2px;background:transparent;color:var(--ph-accent);font-size:12px}.ph-brief{background:var(--ph-tint);border-color:transparent;padding:21px;margin-bottom:20px}.ph-brief p{margin-top:8px!important}.ph-flex{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ph-between{justify-content:space-between}.ph-line{padding:13px 0;border-bottom:1px solid var(--ph-line)}.ph-line:last-child{border-bottom:0;padding-bottom:0}.ph-tag{display:inline-flex;padding:2px 7px;border-radius:5px;font-size:11px;background:var(--ph-tint);color:var(--ph-accent);white-space:nowrap}.ph-tag.ph-urgent{background:var(--ph-warm);color:var(--ph-amber)}.ph-timeline{display:grid;grid-template-columns:43px minmax(0,1fr);gap:15px;margin-top:15px}.ph-timeline>small{padding-top:8px}.ph-event{border-left:2px solid var(--ph-accent);padding:8px 12px;background:var(--ph-bg);border-radius:0 7px 7px 0}.ph-event small{display:block;margin-top:3px}.ph-empty{border:1px dashed var(--ph-line);border-radius:8px;padding:13px;margin-top:16px}.ph-toolbar{display:flex;gap:8px;margin:0 0 18px;flex-wrap:wrap}.ph-toolbar button{font-size:12px!important;padding:6px 11px!important}.ph-review{margin-bottom:14px}.ph-review p{margin-top:10px!important}.ph-quote{border-left:2px solid var(--ph-line);padding-left:12px;margin:14px 0;color:var(--ph-muted)}.ph-review-foot{border-top:1px solid var(--ph-line);padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.ph-table{width:100%;border-collapse:collapse;text-align:left}.ph-table th{font-weight:400;font-size:12px;color:var(--ph-muted);padding:8px 10px;border-bottom:1px solid var(--ph-line)}.ph-table td{padding:15px 10px;border-bottom:1px solid var(--ph-line)}.ph-table tr:last-child td{border-bottom:0}.ph-table small{display:block}.ph-task-name{display:flex;gap:10px;align-items:center}.ph-table input{width:17px;height:17px}.ph-done{text-decoration:line-through;color:var(--ph-muted)}.ph-calendar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.ph-day{background:var(--ph-bg);border-radius:8px;padding:10px 7px;min-height:230px}.ph-day>small{display:block;text-align:center;margin-bottom:18px}.ph-day .ph-event{padding:8px;margin:14px 0;font-size:12px}.ph-mail-layout{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,1.5fr);gap:16px}#ph-mobile-flow .ph-mail-item{width:100%;display:block;text-align:left;padding:14px;margin-bottom:9px}.ph-mail-item small{display:block}.ph-money{font-size:25px;letter-spacing:-.5px;margin:8px 0!important}.ph-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ph-meter{height:6px;background:var(--ph-bg);border-radius:4px;margin:9px 0;overflow:hidden}.ph-meter span{display:block;height:100%;background:var(--ph-accent)}.ph-setting{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--ph-line);flex-wrap:wrap}.ph-setting:last-child{border-bottom:0}.ph-setting small{display:block}.ph-ai-launch-row{display:flex;justify-content:flex-end;padding:0 25px 22px}#ph-mobile-flow .ph-ai-launch{padding:11px 17px;border-radius:24px;background:var(--ph-accent);color:var(--ph-panel);box-shadow:0 4px 15px light-dark(#203c5915,#0003)}.ph-chat{position:absolute;right:22px;bottom:22px;width:365px;max-width:calc(100% - 30px);padding:0;box-shadow:0 16px 60px light-dark(#18365922,#0008);z-index:5}.ph-chat-top{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border-bottom:1px solid var(--ph-line);gap:8px}.ph-chat-content{padding:16px}.ph-chat-message{padding:12px;background:var(--ph-bg);border-radius:9px;margin:12px 0}.ph-chat-message p{margin-top:7px!important}.ph-chat form{display:flex;gap:7px}.ph-chat input{flex:1;width:100%}.ph-toast{color:var(--ph-accent);font-size:12px;min-height:23px;padding:0 27px 8px}.ph-mini-form{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}.ph-mini-form input{flex:1}.ph-mobile-label{display:none}.ph-status-note{font-size:12px;color:var(--ph-muted);margin-top:16px!important}.ph-file-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ph-file{padding:17px;background:var(--ph-bg);border-radius:8px}.ph-file h3{margin:12px 0 5px!important}#ph-mobile-flow .ph-menu-toggle{display:none}#ph-mobile-flow[data-ai=top] .ph-top-ai{display:inline-flex}#ph-mobile-flow[data-ai=top] .ph-ai-launch-row{display:none}#ph-mobile-flow[data-ai=floating] .ph-top-ai{display:none}
@media(max-width:820px){.ph-shell{grid-template-columns:145px minmax(0,1fr)}.ph-sidebar{padding:22px 8px}.ph-brand{font-size:17px}.ph-main{padding:22px 18px}.ph-grid{grid-template-columns:1fr}.ph-file-grid{grid-template-columns:1fr 1fr}.ph-topbar{padding:13px 18px}.ph-mail-layout{grid-template-columns:1fr}.ph-calendar{grid-template-columns:repeat(3,minmax(0,1fr))}.ph-main{min-height:580px}}
@media(max-width:540px){.ph-shell{display:block}.ph-sidebar{border-radius:16px 16px 0 0;border-right:0;border-bottom:1px solid var(--ph-line);padding:14px;gap:12px}.ph-brand{justify-content:space-between}.ph-brand>span:first-child{display:flex;align-items:center;gap:9px}#ph-mobile-flow .ph-menu-toggle{display:inline-flex}.ph-sidebar .ph-nav-group,.ph-profile{display:none}.ph-sidebar.ph-open .ph-nav-group{display:block}.ph-sidebar.ph-open .ph-nav{grid-template-columns:1fr 1fr}.ph-topbar{padding:12px 16px}.ph-main{padding:23px 16px;min-height:0}.ph-heading{gap:12px}.ph-heading h1{font-size:24px}.ph-grid,.ph-two,.ph-file-grid{grid-template-columns:1fr}.ph-panel{padding:16px}.ph-calendar{grid-template-columns:1fr}.ph-day{min-height:0}.ph-day>small{text-align:left;margin-bottom:6px}.ph-day .ph-event{margin:9px 0}.ph-chat{position:relative;right:auto;bottom:auto;width:auto;max-width:none;margin:0 14px 16px}.ph-chat form{flex-wrap:wrap}.ph-chat form button{width:100%}.ph-table thead{display:none}.ph-table,.ph-table tbody,.ph-table tr,.ph-table td{display:block}.ph-table tr{padding:9px 0;border-bottom:1px solid var(--ph-line)}.ph-table td{border:0;padding:5px 0}.ph-mobile-label{display:inline;color:var(--ph-muted)}.ph-ai-launch-row{padding:0 16px 18px}#ph-mobile-flow input,#ph-mobile-flow select{font-size:16px}#ph-mobile-flow button{min-height:42px}.ph-toast{padding:0 16px 8px}}
#ph-mobile-flow[data-palette="mono"]{--ph-bg:light-dark(#f5f5f5,#191919);--ph-panel:light-dark(#fff,#242424);--ph-nav:light-dark(#eeeeee,#202020);--ph-text:light-dark(#222222,#eeeeee);--ph-muted:light-dark(#686868,#b6b6b6);--ph-line:light-dark(#dedede,#414141);--ph-accent:light-dark(#262626,#e5e5e5);--ph-tint:light-dark(#eaeaea,#333333);--ph-amber:light-dark(#333333,#dddddd);--ph-warm:light-dark(#e5e5e5,#3c3c3c);}
#ph-mobile-flow .ph-palette{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--ph-line);border-radius:9px;background:var(--ph-panel)}
#ph-mobile-flow .ph-palette button{padding:5px 10px;font-size:12px;border-color:transparent;border-radius:6px}
#ph-mobile-flow[data-palette="mono"] .ph-ai-launch{box-shadow:0 4px 15px light-dark(#00000015,#0003)}
#ph-mobile-flow[data-palette="mono"] .ph-chat{box-shadow:0 16px 60px light-dark(#00000022,#0008)}
#ph-mobile-flow .ph-review-layout{display:grid;grid-template-columns:minmax(160px,.75fr) minmax(0,1.6fr);gap:16px;align-items:start}#ph-mobile-flow .ph-candidate-link{width:100%;display:block;text-align:left;margin-bottom:9px;padding:14px}#ph-mobile-flow .ph-candidate-link small{display:block;margin-top:7px}#ph-mobile-flow .ph-candidate-link[aria-pressed=true]{background:var(--ph-tint);color:var(--ph-text);border-color:var(--ph-accent)}#ph-mobile-flow .ph-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}#ph-mobile-flow .ph-field{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--ph-muted);min-width:0}#ph-mobile-flow .ph-field input{width:100%;font-size:14px;color:var(--ph-text)}#ph-mobile-flow .ph-full{grid-column:1/-1}#ph-mobile-flow details{margin:15px 0}#ph-mobile-flow summary{cursor:pointer;color:var(--ph-accent);padding:7px 0}#ph-mobile-flow .ph-snooze-box{margin-top:16px;padding:15px;background:var(--ph-bg);border-radius:8px}#ph-mobile-flow .ph-snooze-choices{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}#ph-mobile-flow .ph-snooze-choices button{font-size:12px;padding:7px 9px}#ph-mobile-flow .ph-feedback{background:var(--ph-tint);padding:12px;border-radius:8px;margin:15px 0;color:var(--ph-text)}#ph-mobile-flow .ph-error{border-left:3px solid var(--ph-amber);padding:10px 13px;background:var(--ph-warm);color:var(--ph-text);margin:12px 0}#ph-mobile-flow .ph-plan-row{border-bottom:1px solid var(--ph-line);padding:15px 0}#ph-mobile-flow .ph-plan-row:last-child{border-bottom:0}#ph-mobile-flow .ph-plan-row input[type=checkbox]{width:17px;height:17px}#ph-mobile-flow .ph-event.ph-proposed{border:1px dashed var(--ph-accent);background:var(--ph-panel)}#ph-mobile-flow .ph-proposal-fields{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-top:12px}#ph-mobile-flow .ph-proposal-fields label{flex:1;min-width:130px}#ph-mobile-flow .ph-availability-row{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin:13px 0}#ph-mobile-flow .ph-availability-row label{flex:1;min-width:110px}#ph-mobile-flow button:disabled{opacity:.5;cursor:not-allowed}#ph-mobile-flow .ph-calendar{grid-template-columns:repeat(3,minmax(0,1fr))}#ph-mobile-flow .ph-day{min-height:125px}#ph-mobile-flow .ph-chat .ph-topbar{padding:8px 16px}#ph-mobile-flow .ph-chat-thread-space{min-height:130px}#ph-mobile-flow .ph-upload-note{margin:12px 0;font-size:12px;color:var(--ph-muted)}
@media(max-width:750px){#ph-mobile-flow .ph-review-layout{grid-template-columns:1fr}#ph-mobile-flow .ph-review-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#ph-mobile-flow .ph-candidate-link{margin:0}#ph-mobile-flow .ph-fields{grid-template-columns:1fr}}
@media(max-width:540px){#ph-mobile-flow .ph-calendar,#ph-mobile-flow .ph-review-list{grid-template-columns:1fr}#ph-mobile-flow .ph-field input{font-size:16px}#ph-mobile-flow[data-chat=open]>.ph-shell{display:none}#ph-mobile-flow[data-chat=open] .ph-chat{margin:0;width:100%;max-width:none;border:0;border-radius:16px;box-shadow:none;min-height:620px;display:flex;flex-direction:column}#ph-mobile-flow[data-chat=open] .ph-chat-content{display:flex;flex:1;flex-direction:column}#ph-mobile-flow[data-chat=open] .ph-chat-thread-space{flex:1;min-height:200px}#ph-mobile-flow .ph-chat form{flex-wrap:nowrap}#ph-mobile-flow .ph-chat form button{width:auto}#ph-mobile-flow .ph-chat-top{padding:16px}#ph-mobile-flow .ph-proposal-fields label{min-width:100%;}}

/* Constrain native date/time fields, including WebKit intrinsic control sizing. */
#ph-mobile-flow .ph-panel,#ph-mobile-flow form,#ph-mobile-flow .ph-fields,#ph-mobile-flow .ph-field,#ph-mobile-flow .ph-review-layout>*{min-width:0;min-inline-size:0;max-width:100%}
#ph-mobile-flow .ph-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
#ph-mobile-flow input[type="date"],#ph-mobile-flow input[type="time"],#ph-mobile-flow input[type="datetime-local"]{display:block;box-sizing:border-box;width:100%;inline-size:100%;min-width:0;min-inline-size:0;max-width:100%;max-inline-size:100%;-webkit-appearance:none;appearance:none;min-height:44px;text-align:left}
#ph-mobile-flow input::-webkit-date-and-time-value{min-width:0;text-align:left}
#ph-mobile-flow input::-webkit-datetime-edit{min-width:0;padding:0}
#ph-mobile-flow input::-webkit-datetime-edit-fields-wrapper{min-width:0;padding:0}
#ph-mobile-flow .ph-setting>.ph-flex:has(input[type="time"]){display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);width:100%;max-width:300px;min-width:0}
#ph-mobile-flow .ph-palette{max-width:100%;flex-wrap:wrap}
@media(max-width:750px){#ph-mobile-flow .ph-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:540px){#ph-mobile-flow .ph-availability-row{display:grid;grid-template-columns:minmax(0,1fr);width:100%}#ph-mobile-flow .ph-availability-row label,#ph-mobile-flow .ph-proposal-fields label{min-width:0;width:100%;max-width:100%}}

@media(max-width:540px){#ph-mobile-flow .ph-accordion{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}#ph-mobile-flow .ph-accordion-item{min-width:0}#ph-mobile-flow .ph-accordion-item:has(article)>.ph-candidate-link{border-radius:8px 8px 0 0;margin:0}#ph-mobile-flow .ph-accordion-item>article{border-radius:0 0 8px 8px;border-top:0}#ph-mobile-flow .ph-expand-hint{color:var(--ph-accent)}}

#ph-mobile-flow button{touch-action:manipulation}
#ph-mobile-flow .ph-review-actions{position:relative}
@media(max-width:540px){#ph-mobile-flow .ph-review-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#ph-mobile-flow .ph-review-actions button{width:100%;min-height:48px}#ph-mobile-flow .ph-review-actions .ph-primary{grid-column:1/-1}}

/* Shared draggable AI launcher for desktop and mobile. */
@media all{
 #ph-mobile-flow .ph-ai-launch-row{position:fixed;right:calc(16px + env(safe-area-inset-right,0px));top:var(--ph-dot-y,auto);left:var(--ph-dot-x,auto);bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:30;width:auto;max-width:calc(100% - 32px);padding:0;pointer-events:none}
 #ph-mobile-flow .ph-ai-launch{pointer-events:auto;min-height:48px;padding:12px 16px;box-shadow:0 5px 20px light-dark(#00000026,#0006)}
 #ph-mobile-flow .ph-main{padding-bottom:90px}
 #ph-mobile-flow[data-chat=open] .ph-ai-launch-row{display:none}
}

#ph-mobile-flow .ph-chatgpt-mark{display:none}
@media all{
 #ph-mobile-flow .ph-ai-launch-row{--ph-safe-top:env(safe-area-inset-top,0px);--ph-safe-bottom:env(safe-area-inset-bottom,0px);right:auto;bottom:auto;width:48px;height:48px}
 #ph-mobile-flow .ph-ai-launch{width:48px;height:48px;min-height:48px;border-radius:50%;padding:10px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab}
 #ph-mobile-flow .ph-ai-launch[data-dragging=true]{cursor:grabbing}
 #ph-mobile-flow .ph-ai-launch>svg,#ph-mobile-flow .ph-ai-launch>.ph-launch-label{display:none}
 #ph-mobile-flow .ph-chatgpt-mark{display:block;width:26px;height:26px;background:currentColor;pointer-events:none;mask:url("data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+T3BlbkFJPC90aXRsZT48cGF0aCBkPSJNMjIuMjgxOSA5LjgyMTFhNS45ODQ3IDUuOTg0NyAwIDAgMC0uNTE1Ny00LjkxMDggNi4wNDYyIDYuMDQ2MiAwIDAgMC02LjUwOTgtMi45QTYuMDY1MSA2LjA2NTEgMCAwIDAgNC45ODA3IDQuMTgxOGE1Ljk4NDcgNS45ODQ3IDAgMCAwLTMuOTk3NyAyLjkgNi4wNDYyIDYuMDQ2MiAwIDAgMCAuNzQyNyA3LjA5NjYgNS45OCA1Ljk4IDAgMCAwIC41MTEgNC45MTA3IDYuMDUxIDYuMDUxIDAgMCAwIDYuNTE0NiAyLjkwMDFBNS45ODQ3IDUuOTg0NyAwIDAgMCAxMy4yNTk5IDI0YTYuMDU1NyA2LjA1NTcgMCAwIDAgNS43NzE4LTQuMjA1OCA1Ljk4OTQgNS45ODk0IDAgMCAwIDMuOTk3Ny0yLjkwMDEgNi4wNTU3IDYuMDU1NyAwIDAgMC0uNzQ3NS03LjA3Mjl6bS05LjAyMiAxMi42MDgxYTQuNDc1NSA0LjQ3NTUgMCAwIDEtMi44NzY0LTEuMDQwOGwuMTQxOS0uMDgwNCA0Ljc3ODMtMi43NTgyYS43OTQ4Ljc5NDggMCAwIDAgLjM5MjctL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yIDQuNjZ6TTguMzA2NSAxMi44NjNsLTIuMDItMS4xNjM4YS4wODA0LjA4MDQgMCAwIDEtLjAzOC0uMDU2N1Y2LjA3NDJhNC40OTkyIDQuNDk5MiAwIDAgMSA3LjM3NTctMy40NTM3bC0uMTQyLjA4MDVMOC43MDQgNS40NTlhLjc5NDguNzk0OCAwIDAgMC0uMzkyNy42ODEzem0xLjA5NzYtMi4zNjU0bDIuNjAyLTEuNDk5OCAyLjYwNjkgMS40OTk4djIuOTk5NGwtMi41OTc0IDEuNDk5Ny0yLjYwNjctMS40OTk3WiIvPjwvc3ZnPg==") center/contain no-repeat}
}
@media(min-width:541px){#ph-mobile-flow .ph-chat{position:fixed;right:22px;bottom:22px;max-height:calc(100dvh - 44px);overflow-y:auto;z-index:31}}

@media(min-width:541px) and (hover:hover) and (pointer:fine){
 #ph-mobile-flow .ph-ai-launch{position:absolute;top:0;right:0;flex-direction:row-reverse;gap:0;overflow:hidden;transition:width .18s ease;border-radius:24px}
 #ph-mobile-flow .ph-chatgpt-mark{flex:0 0 26px}
 #ph-mobile-flow .ph-ai-launch>.ph-launch-label{display:block;max-width:0;opacity:0;overflow:hidden;white-space:nowrap;transition:max-width .18s ease,opacity .12s ease}
 #ph-mobile-flow .ph-ai-launch:is(:hover,:focus-visible):not([data-dragging=true]){width:132px;gap:10px}
 #ph-mobile-flow .ph-ai-launch:is(:hover,:focus-visible):not([data-dragging=true])>.ph-launch-label{max-width:76px;opacity:1}
 #ph-mobile-flow .ph-ai-launch-row[data-expand-direction=right] .ph-ai-launch{left:0;right:auto;flex-direction:row}
}
@media(prefers-reduced-motion:reduce){#ph-mobile-flow .ph-ai-launch,#ph-mobile-flow .ph-launch-label{transition:none}}

/* User-selected AI launcher appearance: white fill, black outline and ink in both themes. */
#ph-mobile-flow .ph-ai-launch,
#ph-mobile-flow .ph-ai-launch:is(:hover,:focus-visible){background:#fff;color:#161616;border:2px solid #161616;box-shadow:0 4px 14px #0002}

#ph-mobile-flow .ph-task-open{flex:1;min-width:0;justify-content:space-between;text-align:left;border:0;background:transparent;padding:7px 4px;min-height:44px}
#ph-mobile-flow .ph-task-open:hover{background:var(--ph-tint)}
#ph-mobile-flow .ph-task-open>span{min-width:0;overflow-wrap:anywhere}
#ph-mobile-flow .ph-task-name>input{flex-shrink:0}
#ph-mobile-flow .ph-task-detail-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:18px}
#ph-mobile-flow .ph-task-facts{margin:0 0 24px}
#ph-mobile-flow .ph-task-facts>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:13px 0;border-bottom:1px solid var(--ph-line)}
#ph-mobile-flow .ph-task-facts dt{color:var(--ph-muted)}
#ph-mobile-flow .ph-task-facts dd{margin:0;overflow-wrap:anywhere}
#ph-mobile-flow .ph-task-description{margin-top:12px;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){#ph-mobile-flow .ph-task-detail-grid{grid-template-columns:minmax(0,1fr)}}

#ph-mobile-flow .ph-field textarea{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:108px;resize:vertical;font:inherit;font-size:16px;line-height:1.6;color:var(--ph-text);background:var(--ph-panel);border:1px solid var(--ph-line);border-radius:8px;padding:10px 12px}

#ph-mobile-flow .ph-source-access{display:grid;gap:5px}
#ph-mobile-flow .ph-source-link{display:inline-flex;align-items:center;gap:7px;min-height:44px;max-width:100%;flex-wrap:wrap;color:var(--ph-accent);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}

#ph-mobile-flow .ph-assistant-heading{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;overflow-wrap:anywhere}
#ph-mobile-flow .ph-chat-top>[data-action=close-ai]{flex-shrink:0}
#ph-mobile-flow #ph-assistant-name{font-weight:500}
#ph-mobile-flow #ph-assistant-model{white-space:normal;overflow-wrap:anywhere}

#ph-mobile-flow .ph-chat-top>.ph-chatgpt-mark{display:block;flex:0 0 28px;width:28px;height:28px;margin-right:3px;color:var(--ph-text)}

#ph-mobile-flow .ph-deadline-cell{display:grid;justify-items:start;gap:6px}
#ph-mobile-flow .ph-tag.ph-deadline{gap:5px;align-items:center;padding:5px 8px;font-size:12px;font-weight:500;white-space:normal;line-height:1.4;border:1px solid transparent}
#ph-mobile-flow .ph-tag.ph-deadline-urgent{background:light-dark(#c53117,#ff997f);color:light-dark(#fff,#3c1008);border-color:light-dark(#ac260f,#ffb39e)}
#ph-mobile-flow .ph-tag.ph-deadline-overdue{background:light-dark(#991b1b,#ffb3b3);color:light-dark(#fff,#480909);border-color:light-dark(#7f1717,#ffcaca)}
#ph-mobile-flow .ph-tag.ph-deadline-today{background:light-dark(#fff0cb,#614617);color:light-dark(#704400,#ffe3a3);border-color:light-dark(#d6aa50,#a37c32)}
#ph-mobile-flow .ph-reference-tools{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 8px}
#ph-mobile-flow .ph-upload-control{position:relative;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--ph-line);border-radius:8px;background:var(--ph-panel);color:var(--ph-text);padding:8px 12px;min-height:44px;cursor:pointer}
#ph-mobile-flow .ph-upload-control:focus-within{outline:2px solid var(--ph-accent);outline-offset:2px}
#ph-mobile-flow .ph-upload-control input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#ph-mobile-flow .ph-reference-chip small{display:block;font-size:11px;color:var(--ph-muted)}
#ph-mobile-flow .ph-library-file{min-width:0;overflow-wrap:anywhere;flex:1 1 160px}
#ph-mobile-flow #ph-file-picker{padding:12px;border:1px solid var(--ph-line);border-radius:9px;background:var(--ph-bg);margin-bottom:10px}
#ph-mobile-flow .ph-reference-option{display:flex;align-items:center;gap:10px;min-height:52px;padding:6px 0;cursor:pointer}
#ph-mobile-flow .ph-reference-option input{width:18px;height:18px;flex:0 0 18px}
#ph-mobile-flow .ph-reference-option span{min-width:0;overflow-wrap:anywhere}
#ph-mobile-flow .ph-reference-option small{display:block}
#ph-mobile-flow #ph-file-references{display:grid;gap:6px;margin-bottom:8px}
#ph-mobile-flow .ph-reference-chip{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--ph-tint);border:1px solid var(--ph-line);border-radius:8px;padding:2px 4px 2px 10px}
#ph-mobile-flow .ph-reference-chip span{min-width:0;overflow-wrap:anywhere;font-size:12px}
#ph-mobile-flow .ph-reference-chip button{flex:0 0 44px;min-height:44px;padding:8px;background:transparent;border:0}
#ph-mobile-flow .ph-chat-content> .ph-flex select{min-width:0;flex:1}
#ph-mobile-flow .ph-chat-content> .ph-flex button{flex-shrink:0}
/* Impeccable refinement: shared presentation only; original behavior preserved. */
#ph-mobile-flow {
  --ph-muted: light-dark(#526980, #b6c6d7);
  --ph-control: light-dark(#8093a7, #72869b);
  --ph-on-accent: light-dark(#fff, #17212c);
  --ph-accent-hover: light-dark(#295782, #bedcf8);
  --ph-radius: 12px;
  --ph-gap: 20px;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
#ph-mobile-flow[data-palette="mono"] {
  --ph-bg: light-dark(#f7f7f7, #191919);
  --ph-nav: light-dark(#f1f1f1, #202020);
  --ph-text: light-dark(#232323, #eee);
  --ph-muted: light-dark(#606060, #bcbcbc);
  --ph-tint: light-dark(#ededed, #333);
  --ph-control: light-dark(#909090, #808080);
  --ph-on-accent: light-dark(#fff, #191919);
  --ph-accent-hover: light-dark(#111, #fff);
}
#ph-mobile-flow ::selection { background: var(--ph-accent); color: var(--ph-on-accent); }
#ph-mobile-flow :is(input, textarea) { caret-color: var(--ph-accent); }
#ph-mobile-flow :is(input, textarea)::placeholder { color: var(--ph-muted); opacity: 1; }
#ph-mobile-flow :is(button, input, textarea, select, summary, a):focus-visible {
  outline: 2px solid var(--ph-accent);
  outline-offset: 3px;
}
#ph-mobile-flow .ph-upload-control:focus-within { outline-color: var(--ph-accent); outline-offset: 3px; }
#ph-mobile-flow .ph-shell { grid-template-columns: 192px minmax(0, 1fr); }
#ph-mobile-flow .ph-sidebar { padding: 28px 14px; gap: 30px; }
#ph-mobile-flow .ph-brand { font-size: 19px; letter-spacing: 0; gap: 11px; }
#ph-mobile-flow .ph-nav-label { font-size: 12px; letter-spacing: .03em; padding-bottom: 10px; }
#ph-mobile-flow .ph-nav { gap: 5px; }
#ph-mobile-flow .ph-nav button { min-height: 44px; border-radius: 9px; gap: 10px; }
#ph-mobile-flow .ph-nav button:hover { color: var(--ph-text); background: var(--ph-tint); }
#ph-mobile-flow .ph-nav button[aria-current=page] { font-weight: 500; background: var(--ph-panel); }
#ph-mobile-flow .ph-count { font-variant-numeric: tabular-nums; min-width: 23px; }
#ph-mobile-flow .ph-topbar { min-height: 60px; padding: 16px 32px; }
#ph-mobile-flow .ph-main { padding: 32px 32px 90px; }
#ph-mobile-flow .ph-heading { margin-bottom: 28px; align-items: flex-start; }
#ph-mobile-flow .ph-eyebrow { display: none; }
#ph-mobile-flow h1 { font-size: 28px; line-height: 1.35; letter-spacing: -.02em; text-wrap: balance; }
#ph-mobile-flow h2 { font-size: 17px; line-height: 1.5; }
#ph-mobile-flow h3 { font-size: 15px; line-height: 1.55; }
#ph-mobile-flow .ph-heading p { max-width: 70ch; margin-top: 10px !important; }
#ph-mobile-flow small { font-size: 12px; line-height: 1.6; }
#ph-mobile-flow .ph-grid, #ph-mobile-flow .ph-two,
#ph-mobile-flow .ph-stack, #ph-mobile-flow .ph-task-detail-grid { gap: var(--ph-gap); }
#ph-mobile-flow .ph-panel { border-radius: var(--ph-radius); padding: 24px; }
#ph-mobile-flow .ph-panel-head { margin-bottom: 20px; }
#ph-mobile-flow .ph-line { padding: 16px 0; }
#ph-mobile-flow .ph-line:last-child { padding-bottom: 0; }
#ph-mobile-flow .ph-tag { font-size: 12px; padding: 3px 8px; line-height: 1.5; }
#ph-mobile-flow button { min-height: 40px; font-weight: 500; }
#ph-mobile-flow button:not(.ph-ai-launch):active { border-color: var(--ph-accent); }
#ph-mobile-flow .ph-toolbar { gap: 8px; margin-bottom: 20px; }
#ph-mobile-flow .ph-toolbar button { font-size: 13px !important; padding: 8px 13px !important; }
#ph-mobile-flow .ph-primary,
#ph-mobile-flow button[aria-pressed=true]:not(.ph-candidate-link) {
  color: var(--ph-on-accent); background: var(--ph-accent); border-color: var(--ph-accent);
}
#ph-mobile-flow .ph-primary:hover,
#ph-mobile-flow button[aria-pressed=true]:not(.ph-candidate-link):hover {
  color: var(--ph-on-accent); background: var(--ph-accent-hover); border-color: var(--ph-accent-hover);
}
#ph-mobile-flow button:disabled { opacity: .55; cursor: not-allowed; }
#ph-mobile-flow :is(input:not([type=checkbox]):not([type=file]), select),
#ph-mobile-flow .ph-field textarea { min-height: 44px; border-color: var(--ph-control); padding: 10px 12px; border-radius: 8px; }
#ph-mobile-flow .ph-field { font-size: 13px; gap: 7px; color: var(--ph-text); }
#ph-mobile-flow .ph-field input, #ph-mobile-flow .ph-field textarea { font-size: 15px; line-height: 1.6; }
#ph-mobile-flow .ph-fields { gap: 20px 16px; margin: 22px 0; }
#ph-mobile-flow .ph-field textarea { min-height: 120px; }
#ph-mobile-flow .ph-review-layout { gap: 20px; }
#ph-mobile-flow .ph-candidate-link { padding: 18px; border-radius: var(--ph-radius); margin-bottom: 12px; }
#ph-mobile-flow .ph-candidate-link h3 { margin-top: 9px; }
#ph-mobile-flow .ph-candidate-link small { line-height: 1.7; }
#ph-mobile-flow .ph-candidate-link[aria-pressed=true] { border-color: var(--ph-control); color: var(--ph-text); background: var(--ph-tint); }
#ph-mobile-flow .ph-feedback { line-height: 1.75; padding: 14px 16px; }
#ph-mobile-flow .ph-review-actions { gap: 10px; }
#ph-mobile-flow .ph-review-actions .ph-primary { min-height: 44px; }
#ph-mobile-flow summary { min-height: 44px; display: list-item; }
#ph-mobile-flow .ph-quote { border-left-width: 1px; padding-left: 16px; line-height: 1.8; }
#ph-mobile-flow .ph-error { border: 1px solid var(--ph-amber); border-radius: 8px; }
#ph-mobile-flow .ph-event { border-left-width: 1px; }
#ph-mobile-flow .ph-table { font-variant-numeric: tabular-nums; }
#ph-mobile-flow .ph-table th { padding: 10px 12px; }
#ph-mobile-flow .ph-table td { padding: 17px 12px; }
#ph-mobile-flow .ph-task-open { font-weight: 400; }
#ph-mobile-flow .ph-task-open>span { line-height: 1.7; }
#ph-mobile-flow .ph-task-name { gap: 12px; }
#ph-mobile-flow .ph-task-facts>div { padding: 16px 0; }
#ph-mobile-flow .ph-task-description { line-height: 1.85; max-width: 70ch; }
#ph-mobile-flow .ph-setting { gap: 16px; padding: 20px 0; }
#ph-mobile-flow .ph-setting small { margin-top: 4px; }
#ph-mobile-flow .ph-palette button { min-height: 36px; }
#ph-mobile-flow .ph-source-link { text-underline-offset: 4px; text-decoration-thickness: 1px; }
#ph-mobile-flow .ph-chat { padding: 0; border: 0; border-radius: 16px; box-shadow: 0 12px 44px light-dark(#00000026, #0009); }
#ph-mobile-flow[data-palette=mono] .ph-chat { box-shadow: 0 12px 44px light-dark(#00000026, #0009); }
#ph-mobile-flow .ph-chat-top { padding: 18px 20px; gap: 12px; }
#ph-mobile-flow .ph-chat-top>[data-action=close-ai] { width: 40px; height: 40px; padding: 0; }
#ph-mobile-flow #ph-assistant-name { font-size: 16px; }
#ph-mobile-flow .ph-chat-content { padding: 20px; }
#ph-mobile-flow #ph-chat-context { display: block; margin-top: 12px; }
#ph-mobile-flow .ph-chat-message { padding: 16px; border-radius: var(--ph-radius); margin: 20px 0; }
#ph-mobile-flow .ph-chat-message p { line-height: 1.8; font-weight: 400; }
#ph-mobile-flow .ph-chat .ph-toolbar { margin-bottom: 8px; }
#ph-mobile-flow .ph-reference-tools { gap: 8px; margin: 16px 0 10px; }
#ph-mobile-flow .ph-reference-tools button,
#ph-mobile-flow .ph-upload-control { min-height: 44px; padding: 9px 12px; font-size: 13px; font-weight: 500; }
#ph-mobile-flow .ph-upload-control:hover { background: var(--ph-tint); }
#ph-mobile-flow .ph-upload-note { margin: 0 0 14px; line-height: 1.7; }
#ph-mobile-flow #ph-chat-form { align-items: flex-start; gap: 8px; }
#ph-mobile-flow #ph-chat-form input { min-height: 46px; }
#ph-mobile-flow #ph-chat-form button { flex: 0 0 46px; height: 46px; padding: 0; }
#ph-mobile-flow .ph-chat-content>small:last-child { display: block; margin-top: 10px; }
#ph-mobile-flow #ph-file-picker { padding: 16px; border-radius: var(--ph-radius); }
#ph-mobile-flow .ph-reference-option { min-height: 60px; gap: 12px; }
#ph-mobile-flow .ph-reference-chip { padding-left: 12px; }
#ph-mobile-flow .ph-reference-chip small { font-size: 12px; }
@media(min-width:541px) { #ph-mobile-flow .ph-chat { width: 400px; max-width: calc(100% - 44px); } }
@media(max-width:1000px) and (min-width:751px) {
  #ph-mobile-flow .ph-review-layout { grid-template-columns: minmax(175px,.85fr) minmax(0,1.5fr); }
}
@media(max-width:820px) and (min-width:541px) {
  #ph-mobile-flow .ph-shell { grid-template-columns: 160px minmax(0,1fr); }
  #ph-mobile-flow .ph-sidebar { padding: 24px 8px; }
  #ph-mobile-flow .ph-brand { font-size: 17px; gap: 8px; }
  #ph-mobile-flow .ph-main { padding: 26px 20px 90px; }
  #ph-mobile-flow .ph-topbar { padding: 14px 20px; }
  #ph-mobile-flow .ph-panel { padding: 20px; }
}
@media(max-width:540px) {
  #ph-mobile-flow .ph-shell { display: block; }
  #ph-mobile-flow .ph-sidebar { padding: 16px; gap: 14px; }
  #ph-mobile-flow .ph-brand { font-size: 18px; padding: 0; }
  #ph-mobile-flow .ph-topbar { min-height: 48px; padding: 12px 18px; gap: 6px 12px; }
  #ph-mobile-flow .ph-main { padding: 26px 18px 90px; }
  #ph-mobile-flow h1 { font-size: 25px; }
  #ph-mobile-flow .ph-heading { margin-bottom: 24px; }
  #ph-mobile-flow .ph-panel { padding: 18px; }
  #ph-mobile-flow .ph-panel-head { margin-bottom: 16px; }
  #ph-mobile-flow button { min-height: 44px; }
  #ph-mobile-flow .ph-field input, #ph-mobile-flow .ph-field textarea { font-size: 16px; }
  #ph-mobile-flow .ph-candidate-link { margin: 0; padding: 18px; }
  #ph-mobile-flow .ph-accordion { gap: 14px; }
  #ph-mobile-flow .ph-accordion-item:has(article)>.ph-candidate-link { border-radius: 12px 12px 0 0; }
  #ph-mobile-flow .ph-accordion-item>article { border-radius: 0 0 12px 12px; }
  #ph-mobile-flow .ph-review-actions button { min-height: 48px; }
  #ph-mobile-flow .ph-table td { padding: 6px 0; }
  #ph-mobile-flow .ph-table tr { padding: 16px 0; }
  #ph-mobile-flow .ph-setting { padding: 18px 0; }
  #ph-mobile-flow .ph-palette button { min-height: 44px; }
  #ph-mobile-flow[data-chat=open] .ph-chat { padding: 0; min-height: 100dvh; border-radius: 16px; box-shadow: none; }
  #ph-mobile-flow .ph-chat-top { padding: 16px 18px; }
  #ph-mobile-flow .ph-chat-content { padding: 18px 18px calc(20px + env(safe-area-inset-bottom,0px)); }
  #ph-mobile-flow .ph-chat-thread-space { min-height: 180px; }
}
