.shp-app,.shp-app *{box-sizing:border-box}.shp-app{--shp-primary:#1677ff;--shp-secondary:#19c37d;max-width:760px;margin:24px auto;overflow:hidden;border-radius:28px;background:#f4f8fc;color:#17233a;box-shadow:0 24px 70px rgba(22,64,110,.14);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.shp-hero{padding:34px 24px 80px;text-align:center;color:#fff;background:linear-gradient(135deg,var(--shp-primary),var(--shp-secondary))}.shp-logo{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 14px;border-radius:20px;background:#fff;color:var(--shp-primary);font-size:34px}.shp-hero h2{margin:0;color:#fff;font-size:34px}.shp-hero p{margin:8px 0 0}.shp-form{margin-top:-48px;padding:0 18px 28px}.shp-card{margin-bottom:16px;padding:20px;border:1px solid #e4ebf3;border-radius:22px;background:#fff;box-shadow:0 10px 28px rgba(30,71,117,.08)}.shp-card h3{margin:0 0 16px;font-size:18px}.shp-head{display:flex;align-items:center;justify-content:space-between}.shp-head h3{margin:0}.shp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.shp-card label{display:grid;gap:7px;font-weight:700;font-size:13px}.shp-card input,.shp-card select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #dbe5ef;border-radius:12px;background:#fff;color:#17233a;font:inherit}.shp-card>label{margin-top:14px}.shp-add{border:0;background:transparent;color:var(--shp-primary);font-weight:800;cursor:pointer}.shp-row{display:grid;grid-template-columns:2fr 1.2fr 1fr 38px;gap:8px;margin-top:12px}.shp-remove{border:0;border-radius:10px;background:#eef4fa;color:#b42318;font-size:22px;cursor:pointer}.shp-card fieldset{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px;padding:14px;border:1px solid #dbe5ef;border-radius:14px}.shp-card fieldset label{display:flex;align-items:center}.shp-card fieldset input{width:auto;min-height:auto}.shp-submit{display:flex;justify-content:space-between;width:100%;padding:17px 22px;border:0;border-radius:15px;color:#fff;background:linear-gradient(90deg,var(--shp-primary),var(--shp-secondary));font-size:17px;font-weight:800;cursor:pointer}.shp-result{padding-bottom:26px}.shp-result-head{display:flex;align-items:center;gap:14px;padding:22px;color:#fff;background:linear-gradient(135deg,var(--shp-primary),var(--shp-secondary))}.shp-result-head h3,.shp-result-head p{margin:0;color:#fff}.shp-back{width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:22px}.shp-disclaimer{margin:18px;padding:15px;border:1px solid #dbe9f5;border-radius:15px;background:#fff;color:#6f7b90;font-size:13px}.shp-timeline{padding:0 18px}.shp-event{display:grid;grid-template-columns:72px 48px 1fr;gap:12px;align-items:center;margin-bottom:12px;padding:15px;border:1px solid #e2eaf2;border-radius:17px;background:#fff}.shp-event time{font-weight:800;color:var(--shp-primary)}.shp-event-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#edf5ff;font-size:20px}.shp-event h4{margin:0 0 3px}.shp-event p{margin:0;color:#6f7b90;font-size:12px}.shp-actions{display:flex;gap:10px;padding:18px}.shp-actions button{flex:1;padding:13px;border:0;border-radius:12px;font-weight:800}.shp-print{background:var(--shp-primary);color:#fff}.shp-edit{background:#eaf2fa;color:#17233a}@media(max-width:640px){.shp-app{margin:0;border-radius:0;box-shadow:none}.shp-grid{grid-template-columns:1fr}.shp-row{grid-template-columns:1fr 1fr}.shp-row .shp-remove{grid-column:2}.shp-event{grid-template-columns:60px 44px 1fr}}@media print{body *{visibility:hidden!important}.shp-result,.shp-result *{visibility:visible!important}.shp-result{position:absolute;inset:0;width:100%}.shp-actions,.shp-back{display:none!important}}

.shp-logo{font-size:32px}.shp-gender-field{display:grid;gap:7px}.shp-field-label{font-weight:700;font-size:13px}.shp-gender-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.shp-gender-option{display:flex!important;align-items:center;justify-content:center;gap:8px;min-height:62px;padding:10px;border:1px solid #dbe5ef;border-radius:14px;background:#fff;color:#526078;cursor:pointer;transition:.2s ease}.shp-gender-option input{position:absolute;opacity:0;pointer-events:none}.shp-gender-option.is-selected{border-color:var(--shp-primary);background:#edf5ff;color:var(--shp-primary);box-shadow:0 6px 18px rgba(22,119,255,.12)}.shp-gender-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:currentColor;color:#fff;font-size:20px;line-height:1}.shp-name-camera{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:7px}.shp-camera-button{display:grid!important;place-items:center;min-height:44px;border:1px solid #dbe5ef;border-radius:12px;background:#eef6ff;color:var(--shp-primary);cursor:pointer;font-size:20px}.shp-camera-button input{display:none}.shp-photo-preview{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:10px;border:1px dashed #cbd8e6;border-radius:12px;background:#f8fbfe}.shp-photo-preview[hidden]{display:none}.shp-photo-preview img{width:64px;height:64px;border-radius:10px;object-fit:cover;border:1px solid #dbe5ef}.shp-clear-photo{border:0;border-radius:9px;padding:8px 10px;background:#fff0f0;color:#b42318;font-weight:700;cursor:pointer}@media(max-width:640px){.shp-gender-field{grid-column:1/-1}.shp-medication-row{grid-template-columns:1fr 1fr}.shp-medication-row .shp-name-camera{grid-column:1/-1}}

/* v0.1.2 visual refinements */
.shp-logo{
  position:relative;
  display:grid;
  place-items:center;
  background:#fff;
  color:var(--shp-primary);
  overflow:hidden
}
.shp-health-icon{
  font-size:42px;
  line-height:1;
  color:currentColor
}
.shp-health-plus{
  position:absolute;
  top:19px;
  left:50%;
  transform:translateX(-50%);
  color:#fff;
  font-size:21px;
  font-weight:900;
  line-height:1
}
.shp-gender-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.shp-gender-option{min-height:58px}
.shp-gender-icon{
  width:34px;
  height:34px;
  font-size:22px;
  font-weight:800
}
.shp-icon-field{
  position:relative;
  min-width:0
}
.shp-input-icon{
  position:absolute;
  top:50%;
  left:13px;
  z-index:2;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  width:22px;
  color:var(--shp-primary);
  font-size:17px;
  pointer-events:none
}
.shp-icon-field input,
.shp-icon-field select{
  padding-left:44px!important
}
.shp-full-field{margin-top:14px}
.shp-name-camera{
  grid-template-columns:minmax(0,1fr) 44px
}
.shp-name-camera .shp-name-input{min-width:0}
.shp-name-camera .shp-name-input input{width:100%}
.shp-card label>span:not(.shp-gender-icon):not(.shp-camera-button span){
  display:none
}
.shp-card input::placeholder{color:#7a8799;opacity:1}
.shp-card select:invalid{color:#7a8799}
@media(max-width:640px){
  .shp-gender-field{grid-column:1/-1}
  .shp-grid-2{grid-template-columns:1fr}
}

/* v0.1.3 per-item routine modal */
.shp-schedule-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:44px;
  padding:9px 12px;
  border:1px solid #dbe5ef;
  border-radius:12px;
  background:#eef6ff;
  color:var(--shp-primary);
  font-weight:800;
  cursor:pointer
}
.shp-row{align-items:center}
.shp-modal[hidden]{display:none}
.shp-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:grid;
  place-items:center;
  padding:18px
}
.shp-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,23,42,.62);
  backdrop-filter:blur(3px)
}
.shp-modal-dialog{
  position:relative;
  z-index:1;
  width:min(720px,100%);
  max-height:90vh;
  overflow:auto;
  border-radius:24px;
  background:#fff;
  box-shadow:0 30px 90px rgba(0,0,0,.28)
}
.shp-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:15px;
  padding:20px 22px;
  color:#fff;
  background:linear-gradient(135deg,var(--shp-primary),var(--shp-secondary))
}
.shp-modal-head h3,.shp-modal-head p{margin:0;color:#fff}
.shp-modal-head p{margin-top:4px;opacity:.9;font-size:13px}
.shp-modal-close{
  width:38px;height:38px;border:0;border-radius:50%;
  background:rgba(255,255,255,.2);color:#fff;font-size:24px;cursor:pointer
}
.shp-modal-body{padding:20px}
.shp-routine-section+ .shp-routine-section{margin-top:20px}
.shp-routine-section h4{margin:0 0 11px;font-size:15px}
.shp-route-options{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px
}
.shp-route-option{
  display:grid;
  justify-items:center;
  gap:3px;
  min-height:96px;
  padding:10px 6px;
  border:1px solid #dbe5ef;
  border-radius:14px;
  background:#fff;
  color:#526078;
  cursor:pointer
}
.shp-route-option span{font-size:25px}
.shp-route-option strong{font-size:13px}
.shp-route-option small{font-size:10px;text-align:center;color:#7a8799}
.shp-route-option.is-selected{
  border-color:var(--shp-primary);
  background:#edf5ff;
  color:var(--shp-primary);
  box-shadow:0 7px 18px rgba(22,119,255,.12)
}
.shp-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.shp-meal-options{display:flex;flex-wrap:wrap;gap:8px}
.shp-choice-option{
  padding:10px 12px;
  border:1px solid #dbe5ef;
  border-radius:12px;
  background:#fff;
  color:#526078;
  cursor:pointer;
  font-weight:700
}
.shp-choice-option.is-selected{
  border-color:var(--shp-secondary);
  background:#effcf7;
  color:#087a4e
}
.shp-modal-notes{
  width:100%;
  padding:12px;
  border:1px solid #dbe5ef;
  border-radius:12px;
  resize:vertical;
  font:inherit
}
.shp-modal-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  padding:16px 20px 20px
}
.shp-modal-actions button{
  min-width:120px;
  padding:12px 15px;
  border:0;
  border-radius:12px;
  font-weight:800;
  cursor:pointer
}
.shp-modal-cancel{background:#edf2f7;color:#334155}
.shp-modal-save{background:var(--shp-primary);color:#fff}
body.shp-modal-open{overflow:hidden}
@media(max-width:640px){
  .shp-modal{padding:8px}
  .shp-modal-dialog{max-height:96vh;border-radius:20px}
  .shp-route-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shp-modal-grid{grid-template-columns:1fr}
  .shp-modal-actions{position:sticky;bottom:0;background:#fff}
  .shp-row .shp-schedule-button{grid-column:1/-1}
}

/* v0.1.4 visual and layout refinements */
.shp-logo{
  width:87px;
  height:87px;
  border-radius:26px;
  color:var(--shp-primary)
}
.shp-heart-ecg{
  width:72px;
  height:72px;
  overflow:visible
}
.shp-heart-shape{
  fill:currentColor
}
.shp-ecg-line{
  fill:none;
  stroke:#fff;
  stroke-width:6;
  stroke-linecap:round;
  stroke-linejoin:round
}
.shp-gender-icon{
  width:46px;
  height:46px;
  font-size:30px;
  font-weight:900;
  background:var(--shp-primary);
  color:#fff;
  box-shadow:0 6px 15px rgba(22,119,255,.22)
}
.shp-gender-option:nth-child(2) .shp-gender-icon{
  background:#d946ef;
  box-shadow:0 6px 15px rgba(217,70,239,.22)
}
.shp-gender-option{
  min-height:74px;
  font-size:15px
}
.shp-head h3{
  padding-left:0
}
.shp-item-name-line{
  width:100%;
}
.shp-item-details-line{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(150px,auto) 40px;
  gap:8px;
  align-items:center;
  margin-top:9px
}
.shp-row{
  display:block;
  padding:12px;
  border:1px solid #e1e9f2;
  border-radius:15px;
  background:#fbfdff
}
.shp-item-name-line .shp-icon-field,
.shp-item-name-line .shp-name-camera{
  width:100%
}
.shp-quantity-field{
  min-width:0
}
.shp-schedule-button{
  white-space:nowrap
}
.shp-remove{
  width:40px;
  height:44px
}
.shp-photo-preview{
  margin-top:10px
}
@media(max-width:640px){
  .shp-logo{
    width:82px;
    height:82px
  }
  .shp-heart-ecg{
    width:68px;
    height:68px
  }
  .shp-gender-icon{
    width:44px;
    height:44px;
    font-size:28px
  }
  .shp-item-details-line{
    grid-template-columns:minmax(0,1fr) minmax(130px,auto) 38px
  }
  .shp-schedule-summary{
    font-size:12px
  }
}

/* v0.1.6 fixes */
.shp-modal.is-open{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important
}
.shp-modal[hidden]{
  display:none!important
}
.shp-schedule-button{
  position:relative;
  z-index:2;
  pointer-events:auto!important;
  cursor:pointer!important
}
.shp-supplement-row,
.shp-medication-row{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  overflow:hidden
}
.shp-supplement-row *,
.shp-medication-row *{
  box-sizing:border-box
}
.shp-item-name-line,
.shp-item-details-line,
.shp-name-camera,
.shp-name-input,
.shp-quantity-field{
  min-width:0;
  max-width:100%
}
.shp-item-name-line input,
.shp-item-details-line input{
  width:100%;
  max-width:100%
}
.shp-photo-preview{
  width:100%;
  max-width:100%
}
@media(max-width:640px){
  .shp-item-details-line{
    grid-template-columns:minmax(0,1fr) 128px 38px;
    width:100%;
    max-width:100%
  }
  .shp-schedule-button{
    min-width:0;
    width:100%;
    padding-left:7px;
    padding-right:7px
  }
}
@media(max-width:420px){
  .shp-item-details-line{
    grid-template-columns:minmax(0,1fr) 112px 36px;
    gap:6px
  }
  .shp-schedule-summary{
    font-size:11px
  }
}
