/* Settings sheet embedded in index. */
.workspace-settings-sheet {
  box-sizing: border-box;
  font-family: "Google Sans", "Segoe UI", Arial, sans-serif;
  background: #ffffff;
  color: #171717;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ececec;
  width: min(100%, 560px);
}
.workspace-settings-sheet *,
.workspace-settings-sheet *::before,
.workspace-settings-sheet *::after {
  box-sizing: border-box;
}
.workspace-settings-sheet .workspace-settings-header {
  height: 54px;
  padding: 0 48px 0 18px;
  border-bottom: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.workspace-settings-sheet .workspace-settings-  brand {
  color: #050505;
  font-size: 1.08rem;
  font-weight: 680;
}
.workspace-settings-sheet .workspace-settings-back {
  color: #4b4b4b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 595;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  padding: 8px 10px;
  border-radius: 10px;
}
.workspace-settings-sheet .workspace-settings-back:hover {
  background: #f5f5f5;
}
.workspace-settings-sheet main {
  padding: 20px 18px 22px;
}
.workspace-settings-sheet h1 {
  font-size: 1.35rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 680;
}
.workspace-settings-sheet .settings-list {
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  overflow: hidden;
}
.workspace-settings-sheet .settings-row {
  min-height: 62px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #eeeeee;
}
.workspace-settings-sheet .settings-row:last-child {
  border-bottom: none;
}
.workspace-settings-sheet .row-title {
  font-weight: 680;
  margin-bottom: 3px;
  font-size: 0.92rem;
}
.workspace-settings-sheet .row-copy {
  color: #70757a;
  font-size: 0.84rem;
  line-height: 1.35;
}
.workspace-settings-sheet .action {
  min-width: 104px;
  height: 34px;
  border: none;
  border-radius: 7px;
  background: #111111;
  color: #ffffff;
  font-weight: 680;
  font-size: 0.86rem;
  cursor: pointer;
  font-family: inherit;
}
.workspace-settings-sheet .settings-select {
  min-width: 164px;
  height: 34px;
  border: 1px solid #dedede;
  border-radius: 7px;
  background: #ffffff;
  color: #171717;
  padding: 0 30px 0 11px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 590;
  outline: none;
}
.workspace-settings-sheet .settings-select:focus {
  border-color: #b8b8b8;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

body.workspace-compact-density .composer {
  max-width: 720px;
}

body.workspace-compact-density .message {
  font-size: 0.94rem;
}

body.workspace-compact-density .nav-link,
body.workspace-compact-density .history-chat-btn {
  min-height: 34px !important;
}
.workspace-settings-sheet .action.secondary {
  background: #f3f3f3;
  color: #111111;
}
@media (max-width: 640px) {
  .workspace-settings-sheet .settings-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .workspace-settings-sheet .action {
    width: 100%;
  }
  .workspace-settings-sheet .settings-select {
    width: 100%;
  }
}

/* Wide ChatGPT-style settings window. */
.workspace-settings-sheet {
  width: min(1020px, calc(100vw - 48px)) !important;
  height: min(900px, calc(100dvh - 72px));
  max-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: stretch;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.workspace-settings-sheet .workspace-sheet-close {
  position: absolute;
  left: 24px;
  top: 26px;
  right: auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: transparent;
  color: #111111;
  z-index: 3;
}

.workspace-settings-sheet .workspace-sheet-close:hover {
  background: rgba(0, 0, 0, 0.055);
}

.workspace-settings-nav {
  min-height: 0;
  padding: 82px 10px 20px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.settings-nav-item {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 1rem/1.15 "Google Sans", "Segoe UI", Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}

.settings-nav-item:hover,
.settings-nav-item.active {
  background: #f1f1f1;
}

.settings-nav-item .material-symbols-rounded {
  width: 26px;
  min-width: 26px;
  font-size: 23px !important;
  color: #111111;
  font-variation-settings:
    "FILL" 0,
    "wght" 280,
    "GRAD" 0,
    "opsz" 24 !important;
}

.workspace-settings-main {
  min-width: 0;
  min-height: 0;
  padding: 26px 46px 34px 24px !important;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.24) transparent;
}

.workspace-settings-main h1 {
  margin: 0 0 30px !important;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: #111111;
  font-size: 1.42rem !important;
  font-weight: 430 !important;
  line-height: 1.2;
}

.settings-security-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 12px;
  padding: 28px 24px 24px;
  border-radius: 14px;
  background: #f1f1f1;
  color: #161616;
}

.settings-card-dismiss {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111111;
}

.settings-card-dismiss:hover {
  background: rgba(0, 0, 0, 0.055);
}

.settings-security-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  font-size: 34px !important;
}

.settings-security-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.settings-security-copy strong {
  color: #111111;
  font-size: 1.03rem;
  font-weight: 650;
}

.settings-security-copy p {
  margin: 0;
  max-width: 660px;
  color: #4d5258;
  font-size: 1.03rem;
  line-height: 1.35;
}

.settings-card-action {
  justify-self: start;
  height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font: 600 0.96rem/1 "Google Sans", "Segoe UI", Arial, sans-serif;
}

.workspace-settings-sheet .settings-list {
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.workspace-settings-sheet .settings-row {
  min-height: 72px !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  gap: 22px;
}

.workspace-settings-sheet .settings-row:last-child {
  border-bottom: 0 !important;
}

.workspace-settings-sheet .row-title {
  margin: 0 0 5px;
  color: #111111;
  font-size: 1rem !important;
  font-weight: 420 !important;
  line-height: 1.2;
}

.workspace-settings-sheet .row-copy {
  max-width: 520px;
  color: #8a8f98;
  font-size: 0.88rem !important;
  font-weight: 390;
  line-height: 1.35;
}

.settings-row-simple > .row-title {
  margin-bottom: 0;
}

.settings-value-btn {
  border: 0;
  background: transparent;
  color: #111111;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 400 1rem/1.1 "Google Sans", "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
}

.settings-value-btn .material-symbols-rounded {
  font-size: 22px !important;
  color: #111111;
}

.settings-accent-value > span:first-child {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #b8b8b8;
}

.settings-switch {
  position: relative;
  display: inline-flex;
  width: 50px;
  height: 30px;
}

.settings-switch input {
  position: absolute;
  opacity: 0;
}

.settings-switch span {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d6d8dc;
  transition: background 0.16s ease;
}

.settings-switch span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: 3px;
  left: 3px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease;
}

.settings-switch input:checked + span {
  background: #4788f4;
}

.settings-switch input:checked + span::after {
  transform: translateX(20px);
}

.workspace-settings-sheet .action,
.workspace-settings-sheet .settings-select {
  height: 36px;
  border-radius: 999px;
  font-weight: 500;
}

.workspace-settings-sheet .action {
  min-width: 96px;
}

.workspace-settings-sheet .action.secondary {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

.workspace-settings-sheet .settings-select {
  min-width: 210px;
  border-color: rgba(0, 0, 0, 0.13);
}

@media (max-width: 760px) {
  .workspace-settings-sheet {
    width: calc(100vw - 18px) !important;
    height: calc(100dvh - 18px);
    max-height: calc(100dvh - 18px);
    grid-template-columns: 1fr;
  }

  .workspace-settings-nav {
    display: none;
  }

  .workspace-settings-main {
    padding: 72px 18px 24px !important;
  }

  .workspace-settings-sheet .workspace-sheet-close {
    left: 18px;
    top: 18px;
  }

  .settings-security-card {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
}
