.playground-sidebar {
  width: 270px;
  height: 100vh;
  background: var(--answer-bg);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  align-self: start;
  z-index: 300;
}

.playground-sidebar-inner {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 16px;
}

.playground-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.playground-logo-link {
  text-decoration: none;
}

.playground-logo-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #ffffff;
}

.playground-logo-icon-img {
  width: 100%;
  height: 100%;
  padding: 1px;
}

.playground-logo-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
  color: #111827;
}

.playground-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
}

.playground-nav-item {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 8px;
  text-decoration: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 14px;
  font-weight: 400;
  color: #111827;
}

.playground-nav-item:hover {
  background: rgba(255, 255, 255, 0.72);
}

.playground-nav-item--active {
  background: #ffffff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.01);
}

.playground-nav-item--footer {
  width: 100%;
}

.playground-nav-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.playground-nav-icon::before {
  content: "";
  position: absolute;
  top: 7.5px;
  left: 7.5px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #111827;
}

.playground-sidebar-footer {
  margin-top: auto;
  position: relative;
}

.playground-sidebar-footer--guest {
  padding-top: 16px;
}

.playground-account-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.playground-user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.playground-user-icon,
.playground-account-menu-user-icon {
  width: 24px;
  height: 24px;
  fill: #6b7280;
  flex-shrink: 0;
}

.playground-username,
.playground-account-menu-username {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 20px;
  color: #6b7280;
  word-break: break-all;
}

.playground-account-menu {
  position: fixed;
  left: 20px;
  bottom: 72px;
  width: 240px;
  padding: 22px;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 350;
}

.playground-account-menu[aria-hidden="false"] {
  display: flex;
}

.playground-account-menu-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.playground-account-menu-divider-wrap {
  padding: 15px 0;
}

.playground-account-menu-divider {
  height: 1px;
  background: #e4e4e4;
}

.playground-account-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.playground-account-menu-item {
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: color 120ms ease;
}

.playground-account-menu-item-icon {
  width: 24px;
  height: 24px;
  position: relative;
}

.playground-account-menu-item-label {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 16px;
  color: #111827;
  transition: color 120ms ease;
}

.playground-account-menu-item:hover .playground-account-menu-item-label {
  color: var(--accent-strong);
}

.playground-logout-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.playground-logout-overlay[aria-hidden="false"] {
  display: flex;
}

.playground-logout-modal {
  width: 408px;
  max-width: calc(100vw - 32px);
  margin: auto;
  padding: 40px 24px 32px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.playground-logout-modal-title {
  margin: 0;
  text-align: center;
  white-space: pre-wrap;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 27px;
  color: #111827;
}

.playground-logout-modal-description {
  margin: 0;
  text-align: center;
  white-space: pre-wrap;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 21px;
  color: #6b7280;
}

.playground-logout-modal-actions {
  display: flex;
  gap: 12px;
}

.playground-logout-confirm-btn,
.playground-logout-cancel-btn {
  min-width: 120px;
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid #111827;
  background: #ffffff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 14px;
  color: #111827;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.playground-logout-confirm-btn {
  background: #111827;
  color: #ffffff;
}

.playground-logout-confirm-btn:hover {
  background: #1f2937;
}

.playground-logout-confirm-btn--danger {
  border-color: #dc2626;
  background: #dc2626;
}

.playground-logout-confirm-btn--danger:hover {
  border-color: #b91c1c;
  background: #b91c1c;
}

.playground-logout-cancel-btn:hover {
  background: #f6f6f6;
}

.playground-language-modal {
  width: 530px;
  max-width: calc(100vw - 32px);
  padding: 30px 0 40px;
  border-radius: 30px;
  background: #ffffff;
  overflow: hidden;
}

.playground-language-modal-header {
  padding: 0 24px;
}

.playground-language-modal-title {
  margin: 0;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 28px;
  color: #111827;
}

.playground-language-modal-body {
  padding: 20px 24px 0;
  display: flex;
  justify-content: center;
}

.playground-language-tab-bar {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 100px;
  background: var(--answer-bg);
  box-sizing: border-box;
}

.playground-language-tab {
  flex: 1;
  min-width: 0;
  padding: 8px 20px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 12px;
  color: #6b7280;
  transition: background-color 120ms ease, color 120ms ease;
}

.playground-language-tab--active {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  color: #111827;
}

.playground-language-tab:not(.playground-language-tab--active):hover {
  background: rgba(255, 255, 255, 0.72);
  color: #111827;
}

.playground-report-feedback-modal {
  width: 440px;
  max-width: calc(100vw - 32px);
  margin: auto;
  padding: 40px 24px 32px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.playground-report-feedback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.playground-report-feedback-select,
.playground-report-feedback-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #111827;
  background: #ffffff;
}

.playground-report-feedback-select:focus,
.playground-report-feedback-textarea:focus {
  border-color: #6b7280;
}

.playground-report-feedback-select:focus:not(:focus-visible),
.playground-report-feedback-textarea:focus:not(:focus-visible) {
  outline: none;
}

.playground-report-feedback-textarea {
  resize: vertical;
  min-height: 100px;
}

.playground-report-feedback-inline-error {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #dc2626;
}

.playground-report-feedback-inline-error[aria-hidden="true"] {
  display: none;
}

.playground-report-feedback-result-message {
  margin: 0;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #111827;
}

.playground-report-feedback-result-message[aria-hidden="true"] {
  display: none;
}

.playground-shadow-notification-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-1);
  flex-shrink: 0;
  text-decoration: none;
}

.playground-shadow-notification-btn svg {
  width: 32px;
  height: 32px;
}

.playground-shadow-notification-btn.playground-shadow-chat-notification-btn {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

.playground-shadow-notification-badge {
  position: absolute;
  top: 21px;
  right: 21px;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  background: #1D1D1D;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
}

.playground-shadow-notification-btn.playground-shadow-chat-notification-btn .playground-shadow-notification-badge {
  top: 3px;
  right: 5px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  font-size: 9px;
  line-height: 14px;
}

@media (max-width: 640px) {
  .playground-account-menu {
    left: 50%;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 48px);
    max-width: 320px;
  }

  .playground-logout-modal-actions {
    flex-direction: column;
    width: 100%;
  }

  .playground-logout-confirm-btn,
  .playground-logout-cancel-btn {
    width: 100%;
  }
}
