.vesile-chat,
.vesile-chat-login {
  max-width: 850px;
  margin: 40px auto;
  padding: 24px;
  border: 1px solid #e6e0d6;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 16px 45px rgba(56, 43, 24, .08);
}
.vesile-chat header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.vesile-chat h1 { margin: 0 0 6px; font-size: 30px; }
.vesile-chat header p { margin: 0; color: #665f55; }
#vesile-chat-remaining {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #efe7d4;
  color: #4e4029;
  font-size: 14px;
  font-weight: 700;
}
.vesile-chat-messages {
  height: 430px;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid #ece5da;
  border-radius: 14px;
  background: #faf8f3;
}
.vesile-message {
  max-width: 82%;
  margin: 0 0 14px;
  padding: 12px 15px;
  border-radius: 14px;
  white-space: pre-wrap;
  line-height: 1.55;
}
.vesile-assistant { background: #fff; border: 1px solid #e9e1d5; }
.vesile-user { margin-left: auto; background: #244b3c; color: #fff; }
.vesile-error { background: #fff0f0; border: 1px solid #efc1c1; color: #7e2424; }
.vesile-waiting { opacity: .7; }
.vesile-sources {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e7e0d7;
  font-size: 14px;
}
.vesile-sources a { color: #276c54; }
.vesile-chat-form { display: flex; gap: 10px; margin-top: 14px; }
.vesile-chat-form textarea {
  flex: 1;
  resize: vertical;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #d9d0c4;
  border-radius: 12px;
}
.vesile-chat-form button,
.vesile-chat-button {
  align-self: stretch;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: #244b3c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.vesile-chat-form button:disabled { opacity: .45; cursor: not-allowed; }
.vesile-chat-note { margin: 10px 0 0; color: #777; font-size: 13px; }
.vesile-chat-link { margin-left: 12px; }
.vesile-chat-login {
  text-align: center;
  padding: 48px 28px;
}
.vesile-chat-login-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #efe7d4;
  color: #244b3c;
  font-size: 30px;
}
.vesile-chat-login h2 { margin: 0 0 12px; font-size: 30px; }
.vesile-chat-login > p { margin: 0 auto 10px; max-width: 570px; font-size: 18px; }
.vesile-chat-login .vesile-chat-login-detail { color: #6a6258; font-size: 15px; }
.vesile-chat-login-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.vesile-chat-login-actions .vesile-chat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  text-decoration: none;
}
.vesile-chat-button-secondary {
  background: #efe7d4;
  color: #244b3c;
}
.vesile-member-area {
  max-width: 1080px;
  margin: 42px auto;
  padding: 32px;
  border: 1px solid #e8dfd1;
  border-radius: 24px;
  background: linear-gradient(145deg, #fffdf8 0%, #f8f3e9 100%);
  box-shadow: 0 18px 55px rgba(56, 43, 24, .1);
}
.vesile-password-area {
  max-width: 580px;
  margin: 48px auto;
  padding: 38px;
  border: 1px solid #e5dccf;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(155, 109, 47, .12), transparent 34%),
    linear-gradient(145deg, #fffefb 0%, #f8f2e7 100%);
  box-shadow: 0 22px 60px rgba(56, 43, 24, .12);
  text-align: center;
}
.vesile-password-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #244b3c;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(36, 75, 60, .22);
}
.vesile-password-eyebrow {
  margin: 0 0 8px;
  color: #9b6d2f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.vesile-password-area h2 { margin: 0 0 10px; font-size: 31px; }
.vesile-password-lead { max-width: 475px; margin: 0 auto 24px; color: #665f55; line-height: 1.6; }
.vesile-password-form { padding: 22px; border: 1px solid #e5dccf; border-radius: 16px; background: #fff; text-align: left; }
.vesile-password-form label { display: block; margin-bottom: 15px; }
.vesile-password-form label span { display: block; margin-bottom: 7px; color: #453e35; font-size: 14px; font-weight: 700; }
.vesile-password-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid #d8cfc3;
  border-radius: 10px;
  background: #fffefb;
  font: inherit;
}
.vesile-password-form input:focus { outline: 3px solid rgba(36, 75, 60, .14); border-color: #244b3c; }
.vesile-password-help { margin: 17px 0 10px; color: #746b60; font-size: 13px; }
.vesile-back-login { display: inline-block; margin-top: 12px; color: #276c54; font-weight: 700; text-decoration: none; }
.vesile-password-button-link { display: block; box-sizing: border-box; text-decoration: none; }
.vesile-form-notice-success { border: 1px solid #aed4c1; background: #edf8f2; color: #20523d; }
.vesile-already-member {
  max-width: 720px;
  margin: 42px auto;
  padding: 38px;
  border: 1px solid #e5dccf;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 18px 50px rgba(56, 43, 24, .1);
  text-align: center;
}
.vesile-already-member h2 { margin: 0 0 10px; }
.vesile-already-member p { margin: 0 auto 22px; max-width: 580px; color: #665f55; }
.vesile-dashboard-link { display: inline-block; width: auto; text-decoration: none; }
.vesile-dashboard { max-width: 1180px; margin: 35px auto; }
.vesile-dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px 30px;
  border-radius: 22px;
  background: linear-gradient(135deg, #183b2f, #2f6651);
  color: #fff;
  box-shadow: 0 18px 46px rgba(24, 59, 47, .22);
}
.vesile-dashboard-header h1 { margin: 0 0 7px; color: #fff; font-size: 32px; }
.vesile-dashboard-header p { margin: 0; max-width: 700px; color: rgba(255,255,255,.82); }
.vesile-dashboard-header .vesile-password-eyebrow { color: #ead5a8; }
.vesile-dashboard-header #vesile-chat-remaining { background: #fff; color: #244b3c; }
.vesile-dashboard-nav {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
  padding: 10px;
  border: 1px solid #e6ded2;
  border-radius: 15px;
  background: rgba(255,253,248,.96);
  box-shadow: 0 8px 24px rgba(50,38,22,.08);
}
.vesile-dashboard-nav a {
  padding: 9px 13px;
  border-radius: 9px;
  color: #244b3c;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.vesile-dashboard-nav a:hover { background: #efe7d4; }
.vesile-dashboard-nav .vesile-nav-logout { margin-left: auto; color: #8a2f2f; }
.vesile-dashboard .vesile-chat { max-width: none; margin: 20px 0; }
.vesile-dashboard-panel {
  margin: 20px 0;
  padding: 28px;
  border: 1px solid #e6ded2;
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 12px 36px rgba(56,43,24,.07);
  scroll-margin-top: 85px;
}
.vesile-dashboard-panel h2 { margin: 0 0 20px; }
.vesile-panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.vesile-panel-heading h2 { margin-bottom: 0; }
.vesile-history-list { display: grid; gap: 13px; margin-top: 22px; }
.vesile-history-item {
  padding: 17px 19px;
  border: 1px solid #e8e0d6;
  border-radius: 14px;
  background: #fff;
}
.vesile-history-item time { color: #8a8176; font-size: 12px; font-weight: 700; }
.vesile-history-item h3 { margin: 6px 0 8px; font-size: 17px; }
.vesile-history-item p { margin: 0; color: #5f584f; line-height: 1.55; white-space: pre-wrap; }
.vesile-history-sources { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e4ddd4; }
.vesile-history-item .vesile-history-sources strong { color: #244b3c; }
.vesile-history-item .vesile-history-sources a {
  display: block;
  margin-top: 7px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef6f2;
  color: #276c54;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.vesile-empty-state { padding: 24px; border-radius: 13px; background: #f7f2e9; color: #70675d; text-align: center; }
.vesile-settings-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 20px; align-items: start; }
.vesile-settings-grid .vesile-dashboard-panel { margin: 0; }
.vesile-account-form label { display: block; margin-bottom: 14px; }
.vesile-account-form label > span { display: block; margin-bottom: 6px; color: #453e35; font-size: 14px; font-weight: 700; }
.vesile-account-form input,
.vesile-account-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #d8cfc3;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}
.vesile-account-form .vesile-submit-button { margin-top: 17px; }
.vesile-danger-button {
  padding: 9px 13px;
  border: 1px solid #d9abab;
  border-radius: 9px;
  background: #fff4f4;
  color: #8a2f2f;
  font-weight: 800;
  cursor: pointer;
}
.vesile-member-subpage { max-width: 980px; }
.vesile-member-subpage .vesile-dashboard-nav { margin-bottom: 20px; }
.vesile-member-subpage .vesile-dashboard-panel { margin-top: 0; }
.vesile-single-form-panel { max-width: 780px; margin-left: auto !important; margin-right: auto !important; }
.vesile-password-change-panel { max-width: 590px; }
.vesile-password-change-panel > p:not(.vesile-password-eyebrow) { margin: -10px 0 22px; color: #6d655c; }
#primary-menu > .vesile-menu-user > .vesile-user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 10px;
  padding: 7px 12px;
  border: 1px solid #ded4c6;
  border-radius: 999px;
  background: #fffdf8;
  color: #244b3c;
  font: inherit;
  line-height: 1.1;
  box-shadow: 0 5px 16px rgba(43, 34, 22, .07);
  cursor: pointer;
}
#primary-menu > .vesile-menu-assistant > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #244b3c;
  font-weight: 800;
}
#primary-menu > .vesile-menu-assistant > a span {
  color: #9b6d2f;
  font-size: 17px;
}
.vesile-menu-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #244b3c;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.vesile-menu-user-text { display: grid; gap: 2px; text-align: left; }
.vesile-menu-user-text strong { font-size: 13px; }
.vesile-menu-user-text small { color: #7a7167; font-size: 10px; font-weight: 600; }
.vesile-menu-chevron { margin-left: 2px; color: #8b7d6e; transition: transform .2s ease; }
.vesile-menu-user-dropdown.is-open .vesile-menu-chevron { transform: rotate(180deg); }
.vesile-menu-user-dropdown { position: relative; }
.vesile-user-submenu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 9999;
  display: none !important;
  min-width: 230px;
  margin: 0 !important;
  padding: 8px !important;
  border: 1px solid #e1d8ca;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(38, 30, 20, .16);
  list-style: none;
}
.vesile-menu-user-dropdown.is-open > .vesile-user-submenu { display: block !important; }
.vesile-user-submenu li { display: block; margin: 0; }
.vesile-user-submenu li a {
  display: block;
  padding: 10px 12px !important;
  border-radius: 8px;
  color: #3e382f !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.vesile-user-submenu li a:hover { background: #f4eee4; color: #244b3c !important; }
.vesile-user-submenu .vesile-submenu-logout { margin-top: 5px; padding-top: 5px; border-top: 1px solid #eee6db; }
.vesile-user-submenu .vesile-submenu-logout a { color: #8a2f2f !important; }
#mobile-menu .vesile-user-menu-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
}
#mobile-menu .vesile-menu-assistant > a { color: #244b3c; font-weight: 800; }
#mobile-menu .vesile-user-submenu {
  position: static;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 8px !important;
  box-shadow: none;
}
.vesile-member-heading { text-align: center; margin-bottom: 26px; }
.vesile-member-heading h2 { margin: 0 0 8px; font-size: 32px; }
.vesile-member-heading p { margin: 0; color: #665f55; font-size: 17px; }
.vesile-member-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}
.vesile-member-card {
  padding: 25px;
  border: 1px solid #e6ded2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(50, 38, 22, .06);
}
.vesile-card-title { display: flex; gap: 13px; align-items: center; margin-bottom: 20px; }
.vesile-card-title > span {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #244b3c;
  color: #fff;
  font-weight: 800;
}
.vesile-card-title h3 { margin: 0; font-size: 22px; }
.vesile-card-title p { margin: 3px 0 0; color: #746b60; font-size: 14px; }
.vesile-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vesile-member-card label { display: block; margin-bottom: 14px; }
.vesile-form-grid label { margin-bottom: 0; }
.vesile-member-card label > span { display: block; margin-bottom: 6px; color: #453e35; font-size: 14px; font-weight: 700; }
.vesile-member-card input[type="text"],
.vesile-member-card input[type="email"],
.vesile-member-card input[type="tel"],
.vesile-member-card input[type="date"],
.vesile-member-card input[type="password"],
.vesile-member-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #d8cfc3;
  border-radius: 10px;
  background: #fffefb;
  color: #29251f;
  font: inherit;
}
.vesile-member-card input:focus,
.vesile-member-card textarea:focus {
  outline: 3px solid rgba(36, 75, 60, .14);
  border-color: #244b3c;
}
.vesile-field-wide { grid-column: 1 / -1; }
.vesile-consent { display: flex !important; gap: 9px; align-items: flex-start; margin-top: 17px; }
.vesile-consent input { margin-top: 4px; }
.vesile-consent span { font-weight: 400 !important; line-height: 1.5; }
.vesile-consent a, .vesile-forgot-link { color: #276c54; }
.vesile-legal-entry { margin: 18px 0; padding: 16px; border: 1px solid #d9e5df; border-radius: 12px; background: #f7fbf9; }
.vesile-legal-entry p { margin: 9px 0 0; font-size: 14px; color: #52645c; }
.vesile-legal-entry p.is-approved { color: #17623f; font-weight: 700; }
.vesile-legal-open { width: 100%; padding: 12px 15px; border: 1px solid #244b3c; border-radius: 10px; background: #fff; color: #244b3c; font-weight: 800; cursor: pointer; }
.vesile-legal-open.is-approved { background: #e8f5ed; }
.vesile-legal-modal[hidden] { display: none !important; }
.vesile-legal-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px; background: rgba(14, 27, 22, .72); }
.vesile-modal-open { overflow: hidden; }
.vesile-legal-dialog { position: relative; width: min(900px, 100%); max-height: 92vh; box-sizing: border-box; padding: 24px; border-radius: 18px; background: #fff; box-shadow: 0 25px 80px rgba(0,0,0,.3); }
.vesile-legal-dialog h3 { margin: 0 40px 5px 0; color: #244b3c; }
.vesile-legal-intro { margin: 0 0 12px; color: #5e6e67; }
.vesile-legal-close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef3f0; color: #244b3c; font-size: 26px; cursor: pointer; }
.vesile-legal-scroll { max-height: 60vh; overflow-y: auto; padding: 8px 18px 18px; border: 1px solid #dfe7e3; border-radius: 12px; background: #fcfdfc; }
.vesile-legal-scroll section { padding: 10px 0; border-bottom: 1px solid #e4ebe7; }
.vesile-legal-scroll h4 { margin: 7px 0; color: #244b3c; }
.vesile-legal-scroll p { margin: 8px 0; line-height: 1.62; color: #34453e; }
.vesile-legal-terms { margin: 8px 0; padding-left: 24px; color: #34453e; }
.vesile-legal-terms li { margin: 0 0 10px; padding-left: 4px; line-height: 1.58; }
.vesile-legal-checks { display: grid; gap: 12px; padding-top: 18px; }
.vesile-legal-checks label { display: flex !important; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; background: #f0f6f3; line-height: 1.45; }
.vesile-legal-checks input { flex: 0 0 auto; margin-top: 4px; }
.vesile-legal-dialog > .vesile-submit-button { margin-top: 14px; }
.vesile-legal-dialog > .vesile-submit-button:disabled { opacity: .5; cursor: not-allowed; }
.vesile-remember { display: flex !important; align-items: center; gap: 8px; }
.vesile-remember span { margin: 0 !important; font-weight: 400 !important; }
.vesile-submit-button {
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 11px;
  background: #244b3c;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.vesile-submit-secondary { background: #9b6d2f; }
.vesile-forgot-link { display: block; margin-top: 15px; text-align: center; font-size: 14px; }
.vesile-form-notice {
  margin: 0 0 20px;
  padding: 12px 15px;
  border-radius: 10px;
  text-align: center;
}
.vesile-form-notice-error { border: 1px solid #e9b8b8; background: #fff0f0; color: #7e2424; }
.vesile-hp { position: absolute !important; left: -99999px !important; opacity: 0 !important; }
.vesile-floating-ask {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #244b3c;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(21, 49, 38, .3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.vesile-floating-ask:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(21, 49, 38, .36);
}
.vesile-pwa-install {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9997;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 17px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: #244b3c;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(21,49,38,.28);
}
.vesile-pwa-install[hidden], .vesile-pwa-help[hidden] { display: none !important; }
.vesile-pwa-install span { font-size: 20px; line-height: 1; }
.vesile-pwa-help {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(14,27,22,.72);
}
.vesile-pwa-help > div {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  box-sizing: border-box;
  border-radius: 18px;
  background: #fff;
  color: #34453e;
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
}
.vesile-pwa-help h2 { margin: 0 35px 15px 0; color: #244b3c; }
.vesile-pwa-help p { line-height: 1.6; }
.vesile-pwa-help-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef3f0;
  color: #244b3c;
  font-size: 25px;
  cursor: pointer;
}
@media (max-width: 650px) {
  .vesile-chat { margin: 18px 10px; padding: 15px; }
  .vesile-chat header { display: block; }
  #vesile-chat-remaining { display: inline-block; margin-top: 12px; }
  .vesile-chat-messages { height: 55vh; padding: 12px; }
  .vesile-message { max-width: 92%; }
  .vesile-chat-form { display: block; }
  .vesile-chat-form textarea { width: 100%; box-sizing: border-box; }
  .vesile-chat-form button { width: 100%; margin-top: 8px; }
  .vesile-chat-login-actions { display: grid; }
  .vesile-member-area { margin: 18px 10px; padding: 18px; border-radius: 18px; }
  .vesile-password-area { margin: 18px 10px; padding: 24px 18px; border-radius: 18px; }
  .vesile-dashboard { margin: 18px 10px; }
  .vesile-dashboard-header { display: block; padding: 22px 18px; }
  .vesile-dashboard-header #vesile-chat-remaining { display: inline-block; margin-top: 15px; }
  .vesile-dashboard-nav { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .vesile-dashboard-nav .vesile-nav-logout { margin-left: 0; }
  .vesile-settings-grid { grid-template-columns: 1fr; }
  .vesile-panel-heading { display: block; }
  .vesile-panel-heading form { margin-top: 14px; }
  .vesile-member-grid, .vesile-form-grid { grid-template-columns: 1fr; }
  .vesile-field-wide { grid-column: auto; }
  .vesile-member-card { padding: 18px; }
  .vesile-legal-modal { padding: 8px; }
  .vesile-legal-dialog { max-height: 96vh; padding: 18px 14px; border-radius: 13px; }
  .vesile-legal-scroll { max-height: 65vh; padding: 6px 11px 14px; }
  .vesile-floating-ask {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
    padding: 12px 15px;
    font-size: 14px;
  }
  .vesile-pwa-install {
    left: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
    padding: 11px 14px;
    font-size: 14px;
  }
  .vesile-pwa-help > div { padding: 24px 18px; }
}
