.page-subtitle {
  margin: 0 auto 12px;
  text-align: center;
  color: #4d685d;
  font-size: 15px;
  letter-spacing: .01em;
}

#main-menu-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
#main-menu-group > .main-menu {
  display: flex;
  min-width: 0;
  min-height: 62px;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  color: #234237;
  font: 700 14px/1.35 'Montserrat', sans-serif;
  border-radius: 11px;
  text-align: center;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
#main-menu-group > .main-menu:hover,
#main-menu-group > .main-menu:focus-visible {
  transform: translateY(-2px);
}
#main-menu-group > .main-menu.active {
  background: var(--green);
  border-color: var(--green-dark);
  color: #fff;
}
#main-menu-group > a.main-menu {
  border: 2px solid #b5d8cb;
}
#main-menu-group > .main-menu:focus-visible,
.inline-assistant button:focus-visible,
.inline-assistant textarea:focus-visible,
.inline-assistant select:focus-visible,
.service-panel button:focus-visible,
.service-panel a:focus-visible {
  outline: 3px solid #76b59a;
  outline-offset: 3px;
}

.inline-assistant {
  margin: 0 0 18px;
  padding: 15px 18px 13px;
  border: 1px solid #c9e3d7;
  border-top: 4px solid var(--green);
  box-shadow: 0 6px 20px rgba(0, 102, 77, .09);
}
.assistant-heading, .service-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.assistant-heading h2 {
  margin: 2px 0 0;
  font-size: 18px;
}
.assistant-kicker, .service-eyebrow {
  color: #537265;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.assistant-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 9px;
  border-radius: 20px;
  color: #275c46;
  background: #e9f5ee;
  font-size: 12px;
  white-space: nowrap;
}
.assistant-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #319267;
}
.assistant-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  margin: 10px 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f4faf6;
}
.assistant-welcome, .assistant-message {
  color: #4d685d;
  font-size: 13px;
  line-height: 1.5;
}
.assistant-message {
  max-width: 88%;
  padding: 8px 10px;
  border: 1px solid #dfebe4;
  border-radius: 10px 10px 10px 3px;
  background: #fff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.assistant-message.user {
  align-self: flex-end;
  border-color: #cee7d9;
  border-radius: 10px 10px 3px 10px;
  background: #e8f5ed;
  color: #1d4937;
}
.assistant-message.pending { color: #6a8276; font-style: italic; }
.assistant-message-label {
  display: block;
  margin-bottom: 3px;
  color: #537265;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.assistant-message-content a { color: #176d4b; font-weight: 700; overflow-wrap: anywhere; }
.assistant-reply-audio {
  display: block;
  width: min(280px, 100%);
  height: 34px;
  margin-top: 7px;
}
.assistant-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border: 1px solid #bdd8c8;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 89, 61, .06);
}
.assistant-form textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  max-height: 180px;
  resize: none;
  overflow-y: auto;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  outline: 0;
  background: #fbfdfb;
  color: #18392d;
  font: 16px/1.6 'Montserrat', sans-serif;
  text-align: start;
}
.assistant-form textarea::placeholder { color: #70877a; opacity: 1; }
.assistant-send,
.voice-button {
  display: inline-flex;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #176b4b;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  transition: background-color .16s ease, transform .16s ease;
}
.assistant-send:hover:not(:disabled),
.voice-button:hover:not(:disabled) { background: var(--green-dark); }
.assistant-send:active:not(:disabled),
.voice-button:active:not(:disabled) { transform: scale(.96); }
.assistant-send:disabled,
.voice-button:disabled { cursor: wait; opacity: .58; }
.assistant-send svg,
.voice-button svg { width: 21px; height: 21px; }
.voice-controls {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.voice-button {
  flex: 0 0 48px;
  border-color: #c5d9cb;
  background: #edf6f0;
  color: #245940;
}
.voice-button:hover:not(:disabled) { background: #dceee2; }
.voice-button.voice-record,
.voice-button.voice-send,
.voice-button.voice-retry { border-color: #176b4b; background: var(--green); color: #fff; }
.voice-button.voice-record:hover:not(:disabled),
.voice-button.voice-send:hover:not(:disabled),
.voice-button.voice-retry:hover:not(:disabled) { background: var(--green-dark); }
.voice-button.voice-stop { border-color: #b5d6c1; background: #e7f3eb; }
.voice-button.voice-cancel { border-color: #e5c9c0; background: #fff7f4; color: #86513e; }
.voice-note { display: contents; }
.voice-status {
  display: block;
  margin: 0;
  color: #597467;
  font-size: 12px;
  line-height: 1.4;
}
.voice-status:empty { display: none; }
.voice-preview {
  display: block;
  width: min(420px, 100%);
  height: 40px;
  margin: 0;
}
.voice-preview[hidden],
.voice-retry[hidden],
.voice-button[hidden],
.assistant-send[hidden] { display: none !important; }
.voice-elapsed {
  min-width: 42px;
  color: #456554;
  font: 600 12px/1 'Montserrat', sans-serif;
  font-variant-numeric: tabular-nums;
}
.assistant-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: #718278;
  font-size: 11px;
}
.assistant-whatsapp { font-weight: 700; }
.assistant-composer-visible #whatsapp-button {
  visibility: hidden;
  pointer-events: none;
}
.assistant-context-note {
  margin: 5px 0 0;
  color: #3d7158;
  font-size: 12px;
}
.assistant-context-note:empty { display: none; }
.assistant-error {
  margin: 7px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff2ee;
  color: #873c2a;
  font-size: 13px;
}
.service-panel {
  margin-top: 15px;
  padding: 18px;
  border: 1px solid #cde2d7;
  border-left: 5px solid var(--green-dark);
  border-radius: 12px;
  background: #f4faf6;
  line-height: 1.55;
}
.service-panel h2 { margin: 3px 0; font-size: 19px; }
.service-panel p { margin: 10px 0; font-size: 14px; }
.service-panel-head { align-items: flex-start; }
.membrane-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 13px 0;
}
.membrane-prices article {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #d3e6dc;
  border-radius: 10px;
  background: #fff;
}
.membrane-prices strong { color: #285642; font-size: 14px; }
.membrane-prices span { color: #173e2e; font-size: 20px; font-weight: 700; }
.membrane-prices small { color: #5f7468; font-size: 12px; line-height: 1.45; }
.service-notes {
  padding: 9px 12px;
  border-radius: 9px;
  background: #eaf4ee;
}
.service-notes p { font-size: 13px; }
.service-link { display: inline-block; margin-top: 5px; font-weight: 700; }
.consumables-line {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 20px;
  background: #e6f3eb;
  color: #22543c;
  font-weight: 700;
  letter-spacing: .01em;
}
.job-route-link { margin: 8px 0; }
.direct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 11px;
  font-size: 12px;
}
.direct-section-link {
  display: inline-block;
  margin: 8px 12px 0 0;
  font-size: 12px;
  font-weight: 700;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  #main-menu-group { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #main-menu-group > .main-menu { min-height: 58px; padding: 9px; font-size: 14px; }
  .inline-assistant { padding: 13px; }
  .assistant-foot { flex-direction: column; }
  .assistant-heading { align-items: flex-start; }
  .service-panel-head { flex-direction: column; }
}
@media (max-width: 460px) {
  .membrane-prices { grid-template-columns: 1fr; }
  .assistant-form { gap: 7px; padding: 9px; }
  .assistant-form textarea { min-height: 84px; font-size: 16px; }
  .assistant-status { font-size: 11px; }
  .voice-controls { gap: 7px; }
}
