@import url('./approved/loadplan1/home5s1/app/batch1/batch1.css');
@import url('./approved/loadplan1/upload1/upload.css');
@import url('./approved/loadplan1/diag1/diagnostic.css');
@import url('./approved/loadplan1/plan5s1/plan.css');
@import url('./approved/loadplan1/loaddiag1/tokens.css');
@import url('./approved/loadplan1/loaddiag1/loading.css');
@import url('./approved/loadplan1/loadplan1/tokens.css');
@import url('./approved/loadplan1/loadplan1/loading.css');

/* Host sizing and local candidate overrides; frozen delivery files remain intact. */
.phone[data-approved-view]{width:452px;max-width:100%;background:#fff0dc}
.phone[data-approved-view] #page{padding:0!important;height:calc(100% - 76px)!important;max-height:none!important;overflow-y:auto;overflow-x:hidden}
.phone[data-approved-view] #masthead{height:42px;padding:0!important}
.phone[data-approved-view] #stickyAction{display:none!important}
.phone[data-approved-view="home"] #masthead,.phone[data-approved-view="housing"] #masthead{display:none}
.phone[data-approved-view="home"] #page,.phone[data-approved-view="housing"] #page{height:calc(100% - 34px)!important}
.phone[data-approved-view] #cp02-app{--b1-serif:'Kaiti SC','STKaiti','KaiTi','Songti SC','SimSun',serif;--b1-sans:'PingFang SC','Microsoft YaHei',sans-serif;box-shadow:none}
.phone[data-approved-view] .cp02-hero>svg{display:block;width:100%;height:auto;overflow:visible}
.phone[data-approved-view] .visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.phone[data-approved-view] #cp02-app .cw-tag,.phone[data-approved-view] #cp02-app .cw-region-mask{transition:opacity .25s ease}
.phone[data-approved-view] .approved-top{display:flex;align-items:center;justify-content:space-between;width:100%;padding:3px 8px;font:13px/1.4 system-ui}
.approved-top button{background:none;border:0;color:#8f2315;min-height:36px;padding:5px}
.approved-top span{color:#674229}
#modalRoot.approved-modal{position:static;inset:auto;display:block;padding:0;background:none;z-index:1200}
#modalRoot.approved-modal:empty{display:none}
.approved-modal .u1-upload .approved-local-review{width:100%;min-height:42px;padding:8px;border:1px solid #c7955b;border-radius:10px;background:#fff9ee;font-size:14px;color:#8a2417}
#approvedNav{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:16px}
#approvedNav button{min-height:42px;background:#fff3e1;border:1px solid #d9ad78;border-radius:9px;padding:8px;font-size:13px;color:#692d1f}
#approvedNav button[aria-current]{background:#a91913;color:#fff5e3}
#approvedNav a{grid-column:1/-1;font-size:12px;text-decoration:underline;color:#773a24;padding:4px}
@media(max-width:800px){
  .phone[data-approved-view]{width:100%;max-width:430px;margin:auto}
  .phone[data-approved-view] #page{height:calc(100% - 42px)!important}
  .phone[data-approved-view="home"] #page,.phone[data-approved-view="housing"] #page{height:100%!important}
}
@media(prefers-reduced-motion:reduce){.phone[data-approved-view] *{scroll-behavior:auto!important;transition:none!important}}

/* User acceptance fixes apply to this local candidate entry only. */
#cp02-app[data-local-preview] .cc-message-track{animation:cc-message-top-to-bottom 8.6s linear infinite;transform-box:view-box;transform-origin:0 0;will-change:transform}
@keyframes cc-message-top-to-bottom{from{transform:translateY(0)}to{transform:translateY(var(--cc-message-distance))}}
#cp02-app[data-local-preview] .b1-review-avatar{top:12px;border:0}
#cp02-app[data-local-preview] .b1-review-card header{min-height:94px}
/* Exclude the baked red/gold sign and lower cloud remnant from the plum tile. */
#cp02-app[data-local-preview] .b1-review-left-plum{clip-path:polygon(0 0,100% 0,100% 52%,61% 52%,61% 81%,31% 81%,31% 91%,0 91%)}
.approved-modal [data-preview-file-pick]{cursor:pointer;touch-action:manipulation}
.approved-modal [data-preview-file-pick]:focus-visible{outline:3px solid #a6500d;outline-offset:3px}
.approved-modal [data-preview-file-pick][aria-disabled="true"]{cursor:not-allowed}
/* Confirmed original: remove the one complete duplicate inner frame layer. */
.approved-modal .u1-upload .u1-dialog::after{content:none}
/* Local image and rendered-PDF previews follow their intrinsic ratio. */
.approved-modal .u1-upload .u1-demo-figure .u1-source-picture{display:block;aspect-ratio:auto;width:100%;height:auto;min-height:0;padding:6px 0;overflow:visible}
.approved-modal .u1-upload .u1-demo-figure .u1-plan{display:block;width:auto;height:auto;max-width:100%;max-height:min(45vh,420px);max-height:min(45dvh,420px);margin:0 auto;object-fit:contain}
@media(max-width:360px){#cp02-app[data-local-preview] .b1-review-card header{min-height:75px}}
@media(prefers-reduced-motion:reduce){#cp02-app[data-local-preview] .cc-message-track{animation:none!important;will-change:auto}}

/* User-requested persistent homepage CTA; original button art and copy. */
.phone[data-approved-view="home"] #stickyAction { display:block!important; position:absolute; left:0; right:0; bottom:0; z-index:50; padding:0; border:0; box-shadow:none; background:transparent; pointer-events:none; }
.phone[data-approved-view="home"] #stickyAction .cc-floating-home-cta { display:block; width:100%; height:auto; overflow:visible; }
.phone[data-approved-view="home"] #stickyAction a { pointer-events:auto; cursor:pointer; }
.phone[data-approved-view="home"] .cp02-hero a[data-cw-act="open-upload"] { visibility:hidden; }
.phone[data-approved-view="home"] #page { padding-bottom:130px!important; }

/* Match the browser viewport when the desktop phone shell is taller. */
.phone[data-approved-view="home"] #stickyAction { position:fixed; right:auto; }
