/* Bloodline v19 — stronger validation messages and long-form readability */
body.page-application .form-alert.form-alert-error {
  position: relative;
  display: grid;
  gap: 10px;
  padding: clamp(18px,2.3vw,25px);
  border-radius: 16px;
  border: 1.5px solid var(--application-error-border) !important;
  border-left: 5px solid var(--application-error-accent) !important;
  background: var(--application-error-surface) !important;
  color: var(--application-error-text) !important;
  box-shadow: 0 12px 30px var(--application-error-shadow) !important;
  font-size: .94rem;
}
body.page-application[data-theme="day"] {
  --application-error-border: #dd8990;
  --application-error-accent: #ae263b;
  --application-error-surface: #fff0f2;
  --application-error-text: #77202e;
  --application-error-shadow: rgba(145, 33, 54, .13);
}
body.page-application[data-theme="night"] {
  --application-error-border: #a74555;
  --application-error-accent: #f17b8d;
  --application-error-surface: #2d1721;
  --application-error-text: #ffdde2;
  --application-error-shadow: rgba(0,0,0,.24);
}
body.page-application .form-alert.form-alert-error strong,
body.page-application .form-alert.form-alert-error ul,
body.page-application .form-alert.form-alert-error li {color:var(--application-error-text)!important;opacity:1!important;}
body.page-application .form-alert.form-alert-error strong {display:flex;align-items:center;gap:12px;font-weight:800;line-height:1.5;}
body.page-application .form-alert.form-alert-error strong span {display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;color:#fff;background:var(--application-error-accent);border-radius:50%;font-weight:900;font-size:18px;}
body.page-application .form-alert.form-alert-error ul {margin:0 0 0 18px;padding:0;line-height:1.7;}
body.page-application .form-alert.form-alert-error li+li {margin-top:5px;}
body.page-application .field small {font-size:.78rem;line-height:1.55;}
body.page-application .character-remaining {display:block;margin-top:3px;font-size:.75rem;font-weight:700;color:var(--ui-muted);}
body.page-application .character-remaining.is-valid {color:var(--ui-accent);}
body.page-application .character-remaining.is-too-short {color:var(--application-error-accent);}
body.page-application textarea {scrollbar-width:thin;scrollbar-color:var(--application-scroll-thumb) var(--application-scroll-track);}
body.page-application textarea::-webkit-scrollbar {width:9px;}
body.page-application textarea::-webkit-scrollbar-track {background:var(--application-scroll-track);border-radius:9px;}
body.page-application textarea::-webkit-scrollbar-thumb {background:var(--application-scroll-thumb);border:2px solid var(--application-scroll-track);border-radius:9px;}
@media(max-width:760px){body.page-application .form-alert.form-alert-error{padding:16px;border-radius:14px}}
