/* Planner page */
.planner { padding-block: 48px 96px; }
.planner .wrap { max-width: 820px; }
.planner h1 { font-size: clamp(36px, 5.4vw, 54px); margin-bottom: 16px; }
.planner .standfirst { font-size: 21px; line-height: 1.55; color: var(--muted); margin-bottom: 22px; }
.planner .callout { background: var(--brass-soft); border-left: 3px solid var(--brass); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 20px; }
.privacy-note { font-size: 15px; color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-top: 32px; box-shadow: var(--shadow-md); }
.panel h2 { font-size: 30px; margin: 0 0 18px; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-deep); border-radius: var(--radius-sm); margin-bottom: 22px; }
.tabs button {
  font: 600 15px var(--body);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--muted);
  padding: 10px 18px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }

.hint { color: var(--muted); font-size: 15px; margin: 0 0 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.add-form[hidden], .field-row[hidden], .field[hidden] { display: none; }
.field-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
#w-address { font-family: var(--mono); font-size: 15px; }
.connect { display: grid; gap: 12px; padding: 20px; background: var(--bg); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.connect .button { justify-self: start; padding: 12px 20px; }
.connect .field-note { margin: 0; }
.upsell { display: grid; gap: 20px; border-top: 4px solid var(--brass); }
.upsell h2 { margin: 0 0 8px; }
.upsell p { margin: 0; }
.upsell-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.upsell-link { font-weight: 600; }
.find-address { font-size: 15px; }
.find-address summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.find-address ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.connect-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.connect-choices[hidden], .connect-status[hidden] { display: none; }
.connect-choices button, .connect-choices a {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px var(--body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 9px 14px; cursor: pointer; text-decoration: none;
}
.connect-choices button:hover, .connect-choices a:hover { border-color: var(--accent); }
.connect-choices img { width: 20px; height: 20px; }
.connect-choices .mono { font-family: var(--mono); font-weight: 500; }
.connect-status { margin: 0; font-size: 15px; }
.form-error { background: var(--bad-soft); color: var(--bad); border-radius: var(--radius); padding: 10px 14px; margin: 0; font-size: 15px; }
.add-form .button { justify-self: start; }
.button:disabled { opacity: 0.6; cursor: wait; }

.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.plan-meta { color: var(--muted); font-size: 14px; margin: -8px 0 0; }
.plan-total { text-align: right; }
.plan-total span { display: block; font: 650 12px/1.4 var(--body); color: var(--muted); }
.plan-total strong { font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1.1; }

.people { grid-template-columns: 1fr 1fr; margin: 18px 0 8px; }

.empty { color: var(--muted); padding: 18px 0; margin: 0; }
.holdings { list-style: none; padding: 0; margin: 12px 0 0; }
.holding { border-top: 1px solid var(--line); padding: 18px 0; }
.holding-main { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.holding-kind { font: 650 12px/1.4 var(--body); color: var(--brass); }
.holding-name { font-family: var(--display); font-size: 24px; font-weight: 400; margin: 2px 0 0; }
.holding-value { font-weight: 600; white-space: nowrap; }
.holding-amounts { list-style: none; padding: 0; margin: 6px 0 0; font-size: 15px; }
.holding-notes { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: 15px; }
.holding-notes dt { color: var(--muted); }
.holding-notes dd { margin: 0; overflow-wrap: anywhere; }
.holding-notes .mono { font-family: var(--mono); font-size: 13px; }
.holding-actions { display: flex; gap: 18px; margin-top: 10px; }
.link-button { background: none; border: 0; padding: 0; font: 600 14px var(--body); color: var(--accent); cursor: pointer; }
.link-button.danger { color: var(--bad); }

.price-note { max-width: none; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 18px; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.print-only { display: none; }

@media (max-width: 600px) {
  .panel { padding: 22px 16px; border-radius: var(--radius); }
  .tabs { display: flex; }
  .tabs button { flex: 1; padding: 10px 8px; }
  .field-row, .people { grid-template-columns: 1fr; }
  .plan-head { flex-direction: column; }
  .plan-total { text-align: left; }
  .holding-notes { grid-template-columns: 1fr; gap: 0; }
  .holding-notes dd { margin-bottom: 6px; }
}

@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .no-print, .site-header { display: none !important; }
  .print-only { display: block; }
  .planner { padding: 0; }
  .panel { border: 0; padding: 0; margin: 0; }
  .people input[type="text"] { border: 0; padding: 0; background: none; font-weight: 600; }
  .people input:placeholder-shown { visibility: hidden; }
  .holding { break-inside: avoid; }
  .print-footer { border-top: 1px solid #999; margin-top: 18px; padding-top: 10px; font-size: 10pt; }
}

.connect-status.success { color: var(--good); }
.connect-status.error { color: var(--bad); }
.who-bar { background: var(--accent-soft); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 16px; font-size: 15px; }
.who-bar[hidden] { display: none; }
.who-bar a { font-weight: 600; }
