/* Weekly PRD: editable drafts remain separate from the confirmed cards. */
.weekly-planner .planner-directions{grid-template-columns:minmax(0,1fr)}
.weekly-intro,.weekly-status,.weekly-limit,.weekly-optional{font-size:13px;line-height:1.6;color:#657a98;overflow-wrap:anywhere}
.weekly-status{padding:10px 12px;border-radius:10px;background:#edf4ff;color:#456995}
.weekly-planner .planner-section-head h2{font-size:21px;line-height:1.45;overflow-wrap:anywhere}
.weekly-planner .plan-card,.weekly-history-fields .plan-card{display:grid;grid-template-columns:36px minmax(0,1fr);padding:0;border:1px solid #dce6f3;border-radius:13px;background:#fff;overflow:hidden}
.weekly-planner .plan-card-head,.weekly-history-fields .plan-card-head{display:flex;align-items:flex-start;gap:8px}
.weekly-card-actions{display:flex;align-items:center;flex:none;gap:3px}
.weekly-title-field,.weekly-result-field{display:block;min-width:0;flex:1}
.weekly-title-field>span{display:block;margin:3px 0 7px;font-size:12px;font-weight:600;color:#657a98}
.weekly-planner .plan-title,.weekly-history-fields .plan-title{display:block;width:100%;min-height:44px;max-height:240px;padding:9px 8px;border:1px solid #dce6f3;border-radius:8px;background:#fff;resize:none;font-size:16px;line-height:1.5;font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere}
.weekly-read-card h3{min-width:0;flex:1;margin:7px 0 12px;font-size:17px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.weekly-results h4{margin:18px 0 8px;font-size:14px;font-weight:650;line-height:1.5}
.weekly-results h4 small{display:block;margin-top:4px;font-size:12px;font-weight:450;color:#7689a3}
.weekly-planner .weekly-results .result-row,.weekly-history-fields .result-row{display:grid;grid-template-columns:16px minmax(0,1fr) 44px;align-items:start;gap:4px 6px;min-width:0;padding:10px 0;border-top:1px solid #edf1f6}
.weekly-planner .weekly-results .result-text,.weekly-history-fields .result-text{display:block;width:100%;min-height:44px;max-height:240px;padding:9px 8px;border:1px solid #dce6f3;border-radius:8px;background:#fff;resize:none;font-size:16px!important;line-height:1.5;font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere}
/* Reset legacy inline-flex/open pills as well as their width. Keep both editors identical. */
.weekly-planner .weekly-results .target-option,.weekly-history-fields .target-option{display:block;grid-column:2/-1;justify-self:start;width:min(100%,280px);max-width:100%;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent}
.weekly-planner .weekly-results .target-option summary,.weekly-history-fields .target-option summary{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;min-height:44px;margin:0;padding:4px 0;border:0;border-radius:0;background:transparent;font-size:13px;line-height:1.5;color:#536d93;cursor:pointer;list-style:none}
.weekly-planner .weekly-results .target-option summary::-webkit-details-marker,.weekly-history-fields .target-option summary::-webkit-details-marker{display:none}
.weekly-results .target-option summary::after{content:'⌄';font-size:16px;line-height:1}
.weekly-results .target-option[open] summary::after{transform:rotate(180deg)}
.weekly-results .target-option summary>span{font-size:12px;color:#7689a3;font-weight:400}
.weekly-planner .weekly-results .target-option input,.weekly-history-fields .target-option input{display:block;box-sizing:border-box;width:100%!important;max-width:100%;min-width:0;height:44px;min-height:44px;margin:0;padding:8px 10px;background:#fff;border:1px solid #dce6f3;border-radius:8px;color:#203961;font-size:16px!important;font-weight:400;text-align:left}
.weekly-editing .icon-button{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;margin:0;padding:0}
.weekly-editing .weekly-card-actions{padding-top:28px}
.weekly-editing :is(textarea,input,summary):focus-visible{outline:2px solid #2f6cdf!important;outline-offset:2px}
.weekly-planner .planner-add-result,.weekly-history-fields .planner-add-result{font-size:13px;min-height:40px;padding:8px 12px}
.weekly-saved-results{display:grid;gap:10px;margin:0;padding:8px 0 8px 18px;min-width:0}
.weekly-saved-results li{padding-left:2px;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.weekly-saved-results li>span{white-space:pre-wrap}
.weekly-saved-results b{display:block;margin-top:4px;color:#456995;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.weekly-add-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:16px}
.weekly-footer-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.weekly-planner .planner-footer{align-items:flex-start;flex-direction:column;gap:13px;padding-top:16px;border-top:1px solid #dce6f3}
.weekly-planner .planner-footer>span{display:block;font-size:12px;line-height:1.6}
.weekly-planner .button,.weekly-history-fields~.weekly-add-row .button{font-size:13px;min-height:44px}
.weekly-reference{margin-top:30px;padding-top:15px;border-top:1px solid #dce6f3}
.weekly-reference>summary{cursor:pointer;font-size:14px;line-height:1.6;font-weight:600;color:#657a98;margin-bottom:14px}
.weekly-reference .week-strip{border:1px solid #dce6f3;border-radius:12px}
.weekly-reference .planner-project-line{grid-template-columns:minmax(0,1fr);margin-bottom:10px}
.weekly-reference .planner-project-line>span{font-size:12px}
.weekly-reference .planner-project-line>div{overflow:visible;flex-wrap:wrap;min-width:0}
.weekly-reference .planner-project-line button{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:12px}
.weekly-history-fields section{gap:0}
.weekly-history-fields .plan-card-body{padding:12px;min-width:0}
.weekly-history-fields .weekly-results{padding:0;background:transparent}
.weekly-history-fields textarea{width:100%;min-width:0}
.weekly-history-fields .plan-card-head textarea{font-size:16px}
.weekly-import-list{display:grid;gap:10px;margin:18px 0}
.weekly-import-list>label{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid #dce6f3;border-radius:12px;background:#f7faff}
.weekly-import-list input{flex:none;width:20px;height:20px;margin:3px 0}
.weekly-import-list span{min-width:0}
.weekly-import-list strong,.weekly-import-list small{display:block;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.6}
.weekly-import-list small{font-size:13px;margin-top:6px;color:#657a98}
.weekly-import-status{font-size:14px;line-height:1.65;color:#456995}
.weekly-planner button:disabled,.weekly-history-fields button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:440px){.weekly-planner .planner-mast{gap:10px}.weekly-planner .planner-mast h1{font-size:28px}.weekly-planner .planner-mast .head-action{white-space:normal;max-width:130px;font-size:12px;line-height:1.5;padding:8px 10px}.weekly-planner .plan-card,.weekly-history-fields .plan-card{grid-template-columns:26px minmax(0,1fr)}.weekly-planner .plan-card-body,.weekly-history-fields .plan-card-body{padding:10px}.weekly-read-card .plan-card-head{flex-wrap:wrap}.weekly-read-card h3{flex-basis:calc(100% - 80px)}.weekly-planner .planner-footer>span{display:block}.weekly-footer-actions{width:100%}.weekly-footer-actions .primary{flex:1}.weekly-title-field{flex-basis:calc(100% - 40px)}.weekly-card-actions .head-action{font-size:12px;padding:0 8px}.weekly-planner .planner-section-head h2{font-size:20px}}
