.plans-page{max-width:1280px;margin:auto;padding-bottom:100px}.plans-top{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:20px}.plans-top p{color:#50616c;line-height:1.7}.plans-top button{white-space:nowrap}.plans-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px}.plans-list{border:1px solid #d8e0e5;border-radius:12px;padding:16px;background:#f6f8fa;align-self:start}.plans-list h3{margin-top:0}#planList button{display:block;text-align:left;width:100%;margin-top:12px;white-space:normal;overflow-wrap:anywhere}#planList small{display:block;margin-top:6px;color:#52616b}#planList .selected{border-color:#287899;background:#e7f3f9}#planEditor{border:1px solid #d8e0e5;padding:22px;border-radius:12px;background:white}#planEditor label{display:block;font-weight:600;margin:12px 0 6px}#planEditor input,#planEditor textarea{box-sizing:border-box;width:100%;font-size:16px;line-height:1.7;padding:10px;border:1px solid #aebdc6;border-radius:6px}#planEditor textarea{resize:vertical;min-height:150px}.plan-section{margin:24px 0;padding-top:14px;border-top:1px solid #d8e0e5}.plan-actions{display:flex;gap:8px;flex-wrap:wrap}#planSave,#planNew{background:#176a88;color:white}#planStatus{padding:12px 0;min-height:24px;overflow-wrap:anywhere}.plans-page button{min-height:44px;cursor:pointer}.plans-page button:disabled{opacity:.6;cursor:wait}.plans-page .hidden{display:none!important}@media(max-width:760px){.plans-layout{grid-template-columns:minmax(0,1fr);gap:16px}.plans-top{align-items:stretch;flex-direction:column}.plans-list{max-height:260px;overflow:auto}#planEditor{padding:14px}.plan-actions button{flex:1 1 140px}.plans-page{padding:0 4px 120px}}
.plans-page #planEditor,.plans-page #planSections,.plans-page .plan-section{display:block;min-width:0;width:auto}.plans-page .plans-list{color:#193343;width:auto;min-width:0}.plans-page #planList button{color:#193343;background:#fff;border:1px solid #b7c8d2}.plans-page #planList button.selected{background:#e7f3f9;border-color:#287899}.plans-page .plans-list h3{color:#193343}.plans-page .plan-actions{display:flex;grid-column:auto;min-width:0}.plans-page .plan-actions button{white-space:normal;overflow-wrap:anywhere}.plans-page #planSections{margin-top:20px}.plans-page #planEditor>label{display:block}.plans-page #planEditor>input{display:block;width:100%}.plans-page .plans-layout>div{min-width:0}
.plans-page select,.plan-dialog select{box-sizing:border-box;max-width:100%;padding:10px;font-size:16px;border:1px solid #aebdc6;border-radius:6px}.plans-page #planFilter{width:100%;margin:8px 0}.plans-page #planState{display:block;width:100%;margin-bottom:16px}.plans-page .plan-members,.plan-dialog fieldset{display:block;margin:20px 0;border:1px solid #d8e0e5;border-radius:8px;padding:14px}.plans-page #planMembers,.plan-dialog #planTaskPeople{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}.plans-page #planMembers label,.plan-dialog #planTaskPeople label{display:flex;gap:8px;align-items:center;margin:0;padding:8px;background:#f6f8fa}.plans-page #planMembers input,.plan-dialog #planTaskPeople input{width:20px;min-width:20px;height:20px;margin:0}.plan-members small,#planTaskPeople small{display:block;color:#52616b;font-weight:400}.plan-author,#planLastEditor{font-size:13px;color:#52616b;line-height:1.7}.plan-dialog{box-sizing:border-box;width:min(920px,94vw);max-height:88vh;border:1px solid #b7c8d2;border-radius:12px;padding:20px;color:#193343;background:#fff;overflow:auto}.plan-dialog::backdrop{background:rgba(12,32,49,.4)}.plan-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.plan-dialog h2{font-size:20px;margin:0}.plan-dialog header button{min-width:44px}.plan-dialog button{min-height:44px;white-space:normal;padding:8px 14px;border:1px solid #b7c8d2;border-radius:7px;background:#f3f8fb;color:#193343;cursor:pointer}.plan-dialog button[type=submit]{background:#176a88;color:white}.plan-dialog form{display:block}.plan-dialog form>label{display:block;margin:14px 0}.plan-dialog input,.plan-dialog textarea{box-sizing:border-box;display:block;width:100%;font:inherit;padding:10px;border:1px solid #aebdc6;border-radius:6px;line-height:1.7}.plan-dialog textarea{resize:vertical}.plan-dialog pre,.plans-page pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.65}.plan-dialog p[role=alert]{color:#a12424}.plan-manager{width:min(540px,94vw);margin:0;position:fixed;left:auto;right:20px;top:80px;bottom:auto}.plan-manager [data-plan-id],#planHistoryVersions button{display:block;width:100%;text-align:left;margin:10px 0;overflow-wrap:anywhere}.plan-manager small,#planHistoryVersions small{display:block;color:#52616b;margin-top:4px}.plan-history-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px}.plan-diff-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.plan-diff-pair>div{background:#f6f8fa;padding:12px;min-width:0}.plan-change{border-top:1px solid #d8e0e5;margin-top:20px}.plan-task-item,.plan-delete-item{border:1px solid #d8e0e5;border-radius:8px;padding:14px;margin:12px 0}.plan-task-item span{display:block;margin:8px 0}#planRelated{display:block;margin-top:24px}#planRelated.hidden{display:none!important}#topPlanManager [data-plan-count],#mobilePlanManager [data-plan-count]{display:inline-block;border-radius:12px;min-width:18px;background:#176a88;color:#fff;padding:2px 5px;font-size:12px}#mobilePlanManager{font-size:12px;min-width:44px}.plan-dialog button:disabled{opacity:.55;cursor:wait}@media(max-width:760px){.plan-history-layout,.plan-diff-pair{grid-template-columns:minmax(0,1fr)}.plan-manager{right:3vw;top:70px}.plan-dialog{padding:16px}.plan-history-layout>#planHistoryVersions{max-height:180px;overflow:auto}.plans-page #planMembers,.plan-dialog #planTaskPeople{grid-template-columns:minmax(0,1fr)}#topPlanManager{padding:6px}.plans-page .plan-actions button{font-size:14px}}
.plan-dialog #planReviewContext{display:block}.plan-dialog #planReviewContext>p,.plan-dialog #planReviewContext>pre{display:block;margin:12px 0}.plan-dialog #planReviewContext>b{display:block;overflow-wrap:anywhere}

/* Guided writing; explicit layout overrides the host application's generic form rules. */
.plans-page [hidden]{display:none!important}.plans-page #planTeamFields,.plans-page #planPreview{display:block;min-width:0}.plans-page .plan-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:24px 0 12px}.plans-page .plan-steps button{padding:10px 6px;white-space:normal;background:#f3f7fa;color:#234254;border:1px solid #bacdd7;border-radius:8px}.plans-page .plan-steps [aria-current]{background:#176a88;color:white;border-color:#176a88}.plans-page .plan-guide-intro,.plans-page #planGuideProgress{display:block;color:#52616b;line-height:1.7}.plans-page .plan-question-help{color:#52616b;line-height:1.7;margin:4px 0 10px}.plans-page .plan-section>label,.plans-page .plan-extra label{font-size:18px}.plans-page .plan-heading-edit{font-size:13px;margin:0 0 10px}.plans-page summary{cursor:pointer;padding:10px 0;line-height:1.7}.plans-page .plan-extra>summary{font-weight:600}.plans-page .plan-extra small{font-weight:400;color:#52616b;margin-left:8px}.plans-page #planEditor textarea{min-height:130px}.plans-page #planEditor textarea::placeholder{color:#697983;opacity:1}.plans-page .plan-guide-nav{display:flex;justify-content:space-between;gap:12px;margin:24px 0}.plans-page #planNext{margin-left:auto;background:#176a88;color:white}.plans-page #planPreview article{border-bottom:1px solid #d8e0e5;padding:12px 0}.plans-page #planPreview h4{margin-bottom:8px}.plans-page #planTitle{font-weight:600}@media(max-width:760px){.plans-page .plan-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.plans-page .plan-steps button{font-size:14px}}

.plans-page .plan-attachments{display:block;background:#fff;border:1px solid #c7d6df;border-radius:12px;padding:20px;margin-top:24px;min-width:0}.plan-attachments p{line-height:1.7;color:#52616b}.plan-attachments input[type=file]{display:block;max-width:100%;margin:12px 0;font-size:16px}.plan-attachment-card{border-top:1px solid #d8e0e5;padding:16px 0;overflow-wrap:anywhere}.plan-attachment-card button{margin:4px 8px 4px 0}.plan-attachments #planUpload{background:#176a88;color:#fff}.plan-attachments #planUploadStatus{color:#193343}.plan-dialog #planAttachmentView{display:block;min-width:0}.plan-dialog #planAttachmentView img{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto}.plan-dialog #planAttachmentView object{display:block;width:100%;height:60vh}.plan-dialog #planAttachmentDownload{display:inline-block;padding:12px 0;color:#176a88}
.plans-page .plan-attachments button{border:1px solid #b7c8d2;border-radius:8px;background:#f3f8fb;color:#193343;padding:10px 14px;font-size:14px}.plans-page .plan-attachments #planUpload{background:#176a88;color:#fff}.plans-page .plan-attachments input::file-selector-button{border:1px solid #b7c8d2;border-radius:6px;background:#f3f8fb;padding:10px;color:#193343}
