/* Public previews: modest, accessible styling compatible with member desk/tracker. */
.ecp-free-shell {
  --ecp-free-ink: #1C306B;
  --ecp-free-line: #d8dee7;
  --ecp-free-accent: #EE5E78;
  --ecp-free-on-accent: #111827;
  color: var(--ecp-free-ink);
  background: #fff;
  border: 1px solid var(--ecp-free-line);
  border-radius: 14px;
  padding: clamp(16px, 3vw, 34px);
  max-width: 1120px;
  margin: 16px auto;
  font-size: 16px;
  line-height: 1.55;
}
.ecp-free-shell h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.18; margin: 0 0 12px; }
.ecp-free-shell h3 { font-size: 1.3rem; line-height: 1.3; margin: 28px 0 12px; }
.ecp-free-shell h4 { font-size: 1.07rem; margin: 20px 0 8px; }
.ecp-free-shell a { color: #274d71; }
.ecp-free-kicker { display: block; text-transform: uppercase; letter-spacing: .09em; font-size: .76rem; font-weight: 750; margin-bottom: 10px; }
.ecp-free-heading { margin-bottom: 22px; }
.ecp-free-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 18px; margin: 25px 0; }
.ecp-free-choice, .ecp-free-habit-card, .ecp-free-template, .ecp-free-priority, .ecp-free-priority-label {
  border: 1px solid var(--ecp-free-line); border-radius: 10px; background: #fff; padding: 16px;
}
.ecp-free-choice h3 { margin-top: 0; }
.ecp-free-choice { display: flex; flex-direction: column; align-items: flex-start; }
.ecp-free-choice p { flex: 1; }
.ecp-free-btn, .ecp-free-btn-secondary {
  display: inline-flex; justify-content: center; align-items: center; min-height: 43px; padding: 10px 17px;
  border: 1px solid var(--ecp-free-accent); border-radius: 7px; font-weight: 700;
  font-size: .96rem; cursor: pointer; text-align: center; line-height: 1.25;
}
.ecp-free-shell .ecp-free-btn { background: var(--ecp-free-accent); color: var(--ecp-free-on-accent); text-decoration: none; }
.ecp-free-btn-secondary { background: #fff; color: var(--ecp-free-accent); }
.ecp-free-shell :is(a,button,input,select):focus-visible { outline: 3px solid #ffb36b; outline-offset: 2px; }
.ecp-free-shell button[disabled] { opacity: .55; cursor: not-allowed; }
.ecp-free-footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 19px; margin-top: 26px; border-top: 1px solid var(--ecp-free-line); font-size: .91rem; }
.ecp-free-pending, .ecp-free-disclosure, .ecp-free-reopen { color: #49586b; font-size: .88rem; }
.ecp-free-disclosure { background: #f4f7fa; padding: 11px 15px; border-left: 3px solid #8da6bd; border-radius: 5px; }
.ecp-free-message:not([hidden]), .ecp-free-status:not(:empty) { background: #f4f7fa; border-radius: 7px; padding: 11px 14px; margin: 16px 0; }
.ecp-free-error { border-left: 3px solid #b93738; }
.ecp-free-desk-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.ecp-free-desk-buttons button[aria-pressed="true"], .ecp-free-priority[aria-pressed="true"] { border-color: #274d71; background: #edf4f9; box-shadow: 0 0 0 1px #274d71; }
.ecp-free-priority-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; margin: 13px 0 23px; }
.ecp-free-priority { width: 100%; text-align: left; cursor: pointer; color: inherit; border-left: 4px solid var(--ecp-free-accent); }
.ecp-free-priority span, .ecp-free-priority-label small { display: block; color: #536477; font-size: .88rem; margin-top: 7px; }
.ecp-free-priority-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.ecp-free-priority-label input { margin-top: .3em; width: 18px; height: 18px; }
.ecp-free-fieldset { border: 1px solid var(--ecp-free-line); border-radius: 9px; margin: 15px 0; padding: 14px; min-width: 0; }
.ecp-free-fieldset legend { font-weight: 750; padding: 0 6px; }
.ecp-free-radio { display: block; margin: 11px 0; cursor: pointer; }
.ecp-free-radio span { margin-left: 7px; }
.ecp-free-action-result { max-width: 830px; }
.ecp-free-tracker .ecp-free-section h3 { margin: 24px 0 12px; }
.ecp-free-result-why { font-size: 1.045rem; }
.ecp-free-action-steps { padding-left: 26px; }
.ecp-free-action-steps li { margin-bottom: 11px; }
.ecp-free-member-section { border-top: 1px solid var(--ecp-free-line); margin-top: 30px; padding-top: 10px; }
.ecp-free-lock-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 10px; }
.ecp-free-lock-grid button, .ecp-free-habit-card button, .ecp-free-template button {
  background: #f6f8fa; color: #294a6a; border: 1px solid #bbc8d7; border-radius: 6px; min-height: 38px;
  padding: 8px 12px; font-size: .9rem; cursor: pointer; text-align: left;
}
.ecp-free-locked-explanation { background: #f3f7fa; border-radius: 9px; padding: 13px 17px; margin-top: 15px; }
.ecp-free-locked-explanation .ecp-free-btn-secondary { margin: 8px 0; }
.ecp-free-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.ecp-free-tabs button { border: 1px solid var(--ecp-free-line); background: #fff; border-radius: 7px; padding: 9px 15px; cursor: pointer; color: #294a6a; }
.ecp-free-tabs button.is-active { background: #e9f1f7; border-color: #294a6a; font-weight: 750; }
.ecp-free-section { margin-top: 15px; }
.ecp-free-habit-cards, .ecp-free-template-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; margin: 14px 0 20px; }
.ecp-free-template strong, .ecp-free-template small { display: block; }
.ecp-free-template small { color: #536477; margin: 10px 0; }
.ecp-free-habit-form { border: 1px solid var(--ecp-free-line); border-radius: 10px; background: #fafbfd; padding: 16px; margin-top: 20px; }
.ecp-free-habit-form label { font-size: .96rem; }
.ecp-free-habit-form input[type="text"], .ecp-free-habit-form select { display: block; width: 100%; max-width: 600px; min-height: 42px; border: 1px solid #acbbcc; border-radius: 5px; padding: 8px; }
.ecp-free-habit-form fieldset { border: 0; padding: 0; margin: 15px 0; }
.ecp-free-habit-form legend { font-weight: 750; padding-bottom: 6px; }
.ecp-free-day-grid { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ecp-free-today-item { display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--ecp-free-line); padding: 13px 0; }
.ecp-free-today-item input { height: 19px; width: 19px; margin-top: 4px; }
.ecp-free-progress { height: 12px; border-radius: 8px; background: #e9edf2; overflow: hidden; margin: 15px 0; }
.ecp-free-progress span { display: block; height: 100%; background: #527d9e; transition: width .15s; }
.ecp-free-shell [hidden] { display: none !important; }
@media (max-width: 550px) {
  .ecp-free-shell { padding: 16px; }
  .ecp-free-priority-grid, .ecp-free-habit-cards, .ecp-free-template-grid { grid-template-columns: 1fr; }
  .ecp-free-tabs button { flex: 1; }
}
