.office-support {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  font: inherit;
  letter-spacing: 0;
}
.office-support *,
.office-support *::before {
  box-sizing: border-box;
}
body:has(.follow-up-dialog-backdrop) .office-support,
body:has(.task-drawer[aria-labelledby="client-import-title"]) .office-support,
body:has(.task-drawer[aria-labelledby="group-counseling-form-title"]) .office-support,
body:has(.task-drawer[aria-labelledby="group-session-form-title"]) .office-support {
  visibility: hidden;
}
.support-launch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 146px;
  height: 56px;
  min-height: 56px;
  padding: 5px 12px 5px 7px;
  border: 1px solid #edc09e;
  border-radius: 34px;
  background: #fff6ed;
  color: #302923;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(53, 40, 27, 0.1);
}
.support-launch img {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}
.support-launch:hover,
.support-launch:active {
  border-color: #f28032;
  background: #fffaf6;
}
.support-launch-label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}
.support-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(440px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 100px));
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--nb-text, #211d1a);
  border: 1px solid var(--nb-border, #d8d3cb);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgb(38 50 56 / 14%);
  overflow: hidden;
}
.support-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-shrink: 0;
}
.support-panel h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
}
.support-panel header img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.support-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.support-panel h3,
.support-panel h4 {
  font-size: 15px;
  margin: 12px 0 8px;
}
.support-panel button {
  min-height: 40px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border: 1px solid var(--nb-border, #d8d3cb);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.support-panel button:hover:not(:disabled) {
  background: #fff6ed;
  border-color: #c85713;
}
.support-panel header button,
.support-attachment button {
  flex: 0 0 40px;
  height: 40px;
  width: 40px;
  font-size: 20px;
  font-weight: 400;
  padding: 0;
  border-color: transparent;
  background: transparent;
}
.support-panel nav {
  display: flex;
  border-bottom: 1px solid var(--nb-border, #e6e1db);
  flex-shrink: 0;
}
.support-panel nav button {
  flex: 1;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 14px 4px;
  color: var(--nb-text-muted, #6f655f);
}
.support-panel nav button[aria-pressed="true"] {
  border-bottom-color: #f28032;
  color: #211d1a;
  font-weight: 700;
  background: #fff6ed;
}
.support-body {
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
.support-body label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #39464d;
}
.support-body input,
.support-body textarea,
.support-body select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  padding: 10px 12px;
  border: 1px solid var(--nb-border, #d8d3cb);
  border-radius: 8px;
  background: #fff;
  color: #263238;
}
.support-body textarea {
  resize: vertical;
}
.support-body fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0;
}
.support-body p {
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.support-body details,
.support-body article {
  padding: 14px 0;
  border-bottom: 1px solid var(--nb-border, #e6e1db);
}
.support-body summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.support-body details > summary {
  padding: 2px 0;
}
.support-body details[open] > summary {
  color: #b94d12;
}
.support-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--nb-border, #e6e1db);
  flex-shrink: 0;
  background: #fff;
}
.support-panel .support-primary {
  background: var(--nb-action-primary);
  color: var(--nb-on-action-primary);
  border: 0;
  font-weight: 700;
  min-height: 44px;
  width: 100%;
}
.support-panel .support-primary:hover:not(:disabled) {
  background: var(--nb-action-primary-hover);
}
.support-panel .support-primary:active:not(:disabled) {
  background: var(--nb-action-primary-pressed);
}
.support-panel button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.support-panel :focus-visible,
.support-launch:focus-visible {
  outline: 2px solid var(--nb-focus, #c85713);
  outline-offset: 2px;
}
.support-text {
  white-space: pre-wrap;
}
.support-file-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
  border-top: 1px solid var(--nb-border, #e6e1db);
  padding-top: 16px;
}
.support-file-heading strong {
  font-weight: 600;
}
.support-file-heading span {
  color: #6f655f;
  font-weight: 400;
}
.support-body .support-file-input {
  display: none;
}
.support-body .support-hint {
  font-size: 12px;
  color: var(--nb-text-muted, #6f655f);
  line-height: 1.6;
}
.support-body .support-disclosure {
  margin-top: 14px;
  padding: 12px 0;
}
.support-body .support-disclosure summary {
  font-size: 12px;
  font-weight: 500;
}
.support-body .support-disclosure p {
  font-size: 12px;
}
.support-body .support-file-unavailable {
  font-size: 13px;
  color: #6f655f;
}
.support-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #6f655f;
}
.support-inquiry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #6f655f;
}
.support-inquiry-status {
  font-weight: 600;
  color: #263238;
}
.support-body .support-reply {
  border-left: 3px solid #f28032;
  padding: 12px 14px;
  background: #faf9f7;
  margin-top: 16px;
}
.support-reply h4 {
  margin: 0 0 8px;
  font-size: 13px;
}
.support-reply .support-text {
  margin: 0;
}
.support-body .support-empty {
  text-align: center;
  padding: 32px 8px;
  color: #6f655f;
}
.support-feedback {
  padding: 10px 12px;
  border-left: 3px solid #f28032;
  background: #fff6ef;
}
.support-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--nb-border, #e6e1db);
}
.support-attachment span {
  min-width: 0;
  overflow-wrap: anywhere;
  flex: 1;
}
.support-attachment strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.support-attachment small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6f655f;
}
.support-attachment .support-open-file {
  flex-basis: auto;
  width: auto;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--nb-border, #d8d3cb);
}
.support-attachment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 112px;
}
.support-removal-confirm {
  padding: 12px;
  border: 1px solid var(--nb-border, #e6e1db);
  border-radius: 8px;
  background: #fff6ef;
}
.support-removal-confirm h4 {
  margin: 0 0 8px;
  font-size: 14px;
}
.support-removal-confirm > div {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.support-removal-status {
  border-left: 3px solid #f28032;
  padding: 8px 12px;
  background: #fff6ef;
}
@media (max-width: 600px) {
  .support-launch {
    width: 136px;
    height: 52px;
    min-height: 52px;
    gap: 6px;
    padding: 5px 10px 5px 6px;
  }
  .support-launch img {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .support-launch-label {
    font-size: 12px;
  }
  body:has(.task-drawer[aria-labelledby="reservation-form-title"]) .office-support {
    visibility: hidden;
  }
  body:has(input:focus, textarea:focus, select:focus)
    .office-support:not(.is-open) {
    visibility: hidden;
  }
  .office-support {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .office-support.is-open .support-launch {
    visibility: hidden;
  }
  .support-panel {
    position: fixed;
    top: calc(var(--support-viewport-top, 0px) + 8px);
    right: 8px;
    left: 8px;
    bottom: auto;
    width: auto;
    max-height: calc(
      var(--support-viewport-height, 100dvh) - 16px -
        env(safe-area-inset-bottom)
    );
  }
  .support-panel header {
    padding: 8px 14px;
  }
  .support-body {
    padding: 14px;
  }
  .support-body input,
  .support-body textarea,
  .support-body select {
    font-size: 16px;
  }
  .support-footer {
    padding: 10px 14px;
  }
}
