.plan-location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.location-link {
  text-decoration: none;
  border-top: 4px solid #ffcc32;
}
.location-link:hover {
  border-color: #aaa;
}
.location-link h2 {
  margin: 8px 0;
}
.plan-actions,
.plan-indicators,
.plan-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.plan-meta {
  font-size: 12px;
  color: #626262;
  margin: 15px 0;
}
.plan-section,
.goal-card,
.history-entry {
  margin: 22px 0;
}
.goal-card h3 {
  font-size: 22px;
  margin: 0;
}
.goal-card h3 a {
  text-decoration: none;
}
.indicator {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f7f7f7;
  color: #555;
  font-size: 11px;
}
.indicator.attention {
  background: #fff1f1;
  color: #94272c;
  border-color: #e8bfc1;
}
.indicator.approved {
  background: #fff7dc;
  color: #5d4a10;
  border-color: #e8d59a;
}
.milestone-row {
  border-top: 1px solid #e7e7e7;
  padding: 18px 0;
  font-size: 12px;
}
.milestone-row h3 {
  font-size: 17px;
}
.milestone-row h4 {
  font-size: 15px;
  margin: 0 0 8px;
}
textarea {
  display: block;
  width: 100%;
  min-height: 80px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  color: #252525;
  resize: vertical;
  margin-bottom: 12px;
}
textarea:focus-visible {
  outline: 3px solid #aa2429;
  outline-offset: 3px;
}
.card form .button {
  margin-top: 12px;
}
.card form select,
.card form input {
  margin-bottom: 12px;
}
.card form input[type="checkbox"] {
  margin-bottom: 0;
}
.card form label {
  margin-top: 10px;
}
.history-note {
  border-top: 1px solid #ddd;
  padding: 18px 0;
}
.history-note p {
  white-space: normal;
  overflow-wrap: anywhere;
}
.history-entry h3 {
  font-size: 19px;
}
.history-entry h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 8px;
  color: #626262;
}
.history-entry p {
  line-height: 1.85;
}
.checkin-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin: 25px 0;
}
.review-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.review-filters > div {
  flex: 1;
  min-width: 160px;
}
.review-filters .button {
  margin-bottom: 0;
}
.results-chart {
  width: 100%;
  max-height: 220px;
}
.table-caption {
  text-align: left;
  padding: 18px 24px;
  font-weight: 700;
  white-space: normal;
}
.dashboard-goal {
  border-top: 1px solid #ddd;
  padding: 18px 0;
}
.dashboard-goal > a {
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}
.milestone-signals {
  font-size: 12px;
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.email-preview {
  max-width: 740px;
}
.email-preview h1 {
  font-size: 27px;
}
.email-preview h2 {
  font-size: 22px;
}
.email-preview h3 {
  font-size: 17px;
}
.email-preview section {
  border-top: 3px solid #ffcc32;
  padding: 18px 0;
}
.email-preview a {
  display: inline-flex;
  background: #ffcc32;
  padding: 14px 18px;
  border-radius: 8px;
  color: #252525;
  text-decoration: none;
}
.email-preview li {
  margin: 8px 0;
}
.plain-email {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.8 ui-monospace,
    monospace;
}
.plan-section .table-scroll td {
  white-space: normal;
  min-width: 125px;
}
.plan-section .table-scroll td:first-child {
  min-width: 150px;
}
.plan-section summary,
.card > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 650;
}
.print-button {
  min-width: 100px;
}
@media (max-width: 1000px) {
  .plan-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .plan-location-grid {
    grid-template-columns: 1fr;
  }
  .plan-actions {
    width: 100%;
  }
  .plan-actions > .button {
    flex: 1;
  }
  .plan-section,
  .goal-card,
  .history-entry {
    margin: 17px 0;
  }
  .plan-meta {
    font-size: 11px;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .checkin-actions {
    flex-direction: column-reverse;
  }
  .checkin-actions > .button {
    width: 100%;
    white-space: normal;
  }
  .review-filters > div {
    min-width: 135px;
  }
  .review-filters .button {
    flex: 1;
  }
  .email-preview h1 {
    font-size: 24px;
  }
  .email-preview h2 {
    font-size: 20px;
  }
  .history-entry h3 {
    font-size: 17px;
  }
  textarea {
    font-size: 16px;
  }
  .history-entry p {
    font-size: 13px;
  }
  .plan-location-grid .card {
    padding: 22px;
  }
  .goal-card h3 {
    font-size: 21px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .demo-banner,
  .app-footer,
  .review-filters,
  .print-button,
  .back-link,
  .skip-link {
    display: none !important;
  }
  .app-shell,
  .app-main {
    display: block;
  }
  .content {
    padding: 0;
    max-width: 100%;
  }
  .card {
    break-inside: avoid;
    box-shadow: none;
  }
  .table-scroll {
    overflow: visible;
  }
  table {
    white-space: normal;
  }
  .plan-section .table-scroll td {
    min-width: 0;
  }
  .history-entry {
    break-inside: avoid;
  }
  body {
    font-size: 11px;
    background: #fff;
  }
  .page-heading {
    margin: 0 0 15px;
  }
  details {
    display: block;
  }
}

.plan-tile { margin-block: 1rem; }
.plan-status { display:inline-flex; align-items:center; gap:.5rem; padding:.4rem .7rem; border-radius:2rem; font-weight:700; }
.plan-status::before { content:""; width:.65rem; height:.65rem; border-radius:50%; background:currentColor; }
.on-track { color:#205b38; background:#edf6ef; }
.update-needed { color:#624900; background:#fff2bf; }
.behind { color:#9d2222; background:#fff0ee; }
.complete { color:#454545; background:#eeeeee; }
.step-checklist { display:flex; gap:1rem; justify-content:space-between; border-top:1px solid #ddd; padding:.65rem 0; }
.step-checklist p { margin:.25rem 0; }
.step-checklist select { min-width:8rem; }
.conditional-help[hidden] { display:none; }
.next-step { border-left:3px solid #ffbc0d; padding-left:.75rem; }
@media(max-width:600px) { .step-checklist { flex-direction:column; gap:.25rem; } .plan-tile { padding:1rem; } }

.actions-badge { display:inline-flex; align-items:center; justify-content:center; min-width:1.5rem; height:1.5rem; border-radius:2rem; padding:0 .35rem; color:#fff; background:#a52222; font-size:.8rem; font-weight:700; margin-left:.3rem; }
.pending-step { background:#f3f3f3; border:1px solid #ddd; border-radius:12px; padding:1rem; margin:1rem 0; }
.approval-card { border-bottom:1px solid #ddd; padding:1rem 0; }
.approval-form textarea { margin-top:.35rem; }
.action-tabs { display:flex; gap:.65rem; margin:1rem 0; }
.action-list { display:grid; gap:.8rem; }
.action-card { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.25rem; }
.action-card h2 { font-size:1.05rem; margin:0 0 .4rem; }
.action-card p { margin:.3rem 0; }
.action-date { font-size:.85rem; }
.overdue-text { color:#a52222; }
[id^="step-suggestion-"], [id^="change-"], [id^="step-review-"], [id^="support-"], #goal-completion-review { scroll-margin-top:1.5rem; }
@media(max-width:600px) { .action-tabs { flex-wrap:wrap; } .action-tabs .button { flex:1; font-size:.8rem; padding:.6rem; } .action-card { align-items:flex-start; padding:1rem; } .action-card .button { padding:.65rem .8rem; flex-shrink:0; } }
