/* Taylor Wealth Planner — namespaced styles. */
.twdp-app { max-width: 1060px; margin: 0 auto; font-family: inherit; }
.twdp-app [hidden] { display: none !important; }
.twdp-banner { background: #fff3cd; border: 1px solid #e0c36a; color: #664d03; padding: 8px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; }
.twdp-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.twdp-plan-name { font-size: 20px; font-weight: 700; color: #17452f; }
.twdp-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.twdp-saved { font-size: 13px; color: #5a6b5f; }
.twdp-btn { background: #17452f; color: #fff; border: 0; border-radius: 6px; padding: 9px 16px; font-size: 14px; cursor: pointer; }
.twdp-btn:hover { background: #1f5a3d; }
.twdp-btn-ghost { background: #eef3f0; color: #17452f; border: 1px solid #17452f; }
.twdp-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid #17452f; margin-bottom: 16px; }
.twdp-tab { background: #eef3f0; border: 1px solid #c9d4cc; border-bottom: 0; border-radius: 8px 8px 0 0; padding: 10px 16px; font-size: 15px; cursor: pointer; color: #17452f; }
.twdp-tab.is-active { background: #17452f; color: #fff; font-weight: 700; }
.twdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 720px) { .twdp-grid { grid-template-columns: 1fr; } }
.twdp-card { background: #fff; border: 1px solid #d8e0da; border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.twdp-card h3 { margin: 0 0 10px; color: #17452f; font-size: 17px; }
.twdp-field { display: block; margin-bottom: 10px; }
.twdp-field span { display: block; font-size: 13px; color: #44544a; margin-bottom: 3px; }
.twdp-field input { width: 100%; max-width: 340px; padding: 8px 10px; border: 1px solid #b9c6bc; border-radius: 6px; font-size: 15px; }
.twdp-field.twdp-check input { width: auto; }
.twdp-note { font-size: 13px; color: #5a6b5f; }
.twdp-report-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.twdp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.twdp-sum { background: #eef3f0; border: 1px solid #c9d4cc; border-radius: 10px; padding: 12px 14px; }
.twdp-sum span { display: block; font-size: 12.5px; color: #44544a; }
.twdp-sum strong { font-size: 19px; color: #17452f; }
.twdp-app canvas#twdp-chart { width: 100%; height: auto; background: #fff; border: 1px solid #d8e0da; border-radius: 10px; margin-bottom: 16px; }
.twdp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.twdp-table th, .twdp-table td { border: 1px solid #d8e0da; padding: 6px 8px; text-align: right; }
.twdp-table th { background: #17452f; color: #fff; }
.twdp-table td:first-child, .twdp-table th:first-child { text-align: left; }
.twdp-table tr.twdp-short td { background: #fdecec; }
.twdp-rep-h { color: #17452f; font-size: 17px; margin: 18px 0 8px; }
.twdp-app canvas#twdp-cf-chart, .twdp-app canvas#twdp-tax-chart { width: 100%; height: auto; background: #fff; border: 1px solid #d8e0da; border-radius: 10px; }
.twdp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: #44544a; margin: 8px 0 4px; }
.twdp-leg { display: inline-flex; align-items: center; gap: 5px; }
.twdp-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
button.twdp-leg { background: none; border: 1px solid transparent; border-radius: 6px; padding: 3px 7px; font: inherit; color: inherit; cursor: pointer; }
button.twdp-leg:hover { border-color: #b9c6bc; }
button.twdp-leg.is-active { border-color: #17452f; background: #eef3f0; font-weight: 700; }
.twdp-leg-note { font-size: 12.5px; color: #5a6b5f; align-self: center; }
.twdp-ev-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.twdp-ev-row input[type="text"], .twdp-ev-row input:not([type]) { padding: 7px 9px; border: 1px solid #b9c6bc; border-radius: 6px; font-size: 14px; }
.twdp-ev-row input[data-evf="label"] { flex: 1 1 180px; }
.twdp-ev-row input[data-evf="year"] { width: 84px; }
.twdp-ev-row input[data-evf="amount"] { width: 120px; }
.twdp-ev-tax { font-size: 13.5px; color: #44544a; }
.twdp-disclaimer { font-size: 12px; color: #44544a; border-top: 1px solid #d8e0da; padding-top: 10px; margin-top: 18px; }
.twdp-footer { font-size: 12px; color: #5a6b5f; }
.twdp-app [hidden] { display: none !important; }
#twdp-view-err { color: #b3261e; min-height: 1em; }
#twdp-share-link { width: 100%; }
.twdp-viewapp .twdp-card { background: #fff; border: 1px solid #d8e0da; border-radius: 10px; padding: 16px; max-width: 520px; }

/* Phase A: comments, client version, revisions */
.twdp-comments{margin-top:20px;border-top:1px solid #d8e0d8;padding-top:10px}
.twdp-comments h4{margin:0 0 8px;font-size:1em;color:#17452f}
.twdp-comment{background:#f4f7f4;border:1px solid #dde6dd;border-radius:6px;padding:8px 12px;margin:0 0 8px}
.twdp-comment p{margin:2px 0}
.twdp-rev-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #e3eae3}
.twdp-rev-actions{margin-left:auto;display:inline-flex;gap:6px;flex-wrap:wrap}
#twdp-rev-view{margin-top:12px}
