.panel-fullname {
  color: #b8cbe4;
  font-size: 12px;
  margin-top: 3px;
}
.portrait-frame {
  user-select: none;
  -webkit-user-select: none;
}
.portrait-frame img {
  -webkit-user-drag: none;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.service-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  padding: 25px;
  border-radius: 7px;
}
.service-grid h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.service-grid p {
  font-size: 15px;
  color: var(--muted);
}
.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  padding: 14px 20px;
  background: #2169bb;
  color: #fff;
  border: 1px solid #73b0ef;
  border-radius: 12px;
  box-shadow: 0 5px 22px #0004;
  cursor: pointer;
  font:
    600 14px "DM Sans",
    sans-serif;
}
.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 85px;
  z-index: 50;
  width: min(390px, calc(100vw - 32px));
  max-height: min(620px, calc(100dvh - 115px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 50px #0005;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel[hidden] {
  display: none;
}
.chat-header {
  background: var(--navy);
  color: #fff;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header strong {
  font-size: 14px;
  display: block;
}
.chat-header small {
  display: block;
  font-size: 11px;
  color: #bad1ec;
  margin-top: 3px;
}
.chat-header button {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 26px;
  cursor: pointer;
  width: 35px;
  height: 35px;
}
.chat-messages {
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 130px;
  overscroll-behavior: contain;
}
.chat-message {
  background: var(--panel);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.chat-message.user {
  background: #2169bb;
  color: #fff;
  align-self: flex-end;
  max-width: 90%;
}
.chat-message a {
  display: block;
  background: #2169bb;
  color: white;
  padding: 8px 12px;
  margin-top: 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
}
.chat-suggestions {
  padding: 8px 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chat-suggestions button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 5px;
  padding: 7px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
#chat-form {
  border-top: 1px solid var(--line);
  display: flex;
  padding: 12px;
  gap: 8px;
}
#chat-input {
  min-width: 0;
  flex: 1;
  background: var(--page);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  font: inherit;
  font-size: 16px;
}
#chat-send {
  background: #2169bb;
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 10px;
  font:
    600 13px "DM Sans",
    sans-serif;
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 950px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .chat-launcher {
    right: 16px;
    bottom: 16px;
    padding: 12px 15px;
    font-size: 13px;
  }
  .chat-panel {
    right: 16px;
    bottom: 75px;
    max-height: calc(100dvh - 95px);
  }
  footer {
    padding-bottom: 85px;
  }
}
@media print {
  .portrait-frame,
  .chat-launcher,
  .chat-panel {
    display: none !important;
  }
}
