:root {
  --bg: #fafbf9;
  --panel: #fff;
  --ink: #0c1533;
  --muted: #707d9f;
  --green: #486f60;
  --green-dark: #165c42;
  --tint: #eaf0ec;
  --line: #e0e6ed;
  --soft: #f3f6f5;
  --red: #b52222;
  --side: 346px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  color-scheme: light
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.45
}

button,
input,
textarea,
select {
  font: inherit
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent
}

button {
  cursor: pointer
}

button {
  color: inherit
}

button:disabled {
  cursor: not-allowed;
  opacity: .55
}

a {
  color: inherit;
  text-decoration: none
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #82a797;
  outline-offset: 3px
}

button {
  border: 0;
  background: none
}

h1,
h2,
h3,
p {
  margin: 0
}

h1 {
  font-size: 32px;
  line-height: 1.17;
  letter-spacing: -1.1px;
  font-weight: 700
}

h2 {
  font-size: 16.8px;
  line-height: 1.35;
  letter-spacing: -.4px
}

h3 {
  font-size: 14.4px
}

small {
  font-size: 11.2px;
  color: var(--muted)
}

.icon {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle
}

.logo {
  width: 40px;
  height: 52px;
  flex-shrink: 0;
  color: var(--green)
}

.muted {
  color: var(--muted)
}

.green {
  color: var(--green-dark)
}

.red {
  color: var(--red)
}

.row {
  display: flex;
  align-items: center;
  gap: 16px
}

.grow {
  flex: 1;
  min-width: 0
}

.stack {
  display: grid;
  gap: 12px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid #ccd5e1;
  border-radius: 7px;
  background: var(--panel);
  color: var(--green-dark);
  white-space: nowrap
}

.btn:hover {
  background: var(--soft);
  border-color: #8da89d
}

.btn.primary {
  background: linear-gradient(125deg, #497465, #527764);
  color: white;
  border-color: var(--green);
  box-shadow: inset 0 0 10px #163d3510
}

.btn.primary:hover {
  background: #365f4f
}

.btn.danger {
  border-color: #ba4e4e;
  color: #a31818
}

.btn.soft {
  background: var(--tint);
  border-color: #d7e0da
}

.btn.small {
  font-size: 11.2px;
  min-height: 40px;
  padding: 9px 17px
}

.btn.full {
  width: 100%;
  min-height: 60px;
  font-size: 16px
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  color: var(--muted)
}

.icon-btn:hover {
  background: var(--tint);
  color: var(--green)
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 30px;
  padding: 3px 13px;
  background: var(--tint);
  color: var(--green-dark);
  font-size: 11.2px;
  white-space: nowrap
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0
}

.sidebar {
  width: var(--side);
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  padding: 27px 16px 25px;
  display: flex;
  flex-direction: column;
  z-index: 20;
  background: var(--bg);
  overflow: auto
}

.brand {
  display: flex;
  align-items: center;
  gap: 21px;
  padding: 0 15px;
  min-height: 52px
}

.brand-name {
  font-size: 19.2px;
  font-weight: 600;
  letter-spacing: -.5px;
  white-space: nowrap
}

.collapse {
  margin-left: auto;
  border: 1px solid var(--line);
  color: var(--ink);
  height: 41px;
  width: 42px;
  flex-shrink: 0;
  background: #ffffff66
}

.nav-new {
  margin: 40px 0 23px;
  display: flex;
  align-items: center;
  gap: 23px;
  background: var(--tint);
  color: var(--green-dark);
  border-radius: 9px;
  padding: 18px 23px;
  font-size: 16.8px;
  min-height: 69px;
  white-space: nowrap
}

.nav-new .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.7
}

.nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  gap: 25px;
  min-height: 65px;
  padding: 15px 23px;
  margin: 5px 0;
  border-radius: 9px;
  color: #616d94;
  font-size: 16px;
  white-space: nowrap
}

.nav-link .icon {
  width: 30px;
  height: 30px;
  stroke-width: 2.1
}

.nav-link.active,
.nav-link:hover {
  background: var(--tint);
  color: var(--green-dark)
}

.nav-link .chev {
  margin-left: auto;
  width: 20px;
  height: 20px
}

.nav-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line)
}

.sidebar.settings-side .nav-bottom {
  margin-top: 33px
}

.history-list {
  border-left: 1px solid var(--line);
  margin: 9px 0 20px 15px;
  padding-left: 15px;
  color: var(--muted);
  font-size: 12px
}

.history-label {
  margin: 16px 0 7px;
  position: relative
}

.history-label:before {
  content: '';
  position: absolute;
  left: -20px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 100%;
  border: 1px solid #ccd5d8;
  background: var(--bg)
}

.history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: 8px;
  margin-left: 4px
}

.history-item .icon {
  width: 20px;
  height: 20px;
  color: var(--green)
}

.history-item.selected,
.history-item:hover {
  background: var(--tint);
  color: var(--green-dark)
}

.history-list>a:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px 4px
}

.main {
  margin-left: var(--side);
  padding: 30px 32px 32px 20px;
  min-height: 100vh
}

.avatar-top {
  position: absolute;
  right: 29px;
  top: 26px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tint);
  color: var(--green)
}

.avatar-top .icon {
  width: 33px;
  height: 33px
}

.page-heading {
  padding: 1px 22px 26px;
  min-height: 134px;
  margin-right: 45px
}

.eyebrow {
  font-size: 11.2px;
  letter-spacing: 3px;
  color: var(--green-dark);
  font-weight: 700;
  margin: 3px 0 9px
}

.page-heading p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 5px
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.6px;
  color: var(--muted);
  margin: 0 0 9px
}

.breadcrumb a {
  color: var(--green-dark)
}

.breadcrumb .icon {
  width: 16px;
  height: 16px
}

.workspace {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 14px
}

.subnav {
  align-self: start;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel)
}

.subnav a {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 15px 15px;
  min-height: 58px;
  color: #606c97;
  border-radius: 8px;
  font-size: 13.6px
}

.subnav a .icon {
  width: 28px;
  height: 28px
}

.subnav a.active,
.subnav a:hover {
  background: var(--tint);
  color: var(--green-dark)
}

.subnav .sub-items {
  margin: 9px 2px 20px 8px;
  border-left: 1px solid var(--line);
  padding-left: 14px
}

.subnav .sub-items a {
  padding-left: 42px;
  min-height: 51px
}

.subnav .divider {
  margin: 20px 10px
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 17px
}

.panel>p,
.section-intro {
  color: var(--muted);
  margin: 2px 0 12px;
  line-height: 1.55
}

.panel-pad {
  padding: 26px 30px
}

.panel-section+.panel-section {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 22px
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  min-height: 74px
}

.setting-row+.setting-row {
  border-top: 1px solid var(--line)
}

.setting-copy {
  flex: 1;
  min-width: 0
}

.setting-copy>p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px
}

.setting-row>.icon {
  color: #626f95;
  width: 30px;
  height: 30px;
  margin: 0 8px
}

.outline-row {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 22px
}

.outline-row>.icon {
  width: 30px;
  height: 30px;
  color: #606b90
}

.outline-row+.outline-row {
  margin-top: -1px
}

.outline-row p {
  color: var(--muted);
  font-size: 11.2px;
  line-height: 1.5;
  margin-top: 3px
}

.outline-row.action:hover {
  background: var(--soft)
}

.switch {
  position: relative;
  width: 48px;
  height: 29px;
  min-width: 48px;
  background: #dde1e7;
  border-radius: 30px;
  transition: background .18s
}

.switch:after {
  content: '';
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 100%;
  position: absolute;
  left: 3px;
  top: 3.5px;
  box-shadow: 0 1px 3px #0001;
  transition: transform .18s
}

.switch[aria-checked=true] {
  background: var(--green)
}

.switch[aria-checked=true]:after {
  transform: translateX(20px)
}

.select {
  appearance: none;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid #d6deea;
  border-radius: 8px;
  padding: 12px 40px 12px 16px;
  min-width: 220px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m5 9 7 7 7-7' fill='none' stroke='%23677599' stroke-width='2.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center
}

.note {
  display: flex;
  gap: 17px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 17px 13px;
  color: var(--muted);
  font-size: 11.2px;
  line-height: 1.55
}

.note>.icon {
  flex-shrink: 0;
  color: #647198;
  margin: 2px 0
}

.note strong {
  color: var(--ink);
  display: block;
  margin-bottom: 3px
}

.note .btn {
  margin-left: auto;
  align-self: center
}

.general-panel .setting-row {
  padding: 21px 0;
  font-size: 14.4px
}

.general-panel .setting-row>label {
  flex: 1
}

.general-panel .select,
.general-panel .segmented {
  width: 66%
}

.general-panel .setting-copy>p {
  font-size: 13.6px
}

.general-panel .panel-section {
  padding-top: 20px;
  margin-top: 20px
}

.segmented {
  display: flex;
  gap: 1px
}

.segmented button {
  border: 1px solid #d6deea;
  border-radius: 8px;
  color: var(--muted);
  padding: 12px 20px;
  flex: 1;
  white-space: nowrap
}

.segmented button.selected {
  border-color: #819f91;
  background: var(--tint);
  color: var(--green-dark)
}

.research-main {
  padding: 72px 30px 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 100vh
}

.research-heading {
  text-align: center;
  margin: 8px 45px 38px
}

.research-heading h1 {
  font-size: 35.2px;
  letter-spacing: -1px
}

.research-heading>p {
  font-size: 16px;
  color: var(--muted);
  max-width: 800px;
  margin: 18px auto 0;
  line-height: 1.55
}

.research-heading .eyebrow {
  margin: -31px 0 21px
}

.conversation {
  display: flex;
  flex-direction: column;
  gap: 31px;
  padding: 0 0 40px
}

.user-message {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-left: 22%;
  margin-bottom: 1px
}

.user-message .bubble {
  background: var(--soft);
  padding: 18px 22px;
  color: #3e4c67;
  font-size: 16px;
  line-height: 1.55;
  flex: 1
}

.bubble {
  border: 1px solid var(--line);
  border-radius: 10px
}

.user-avatar {
  width: 52px;
  height: 52px;
  background: var(--tint);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  flex-shrink: 0
}

.user-avatar .icon {
  width: 32px;
  height: 32px;
  fill: var(--green);
  stroke: var(--green)
}

.bubble time {
  float: right;
  font-size: 12px;
  color: var(--muted);
  margin-left: 15px
}

.assistant-message {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding-left: 12px
}

.assistant-message>.logo {
  width: 35px;
  height: 45px;
  margin-top: 15px
}

.message-content {
  flex: 1;
  min-width: 0
}

.message-byline {
  display: flex;
  gap: 15px;
  font-size: 12.8px;
  margin: 1px 0 8px
}

.message-byline time {
  color: var(--muted)
}

.assistant-message .bubble {
  padding: 16px 20px;
  color: #65728f;
  font-size: 16px;
  line-height: 1.53;
  max-width: 92%;
  background: var(--panel)
}

.progress-details {
  margin: 0 0 0 79px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft)
}

.progress-details summary {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  padding: 22px 25px;
  font-size: 16px;
  cursor: pointer
}

.progress-details summary::-webkit-details-marker {
  display: none
}

.progress-details .icon {
  color: var(--muted)
}

.progress-details[open] summary>.icon {
  transform: rotate(90deg)
}

.progress-details time {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.8px
}

.progress-details .badge {
  background: #e6e8eb;
  color: var(--muted);
  font-size: 12.8px
}

.progress-steps {
  display: grid;
  gap: 15px;
  margin: 0 28px 24px 69px;
  color: var(--muted)
}

.progress-steps>div {
  display: flex;
  align-items: center;
  gap: 13px
}

.progress-steps .icon {
  color: var(--green);
  width: 20px;
  height: 20px
}

.assistant-message .complete-bubble {
  background: #eff4f1;
  max-width: 97%;
  display: flex;
  gap: 28px;
  padding: 18px 22px
}

.complete-icon {
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #9aa19e;
  color: #fff;
  min-width: 40px;
  height: 40px
}

.complete-icon .icon {
  width: 27px;
  height: 27px;
  stroke-width: 2.7
}

.complete-bubble h3 {
  color: #111;
  font-weight: 400;
  font-size: 16px;
  margin: 0 0 5px
}

.download-link {
  color: #0099ff;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-top: 13px;
  font-size: 16px;
  text-align: left;
  padding: 0
}

.download-link:hover {
  text-decoration: underline
}

.composer {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  margin-top: auto
}

.composer>.icon-btn {
  width: 58px;
  height: 47px;
  border-right: 1px solid var(--line);
  border-radius: 0
}

.composer>.icon-btn .icon {
  width: 30px;
  height: 30px
}

.composer textarea {
  flex: 1;
  resize: none;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  padding: 15px 0;
  height: 58px;
  min-width: 0;
  font-size: 16px;
  line-height: 1.4
}

.composer textarea::placeholder {
  color: #929bb3
}

.send-btn {
  height: 60px;
  width: 76px;
  padding: 0;
  border-radius: 9px;
  flex-shrink: 0
}

.send-btn .icon {
  width: 28px;
  height: 28px;
  fill: #ffffff33
}

.attachments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0
}

.attachment {
  font-size: 11.2px;
  background: var(--tint);
  padding: 6px 10px;
  border-radius: 8px
}

.empty-research {
  max-width: 800px;
  width: 100%;
  margin: 90px auto 70px;
  text-align: center
}

.empty-research>.logo {
  width: 65px;
  height: 78px;
  margin-bottom: 24px
}

.suggestions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px
}

.suggestions button {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel)
}

.suggestions button:hover {
  background: var(--tint);
  color: var(--green)
}

.collapsed {
  --side: 94px
}

.collapsed .sidebar {
  padding: 26px 15px 24px;
  align-items: center
}

.collapsed .brand {
  padding: 0;
  flex-direction: column;
  gap: 26px
}

.collapsed .brand .logo {
  width: 36px;
  height: 46px
}

.collapsed .brand-name,
.collapsed .nav-label,
.collapsed .chev,
.collapsed .history-list {
  display: none
}

.collapsed .collapse {
  margin: 0;
  width: 41px
}

.collapsed .nav-new {
  padding: 14px;
  justify-content: center;
  margin: 28px 0 12px;
  width: 64px;
  min-height: 58px
}

.collapsed .nav-link {
  width: 64px;
  height: 61px;
  justify-content: center;
  padding: 15px;
  margin: 6px 0;
  min-height: 0
}

.collapsed .nav-link .icon {
  width: 30px;
  height: 30px
}

.collapsed .nav-bottom {
  border-top: 0;
  margin-top: auto !important;
  padding: 0
}

.collapsed .main {
  padding-left: 36px;
  padding-right: 35px
}

.collapsed .page-heading {
  padding-left: 59px;
  padding-top: 7px;
  margin-bottom: 6px
}

.collapsed .workspace {
  grid-template-columns: 378px minmax(0, 1fr);
  gap: 22px
}

.collapsed .subnav a {
  font-size: 16px;
  min-height: 60px
}

.collapsed .subnav {
  padding: 11px 8px
}

.collapsed .research-main {
  padding: 46px 28px 58px 40px
}

.collapsed .research-heading {
  margin-bottom: 51px
}

.collapsed .research-heading h1 {
  font-size: 36.8px
}

.collapsed .research-heading .eyebrow {
  margin: 0 0 21px
}

.collapsed .research-heading>p {
  margin-top: 12px
}

.collapsed .assistant-message {
  padding-left: 44px;
  gap: 40px
}

.collapsed .progress-details {
  margin-left: 121px
}

.collapsed .user-message {
  margin-left: 36%;
  margin-bottom: -4px
}

.collapsed .conversation {
  gap: 27px;
  padding-bottom: 66px
}

.collapsed .assistant-message .bubble {
  max-width: 87%
}

.collapsed .assistant-message .complete-bubble {
  max-width: 91%
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: #173c2e;
  color: #fff;
  box-shadow: 0 8px 35px #10281a26;
  padding: 14px 23px;
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 100;
  max-width: calc(100vw - 32px);
  text-align: center
}

#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0)
}

dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  color: var(--ink);
  background: var(--panel);
  width: min(530px, calc(100% - 32px));
  max-height: 90vh;
  box-shadow: 0 20px 70px #0d23312b
}

dialog::backdrop {
  background: #0c203650;
  backdrop-filter: blur(3px)
}

.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px
}

.field {
  display: block;
  margin: 22px 0
}

.field>span {
  display: block;
  margin-bottom: 8px;
  font-size: 14.4px
}

.input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #d5dcea;
  border-radius: 9px;
  padding: 0 15px;
  min-height: 54px;
  gap: 18px;
  background: var(--panel)
}

.input-wrap>.icon {
  color: #7b87a0;
  flex-shrink: 0
}

.input-wrap input {
  border: 0;
  outline: 0;
  background: none;
  min-width: 0;
  width: 100%;
  height: 51px;
  color: var(--ink);
  font-size: 14.4px
}

.input-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 2px #486f6012
}

.input-wrap input::placeholder {
  color: #8b95ac
}

.field small {
  display: block;
  margin-top: 7px
}

.text-input,
textarea.text-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d5dcea;
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink)
}

textarea.text-input {
  min-height: 130px;
  resize: vertical
}

.form-error {
  color: var(--red);
  font-size: 11.2px;
  margin: 10px 0
}

.form-error:empty {
  display: none
}

.mobile-menu {
  display: none
}

.no-results {
  padding: 45px;
  text-align: center;
  color: var(--muted)
}

@media(min-width:1550px) {
  :root {
    --side: 346px
  }

  .main {
    max-width: 1700px
  }

  .research-main {
    padding-top: 80px
  }
}

@media(max-width:1350px) and (min-width:901px) {
  :root {
    --side: 290px
  }

  .sidebar {
    padding-left: 13px;
    padding-right: 13px
  }

  .brand {
    gap: 16px;
    padding: 0 12px
  }

  .brand-name {
    font-size: 16.8px
  }

  .nav-link {
    font-size: 13.6px;
    gap: 22px;
    padding-left: 20px;
    padding-right: 14px
  }

  .nav-new {
    font-size: 14.4px;
    gap: 20px;
    padding-left: 20px
  }

  .workspace {
    grid-template-columns: 255px minmax(0, 1fr)
  }

  .subnav a {
    font-size: 12.8px;
    gap: 18px;
    padding: 14px 13px
  }

  .main {
    padding-right: 26px
  }

  .research-heading h1 {
    font-size: 31.2px
  }

  .research-heading>p {
    font-size: 14.4px
  }

  .user-message .bubble,
  .assistant-message .bubble,
  .download-link {
    font-size: 14.4px
  }

  .collapsed .workspace {
    grid-template-columns: 310px minmax(0, 1fr)
  }

  .collapsed .subnav a {
    font-size: 13.6px
  }

  .general-panel .segmented button {
    padding: 12px
  }

  .page-heading h1 {
    font-size: 28.8px
  }
}

@media(max-width:1100px) {
  .workspace {
    grid-template-columns: 235px minmax(0, 1fr)
  }

  .panel-pad {
    padding: 22px
  }

  .general-panel .setting-row {
    flex-wrap: wrap
  }

  .general-panel .select,
  .general-panel .segmented {
    width: 100%
  }

  .research-heading {
    margin-left: 0;
    margin-right: 0
  }

  .user-message {
    margin-left: 10%;
    gap: 15px
  }

  .assistant-message {
    gap: 18px;
    padding-left: 0
  }

  .progress-details {
    margin-left: 53px
  }

  .progress-details summary {
    gap: 15px;
    padding: 18px
  }

  .assistant-message .complete-bubble {
    gap: 15px
  }

  .collapsed .workspace {
    grid-template-columns: 270px minmax(0, 1fr)
  }
}

@media(max-width:900px) {
  :root {
    --side: 80px
  }

  .sidebar {
    padding: 22px 8px;
    align-items: center
  }

  .brand {
    padding: 0;
    flex-direction: column;
    gap: 24px
  }

  .brand-name,
  .nav-label,
  .chev,
  .history-list {
    display: none
  }

  .brand .logo {
    width: 34px;
    height: 44px
  }

  .collapse {
    margin: 0
  }

  .nav-new {
    width: 60px;
    min-height: 57px;
    margin: 26px 0 12px;
    padding: 13px;
    justify-content: center
  }

  .nav-link {
    width: 60px;
    height: 57px;
    justify-content: center;
    padding: 13px;
    min-height: 0
  }

  .nav-bottom {
    margin-top: auto !important;
    border: 0;
    padding: 0
  }

  .main,
  .collapsed .main {
    padding: 25px 20px;
    margin-left: 80px
  }

  .page-heading,
  .collapsed .page-heading {
    padding: 7px 0 25px;
    min-height: 130px
  }

  .page-heading h1 {
    font-size: 25.6px;
    letter-spacing: -.7px
  }

  .page-heading p {
    font-size: 13.6px
  }

  .avatar-top {
    right: 18px;
    top: 24px;
    width: 43px;
    height: 43px
  }

  .workspace,
  .collapsed .workspace {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 12px
  }

  .subnav a,
  .collapsed .subnav a {
    font-size: 12px;
    gap: 12px;
    padding: 13px 10px;
    min-height: 53px
  }

  .subnav a .icon {
    width: 24px;
    height: 24px
  }

  .subnav .sub-items a {
    padding-left: 15px
  }

  .research-main,
  .collapsed .research-main {
    padding: 78px 20px 25px
  }

  .research-heading,
  .collapsed .research-heading {
    margin: 0 0 34px
  }

  .research-heading h1,
  .collapsed .research-heading h1 {
    font-size: 27.2px
  }

  .research-heading>p {
    font-size: 14.4px
  }

  .research-heading .eyebrow {
    font-size: 9.6px;
    letter-spacing: 2px
  }

  .user-message,
  .collapsed .user-message {
    margin-left: 8%;
    gap: 15px
  }

  .assistant-message,
  .collapsed .assistant-message {
    padding-left: 0;
    gap: 15px
  }

  .assistant-message .bubble,
  .collapsed .assistant-message .bubble,
  .collapsed .assistant-message .complete-bubble {
    max-width: 100%;
    font-size: 13.6px
  }

  .user-message .bubble {
    font-size: 13.6px
  }

  .progress-details,
  .collapsed .progress-details {
    margin-left: 50px
  }

  .progress-details summary {
    font-size: 12.8px;
    gap: 14px
  }

  .progress-details time {
    display: none
  }

  .progress-details .badge {
    font-size: 10.4px
  }

  .download-link {
    font-size: 13.6px
  }

  .conversation,
  .collapsed .conversation {
    gap: 25px;
    padding-bottom: 35px
  }

  .composer textarea {
    font-size: 13.6px
  }

  .composer {
    gap: 10px
  }

  .send-btn {
    width: 55px;
    height: 52px
  }

  .setting-row {
    gap: 10px
  }

  .note {
    flex-wrap: wrap
  }

  .note .btn {
    margin-left: 0
  }

  .select {
    min-width: 170px;
    font-size: 12px
  }

  .outline-row {
    gap: 13px;
    padding: 13px
  }

  .outline-row>.icon {
    width: 25px;
    height: 25px
  }

  .outline-row .btn {
    padding: 9px 11px;
    font-size: 10.4px
  }
}

@media(max-width:650px) {
  :root {
    --side: 0px
  }

  .sidebar,
  .collapsed .sidebar {
    display: none;
    width: 285px;
    align-items: stretch;
    padding: 22px 15px;
    box-shadow: 10px 0 40px #16283518
  }

  .sidebar.mobile-open {
    display: flex
  }

  .sidebar.mobile-open .brand {
    flex-direction: row;
    gap: 15px
  }

  .sidebar.mobile-open .brand-name,
  .sidebar.mobile-open .nav-label {
    display: block
  }

  .sidebar.mobile-open .brand-name {
    font-size: 16px
  }

  .sidebar.mobile-open .nav-new,
  .sidebar.mobile-open .nav-link {
    width: 100%;
    justify-content: flex-start;
    font-size: 13.6px;
    gap: 18px
  }

  .sidebar.mobile-open .collapse {
    margin-left: auto
  }

  .mobile-menu {
    display: flex;
    position: absolute;
    left: 16px;
    top: 19px;
    border: 1px solid var(--line);
    background: var(--panel);
    z-index: 25
  }

  .main,
  .collapsed .main {
    margin-left: 0;
    padding: 78px 16px 25px
  }

  .avatar-top {
    top: 19px;
    right: 17px;
    width: 42px;
    height: 42px
  }

  .page-heading,
  .collapsed .page-heading {
    margin: 0;
    padding: 2px 0 25px;
    min-height: 0
  }

  .page-heading h1 {
    font-size: 24px;
    overflow-wrap: anywhere
  }

  .page-heading p {
    font-size: 12.8px;
    margin-top: 10px
  }

  .eyebrow {
    font-size: 9.6px;
    letter-spacing: 2px
  }

  .workspace,
  .collapsed .workspace {
    display: flex;
    flex-direction: column
  }

  .subnav {
    display: flex;
    overflow: auto;
    width: 100%;
    padding: 6px;
    margin-bottom: 9px;
    gap: 4px
  }

  .subnav a,
  .collapsed .subnav a {
    white-space: nowrap;
    min-height: 43px;
    padding: 9px 13px;
    gap: 8px
  }

  .subnav a .icon {
    width: 20px;
    height: 20px
  }

  .subnav .sub-items {
    display: contents
  }

  .subnav .sub-items a {
    padding: 9px 13px
  }

  .subnav .divider {
    display: none
  }

  .panel {
    padding: 16px
  }

  .panel-pad {
    padding: 20px
  }

  .panel h2 {
    font-size: 15.2px
  }

  .setting-row {
    font-size: 12px
  }

  .general-panel .setting-row {
    font-size: 12.8px
  }

  .general-panel .setting-copy>p {
    font-size: 11.2px
  }

  .general-panel .segmented button {
    padding: 10px;
    font-size: 11.2px
  }

  .general-panel .setting-row label {
    flex-basis: 100%
  }

  .outline-row {
    flex-wrap: wrap
  }

  .outline-row>.grow {
    flex-basis: calc(100% - 55px)
  }

  .outline-row .btn {
    margin-left: auto
  }

  .research-heading h1,
  .collapsed .research-heading h1 {
    font-size: 25.6px;
    line-height: 1.15
  }

  .research-heading>p {
    font-size: 12.8px;
    line-height: 1.5;
    margin-top: 17px
  }

  .research-heading .eyebrow {
    font-size: 8px;
    margin-bottom: 14px
  }

  .research-main,
  .collapsed .research-main {
    padding: 91px 15px 22px
  }

  .user-message,
  .collapsed .user-message {
    margin-left: 20px;
    gap: 10px
  }

  .user-avatar {
    width: 34px;
    height: 34px
  }

  .user-avatar .icon {
    width: 23px;
    height: 23px
  }

  .user-message .bubble {
    padding: 13px 15px;
    font-size: 12.8px
  }

  .assistant-message,
  .collapsed .assistant-message {
    gap: 10px
  }

  .assistant-message>.logo {
    width: 25px;
    height: 35px
  }

  .assistant-message .bubble,
  .collapsed .assistant-message .bubble {
    font-size: 12.8px;
    padding: 13px 15px
  }

  .message-byline {
    font-size: 11.2px
  }

  .complete-icon {
    min-width: 29px;
    height: 29px
  }

  .complete-icon .icon {
    width: 20px
  }

  .assistant-message .complete-bubble {
    gap: 11px
  }

  .complete-bubble h3 {
    font-size: 13.6px
  }

  .download-link {
    font-size: 12px;
    gap: 8px;
    word-break: break-word
  }

  .download-link .icon {
    width: 21px
  }

  .progress-details,
  .collapsed .progress-details {
    margin-left: 35px
  }

  .progress-details summary {
    padding: 15px 12px;
    gap: 9px;
    font-size: 11.2px
  }

  .progress-details .badge {
    font-size: 9.6px;
    padding: 3px 8px
  }

  .progress-steps {
    margin-left: 30px;
    font-size: 11.2px
  }

  .composer {
    min-height: 64px;
    gap: 9px;
    padding: 5px 7px
  }

  .composer>.icon-btn {
    width: 38px;
    height: 37px
  }

  .composer>.icon-btn .icon {
    width: 24px
  }

  .composer textarea {
    height: 48px;
    padding: 13px 0;
    font-size: 12px
  }

  .send-btn {
    height: 45px;
    width: 45px
  }

  .send-btn .icon {
    width: 22px
  }

  .breadcrumb {
    font-size: 11.2px;
    gap: 6px
  }

  .note {
    font-size: 10.4px;
    padding: 12px;
    gap: 10px
  }

  .note .icon {
    width: 21px
  }

  .btn {
    white-space: normal
  }

  .empty-research {
    margin: 40px auto
  }

  .mobile-open~.main:before {
    content: '';
    position: fixed;
    inset: 0;
    background: #14273d40;
    z-index: 15
  }

  .no-results {
    padding: 25px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important
  }
}
