/* Scoped, lightweight depth: no animation engine, video or extra image download. */
body.ph-identity .visual-welcome{background:radial-gradient(ellipse at 12% 15%,#29685c99,transparent 58%),radial-gradient(ellipse at 94% 100%,#b4914c35,transparent 52%),linear-gradient(125deg,#102d35,#163d43 58%,#132a3b)!important;border:1px solid #9fbdad65!important;box-shadow:inset 0 1px #ffffff26,0 14px 36px #173c3821!important}
body.ph-identity .ph-hero-copy>p,body.ph-identity .ph-hero-intro{color:#d3e5dd!important}
body.ph-identity .visual-welcome h1{color:#f4f6e9!important;text-shadow:0 3px 1px #071d2566,0 8px 24px #7bdbc124!important}
body.ph-identity .visual-welcome h1 span{color:#dfc88e!important}
body.ph-identity .ph-hero-sketch{color:#a4d8c3!important;opacity:.58!important}
body.ph-identity .ph-hero-path{border:1px solid #d6e6cf!important;box-shadow:inset 0 1px #fff,0 6px 0 #071d2533,0 14px 24px #071d2540!important;transition:transform .22s ease,box-shadow .22s ease!important}
body.ph-identity .ph-hero-design{background:linear-gradient(145deg,#fff5dd,#eed6aa)!important}
body.ph-identity .ph-hero-website{background:linear-gradient(145deg,#e8f8ee,#bedfd1)!important}
body.ph-identity .ph-hero-report{background:linear-gradient(145deg,#eaf2ff,#cad9ec)!important}
body.ph-identity .visual-categories button{--tile:#d8eee1;--ink:#215f4d;perspective:500px}
body.ph-identity .visual-categories button:nth-child(6n+2){--tile:#e4dcf4;--ink:#655095}
body.ph-identity .visual-categories button:nth-child(6n+3){--tile:#f1dfb8;--ink:#8a632d}
body.ph-identity .visual-categories button:nth-child(6n+4){--tile:#d2e6f4;--ink:#3b6b93}
body.ph-identity .visual-categories button:nth-child(6n+5){--tile:#f3d9d8;--ink:#91514f}
body.ph-identity .visual-categories button:nth-child(6n){--tile:#d4eceb;--ink:#337477}
body.ph-identity .visual-categories button .visual-icon,body.ph-identity .visual-categories button .ph-ui-icon{background:linear-gradient(145deg,#fff,var(--tile))!important;color:var(--ink)!important;border:1px solid var(--tile)!important;box-shadow:inset 0 1px #fff,0 4px 0 color-mix(in srgb,var(--ink) 18%,white),0 9px 18px #163b321a!important;transition:transform .22s ease,box-shadow .22s ease!important}
body.ph-identity .ph-office-draw-panel .ph-drawing-colours{grid-column:1/-1;width:100%;margin-top:18px;padding-top:16px;border-top:1px solid #d3dfd8;display:grid;gap:14px}
body.ph-identity .ph-drawing-colours h3{margin:0;font-size:14px}
body.ph-identity .ph-drawing-colours label{display:grid;gap:8px}
body.ph-identity .ph-drawing-colours .ph-colour-swatches{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:6px!important}
body.ph-identity .ph-drawing-colours .ph-colour-swatches button{min-width:0!important;width:100%!important;height:25px!important;min-height:25px!important;padding:0!important}
body.ph-identity .quick-tool-panel h3{font-size:14px;margin:24px 0 12px;color:#214c40}
body.ph-identity .quick-tool-panel button{min-height:44px;white-space:normal}
body.ph-identity .ph-catalog-delete{color:#964232!important;background:#fff3ee!important;border:1px solid #ddb9ab!important;grid-column:1/-1;font-size:12px}
body.ph-identity .ph-template-card[hidden]{display:none!important}
.ph-catalog-dialog{max-width:600px;width:90vw;max-height:80vh;overflow:auto;padding:24px;border:1px solid #a3bca9;border-radius:18px}
.ph-catalog-dialog p{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px;border-bottom:1px solid #e3e9e2}
body.ph-identity .design-preview iframe{pointer-events:none}
@media(hover:hover) and (pointer:fine){body.ph-identity .ph-hero-path:hover{transform:perspective(650px) rotateY(-3deg) translateY(-5px)!important;box-shadow:inset 0 1px #fff,0 7px 0 #071d2526,0 20px 30px #071d254a!important}body.ph-identity .visual-categories button:hover .visual-icon,body.ph-identity .visual-categories button:hover .ph-ui-icon{transform:rotateX(7deg) rotateY(-7deg) translateY(-5px)!important;box-shadow:inset 0 1px #fff,0 5px 0 color-mix(in srgb,var(--ink) 20%,white),0 12px 22px color-mix(in srgb,var(--ink) 24%,transparent)!important}}
@media(prefers-reduced-motion:reduce){body.ph-identity .ph-hero-path,body.ph-identity .visual-categories button svg{transition:none!important;transform:none!important}}

/* Specific hero selectors defeat the older pale-theme heading overrides. */
body.ph-identity .visual-welcome{background:linear-gradient(90deg,#061d2c38,#061d2c08),url('assets/studio-hero-abstract.webp') center/cover no-repeat,#061d2c!important}
body.ph-identity .visual-welcome::before,body.ph-identity .visual-welcome .ph-hero-sketch{display:none!important}
body.ph-identity .visual-welcome .ph-hero-copy h1{color:#f6fbfa!important;-webkit-text-fill-color:#f6fbfa!important;background:none!important;text-shadow:0 2px 12px #0008!important}
body.ph-identity .visual-welcome .ph-hero-copy h1 span{color:#e8ce92!important;-webkit-text-fill-color:#e8ce92!important;background:none!important}
body.ph-identity .visual-welcome .ph-hero-copy>p:first-child,body.ph-identity .visual-welcome .ph-hero-intro{color:#dae9e7!important}
body.ph-identity[data-view=choose] .ph-home-quick-formats .visual-categories button[data-ph-format]{background:linear-gradient(145deg,#ffffffaa,transparent 75%),var(--ph-tile-tone)!important}
body.ph-identity[data-view=choose] .ph-home-quick-formats .visual-categories button[data-ph-format] svg{background:linear-gradient(145deg,#fff,var(--ph-tile-tone))!important;color:#35576b!important;border-color:var(--ph-tile-tone)!important}
body.ph-identity #design-results{grid-template-columns:minmax(0,1fr)!important;max-height:none!important;overflow:visible!important;gap:18px!important}
body.ph-identity #design-results .design-card{width:100%;min-width:0;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important;text-align:left!important;border:1px solid #d7e3dc!important;border-radius:13px!important;padding:10px!important;background:#fff!important}
body.ph-identity #design-results .design-preview{height:154px!important;width:100%!important;display:block!important;position:relative;border:1px solid #dbe6df;background:#eff5f1!important}
body.ph-identity #design-results .design-preview iframe{display:block;max-width:none!important;position:absolute;left:0;top:0;margin:0!important;pointer-events:none}
body.ph-identity #design-results .ph-clear-vector{display:grid!important;place-items:center!important}
body.ph-identity #design-results .ph-clear-vector>svg,body.ph-identity #design-results .ph-clear-vector .ph-icon{width:92px!important;height:92px!important;margin:0!important;color:#236d59!important}
body.ph-identity #design-results .ph-clear-vector svg{max-width:100%;max-height:120px}
body.ph-identity .ph-library-item-title{font-size:14px!important;font-weight:750;line-height:1.35;color:#173e32!important}
body.ph-identity .ph-library-item-description{font-size:12px;line-height:1.5;color:#51665b;white-space:normal}
body.ph-identity .ph-library-item-action{font-size:12px;color:#146c4e;font-weight:700}
body.ph-identity #panel-templates .shell-templates{grid-template-columns:minmax(0,1fr)!important}
body.ph-identity .quick-tool-panel h2,body.ph-identity .quick-tool-panel h3{grid-column:1/-1!important}
body.ph-identity #panel-tools.quick-tool-panel>button{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;height:auto!important;min-height:58px!important;padding:12px!important;overflow:visible!important;text-align:left!important;min-width:0!important}
body.ph-identity #panel-tools.quick-tool-panel>button>span{display:block!important;position:static!important;clip:auto!important;clip-path:none!important;width:auto!important;height:auto!important;overflow:visible!important;white-space:normal!important;visibility:visible!important;opacity:1!important;font-size:12px!important;line-height:1.4!important;flex:1;min-width:0}
body.ph-identity #panel-tools.quick-tool-panel>button>svg{position:static!important;flex:none!important;width:22px!important;height:22px!important;margin:0!important}
.ph-library-admin-entry{flex:none;white-space:nowrap;font-size:12px!important;min-height:40px!important;padding:8px 11px!important}
body.ph-identity[data-view=edit] .header .ph-library-admin-entry{display:flex!important;color:white!important;background:#ffffff20!important;border:1px solid #ffffff70!important}
.ph-managed-library-item{display:flex;flex-direction:column;gap:5px;min-width:0}.ph-managed-library-item>.ph-catalog-delete{width:100%;min-height:36px}
.ph-managed-library-item[hidden],.design-card[hidden],.ph-element-card[hidden],.shell-template[hidden]{display:none!important}
.ph-catalog-dialog{width:min(940px,94vw);max-width:940px;max-height:88dvh;overflow:auto}.ph-catalog-dialog header{display:flex;gap:12px;align-items:start;justify-content:space-between}.ph-catalog-dialog h2{margin:0}.ph-catalog-dialog header p{border:0;padding:0;font-size:13px}.ph-catalog-filters{display:grid;grid-template-columns:2fr 1fr;gap:12px;margin:18px 0}.ph-catalog-filters label{display:grid;gap:6px}.ph-catalog-filters input,.ph-catalog-filters select{width:100%;padding:10px;min-height:44px}.ph-catalog-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ph-catalog-items article{display:grid;gap:8px;padding:14px;border:1px solid #cddfd3;border-radius:12px}.ph-catalog-items small{color:#526a5d}.ph-catalog-items button{min-height:40px}
@media(max-width:760px){body.ph-identity .visual-welcome{background-image:linear-gradient(90deg,#061d2c38,#061d2c08),url('assets/studio-hero-abstract-mobile.webp')!important}body.ph-identity #panel-tools.quick-tool-panel{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}body.ph-identity .header .ph-library-admin-entry{font-size:10px!important;min-height:36px!important;padding:6px!important}.ph-catalog-filters,.ph-catalog-items{grid-template-columns:minmax(0,1fr)}}

/* Distinguish editor instructions from generated AI replies. */
.ph-assistant-guide>summary{font-size:21px;font-weight:700;cursor:pointer}.ph-assistant-intro{font-size:15px;line-height:1.55}.ph-assistant-section{border:1px solid #dce6df;border-radius:14px;padding:16px;margin:16px 0}.ph-assistant-section h3{margin:0 0 8px;font-size:16px}.ph-assistant-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ph-assistant-shortcuts button{min-height:44px;white-space:normal}.ph-assistant-section label{display:block;margin:12px 0 6px;font-weight:600}.ph-assistant-section select,.ph-assistant-section textarea{width:100%;max-width:100%;padding:10px;min-height:44px}.ph-assistant-availability{font-size:13px;line-height:1.5;background:#eef4ef;border-radius:8px;padding:10px}.ph-assistant-response{padding:16px;background:#f2f6f2;border:1px solid #dce6df;border-radius:14px}.ph-assistant-response[hidden]{display:none}.ph-assistant-result-label{font-size:12px;font-weight:700;color:#315e4a;line-height:1.5}#studio-answer{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}body.ph-identity footer .ph-library-admin-entry{color:#d7e9dd!important;background:transparent!important;border:1px solid #7ea58b66!important;min-height:36px!important;font-size:11px!important;padding:6px 10px!important}.ph-footer-bottom nav{flex-wrap:wrap}@media(max-width:420px){.ph-assistant-section,.ph-assistant-response{padding:12px}.ph-assistant-shortcuts{grid-template-columns:1fr}}

.ph-assistant-coming{display:inline-block;padding:5px 9px;border:1px solid #c7d9cb;border-radius:20px;font-size:11px;color:#426953;background:#edf4ef}.ph-assistant-shortcuts button{display:flex;align-items:center;gap:9px;text-align:left}.ph-assistant-shortcuts svg,.ph-assistant-steps svg{width:24px;height:24px;flex:none;color:#207c5a}.ph-assistant-steps{padding-left:24px;display:grid;gap:14px;white-space:normal}.ph-assistant-steps li{position:relative;padding-left:34px}.ph-assistant-steps li>svg{position:absolute;left:0;top:0}.ph-assistant-steps p{margin:5px 0 0;font-size:13px;line-height:1.55}.ph-assistant-response h3{margin:0 0 16px;font-size:17px}.ph-assistant-example{padding:13px;background:white;border:1px solid #dce6df;border-radius:10px;white-space:normal}.ph-assistant-example p{font-size:13px;line-height:1.55}.ph-assistant-example small{color:#52665a}#studio-help-dialog{box-sizing:border-box;border:1px solid #cbded0;border-radius:18px;padding:18px}#studio-help-close{min-height:40px;margin-bottom:12px}
