.moss-idle {
  position: relative;
  z-index: 30;
}

.fill-none { fill: transparent; }

.fill-sky { fill: var(--color-sky); }

.fill-pale { fill: var(--color-pale); }

.fill-green { fill: var(--color-green); }

.fill-deep { fill: var(--color-deep); }

.stroke-sky,
.stroke-pale,
.stroke-green,
.stroke-deep {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stroke-sky { stroke: var(--color-sky); }

.stroke-pale { stroke: var(--color-pale); }

.stroke-green { stroke: var(--color-green); }

.stroke-deep { stroke: var(--color-deep); }

.moss-idle {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  overflow: visible;
  transform-origin: 50% 100%;
  animation: moss-trip 19s ease-in-out infinite;
}

.moss-idle * {
  transform-box: fill-box;
}

.moss__torso {
  transform-origin: 50% 100%;
  animation: moss-breathe 3.6s ease-in-out infinite;
}

.moss__eyes {
  transform-origin: 50% 50%;
  animation: moss-blink 4.7s ease-in-out infinite, moss-sleepy 13s ease-in-out infinite;
}

.moss__mouth {
  animation: moss-smile 13s ease-in-out infinite;
}

.moss__mouth-open {
  opacity: 0;
  transform-origin: 50% 20%;
  animation: moss-yawn 13s ease-in-out infinite;
}

.moss__arm-left {
  transform-origin: 100% 100%;
  animation: moss-wave 9s ease-in-out infinite;
}

.moss__arm-right {
  transform-origin: 0 0;
  animation: moss-scratch 14s ease-in-out infinite 3s;
}

.moss__ear-left {
  transform-origin: 80% 100%;
  animation: moss-flop-left 11s ease-in-out infinite;
}

.moss__ear-right {
  transform-origin: 20% 100%;
  animation: moss-flop-right 17s ease-in-out infinite 2s;
}

.moss__leg-left,
.moss__leg-right {
  transform-origin: 50% 0;
  animation: moss-shuffle 6s ease-in-out infinite;
}

.moss__leg-right {
  animation-delay: 0.9s;
}

.moss--held,
.moss--air,
.moss--stunt,
.moss--giggle {
  animation: none;
}

.moss--held {
  cursor: grabbing;
}

.moss--held .moss__torso,
.moss--air .moss__torso,
.moss--held .moss__eyes,
.moss--air .moss__eyes,
.moss--held .moss__arm-left,
.moss--held .moss__arm-right,
.moss--air .moss__arm-left,
.moss--air .moss__arm-right,
.moss--held .moss__leg-left,
.moss--held .moss__leg-right,
.moss--air .moss__leg-left,
.moss--air .moss__leg-right,
.moss--held .moss__ear-left,
.moss--held .moss__ear-right,
.moss--air .moss__ear-left,
.moss--air .moss__ear-right {
  animation: none;
}

.moss--held .moss__eyes,
.moss--air .moss__eyes {
  scale: 1.25 1.45;
}

.moss--held .moss__mouth,
.moss--air .moss__mouth {
  animation: none;
  opacity: 0;
}

.moss--held .moss__mouth-open,
.moss--air .moss__mouth-open {
  animation: none;
  opacity: 1;
}

.moss--held .moss__arm-left,
.moss--air .moss__arm-left {
  animation: moss-flail 0.22s ease-in-out infinite alternate;
}

.moss--held .moss__arm-right,
.moss--air .moss__arm-right {
  animation: moss-flail 0.22s ease-in-out infinite alternate-reverse;
}

.moss--held .moss__leg-left,
.moss--air .moss__leg-left {
  animation: moss-dangle 0.3s ease-in-out infinite alternate;
}

.moss--held .moss__leg-right,
.moss--air .moss__leg-right {
  animation: moss-dangle 0.3s ease-in-out infinite alternate-reverse;
}

.moss--held .moss__ear-left,
.moss--air .moss__ear-left {
  animation: moss-ear-drag-left 0.28s ease-in-out infinite alternate;
}

.moss--held .moss__ear-right,
.moss--air .moss__ear-right {
  animation: moss-ear-drag-right 0.28s ease-in-out infinite alternate;
}

.moss--down .moss__eyes {
  animation: none;
  scale: 1 0.15;
}

.moss--down .moss__mouth {
  animation: none;
}

.moss--down .moss__mouth-open {
  animation: none;
}

.moss--down .moss__arm-left,
.moss--down .moss__arm-right,
.moss--down .moss__leg-left,
.moss--down .moss__leg-right {
  animation: none;
}

.moss--run .moss__leg-left,
.moss--run .moss__leg-right {
  animation: moss-run-legs 0.16s linear infinite alternate;
}

.moss--run .moss__leg-right {
  animation-direction: alternate-reverse;
}

.moss--run .moss__arm-left,
.moss--run .moss__arm-right {
  animation: moss-run-arms 0.16s linear infinite alternate;
}

.moss--run .moss__arm-right {
  animation-direction: alternate-reverse;
}

.moss--run .moss__torso {
  animation: moss-run-bob 0.16s ease-in-out infinite alternate;
}

.moss--run .moss__mouth {
  animation: none;
  opacity: 0;
}

.moss--run .moss__mouth-open {
  animation: none;
  opacity: 1;
}

.moss--dizzy .moss__eyes,
.moss--bonk .moss__eyes {
  animation: none;
  scale: 1 0.4;
}

.moss--dizzy .moss__mouth,
.moss--bonk .moss__mouth {
  animation: none;
  opacity: 0;
}

.moss--dizzy .moss__mouth-open,
.moss--bonk .moss__mouth-open {
  animation: none;
  opacity: 1;
}

.moss--dizzy .moss__ear-left,
.moss--dizzy .moss__ear-right {
  animation: moss-ear-drag-left 0.4s ease-in-out infinite alternate;
}

.moss--look .moss__eyes {
  animation: none;
  scale: 1.2 1.3;
}

.moss--giggle {
  animation: moss-giggle 0.9s ease-in-out 1;
}

@keyframes moss-breathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.025, 0.965); }
}

@keyframes moss-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.1); }
}

@keyframes moss-sleepy {
  0%, 62%, 82%, 100% { scale: 1 1; }
  68%, 76% { scale: 1 0.2; }
}

@keyframes moss-smile {
  0%, 64%, 80%, 100% { opacity: 1; }
  67%, 77% { opacity: 0; }
}

@keyframes moss-yawn {
  0%, 64%, 80%, 100% { opacity: 0; transform: scale(0.5, 0.3); }
  70% { opacity: 1; transform: scale(1.1, 1.25); }
  74% { opacity: 1; transform: scale(1, 1.1); }
}

@keyframes moss-wave {
  0%, 20%, 100% { transform: rotate(0); }
  4% { transform: rotate(-38deg); }
  8% { transform: rotate(14deg); }
  12% { transform: rotate(-34deg); }
  16% { transform: rotate(8deg); }
}

@keyframes moss-scratch {
  0%, 30%, 100% { transform: rotate(0); }
  8%, 14%, 20% { transform: rotate(-92deg); }
  11%, 17%, 23% { transform: rotate(-70deg); }
}

@keyframes moss-flop-left {
  0%, 38%, 100% { transform: rotate(0); }
  42% { transform: rotate(-26deg); }
  46% { transform: rotate(8deg); }
  50% { transform: rotate(-12deg); }
  56% { transform: rotate(0); }
  78% { transform: rotate(-6deg) scaleY(0.9); }
}

@keyframes moss-flop-right {
  0%, 30%, 100% { transform: rotate(0); }
  36% { transform: rotate(30deg); }
  42% { transform: rotate(-6deg); }
  48% { transform: rotate(18deg); }
  56% { transform: rotate(0); }
}

@keyframes moss-shuffle {
  0%, 46%, 100% { transform: rotate(0); }
  50% { transform: rotate(14deg); }
  56% { transform: rotate(-12deg); }
  62% { transform: rotate(0); }
}

@keyframes moss-trip {
  0%, 62%, 100% { transform: translate(0, 0) rotate(0); }
  64% { transform: translate(-3px, 0) rotate(-6deg); }
  66% { transform: translate(4px, -2px) rotate(14deg); }
  68% { transform: translate(10px, 2px) rotate(34deg); }
  71% { transform: translate(7px, 0) rotate(-12deg); }
  74% { transform: translate(-2px, 0) rotate(7deg); }
  78% { transform: translate(0, 0) rotate(-3deg); }
  84% { transform: translate(0, -9px) rotate(0); }
  87% { transform: translate(0, 0) scale(1.06, 0.88); }
  90% { transform: translate(0, 0) scale(1, 1); }
}

@keyframes moss-giggle {
  0%, 100% { transform: translate(0, 0) rotate(0) scale(1, 1); }
  12% { transform: translate(0, 4px) scale(1.12, 0.82); }
  28% { transform: translate(0, -18px) rotate(-10deg) scale(0.92, 1.12); }
  42% { transform: translate(0, 0) scale(1.1, 0.86); }
  56% { transform: translate(0, -9px) rotate(9deg); }
  70% { transform: translate(0, 0) rotate(-7deg) scale(1.05, 0.93); }
  84% { transform: translate(0, -3px) rotate(4deg); }
}

@keyframes moss-run-legs {
  0% { transform: rotate(-38deg); }
  100% { transform: rotate(38deg); }
}

@keyframes moss-run-arms {
  0% { transform: rotate(-55deg); }
  100% { transform: rotate(50deg); }
}

@keyframes moss-run-bob {
  0% { transform: scale(1.03, 0.95); }
  100% { transform: scale(0.98, 1.04); }
}

@keyframes moss-flail {
  0% { transform: rotate(-40deg); }
  100% { transform: rotate(40deg); }
}

@keyframes moss-dangle {
  0% { transform: rotate(-22deg); }
  100% { transform: rotate(22deg); }
}

@keyframes moss-ear-drag-left {
  0% { transform: rotate(8deg); }
  100% { transform: rotate(-22deg); }
}

@keyframes moss-ear-drag-right {
  0% { transform: rotate(22deg); }
  100% { transform: rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .moss-idle {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moss__torso { animation-duration: 3.6s !important; animation-iteration-count: infinite !important; }
  .moss__eyes { animation-duration: 4.7s, 13s !important; animation-iteration-count: infinite !important; }
  .moss__mouth,
  .moss__mouth-open { animation-duration: 13s !important; animation-iteration-count: infinite !important; }
  .moss__arm-left { animation-duration: 9s !important; animation-iteration-count: infinite !important; }
  .moss__arm-right { animation-duration: 14s !important; animation-iteration-count: infinite !important; }
  .moss__ear-left { animation-duration: 11s !important; animation-iteration-count: infinite !important; }
  .moss__ear-right { animation-duration: 17s !important; animation-iteration-count: infinite !important; }
  .moss__leg-left,
  .moss__leg-right { animation-duration: 6s !important; animation-iteration-count: infinite !important; }
}

.page.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: var(--space-4);
  max-width: calc(var(--measure-page) - 2 * var(--space-4));
  margin: calc(2 * var(--space-6)) auto var(--space-6);
  text-align: center;
}

:is(.main, .content):has(.page.welcome) {
  padding-top: 0;
}

.welcome__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: var(--weight-title);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.welcome__lead {
  max-width: 40rem;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

.welcome__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: var(--space-3);
  width: 100%;
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  text-align: start;
}

.points + .points {
  margin-top: calc(var(--space-3) - var(--space-4));
}

.point {
  display: grid;
  grid-template-rows: 2.5rem auto;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.point__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-deep);
}

.point__glyph {
  width: 2.25rem;
  height: 2.25rem;
}

.point__body {
  display: grid;
  align-content: start;
  gap: var(--space-1);
}

.point__title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--weight-strong);
}

.point__text {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-metadata);
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-4);
  font-size: 0.875rem;
}

.site-links__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-4);
}

.site-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--target-min);
  min-height: var(--target-min);
  color: var(--color-text-secondary);
  text-decoration: none;
}

.shell__footer.site-links {
  width: 100%;
  max-width: none;
  margin: var(--space-6) 0 0;
  padding: var(--space-2) var(--space-5);
  box-sizing: border-box;
}

.shell--signed .shell__footer.site-links {
  display: none;
}

.shell__footer.site-links {
  position: relative;
  isolation: isolate;
  align-items: flex-end;
  margin-top: auto;
  padding: 0 var(--space-5) var(--space-2);
}

:has(> .shell__footer.site-links) {
  padding-bottom: 0;
}

.shell__footer.site-links a {
  color: var(--color-text-secondary);
}

.site-links__moss {
  position: absolute;
  inset-inline-end: 12%;
  bottom: 3.5rem;
  width: 4.5rem;
  height: auto;
}

#app:has(> .shell__footer) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#app > .shell__footer {
  margin-top: auto;
}

#app:has(> .shell__footer) > :not(.shell__footer, .visually-hidden, .skip) {
  width: 100%;
}

.stories {
  display: grid;
  width: 100%;
  margin-top: var(--space-6);
  text-align: start;
}

.story {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6) 0;
  border-top: var(--border-hairline) solid var(--color-border);
}

.story__title {
  margin: 0;
  font-size: var(--text-heading);
  font-weight: var(--weight-title);
  line-height: 1.2;
}

.story__text {
  max-width: 40rem;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  line-height: 1.55;
}

.account {
  display: flex;
  flex: none;
  align-items: center;
  margin-inline-start: auto;
}

.account:empty {
  width: var(--target-min);
  height: var(--target-min);
}

.account__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--target-min);
  min-height: var(--target-min);
  padding: 0.25rem 1rem;
  font: inherit;
  font-size: var(--text-body);
  font-weight: var(--weight-strong);
  color: var(--color-on-primary);
  background: var(--color-primary);
  border: var(--border-hairline) solid transparent;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow var(--duration-fast) var(--easing-standard);
}

.account__action:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.avatar {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  overflow: hidden;
  color: var(--color-avatar-text);
  font-weight: var(--weight-strong);
  line-height: 1;
  border-radius: 50%;
  user-select: none;
}

.avatar--small {
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
}

.avatar--large {
  width: 5rem;
  height: 5rem;
  font-size: 2.25rem;
}

.avatar__initial,
.avatar__image {
  grid-area: 1 / 1;
}

.avatar {
  container-type: size;
}

.avatar__initial {
  font-size: 50cqh;
  font-weight: 500;
  line-height: 1;
  user-select: none;
}

.avatar__image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--tone0 {
  background: var(--color-avatar-a);
}
.avatar--tone1 {
  background: var(--color-avatar-b);
}
.avatar--tone2 {
  background: var(--color-avatar-c);
}
.avatar--tone3 {
  background: var(--color-avatar-d);
}
.avatar--tone4 {
  background: var(--color-avatar-e);
}
.avatar--tone5 {
  background: var(--color-avatar-f);
}
.avatar--tone6 {
  background: var(--color-avatar-g);
}
.avatar--tone7 {
  background: var(--color-avatar-h);
}

.account-menu {
  position: relative;
  flex: none;
}

.account-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--target-min);
  min-height: var(--target-min);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-soft);
  cursor: pointer;
}

.account-menu__panel {
  position: absolute;
  top: 100%;
  margin-top: 0.375rem;
  inset-inline-end: -0.5rem;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(25rem, calc(100vw - 1rem));
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
  padding: 3.25rem 1rem 1rem;
  color: var(--am-text);
  background: var(--am-panel);
  border: 0;
  border-radius: 1.75rem;
  box-shadow: 0 4px 8px 3px rgb(0 0 0 / 15%), 0 1px 3px rgb(0 0 0 / 30%);
}

.account-menu__panel[hidden] {
  display: none;
}

.account-menu__panel:not([hidden]),
.launcher__menu:not([hidden]) {
  animation: menu-in var(--duration-base) var(--easing-enter);
  transform-origin: top right;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(calc(-1 * var(--space-1))) scale(0.98);
  }
}

.account-menu__close {
  position: absolute;
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  color: var(--am-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.account-menu__close-icon {
  width: 1.375rem;
  height: 1.375rem;
}

.account-menu__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  overflow: hidden;
  border: 0;
  border-radius: 1.75rem;
}

.account-menu__head {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--am-row);
  border-radius: 0.25rem;
}

.account-menu__photo {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  padding: 0;
  color: var(--am-text);
  text-decoration: none;
}

.account-menu__edit {
  position: absolute;
  inset-inline-end: -0.25rem;
  inset-block-end: -0.25rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--am-text);
  background: var(--am-row);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--am-row);
}

.account-menu__edit-icon {
  width: 0.875rem;
  height: 0.875rem;
}

.account-menu__expand {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 2.25rem;
  margin-inline-start: auto;
  padding: 0;
  color: var(--am-muted);
  background: var(--am-panel);
  border: 0;
  border-radius: 0.75rem;
  cursor: pointer;
}

.account-menu__expand::after {
  position: absolute;
  inset-block: 0;
  inset-inline: calc(3.25rem + var(--space-3) * 2) 0;
  z-index: 0;
  content: "";
}

.account-menu__expand:focus-visible {
  outline: none;
}

.account-menu__expand:focus-visible::after {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}

.account-menu__expand-icon {
  position: relative;
  z-index: 1;
  width: 1.5rem;
  height: 1.5rem;
  transition: transform var(--duration-fast) var(--easing-standard);
}

.account-menu__expand[aria-expanded="true"] .account-menu__expand-icon {
  transform: rotate(180deg);
}

.account-menu__list {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--duration-fast) var(--easing-standard), visibility 0s linear var(--duration-fast);
}

.account-menu__list[data-open] {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}

.account-menu__rows {
  display: grid;
  gap: 2px;
  min-height: 0;
  overflow: hidden;
}

.account-menu__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1.125rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: var(--am-text);
  text-align: start;
  text-decoration: none;
  background: var(--am-row);
  border: 0;
  border-radius: 0.25rem;
}

.account-menu__row--add,
.account-menu__row--sites,
.account-menu__row--link,
.account-menu__row--other,
.account-menu__row--out {
  min-width: var(--target-min);
  min-height: var(--target-min);
  cursor: pointer;
}

.account-menu__row-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--am-muted);
}

.account-menu__row-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.account-menu__manage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5rem;
  color: var(--am-text);
  text-align: start;
  text-decoration: none;
  background: var(--am-row);
  border: 0;
  border-radius: 1.75rem;
  cursor: pointer;
}

.account-menu__manage-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.account-menu__policies {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1rem;
}

.account-menu__policies a {
  color: var(--am-text);
  text-decoration: none;
}

.account-menu__dot {
  color: var(--am-text);
}

.account-menu__head .avatar--large {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.5rem;
}

.account-menu__who {
  position: relative;
  z-index: 1;
  align-self: center;
  min-width: 0;
  padding-inline: 1.25rem 0.5rem;
  pointer-events: none;
}

.account-menu__name {
  margin: 0;
  overflow: hidden;
  color: var(--am-text);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu__email {
  margin: 0;
  overflow: hidden;
  color: var(--am-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
  cursor: copy;
}

.launcher {
  position: relative;
  flex: none;
}

.launcher__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--target-min);
  min-height: var(--target-min);
  padding: 0;
  color: var(--color-text-secondary);
  background: transparent;
  border: 0;
  border-radius: var(--radius-soft);
  cursor: pointer;
}

.launcher__icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 2;
}

.launcher__heading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.25rem 0.5rem 0.5rem;
  color: var(--launcher-text);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.75rem;
}


.launcher__menu {
  position: absolute;
  top: 100%;
  margin-top: 0.375rem;
  inset-inline-end: -0.5rem;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: min(21.5rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
  padding: 0.5rem;
  background: var(--launcher-outer);
  border: 0;
  border-radius: 1.75rem;
  box-shadow: 0 4px 8px 3px rgb(0 0 0 / 15%), 0 1px 3px rgb(0 0 0 / 30%);
}

.launcher__group {
  display: grid;
  grid-template-columns: repeat(3, 5.5rem);
  justify-content: space-between;
  row-gap: 0.75rem;
  padding: 1rem 0.75rem;
  background: var(--launcher-inner);
  border-radius: 0.25rem 0.25rem 1.5rem 1.5rem;
}

.launcher__group--favorites {
  background: var(--launcher-favorites);
  border-radius: 1.5rem 1.5rem 0.25rem 0.25rem;
}

.launcher__group--favorites:only-child {
  border-radius: 1.5rem;
}

.launcher__menu[hidden] {
  display: none;
}

.launcher__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 5.5rem;
  height: 5.5rem;
  padding: 0.3125rem 0.375rem 0;
  border-radius: 0.875rem;
  color: var(--launcher-text);
  text-decoration: none;
}

.launcher__tile {
  display: grid;
  place-items: center;
  width: 3.3125rem;
  height: 3.3125rem;
  background: transparent;
}

.avatar--tile {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.125rem;
}

.launcher__glyph {
  width: 3.3125rem;
  height: 3.3125rem;
}

.launcher__name {
  max-width: 4.75rem;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.125rem;
  letter-spacing: 0.0056rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launcher__item:hover {
  background: var(--launcher-hover);
}

.launcher__trigger[aria-expanded="true"] {
  background: var(--launcher-hover);
  border-radius: 50%;
}

.launcher__item:focus-visible,
.account-menu__row:focus-visible,
.account-menu__manage:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}

.account-menu__value {
  margin-inline-start: auto;
  color: var(--am-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.account-menu__card > .account-menu__row:first-child {
  border-top: 0;
}

@media (max-width: 48rem) {
  .launcher__menu {
    position: fixed;
    top: var(--launcher-top, 4rem);
    inset-inline: var(--space-4);
    width: auto;
    max-height: calc(100dvh - var(--launcher-top, 4rem) - var(--space-4));
    overflow-y: auto;
  }

  .nav .nav__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-1);
    overflow: visible;
  }

  .nav .nav__list[data-more] {
    mask-image: linear-gradient(to right, var(--color-text) calc(100% - 2.5rem), transparent);
  }

  .nav .nav__list[data-back] {
    mask-image: linear-gradient(to left, var(--color-text) calc(100% - 2.5rem), transparent);
  }

  .nav .nav__list[data-back][data-more] {
    mask-image: linear-gradient(to right, transparent, var(--color-text) 2.5rem, var(--color-text) calc(100% - 2.5rem), transparent);
  }

  .nav .nav__link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.125rem;
    flex: 1 1 auto;
    min-width: var(--target-min);
    min-height: var(--target-min);
    padding: var(--space-1) var(--space-2);
    font-size: 0.8125rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    border-radius: var(--radius-soft);
  }
}

.header .account {
  gap: var(--space-2);
}

[data-copy] {
  cursor: copy;
}

[data-copy].is-copied::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-inline-start: 0.25em;
  vertical-align: -0.15em;
  background: var(--color-accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M5 12.5l4.5 4.5L19 7.500%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.600%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / contain no-repeat;
}

.header .brand {
  gap: 0;
  min-width: 0;
}

:root .header {
  min-width: 0;
}

:root .header__end {
  flex: none;
}

.header .brand__name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-text-secondary);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.brand__glyph {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
}

.brand__word {
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand__product {
  overflow: hidden;
  text-overflow: ellipsis;
}

select option,
select optgroup {
  background: var(--color-pale);
  color: var(--color-deep);
}

select option:checked {
  background: var(--color-green);
  color: var(--color-pale);
}

@media (max-width: 48rem) {
  .nav .nav__link[aria-current="page"] {
    background: var(--color-pale);
  }
}

:root .header__inner {
  max-width: none;
  padding-inline: 24px;
}

@media (max-width: 48rem) {
  :root .header__inner {
    padding-inline: 16px;
  }

  :root .header__inner > .brand {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
  }

  :root .header__inner > .brand .brand__name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  :root .header__inner > :not(.brand, .find) {
    flex-shrink: 0;
  }
}

@media (max-width: 48rem) {
  :root .nav:is(:not(.side .nav), .nav--bar) {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    margin: 0;
    padding: 0 var(--space-2) env(safe-area-inset-bottom, 0px);
    border: 0;
    background: var(--am-panel);
  }

  :root .nav:is(:not(.side .nav), .nav--bar) .nav__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    mask-image: none;
  }

  :root .nav:is(:not(.side .nav), .nav--bar) .nav__list::-webkit-scrollbar {
    display: none;
  }

  :root .nav:is(:not(.side .nav), .nav--bar) .nav__link {
    flex: 1 0 4.5rem;
    min-height: var(--target-min);
    padding-block: var(--space-2);
    color: var(--am-muted);
    background: transparent;
  }

  :root .nav:is(:not(.side .nav), .nav--bar) .nav__link[aria-current="page"] {
    background: transparent;
    color: var(--am-text);
    font-weight: 600;
  }

  :root .nav:is(:not(.side .nav), .nav--bar) .nav__link[aria-current="page"] :is(.nav__icon, svg:first-child) {
    border-radius: 16px;
    background: var(--nav-bar-pill);
  }

  :root:has(.nav:is(:not(.side .nav), .nav--bar):not([hidden], .side[hidden] .nav)) body {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
}

:root {
  --launcher-outer: #e9eef6;
  --am-panel: #f0f4f9;
  --am-row: #ffffff;
  --am-text: #1f1f1f;
  --am-muted: #444746;
  --nav-bar-pill: #c2e7ff;
  --launcher-inner: #f8fafd;
  --launcher-favorites: #f8fafd;
  --launcher-hover: rgb(31 31 31 / 8%);
  --launcher-text: #1f1f1f;
  --color-tint-blue: #4285f4;
  --color-tint-red: #ea4335;
  --color-tint-yellow: #fbbc04;
  --color-tint-green: #34a853;
}

.tint-blue {
  color: var(--color-tint-blue);
}

.tint-red {
  color: var(--color-tint-red);
}

.tint-yellow {
  color: var(--color-tint-yellow);
}

.tint-green {
  color: var(--color-tint-green);
}

:root[data-theme="dark"] {
  --launcher-outer: #282a2c;
  --am-panel: #1b1c1d;
  --am-row: #0e0e0e;
  --am-text: #e3e3e3;
  --am-muted: #c4c7c5;
  --nav-bar-pill: #004a77;
  --launcher-inner: #282a2c;
  --launcher-favorites: #1b1b1b;
  --launcher-hover: rgb(227 227 227 / 8%);
  --launcher-text: #e3e3e3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --launcher-outer: #282a2c;
    --am-panel: #1b1c1d;
    --am-row: #0e0e0e;
    --am-text: #e3e3e3;
    --am-muted: #c4c7c5;
    --nav-bar-pill: #004a77;
    --launcher-inner: #282a2c;
    --launcher-favorites: #1b1b1b;
    --launcher-hover: rgb(227 227 227 / 8%);
    --launcher-text: #e3e3e3;
  }
}



.drawer-open {
  display: none;
}

.site-drawer[hidden] {
  display: none;
}

@media (max-width: 63.99rem) {
  .drawer-open {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-inline-start: -12px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
  }

  .drawer-open__bars,
  .drawer-open__bars::before,
  .drawer-open__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-text-secondary);
  }

  .drawer-open__bars {
    position: relative;
  }

  .drawer-open__bars::before,
  .drawer-open__bars::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .drawer-open__bars::before {
    top: -6px;
  }

  .drawer-open__bars::after {
    top: 6px;
  }

}

.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--color-text) 60%, transparent);
}

.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  width: min(334px, calc(100% - 56px));
  background: var(--color-bg);
}

.drawer__head {
  display: flex;
  align-items: center;
  height: 66px;
  padding-inline: 24px;
  border-bottom: 1px solid var(--color-border);
}

.drawer__links {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-block: 24px;
  overflow-y: auto;
}

.drawer__link {
  padding: 12px 24px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
}

.drawer__link:hover,
.drawer__link:focus-visible {
  color: var(--color-text);
  background: var(--color-surface);
}

.drawer__foot {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
}

.drawer__action {
  width: 100%;
  min-height: var(--control-height);
  color: var(--color-on-accent, var(--color-bg));
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  background: var(--color-accent);
  border: 0;
  border-radius: 24px;
  cursor: pointer;
}

.drawer-close {
  position: absolute;
  top: 12px;
  inset-inline-start: min(346px, calc(100% - 52px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--color-bg);
  background: transparent;
  border: 0;
  cursor: pointer;
}


.drawer__brand,
.drawer__brand .brand__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
  font-size: 22px;
  font-weight: 400;
  text-decoration: none;
}

.drawer__brand svg {
  width: 36px;
  height: 36px;
}

.drawer-close::before,
.drawer-close::after {
  position: absolute;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.drawer-close::before {
  transform: rotate(45deg);
}

.drawer-close::after {
  transform: rotate(-45deg);
}

.drawer__link[aria-current="page"] {
  margin-inline-end: 8px;
  color: var(--color-text);
  font-weight: 500;
  background: var(--color-surface);
  border-radius: 0 24px 24px 0;
}

.drawer__link--accent {
  color: var(--color-accent);
}

.drawer__action--outlined {
  color: var(--color-accent);
  background: transparent;
  border: 1px solid var(--color-border);
}

.drawer__foot:has(.drawer__action + .drawer__action) {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-drawer--sheet .drawer__scrim {
  background: color-mix(in srgb, var(--color-bg) 60%, transparent);
}

.site-drawer--sheet .drawer__panel {
  inset-block-end: auto;
  inset-inline: 0;
  width: auto;
  max-height: 100%;
  box-shadow: 0 4px 8px color-mix(in srgb, var(--color-text) 15%, transparent);
}

.site-drawer--sheet .drawer__head {
  height: 58px;
  padding-inline-start: 56px;
}

.site-drawer--sheet .drawer__links {
  padding-block: 8px;
}

.site-drawer--sheet .drawer__link {
  padding: 15px 16px;
  color: var(--color-text);
}

.site-drawer--sheet .drawer__link--accent {
  color: var(--color-accent);
}

.site-drawer--sheet .drawer-close {
  top: 9px;
  inset-inline-start: 8px;
  color: var(--color-text-secondary);
}

.drawer__action {
  box-sizing: border-box;
  padding-inline: 16px;
}

.drawer__link[aria-current="page"] {
  background: #f8f9fa;
}

.site-drawer--sheet .drawer__action {
  height: 36px;
  min-height: 0;
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .drawer__link[aria-current="page"] {
    background: #303134;
  }
}

:root[data-theme="dark"] .drawer__link[aria-current="page"] {
  background: #303134;
}

:root {
  --syntax-kw: #6b1f7a;
  --syntax-str: #0b5a2d;
  --syntax-com: #3b584c;
  --syntax-num: #8a3b00;
  --syntax-var: #7a2d00;
  --syntax-fn: #123f8c;
  --syntax-tag: #0b5a2d;
  --syntax-attr: #123f8c;
  --syntax-prop: #123f8c;
}

.ck-pop {
  position: fixed;
  z-index: 1000;
  box-sizing: border-box;
  max-width: calc(100vw - 16px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-overlay);
  font: inherit;
  font-size: var(--text-small);
  animation: ck-pop-in 120ms cubic-bezier(0, 0, 0.2, 1), ck-fade-in 30ms linear;
  transform-origin: top left;
}

.ck-pop--above {
  transform-origin: bottom left;
}

@keyframes ck-pop-in {
  from {
    transform: scale(0.8);
  }
}

.ck-select,
.ck-colorfield,
.ck-datefield {
  display: inline-flex;
  max-width: 100%;
}

.ck-select__button,
.ck-colorfield__button,
.ck-datefield__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--control-height);
  min-width: 0;
  max-width: 100%;
  padding: 0 var(--space-3);
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-input-bg);
  color: var(--color-text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--easing-standard), border-color var(--duration-fast) var(--easing-standard);
}

.ck-select__button {
  justify-content: space-between;
  width: 100%;
}

.ck-select__button:disabled {
  color: var(--color-disabled);
  cursor: not-allowed;
}

.ck-select__button:focus-visible,
.ck-colorfield__button:focus-visible,
.ck-datefield__button:focus-visible,
.ck-listbox:focus-visible,
.ck-menu__item:focus-visible,
.ck-day:focus-visible,
.ck-color__area:focus-visible,
.ck-color__track:focus-visible,
.ck-swatch:focus-visible,
.ck-button:focus-visible,
.ck-calendar__step:focus-visible,
.ck-datepanel__preset:focus-visible,
.ck-color__dropper:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus);
  outline-offset: 2px;
}

.ck-select__text,
.ck-datefield__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ck-select__chevron,
.ck-datefield__icon,
.ck-calendar__step svg,
.ck-color__dropper svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ck-listbox,
.ck-menu {
  list-style: none;
  padding: var(--space-1);
  min-width: 10rem;
}

.ck-listbox:focus {
  outline: none;
}

.ck-option,
.ck-menu__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  border-radius: var(--radius-xs);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.ck-option[aria-selected="true"] {
  font-weight: var(--weight-strong);
  color: var(--color-accent-text);
}

.ck-option--active,
.ck-menu__item:focus {
  background: var(--color-surface-hover);
  outline: none;
}

.ck-option[aria-disabled="true"],
.ck-menu__item[aria-disabled="true"] {
  color: var(--color-disabled);
  cursor: default;
}

.ck-menu__item--danger {
  color: var(--color-danger);
}

.ck-menu__label {
  flex: 1;
}

.ck-menu__shortcut,
.ck-menu__more {
  color: var(--color-text-secondary);
}

.ck-menu__separator {
  height: var(--border-hairline);
  margin: var(--space-1) 0;
  background: var(--color-border-strong);
  opacity: 0.3;
}

.ck-color {
  width: 16.5rem;
  padding: var(--space-3);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
}

.ck-color__area {
  position: relative;
  height: 10rem;
  border-radius: var(--radius-xs);
  background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent), hsl(var(--ck-hue, 0) 100% 50%);
  touch-action: none;
  cursor: crosshair;
}

.ck-color__track {
  position: relative;
  height: 14px;
  margin: 15px 0;
  border-radius: 7px;
  touch-action: none;
  cursor: pointer;
}

.ck-color__track::before {
  content: "";
  position: absolute;
  inset: -15px 0;
}

.ck-color__hue {
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}

.ck-color__alpha,
.ck-color__preview,
.ck-swatch,
.ck-colorfield__chip {
  background-color: #fff;
  background-image: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%), linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
}

.ck-color__alpha {
  background-image: linear-gradient(to right, rgba(var(--ck-rgb, 0, 0, 0), 0), rgb(var(--ck-rgb, 0, 0, 0))), linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%), linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%);
  background-size: 100% 100%, 8px 8px, 8px 8px;
  background-position: 0 0, 0 0, 4px 4px;
}

.ck-color__thumb {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.ck-color__area .ck-color__thumb {
  margin-top: -9px;
}

.ck-color__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ck-color__preview {
  position: relative;
  flex: none;
  width: var(--target-min);
  height: var(--target-min);
  border-radius: var(--radius-xs);
  border: var(--border-hairline) solid var(--color-border-strong);
}

.ck-color__preview::after,
.ck-swatch::after,
.ck-colorfield__chip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ck-colour, var(--ck-swatch, transparent));
}

.ck-swatch::after,
.ck-colorfield__chip::after {
  background: var(--ck-swatch, transparent);
}

.ck-color__input,
.ck-dialog__input {
  flex: 1;
  min-width: 0;
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-field);
  background: var(--color-input-bg);
  color: var(--color-text);
  font: inherit;
  box-sizing: border-box;
}

.ck-color__input {
  width: 0;
  font-family: var(--font-mono);
}

.ck-color__inputinput[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.ck-color__dropper,
.ck-calendar__step {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--target-min);
  height: var(--target-min);
  padding: 0;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.ck-calendar__step:disabled {
  color: var(--color-disabled);
  cursor: default;
}

.ck-color__group {
  display: grid;
  gap: var(--space-1);
}

.ck-color__heading {
  color: var(--color-text-secondary);
  font-size: var(--text-label);
}

.ck-color__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.ck-swatch {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.ck-swatch::before {
  content: "";
  position: absolute;
  inset: -8px;
}

.ck-colorfield__chip {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-xs);
  border: var(--border-hairline) solid var(--color-border-strong);
}

.ck-colorfield__text {
  font-family: var(--font-mono);
}

.ck-datepanel {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
}

.ck-datepanel__presets {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 9rem;
}

.ck-datepanel__preset {
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--color-text);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.ck-datepanel__preset[aria-pressed="true"] {
  background: var(--color-surface-hover);
}

.ck-calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.ck-calendar__title {
  font-weight: var(--weight-title);
  text-transform: capitalize;
}

.ck-calendar__grid {
  border-collapse: collapse;
}

.ck-calendar__grid th {
  height: 2rem;
  color: var(--color-text-secondary);
  font-size: var(--text-label);
  font-weight: var(--weight-regular);
  text-transform: capitalize;
}

.ck-calendar__grid td {
  padding: 0;
}

.ck-day {
  width: var(--target-min);
  height: var(--target-min);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--easing-standard);
}

.ck-day--other {
  color: var(--color-text-tertiary);
}

.ck-day[aria-current="date"] {
  box-shadow: inset 0 0 0 1px var(--color-accent);
}

.ck-day[aria-disabled="true"] {
  color: var(--color-disabled);
  cursor: default;
  background: transparent;
  text-decoration: line-through;
}

.ck-day--inside {
  border-radius: 0;
  background: var(--color-surface);
}

.ck-day--single,
.ck-day--start,
.ck-day--end {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}

.ck-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background: var(--color-overlay);
  animation: ck-fade-in 150ms linear;
}

.ck-dialog {
  box-sizing: border-box;
  width: min(28rem, 100%);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-3);
  background: var(--color-bg);
  color: var(--color-text);
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-dialog);
  box-shadow: var(--shadow-overlay);
  animation: ck-dialog-in 150ms cubic-bezier(0, 0, 0.2, 1), ck-fade-in 75ms linear;
}

.ck-dialog:focus {
  outline: none;
}

.ck-dialog__title {
  margin: 0;
  font-size: var(--text-subhead);
  font-weight: var(--weight-title);
}

.ck-dialog__body {
  margin: 0;
  color: var(--color-text-secondary);
}

.ck-dialog__label {
  font-size: var(--text-small);
}

.ck-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.ck-button {
  min-height: var(--target-min);
  padding: 0 var(--space-4);
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-weight: var(--weight-title);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--easing-standard);
}

.ck-button--primary {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}

.ck-button--danger {
  border-color: var(--color-danger);
  background: var(--color-danger);
  color: #fff;
}

.ck-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ck-tip {
  position: fixed;
  z-index: 1200;
  max-width: min(20rem, calc(100vw - 16px));
  padding: var(--space-1) var(--space-2);
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--radius-xs);
  font-size: var(--text-small);
  line-height: 1.4;
  pointer-events: none;
  animation: ck-fade-in var(--duration-fast) var(--easing-enter);
}

.ck-tip[hidden],
.ck-files__list[hidden],
.ck-files__error[hidden],
.ck-files__bar[hidden] {
  display: none;
}

.ck-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ck-field-error {
  margin: var(--space-1) 0 0;
  color: var(--color-danger);
  font-size: var(--text-small);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.ck-files {
  display: grid;
  gap: var(--space-2);
}

.ck-files__zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: var(--border-hairline) dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  transition: background-color var(--duration-fast) var(--easing-standard);
}

.ck-files__zone--over {
  background: var(--color-surface-hover);
  border-color: var(--color-accent);
}

.ck-files__hint,
.ck-files__error {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}

.ck-files__error {
  color: var(--color-danger);
}

.ck-files__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-1);
}

.ck-files__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto var(--target-min);
  align-items: center;
  gap: var(--space-2);
  padding-inline-start: var(--space-3);
  border-radius: var(--radius-xs);
  background: var(--color-surface);
}

.ck-files__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ck-files__size {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}

.ck-files__bar {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 4px;
  margin: 0 var(--space-3) var(--space-2) 0;
  border-radius: 2px;
  background: linear-gradient(to right, var(--color-accent) var(--ck-progress, 0%), var(--color-border-strong) var(--ck-progress, 0%));
}

.ck-files__remove {
  width: var(--target-min);
  height: var(--target-min);
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--color-text-secondary);
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}

.ck-slider {
  display: inline-flex;
  align-items: center;
  min-width: 8rem;
  min-height: var(--target-min);
  touch-action: none;
}

.ck-slider__track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border-strong);
  cursor: pointer;
}

.ck-slider__track::before {
  content: "";
  position: absolute;
  inset: -20px 0;
}

.ck-slider__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--ck-slider, 0%);
  border-radius: inherit;
  background: var(--color-accent);
}

.ck-slider__thumb {
  position: absolute;
  top: 50%;
  left: var(--ck-slider, 0%);
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 1px 3px var(--color-shadow-key);
}

.ck-slider--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.ck-files__remove:focus-visible,
.ck-slider__thumb:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus);
  outline-offset: 2px;
}

@media (max-width: 30rem) {
  .ck-datepanel--range {
    flex-direction: column;
  }

  .ck-datepanel__presets {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ck-day {
    width: calc((100vw - 64px) / 7);
    max-width: var(--target-min);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ck-pop,
  .ck-backdrop,
  .ck-dialog,
  .ck-tip {
    animation: none;
  }

  .ck-select__button,
  .ck-colorfield__button,
  .ck-datefield__button,
  .ck-day,
  .ck-button,
  .ck-files__zone {
    transition: none;
  }
}

:root:root :is(.btn--primary, .button--primary, .ck-button--primary):not(:disabled, [aria-disabled="true"]) {
  border-color: transparent;
  border-radius: 100px;
  color: var(--color-on-primary);
  background: var(--color-primary);
  box-shadow: none;
  transition: box-shadow var(--duration-fast) var(--easing-standard), background-color var(--duration-fast) var(--easing-standard);
}

:root:root :is(.btn--primary, .button--primary, .ck-button--primary):not(:disabled, [aria-disabled="true"]):hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
}

:root:root :is(.btn--secondary, .button--secondary):not(:disabled, [aria-disabled="true"]) {
  border-radius: 100px;
}

.appearance {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.appearance__title {
  margin: 0 0 16px;
  color: var(--color-text);
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
}

.appearance__options {
  display: grid;
  gap: 4px;
}

.appearance__option {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
}

.appearance__radio {
  width: 20px;
  height: 20px;
  margin: 0 0 0 4px;
  accent-color: var(--color-green);
}

.dialog.dialog--appearance {
  width: min(640px, calc(100vw - 32px));
  border-radius: 28px;
}

.appearance__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px 0;
}

.appearance__tile {
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  cursor: pointer;
}

.appearance__tile:has(.appearance__radio:checked) {
  background: color-mix(in srgb, var(--color-green) 14%, transparent);
}

.appearance__preview {
  width: 140px;
  height: 160px;
  max-width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: linear-gradient(transparent 30%, rgb(255, 255, 255) 30% 42%, transparent 42% 50%, rgb(200, 200, 200) 50% 52%, transparent 52% 60%, rgb(200, 200, 200) 60% 62%, transparent 62%), rgb(248, 250, 253);
}

.appearance__preview--dark {
  background: linear-gradient(transparent 30%, rgb(60, 64, 67) 30% 42%, transparent 42% 50%, rgb(232, 234, 237) 50% 52%, transparent 52% 60%, rgb(232, 234, 237) 60% 62%, transparent 62%), rgb(32, 33, 36);
}

.appearance__preview--system {
  background: linear-gradient(90deg, rgb(248, 250, 253) 50%, rgb(32, 33, 36) 50%);
}

.appearance__caption {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-size: 16px;
}

@media (max-width: 48rem) {
  .appearance__tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .appearance__preview {
    width: 100%;
    height: 96px;
  }
}

:root {
  --header-height: 0px;
  --sidebar-width: 18rem;
  --column-width: 48rem;
  --icon-hit: 2rem;
  --transition-ui: var(--duration-fast) var(--easing-standard);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

:root {
  scrollbar-width: thin;
  scrollbar-color: var(--color-green) transparent;
}

body {
  margin: 0;
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.55;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#app {
  height: 100%;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

button:disabled {
  cursor: default;
}

a {
  color: var(--color-accent-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -4rem;
  z-index: 50;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  color: var(--color-text);
}

.skip-link:focus {
  top: var(--space-3);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.icon--small {
  width: 1rem;
  height: 1rem;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-hit);
  height: var(--icon-hit);
  flex: none;
  border-radius: var(--radius-soft);
  color: var(--color-text-secondary);
  transition: background var(--transition-ui), color var(--transition-ui);
}

.brand {
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand--large {
  font-size: 2rem;
}

.logo {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  overflow: visible;
  color: var(--color-text);
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
}

.topbar__toggle {
  color: var(--color-text-secondary);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  color: var(--color-text);
  font-size: var(--text-result-title);
  font-weight: var(--weight-title);
  text-decoration: none;
}

.brand__mark {
  width: 24px;
  height: 24px;
  flex: none;
}

.app.is-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.app.is-collapsed .sidebar {
  display: none;
}

.scrim {
  display: none;
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: var(--space-3);
  gap: var(--space-2);
  background: var(--color-bg);
  border-right: var(--border-hairline) solid var(--color-border);
}

.sidebar__head {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  height: 3.5rem;
  margin: calc(-1 * var(--space-3)) 0 0 var(--space-1);
}

.sidebar__new {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  border-radius: var(--radius-soft);
  background: none;
  color: var(--color-text);
  font-weight: var(--weight-regular);
  text-align: left;
  transition: background var(--transition-ui);
}

.sidebar__title {
  margin: var(--space-3) 0 0;
  padding: 0 var(--space-3);
  font-size: var(--text-caption);
  font-weight: var(--weight-title);
  color: var(--color-text-secondary);
}

.sidebar__fold {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  width: 100%;
  background: none;
  text-align: left;
}

.sidebar__fold-icon {
  width: 0.875rem;
  height: 0.875rem;
  transform: rotate(90deg);
  transition: transform var(--transition-ui);
}

.sidebar__fold.is-closed .sidebar__fold-icon {
  transform: none;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-green) transparent;
}

.sidebar__list {
  flex: 1;
  min-height: 0;
  margin-right: calc(-1 * var(--space-3));
  padding-right: var(--space-3);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar__chats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__empty {
  margin: var(--space-3);
  color: var(--color-text-secondary);
}

.link-button {
  margin: 0 var(--space-4);
  min-height: var(--target-min);
  color: var(--color-accent-text);
  text-decoration: underline;
}

.chat {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: var(--radius-soft);
}

.chat.is-active {
  background: var(--color-surface-hover);
}

.chat__open {
  flex: 1;
  min-width: 0;
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  overflow: hidden;
  text-align: left;
  text-overflow: clip;
  white-space: nowrap;
  border-radius: var(--radius-soft);
  mask-image: linear-gradient(to right, black calc(100% - 2rem), transparent);
}

.chat.is-active .chat__open {
  font-weight: var(--weight-title);
}

.chat__actions {
  display: none;
  align-items: center;
  padding-right: var(--space-1);
}

.chat .chat__actions,
.chat:has(:focus-visible) .chat__actions,
.chat.is-active .chat__actions,
.chat__actions:has([aria-expanded="true"]) {
  display: flex;
}

.chat__actions > .icon-button {
  color: var(--color-text);
}

.chat__actions > .icon-button .icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 3.5;
}

.chat__tip {
  position: fixed;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 10rem;
  max-width: 15rem;
  padding: var(--space-3);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-dialog);
  box-shadow: var(--search-shadow);
  transform: translateY(-50%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.chat.is-tipped .chat__tip {
  visibility: visible;
  opacity: 1;
}

.chat:has([aria-expanded="true"]) .chat__tip {
  visibility: hidden;
}

.chat__tip-title {
  overflow-wrap: anywhere;
}

.chat__tip-date {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

.chat__menu {
  position: absolute;
  top: calc(100% + var(--space-1));
  inset-inline-end: var(--space-2);
  z-index: 30;
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-dialog);
  box-shadow: var(--search-shadow);
}

.chat__menu.is-above {
  top: auto;
  bottom: calc(100% + var(--space-1));
}

.chat__menu[hidden] {
  display: none;
}

.chat__menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  border-radius: var(--radius-soft);
  text-align: left;
}

.chat__menu-item:focus-visible {
  background: var(--color-surface-hover);
}

.chat__menu-item--danger {
  color: var(--color-danger);
}

.chat__menu-rule {
  margin: var(--space-1) var(--space-2);
  border: 0;
  border-top: var(--border-hairline) solid var(--color-border);
}

.chat--editing {
  padding: 0 var(--space-1);
}

.chat__rename {
  width: 100%;
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-field);
  outline: none;
}

.chat-confirm__scrim {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: grid;
  place-items: center;
  background: var(--color-overlay);
}

.chat-confirm {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: min(26rem, calc(100vw - 2 * var(--space-4)));
  padding: var(--space-4);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-dialog);
  box-shadow: var(--search-shadow);
}

.chat-confirm__title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--weight-strong);
}

.chat-confirm__text {
  margin: 0;
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

.chat-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.chat__confirm-yes,
.chat__confirm-no {
  min-height: 2.25rem;
  min-width: 4.5rem;
  padding: 0 var(--space-4);
  background: var(--color-text);
  border: var(--border-hairline) solid var(--color-text);
  border-radius: var(--radius-soft);
  color: var(--color-bg);
  font-weight: var(--weight-strong);
}

.main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
  height: 3.5rem;
  padding: 0 var(--space-3);
  border-bottom: var(--border-hairline) solid var(--color-border);
}

.topbar__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--weight-title);
  white-space: nowrap;
}

.topbar__menu-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.topbar__name-button {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  border-radius: var(--radius-soft);
  color: inherit;
  font: inherit;
  text-align: left;
}

.topbar__chevron {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-soft);
  color: var(--color-text-secondary);
}

.topbar__name-button:focus-visible,
.topbar__chevron:focus-visible,
.topbar__chevron[aria-expanded="true"] {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.topbar__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__menu.chat__menu {
  inset-inline-start: -0.625rem;
  inset-inline-end: auto;
  top: calc(100% + 0.4rem);
  width: 9.4375rem;
  padding: 0.3125rem;
  border-radius: var(--radius-md);
}

.topbar__menu .chat__menu-item {
  min-height: 1.75rem;
  gap: var(--space-2);
  color: var(--color-text);
}

.topbar__menu .chat__menu-item--danger {
  color: var(--color-danger);
}

.topbar__ruler {
  position: absolute;
  visibility: hidden;
  white-space: pre;
  font: inherit;
  pointer-events: none;
}

.topbar__rename {
  width: auto;
  max-width: 100%;
  font: inherit;
}

.thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.thread__column {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: 100%;
  max-width: var(--column-width);
  margin: 0 auto;
  padding: var(--space-4) var(--space-4) var(--space-5);
}

.dock {
  flex: none;
  width: 100%;
  max-width: calc(var(--column-width) + 2 * var(--space-4));
  margin: 0 auto;
  padding: 0 var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
}

.welcome {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin: 0 0 var(--space-5);
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  font-weight: var(--weight-title);
  line-height: 1.2;
}

.main.is-empty {
  justify-content: center;
}

.main.is-empty .thread {
  display: none;
}

.main.is-empty .welcome {
  display: flex;
}

.main.is-empty .topbar {
  border-bottom: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.main.is-empty .dock {
  max-width: calc(41rem + 2 * var(--space-4));
  padding-bottom: 0;
}

.jump {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: var(--space-2);
  justify-content: center;
  width: var(--target-min);
  height: var(--target-min);
  margin: -3.75rem 0 var(--space-2);
  padding: 0;
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: 50%;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 8rem;
  z-index: 30;
  max-width: calc(100% - 2 * var(--space-4));
  margin: 0;
  padding: var(--space-3) var(--space-4);
  transform: translateX(-50%);
  background: var(--color-surface-hover);
  border: var(--border-hairline) solid var(--color-danger);
  border-radius: var(--radius-soft);
}

.composer {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.composer__box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-field);
}

.composer__field {
  display: block;
  flex: 1;
  min-width: 0;
  min-height: 2rem;
  max-height: max(7.5rem, 40vh);
  padding: var(--space-1) 0;
  background: none;
  border: 0;
  outline: none;
  resize: none;
  line-height: 1.5;
}

.composer__field::placeholder {
  color: var(--color-text-secondary);
}

.composer__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.composer__hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

.composer__files {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.composer__file {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  max-width: 100%;
  padding-left: var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: var(--text-body);
}

.composer__file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer__file-drop,
.composer__attach {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: var(--radius-soft);
  color: var(--color-text-secondary);
}

.composer__count {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

.composer__count.is-over {
  color: var(--color-danger);
  font-weight: var(--weight-strong);
}

.composer__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--target-min);
  height: var(--target-min);
  flex: none;
  border-radius: var(--radius-soft);
  background: none;
  color: var(--color-text-secondary);
  transition: background var(--transition-ui), color var(--transition-ui);
}

.composer__box .composer__send {
  width: 2rem;
  height: 2rem;
}

.composer__send:disabled {
  color: var(--color-disabled);
}

.composer__send.is-stop {
  background: none;
  color: var(--color-text);
}

.composer__send .icon--up {
  display: none;
}

.main.is-empty .composer__send .icon--up {
  display: block;
}

.main.is-empty .composer__send .icon--enter {
  display: none;
}

.composer__send.is-stop .icon {
  fill: currentColor;
}

.tier {
  position: relative;
  margin-left: auto;
}

.tier__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2rem;
  padding: 0 var(--space-2);
  border-radius: var(--radius-soft);
  color: var(--color-text-secondary);
  transition: background var(--transition-ui);
}

.tier__trigger[aria-expanded="true"] {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.tier__name {
  font-weight: var(--weight-title);
  color: var(--color-text);
  white-space: nowrap;
}

.tier__desc {
  font-size: var(--text-body);
  white-space: nowrap;
  color: var(--color-text-secondary);
}

.tier__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + var(--space-1));
  z-index: 20;
  width: 22rem;
  max-width: calc(100vw - 2 * var(--space-4));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-2);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-dialog);
  box-shadow: var(--search-shadow);
}

.tier__panel[data-side="down"] {
  top: calc(100% + var(--space-2));
  bottom: auto;
}

.tier__panel[data-side="up"] {
  top: auto;
  bottom: calc(100% + var(--space-1));
}

.tier__rule {
  margin: var(--space-1) var(--space-3);
  border: 0;
  border-top: var(--border-hairline) solid var(--color-border);
}

.tier__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: var(--target-min);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-soft);
  text-align: left;
}

.tier__row .tier__option-name {
  flex: 1;
}

.tier__row-value {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

.tier__row-closed {
  transition: transform var(--duration-fast) var(--easing-standard);
}

.tier__option--sub {
  min-height: 2.5rem;
}

.tier__flyout {
  grid-template-rows: 0fr;
  visibility: hidden;
}

.tier__flyout[data-open] {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}

.tier__flyout-body {
  min-height: 0;
  overflow: hidden;
}

.tier__flyout .tier__option {
  align-content: center;
}

.tier__flyout .tier__option .icon,
.tier__flyout .tier__option .tier__option-gap {
  grid-row: 1;
}

.tier__hint {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

.tier__badge {
  margin-left: var(--space-2);
  padding: 0 var(--space-2);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-xs);
  font-size: var(--text-caption);
  font-weight: 400;
  color: var(--color-text);
}

.tier__flyout .tier__option-desc {
  display: none;
}

.app.has-viewer .tier__panel {
  z-index: 50;
}

.tier__option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1rem;
  column-gap: var(--space-3);
  align-items: center;
  width: 100%;
  min-height: 3.25rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-soft);
  text-align: left;
}

.tier__option-name {
  grid-column: 1;
  font-weight: var(--weight-title);
}

.tier__option-desc {
  grid-column: 1;
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

.tier__option .icon,
.tier__option-gap {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--color-text);
}

.msg {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.md-code-block__pre {
  contain: content;
}

.msg--user {
  align-items: flex-end;
}

.msg__bubble {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-md);
  white-space: pre-wrap;
  overflow: clip;
  overflow-wrap: anywhere;
}

.msg__bubble.md {
  white-space: normal;
}

.msg__body {
  font-size: calc(var(--text-body) * var(--transcript-scale));
  line-height: 1.7;
  overflow: clip;
  overflow-wrap: anywhere;
}

.msg__meta {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: var(--icon-hit);
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

.msg__action .icon,
.msg__regen .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.msg__action,
.msg__regen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--target-min);
  height: var(--target-min);
  border-radius: var(--radius-soft);
  color: var(--color-text-secondary);
}

.msg__continue {
  padding: 0 var(--space-3);
  min-height: var(--icon-hit);
  margin-left: var(--space-1);
  border-radius: var(--radius-md);
  border: var(--border-hairline) solid var(--color-border-strong);
  color: var(--color-text-secondary);
  font-size: var(--text-body);
}

.msg__action,
.msg__regen,
.msg__age {
  position: relative;
}

.msg__action::after,
.msg__regen::after,
.msg__age::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + var(--space-1));
  left: 50%;
  z-index: 10;
  padding: var(--space-1) var(--space-2);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: var(--text-caption);
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
}

.msg__meta--user .msg__action:last-child::after {
  right: 0;
  left: auto;
  transform: none;
}

.msg__action:not(:hover):not(:focus-visible)::after,
.msg__regen:not(:hover):not(:focus-visible)::after,
.msg__age:not(:hover)::after {
  display: none;
}

.msg__action:hover::after,
.msg__regen:hover::after,
.msg__age:hover::after,
.msg__action:focus-visible::after,
.msg__regen:focus-visible::after {
  opacity: 1;
}

.msg__meta--user {
  justify-content: flex-end;
  gap: 0;
}

.msg__action,
.msg__regen,
.msg__age {
  opacity: 0;
}

.msg .msg__action,
.msg .msg__regen,
.msg .msg__age,
.msg:has(:focus-visible) .msg__action,
.msg:has(:focus-visible) .msg__regen,
.msg:has(:focus-visible) .msg__age,
.msg__meta--latest .msg__action,
.msg__meta--latest .msg__regen,
.msg__meta--latest .msg__age:not(.msg__age--hover) {
  opacity: 1;
}

@media (hover: none) {
  .msg__action,
  .msg__regen,
  .msg__age {
    opacity: 1;
  }
}

.msg__age {
  margin-right: var(--space-2);
  white-space: nowrap;
  color: var(--color-text-tertiary);
  font-size: var(--text-metadata);
}

.msg__age--hover {
  margin: 0 0 0 var(--space-2);
}

.msg__editor {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: min(100%, 40rem);
}

.msg__editbox {
  padding: var(--space-4);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-field);
  transition: border-color var(--transition-ui);
}

.msg__editbox:focus-within {
  border-color: var(--color-border-strong);
}

.msg__edit {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  line-height: 1.5;
}

.msg__editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

.msg__editor-info {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--icon-hit);
  height: var(--icon-hit);
  color: var(--color-text-secondary);
}

.msg__editor-info:hover::after,
.msg__editor-info:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  inset-block-end: calc(100% + var(--space-2));
  inset-inline-start: calc(-1 * var(--space-2));
  z-index: 35;
  width: 16rem;
  padding: var(--space-3);
  background: var(--color-surface-hover);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-body);
  line-height: 1.4;
}

.msg__save {
  min-height: 2.25rem;
  border-radius: var(--radius-md);
}

.msg__save:disabled {
  background: var(--color-surface-hover);
  color: var(--color-disabled);
}

.msg__cancel {
  min-height: 2.25rem;
  padding: 0 var(--space-3);
  color: var(--color-text);
}

.md > :first-child {
  margin-top: 0;
}

.md > :last-child {
  margin-bottom: 0;
}

.md-paragraph {
  margin: 0 0 var(--space-3);
}

.md-heading {
  margin: var(--space-5) 0 var(--space-2);
  font-size: var(--text-body);
  font-weight: var(--weight-strong);
  line-height: 1.35;
}

h3.md-heading {
  font-size: var(--text-subhead);
  font-weight: var(--weight-title);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.md > .md-heading:first-child {
  margin-top: 0;
}

.md-list {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-5);
}

.md-list--nested {
  margin: 0;
  list-style: circle;
}

.md-code-block__bar .md-code-block__copy:only-child,
.md-code-block__actions .md-code-block__copy {
  opacity: 0;
  transition: opacity var(--transition-ui), background var(--transition-ui), color var(--transition-ui);
}

.md-code-block .md-code-block__copy,
.md-code-block:focus-within .md-code-block__copy {
  opacity: 1;
}

.md-code {
  padding: 0.125em 0.4em;
  background: var(--color-surface-hover);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.md-code-block {
  margin: 0 0 var(--space-3);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-soft);
  overflow: hidden;
}

.md-code-block__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: calc(var(--icon-hit) + 2 * var(--space-1));
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

.md-code-block__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-hit);
  height: var(--icon-hit);
  padding: 0;
  border-radius: var(--radius-soft);
  color: var(--color-text-secondary);
}

.md-code-block__download span {
  display: none;
}

.md-code-block__actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.md-code-block__pre {
  margin: 0;
  padding: var(--space-1) var(--space-4) var(--space-3);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--code-size, var(--text-metadata));
  line-height: 1.6;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--icon-hit);
  padding-inline-start: var(--space-1);
}

.typing__dots {
  display: inline-flex;
  gap: var(--space-1);
}

.typing__label {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

.typing__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.45;
  animation: typing-pulse 1.2s var(--easing-standard) infinite;
}

.typing__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing__dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-pulse {
  0%,
  80%,
  100% {
    opacity: 0.45;
  }
  40% {
    opacity: 1;
  }
}

.notice {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-dialog);
  color: var(--color-text-secondary);
}

.notice__icon {
  flex: none;
  color: var(--color-text-secondary);
}

.notice__text {
  flex: 1 1 auto;
  min-width: 0;
}

.notice .notice__retry {
  flex: none;
  padding: 0.4375rem 1.25rem;
  font-weight: var(--weight-strong);
}

@media (max-width: 40rem) {
  .notice {
    flex-wrap: wrap;
  }

  .notice__text {
    flex-basis: calc(100% - var(--space-6));
  }
}

.notice__retry,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  padding: 0 var(--space-4);
  background: var(--color-text);
  border-radius: var(--radius-soft);
  color: var(--color-bg);
  font-weight: var(--weight-title);
}

.notice__retry:disabled {
  background: var(--color-surface-hover);
  color: var(--color-disabled);
}

.usage {
  display: grid;
  gap: 0;
}

.usage__row {
  display: grid;
  grid-template-columns: 13.75rem minmax(3rem, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
}

.usage__text {
  white-space: nowrap;
}

.usage__label,
.usage__detail,
.usage__percent {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.5rem;
}

.usage__detail,
.usage__percent {
  color: var(--color-text-secondary);
}

.usage__percent {
  text-align: end;
  white-space: nowrap;
}

.usage__bar {
  height: 0.25rem;
  overflow: hidden;
  background: var(--color-surface-hover);
  border-radius: var(--radius-pill);
}

.usage__fill {
  display: block;
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
}

.security {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface-hover);
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-dialog);
  color: var(--color-text);
}

.security__icon {
  flex: none;
  color: var(--color-text);
}

.security__body {
  flex: 1 1 auto;
  min-width: 0;
}

.security__label {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-metadata);
  font-weight: var(--weight-title);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.security__title {
  margin: var(--space-1) 0 var(--space-2);
  font-size: var(--text-result-title);
}

.security__text {
  margin: 0 0 var(--space-4);
  color: var(--color-text-secondary);
}

.security__new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--target-min);
  padding: 0 var(--space-4);
  background: var(--color-text);
  border-radius: var(--radius-soft);
  color: var(--color-bg);
  font-weight: var(--weight-title);
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-height: 100dvh;
  padding: var(--space-5) var(--space-4);
  text-align: center;
}

.screen__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-heading);
  font-weight: var(--weight-regular);
}

.screen__text {
  max-width: 28rem;
  margin: 0;
  color: var(--color-text-secondary);
}

.noscript {
  padding: var(--space-5) var(--space-4);
  text-align: center;
}

@media (hover: none) and (max-width: 1023px) {
  .chat__actions {
    display: flex;
  }
}

@media (max-width: 1023px) {
  :root {
    --icon-hit: 2.75rem;
  }
}

@media (max-width: 1023px) {
  .app,
  .app.is-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar,
  .app.is-collapsed .sidebar {
    display: flex;
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    z-index: 40;
    width: min(20rem, 86vw);
    padding-top: var(--space-3);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--duration-fast) var(--easing-standard), visibility 0s linear var(--duration-fast);
  }

  .app.is-drawer .sidebar {
    transform: none;
    visibility: visible;
    transition: transform var(--duration-fast) var(--easing-standard);
  }

  .app.is-drawer .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--color-overlay);
  }

  :root {
    --icon-hit: 2.75rem;
  }

  .tier__desc,
  .composer__hint {
    display: none;
  }

  .msg__bubble {
    max-width: 92%;
  }

  .toast {
    bottom: 6.5rem;
  }
}
.md-rule {
  margin: var(--space-4) 0;
  border: 0;
  border-top: var(--border-hairline) solid var(--color-border);
}

.md-quote {
  margin: var(--space-3) 0;
  padding: 0 0 0 var(--space-4);
  border-left: 3px solid var(--color-border);
  color: var(--color-text-secondary);
}

.md-table {
  margin: var(--space-3) 0;
  overflow-x: auto;
}

.md-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body);
}

.md-table th,
.md-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: var(--border-hairline) solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.md-table th {
  font-weight: 600;
  color: var(--color-text);
}

.md-table tr:last-child td {
  border-bottom: 0;
}

.artifact {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  max-width: 32.5rem;
  margin: 0 0 var(--space-3);
  padding: calc(var(--space-4) - var(--border-hairline));
  background: var(--color-surface-hover);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition-ui);
}

.artifact__icon .icon {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 1.5;
}

.artifact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: var(--color-border);
  color: var(--color-text);
}

.artifact__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  height: 2rem;
}

.artifact__name {
  line-height: 1.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-text);
  font-size: var(--text-body);
  font-weight: 500;
}

.artifact__tag {
  color: var(--color-text-secondary);
  font-size: var(--text-caption);
  line-height: 0.75rem;
  text-transform: uppercase;
}

.msg--paste {
  align-self: flex-end;
  width: min(100%, 26rem);
}

.app {
  --viewer-width: min(51rem, 46vw);
}

.app.has-viewer {
  padding-right: var(--viewer-width);
}

@media (max-width: 56rem) {
  .app {
    --viewer-width: 100%;
  }

  .app.has-viewer {
    padding-right: 0;
  }
}

.app.is-sized.has-viewer {
  padding-right: var(--viewer-width);
}

.app.is-dragging {
  cursor: col-resize;
  user-select: none;
}

.sidebar__resize {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -0.375rem;
  z-index: 2;
  width: 0.75rem;
  cursor: col-resize;
  touch-action: none;
}

.sidebar__resize::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.3125rem;
  width: 0.125rem;
  background: transparent;
}

.sidebar__resize:hover::after,
.sidebar__resize:focus-visible::after,
.app.is-dragging .sidebar__resize::after {
  background: var(--color-border-strong);
}

@media (max-width: 1023px) {
  .sidebar__resize {
    display: none;
  }
}

.viewer__resize {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -0.375rem;
  z-index: 1;
  width: 0.75rem;
  cursor: col-resize;
  touch-action: none;
}

.viewer__resize::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.3125rem;
  width: 0.125rem;
  background: transparent;
}

.viewer__resize:hover::after,
.viewer__resize:focus-visible::after,
.app.is-dragging .viewer__resize::after {
  background: var(--color-border-strong);
}

.viewer.is-full .viewer__resize {
  display: none;
}

.viewer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: var(--viewer-width);
  background: var(--color-bg);
  border-left: var(--border-hairline) solid var(--color-border);
}

.viewer {
  container-type: inline-size;
}

.viewer__bar {
  overflow: hidden;
}

@container (max-width: 30rem) {
  .viewer__action span {
    display: none;
  }

  .viewer__action {
    width: var(--icon-hit);
    padding: 0;
    justify-content: center;
  }

  .viewer__bar {
    gap: var(--space-1);
    padding: 0 var(--space-2) 0 var(--space-3);
  }
}

.viewer__bar > :not(.viewer__title) {
  flex: none;
}

.viewer.is-full {
  width: 100%;
  border-left: 0;
}

.viewer[hidden] {
  display: none;
}

.viewer__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 2.8125rem;
  padding: 0 var(--space-2) 0 var(--space-3);
  border-bottom: var(--border-hairline) solid var(--color-border);
}

.viewer__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-text-secondary);
  font-size: var(--text-body);
}

.viewer__split {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-soft);
}

.viewer__copy {
  border-radius: var(--radius-soft) 0 0 var(--radius-soft);
}

.viewer__more {
  padding: 0 var(--space-2);
  border-inline-start: var(--border-hairline) solid var(--color-border);
  border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
}

.viewer__menu {
  inset-inline-end: 0;
  width: auto;
  min-width: 12rem;
}

.viewer__tag {
  color: var(--color-text-secondary);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
}

.viewer__tag::before {
  content: "·";
  margin: 0 var(--space-1);
}

.viewer__action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--icon-hit);
  padding: 0 var(--space-3);
  border-radius: var(--radius-soft);
  color: var(--color-text);
}

.viewer__body {
  flex: 1;
  margin: 0;
  padding: 0 0 var(--space-3);
  overflow: auto;
  counter-reset: line;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  line-height: 1.8333;
}

.viewer__line {
  position: relative;
  display: block;
  min-height: 1.8333em;
  padding: 0 var(--space-4) 0 3.5rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.viewer__line::before {
  position: absolute;
  left: 0;
  width: 2rem;
  content: counter(line);
  counter-increment: line;
  color: var(--color-text-secondary);
  text-align: right;
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-inline-start: auto;
  position: relative;
}

.tok--kw { color: var(--syntax-kw); }

.tok--str { color: var(--syntax-str); }

.tok--com { color: var(--syntax-com); }

.tok--num { color: var(--syntax-num); }

.tok--var { color: var(--syntax-var); }

.tok--fn { color: var(--syntax-fn); }

.tok--tag { color: var(--syntax-tag); }

.tok--attr { color: var(--syntax-attr); }

.tok--prop { color: var(--syntax-prop); }

.dropzone {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: var(--color-overlay);
  color: var(--color-accent-text);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.dropzone::before {
  content: "";
  position: absolute;
  inset: var(--space-5);
  border: var(--border-hairline) solid var(--color-accent);
  border-radius: var(--radius-soft);
}

.dropzone[hidden] {
  display: none;
}

.dropzone__icons {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
}

.dropzone__icon {
  width: 1.5rem;
  height: 1.5rem;
}

.dropzone__icon:first-child {
  transform: rotate(-10deg);
}

.dropzone__icon:last-child {
  transform: rotate(10deg);
}

.dropzone__label {
  margin: 0;
  font-size: var(--text-body);
}

.attachcard__wrap {
  position: relative;
  display: inline-flex;
  flex: none;
}

.attachcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  width: 7.5rem;
  height: 7.5rem;
  padding: var(--space-2);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-soft);
  text-align: left;
}

.attachcard__name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-body);
}

.attachcard__lines {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
}

.attachcard__tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  margin-top: auto;
  background: var(--color-surface);
  padding: 0 var(--space-2);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-xs);
  font-size: var(--text-caption);
  color: var(--color-text);
}

.attachcard__preview {
  flex: 1;
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: pre;
  font-size: 0.625rem;
  line-height: 1.2;
  color: var(--color-text-secondary);
}

.attachcard__edit {
  position: absolute;
  right: var(--space-2);
  bottom: var(--space-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-xs);
  color: var(--color-text-secondary);
  transition: background var(--transition-ui), color var(--transition-ui);
}

.attachcard__remove {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-xs);
  color: var(--color-text-secondary);
  transition: background var(--transition-ui), color var(--transition-ui);
}

.attachcard__wrap .attachcard__remove,
.attachcard__remove:focus-visible {
  display: inline-flex;
}

.filedialog__scrim {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: grid;
  place-items: center;
  background: var(--color-overlay);
}

.filedialog {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: min(40rem, calc(100vw - 2 * var(--space-4)));
  max-height: calc(100dvh - 2 * var(--space-6));
  padding: 0 0 var(--space-4);
  gap: 0;
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-dialog);
  box-shadow: var(--search-shadow);
}

.filedialog__head {
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.filedialog__title {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-body);
  font-weight: var(--weight-title);
}

.filedialog__meta {
  margin: 0;
  padding: 0 var(--space-4) var(--space-3);
  border-bottom: var(--border-hairline) solid var(--color-border);
  font-size: var(--text-metadata);
  color: var(--color-text-secondary);
}

.filedialog__body {
  flex: 1;
  min-height: 0;
  margin: var(--space-4) var(--space-4) 0;
  padding: var(--space-3);
  overflow: auto;
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-soft);
  font-family: var(--font-mono);
  font-size: var(--text-metadata);
  white-space: pre;
}

.msg__files {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.tooltip {
  position: fixed;
  z-index: 110;
  max-width: 20rem;
  padding: 3px var(--space-2);
  background: var(--color-text);
  border-radius: var(--radius-sm);
  color: var(--color-bg);
  font-size: var(--text-metadata);
  line-height: 1.4;
  pointer-events: none;
}

.tooltip[hidden] {
  display: none;
}

.tooltip__key {
  margin-inline-start: var(--space-3);
  opacity: 0.6;
}

.composer__box .composer__field {
  flex: 1 1 8rem;
}

.composer__box .composer__send {
  margin-left: auto;
}

.composer__box .composer__files {
  flex: 0 0 calc(100% + var(--space-2));
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-green) transparent;
  margin: 0 0 var(--space-1) calc(-1 * var(--space-2));
}

.terminal__note {
  margin: 0;
  font-size: var(--text-metadata);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.terminal__create,
.terminal__copy,
.terminal__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: var(--target-min);
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-text);
  font-weight: var(--weight-strong);
  cursor: pointer;
  background: var(--color-surface);
  border: 0;
  border-radius: var(--radius-soft);
}

.terminal__create:disabled,
.terminal__remove:disabled {
  cursor: progress;
  opacity: 0.6;
}

.terminal__create:focus-visible,
.terminal__copy:focus-visible,
.terminal__remove:focus-visible,
.terminal__command:focus-visible {
  outline: 2px solid var(--color-focus, currentColor);
  outline-offset: 2px;
}

.terminal__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-2);
}

.terminal__download {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding: 0 var(--space-4);
  font-size: var(--text-body);
  color: var(--color-text);
  font-weight: var(--weight-strong);
  text-decoration: none;
  background: var(--color-surface);
  border: 0;
  border-radius: var(--radius-soft);
}

.terminal__download--main {
  color: var(--color-bg);
  background: var(--color-text);
  border-color: var(--color-text);
}

.terminal__download:focus-visible {
  outline: 2px solid var(--color-focus, currentColor);
  outline-offset: 2px;
}

.terminal__steps {
  margin: 0;
  padding-left: var(--space-5);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.terminal__other {
  display: grid;
  gap: var(--space-2);
}

.terminal__other > summary {
  cursor: pointer;
}

.terminal__output {
  display: grid;
  gap: var(--space-2);
}

.terminal__output:empty {
  display: none;
}

.terminal__command {
  margin: 0;
  padding: var(--space-3);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-metadata);
  line-height: 1.5;
  white-space: pre;
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-soft);
}

.terminal__devices {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.terminal__device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.terminal__device-text {
  display: grid;
  min-width: 0;
}

.terminal__device-name,
.terminal__device-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal__device-name {
  font-size: var(--text-body);
}

.terminal__device-meta,
.terminal__none {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
}

.terminal__none {
  margin: 0;
  list-style: none;
}

.sidebar__head {
  align-self: stretch;
  margin-inline-end: var(--space-1);
}

.settings {
  position: relative;
}

.settings__scrim {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: flex;
  justify-content: center;
  padding: 17dvh var(--space-4) var(--space-4);
  background: var(--color-overlay);
}

.settings__dialog {
  --settings-line: var(--color-border-strong);
  --settings-edge: color-mix(in srgb, var(--color-border-strong) 50%, transparent);
  --settings-fill: color-mix(in srgb, var(--color-text) 7%, transparent);
  display: flex;
  flex-direction: column;
  width: min(64rem, 100%);
  height: min(50rem, 100%);
  overflow: hidden;
  font-size: var(--text-body);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--search-shadow), 0 0 0 var(--border-hairline) var(--settings-line);
}

.settings__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 2.75rem;
  padding: 0 0.4375rem 0 var(--space-4);
  border-bottom: var(--border-hairline) solid var(--settings-line);
}

.settings__title {
  margin: 0;
  font-weight: 520;
}

.settings__body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.settings__nav {
  display: flex;
  flex: none;
  flex-direction: column;
  width: 16rem;
  padding: var(--space-4);
  border-inline-end: var(--border-hairline) solid var(--settings-line);
  overflow-y: auto;
}

.settings__search {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding: 0 0.625rem;
  color: var(--color-text-secondary);
  border: var(--border-hairline) solid var(--settings-edge);
  border-radius: var(--radius-md);
}

.settings__search .icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.settings__search-field {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-text);
  appearance: none;
  background: transparent;
  border: 0;
  outline: 0;
}

.settings__search:focus-within {
  border-color: var(--color-text-secondary);
  outline: 0;
}

.settings__results-slot {
  position: fixed;
  z-index: 60;
}

.settings__results {
  width: 17.5rem;
  max-height: 19.5rem;
  padding: var(--space-1);
  overflow-y: auto;
  background: var(--color-bg);
  border: var(--border-hairline) solid var(--settings-edge);
  border-radius: var(--radius-md);
  box-shadow: var(--search-shadow);
}

.settings__result {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 1.75rem;
  padding: var(--space-1) var(--space-2) var(--space-1) 1.75rem;
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-text);
  text-align: start;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.settings__result--section {
  padding-inline-start: var(--space-2);
}

.settings__result--section .icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.settings__result:focus-visible {
  background: var(--color-surface-hover);
}

.settings__match {
  color: var(--color-accent-text);
  background: transparent;
}

.settings__result-more,
.settings__result-empty {
  padding: var(--space-1) var(--space-2) var(--space-1) 1.75rem;
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

.settings__result-empty {
  padding-inline-start: var(--space-2);
}

.settings__tabs {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.settings__tab {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.8125rem;
  height: 2rem;
  padding: 0 0.4375rem;
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-text);
  text-align: start;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
}

.settings__tab[hidden],
.settings__rule[hidden] {
  display: none;
}

.settings__tab .icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.settings__tab[aria-selected="true"] {
  background: var(--color-surface-hover);
}

.settings__rule {
  width: calc(100% - 1.375rem);
  margin: var(--space-3) 0.6875rem;
  border: 0;
  border-top: var(--border-hairline) solid var(--settings-line);
}

.settings__pane {
  flex: 1;
  min-width: 0;
  padding: var(--space-4);
  overflow-y: auto;
}

.settings__section ~ .settings__section {
  margin-top: 2.375rem;
}

.settings__group {
  margin: 0 0 0.875rem;
  font-size: var(--text-subhead);
  font-weight: var(--weight-title);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.settings__group--gap {
  margin-top: 2.375rem;
}

.settings__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3.25rem;
  border-bottom: var(--border-hairline) solid var(--color-border);
}

.settings__pane .settings__row {
  flex-wrap: wrap;
  padding: 0.625rem 0;
  border-bottom: 0;
}

.settings__pane .settings__row + .settings__row {
  border-top: var(--border-hairline) solid var(--settings-line);
}

.settings__pane .settings__row-text {
  flex: 1 1 12rem;
  gap: 0;
  min-width: 0;
}

.settings__pane .settings__row-label {
  font-size: var(--text-body);
  line-height: 1.5rem;
}

.settings__pane .settings__hint {
  margin-top: 0.125rem;
  font-size: var(--text-body);
  line-height: 1.25rem;
}

.settings__lead {
  margin: 0 0 var(--space-3);
  font-size: var(--text-body);
  line-height: 1.25rem;
  color: var(--color-text-secondary);
}

.settings__pane .settings__note,
.settings__pane .settings__strong,
.settings__pane .settings__warning {
  font-size: var(--text-body);
  line-height: 1.5rem;
}

.settings__pane .settings__warning {
  margin-bottom: var(--space-3);
}

.settings__pane .settings__action {
  min-height: 2.25rem;
  padding: 0 var(--space-3);
  font-size: var(--text-body);
  font-weight: var(--weight-title);
  background: var(--settings-fill);
  border: 0;
  border-radius: var(--radius-md);
}

.settings__pane .settings__input {
  min-height: 2rem;
  padding: 0 var(--space-3);
  font-size: var(--text-body);
  border-color: var(--settings-edge);
  border-radius: var(--radius-md);
}

.settings__pane .settings__input--inline {
  width: 14rem;
  max-width: 100%;
}

.settings__pane .settings__textarea {
  min-height: 10rem;
  padding: 0.625rem var(--space-3);
  line-height: 1.4rem;
}

.settings__toggle {
  position: relative;
  flex: none;
  width: 2.25rem;
  height: 1.25rem;
  padding: 0;
  cursor: pointer;
  background: var(--color-surface-hover);
  border: 0;
  border-radius: 1.25rem;
}

.settings__toggle::after {
  position: absolute;
  inset: -0.5rem -0.25rem;
  content: "";
}

.settings__toggle[aria-checked="true"] {
  background: var(--color-accent);
}

.settings__toggle:disabled {
  opacity: 0.5;
  cursor: default;
}

.settings__toggle:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.settings__knob {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1rem;
  height: 1rem;
  background: var(--color-accent-contrast);
  border-radius: 50%;
  transition: transform var(--transition-ui);
}

.settings__toggle[aria-checked="true"] .settings__knob {
  transform: translateX(1rem);
}

.settings__segment {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 2px;
  background: var(--settings-fill);
  border: var(--border-hairline) solid var(--settings-line);
  border-radius: var(--radius-md);
}

.settings__segment-item {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  color: var(--color-text-secondary);
  cursor: pointer;
  background: transparent;
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-sm);
}

.settings__segment-item .icon {
  width: 1rem;
  height: 1rem;
}

.settings__segment-item[aria-checked="true"] {
  color: var(--color-text);
  background: var(--color-bg);
  border-color: var(--settings-edge);
}

.settings__segment-item:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

.settings__dropdown {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  max-width: 100%;
}

.settings__dropdown-field {
  height: 2rem;
  max-width: 100%;
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-text);
  text-align: end;
  text-align-last: end;
  cursor: pointer;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
}

.settings__dropdown-field:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

.settings__dropdown .icon {
  position: absolute;
  inset-inline-end: 0.5rem;
  width: 1rem;
  height: 1rem;
  color: var(--color-text-secondary);
  pointer-events: none;
}

.settings__tab:focus-visible,
.settings__pane:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

:root {
  --transcript-scale: 1;
}

@media (max-width: 1023px) {
  .settings__segment-item {
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width: 40rem) {
  .settings__scrim {
    padding: 0;
  }

  .settings__dialog {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }

  .settings__body {
    flex-direction: column;
  }

  .settings__nav {
    width: auto;
    padding: var(--space-2);
    border-inline-end: 0;
    border-bottom: var(--border-hairline) solid var(--settings-line);
  }

  .settings__search,
  .settings__rule {
    display: none;
  }

  .settings__tabs {
    flex-direction: row;
    overflow-x: auto;
  }

  .settings__tab {
    height: var(--target-min);
  }

  .settings__pane .settings__input--inline {
    width: 100%;
  }

  .usage__row {
    grid-template-columns: 1fr auto;
  }

  .usage__percent {
    white-space: normal;
  }

  .usage__text {
    white-space: normal;
  }

  .usage__bar {
    grid-column: 1 / -1;
    order: 3;
  }
}

.apps {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  background: var(--color-bg);
}

.apps[hidden] {
  display: none;
}

.apps__head {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0 var(--space-4);
  border-bottom: var(--border-hairline) solid var(--color-border);
}

.apps__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target-min);
  padding: 0 var(--space-2);
  font: inherit;
  color: var(--color-text);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: var(--radius-soft);
}

.apps__back:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.apps__main {
  width: min(56rem, 100%);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-7);
}

.apps__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-dialog);
}

.apps__card-title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--weight-title);
}

.main.is-code .thread,
.main.is-code .dock,
.main.is-code .jump {
  display: none;
}

.main.is-code .topbar__title {
  visibility: hidden;
}

.remote {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
  width: min(100%, var(--column-width));
  min-height: 0;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-4);
}

.remote[hidden] {
  display: none;
}

.remote__session {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 3.5rem;
  padding: var(--space-2) var(--space-3);
  font: inherit;
  color: var(--color-text);
  text-align: start;
  cursor: pointer;
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-md);
}

.remote__session:focus-visible,
.remote__install:focus-visible,
.remote__shell-send:focus-visible,
.remote__allow:focus-visible,
.remote__always:focus-visible,
.remote__deny:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.remote__dot {
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  background: var(--color-disabled);
  border-radius: 50%;
}

.remote__dot.is-online {
  background: var(--color-success);
}

.remote__session-text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.remote__session-name {
  font-weight: 600;
}

.remote__session-dir {
  overflow: hidden;
  font-size: var(--text-metadata);
  color: var(--color-text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote__session-state {
  flex: none;
  font-size: var(--text-metadata);
  color: var(--color-text-secondary);
}

.remote__empty {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: var(--border-hairline) dashed var(--color-border-strong);
  border-radius: var(--radius-md);
}

.remote__empty p {
  margin: 0;
}

.remote__command,
.remote__ask-text,
.remote__shell-prompt {
  margin: 0;
  padding: var(--space-3);
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--text-metadata);
  line-height: 1.5;
  color: var(--color-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-md);
}

.remote__install,
.remote__shell-send,
.remote__allow,
.remote__always,
.remote__deny {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: var(--target-min);
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-text);
  cursor: pointer;
  background: transparent;
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-soft);
}

.remote__allow,
.remote__shell-send {
  color: var(--color-accent-contrast);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.remote__shell-send:disabled,
.remote__ask button:disabled {
  cursor: progress;
  opacity: 0.6;
}

.remote__detail {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 0;
}

.remote__detail[hidden] {
  display: none;
}

.remote__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.remote__back-icon {
  transform: rotate(90deg);
}

.remote__offline {
  display: grid;
  gap: var(--space-2);
  align-self: center;
  width: 100%;
  max-width: 30rem;
  padding: 0 0 var(--space-3);
  border: var(--border-hairline) solid var(--color-border);
}

.remote__offline-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-hover);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: var(--text-body);
}

.remote__offline-title .icon {
  color: var(--color-danger);
}

.remote__offline-text {
  margin: 0;
  padding: 0 var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--text-body);
}

.remote__offline-new {
  justify-self: end;
  min-height: var(--icon-hit);
  margin: 0 var(--space-3);
  padding: 0 var(--space-3);
  background: var(--color-accent);
  border-radius: var(--radius-soft);
  color: var(--color-accent-contrast);
}

.remote__offline:not([hidden]) + .remote__dock {
  display: none;
}

.remote__offline[hidden] {
  display: none;
}

.remote__ask {
  display: grid;
  gap: var(--space-3);
  max-width: 30rem;
  padding: 0 0 var(--space-3);
  overflow: hidden;
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-md);
}

.remote__ask > :not(.remote__ask-title) {
  margin: 0 var(--space-3);
}

.remote__ask-title {
  padding: var(--space-3);
  background: var(--color-surface-hover);
}

.remote__ask-row {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

.remote__ask[data-answered] {
  opacity: 0.65;
  border-color: var(--color-border);
}

.remote__ask-title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--color-text);
}

.remote__status {
  min-height: 1.25rem;
  margin: 0;
  font-size: var(--text-body);
  color: var(--color-danger);
}

.remote__thread {
  flex: 1;
  min-height: 12rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.remote__transcript {
  padding-right: 0;
  padding-left: 0;
}

.step {
  border-radius: var(--radius-soft);
}

.step__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  padding: 0 var(--space-2);
  font-size: var(--text-body);
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius-soft);
}

.step__head::-webkit-details-marker {
  display: none;
}

.step__head:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.step__chevron {
  flex: none;
  color: var(--color-text-secondary);
  transition: transform var(--transition-ui);
}

.step[open] .step__chevron {
  transform: rotate(180deg);
}

.step__title {
  flex: none;
  color: var(--color-text);
}

.step__target {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: var(--text-metadata);
  color: var(--color-text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step__state {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  overflow: hidden;
  font-size: 0;
  background: var(--color-text-secondary);
  border-radius: 50%;
}

.step[data-state="running"] .step__state {
  background: var(--color-accent);
  animation: remote-pulse 1.2s ease-in-out infinite;
}

.step[data-state="ok"] .step__state {
  background: var(--color-success);
}

.step[data-state="error"] .step__state {
  background: var(--color-danger);
}

.step[data-state="error"] .step__title {
  color: var(--color-danger);
}

.step__body {
  display: grid;
  margin: 0 var(--space-2) var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-soft);
}

.step__out {
  display: block;
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--text-metadata);
  line-height: 1.5;
  color: var(--color-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.step__out {
  max-height: 20rem;
  overflow: auto;
}

.step__out:empty {
  display: none;
}

.remote__shell {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  border: var(--border-hairline) solid var(--color-accent);
  border-radius: var(--radius-md);
}

.remote__shell-title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 600;
}

.remote__shell-prompt {
  max-height: 8rem;
  overflow: auto;
}

.remote__shell-row {
  display: flex;
  gap: var(--space-2);
}

.remote__shell-field {
  flex: 1;
  min-width: 0;
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-soft);
}

.remote__shell-note {
  margin: 0;
  font-size: var(--text-metadata);
  color: var(--color-text-secondary);
}

.settings__warning {
  margin: 0 0 var(--space-3);
  font-weight: var(--weight-title);
}

.settings__strong {
  margin: 0;
}

.settings__hint {
  margin: 0;
  color: var(--color-text-secondary);
}

.settings__row-text {
  display: grid;
  gap: var(--space-1);
}

.settings__note {
  margin: var(--space-2) 0 0;
  color: var(--color-text-secondary);
}

.settings__action {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding: 0 var(--space-4);
  font: inherit;
  color: var(--color-text);
  cursor: pointer;
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-soft);
}

.settings__action:disabled {
  opacity: 0.5;
  cursor: default;
}

.settings__action:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.remote__body > .remote__thread {
  flex: 1;
}

.remote__todo {
  flex: none;
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-soft);
  background: var(--color-surface);
}

.remote__todo[hidden] {
  display: none;
}

.remote__todo-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  font: inherit;
  color: var(--color-text);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.remote__todo-toggle:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}

.remote__todo-title {
  font-weight: 600;
}

.remote__todo-count {
  flex: 1;
  font-size: var(--text-metadata);
  color: var(--color-text-secondary);
}

.remote__todo-chevron {
  transform: rotate(90deg);
}

.remote__todo[data-collapsed] .remote__todo-chevron {
  transform: rotate(-90deg);
}

.remote__todo-bar {
  height: 0.25rem;
  margin: 0 var(--space-3);
  overflow: hidden;
  background: var(--color-border);
  border-radius: var(--radius-soft);
}

.remote__todo-fill {
  display: block;
  height: 100%;
  background: var(--color-success);
}

.remote__todo-body {
  max-height: 14rem;
  padding: var(--space-2) var(--space-3) var(--space-3);
  overflow-y: auto;
}

.remote__todo[data-collapsed] .remote__todo-body {
  display: none;
}

.remote__todo-group {
  margin: var(--space-2) 0 var(--space-1);
  font-size: var(--text-metadata);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.remote__todo-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.remote__todo-item {
  position: relative;
  padding: var(--space-1) 0 var(--space-1) var(--space-5);
  font-size: var(--text-body);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.remote__todo-item::before {
  position: absolute;
  top: 0.55rem;
  left: 0.25rem;
  box-sizing: border-box;
  width: 0.75rem;
  height: 0.75rem;
  content: "";
  border: 2px solid var(--color-text-tertiary);
  border-radius: 50%;
}

.remote__todo-item[data-state="doing"]::before {
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 2px var(--color-bg), inset 0 0 0 0.5rem var(--color-accent);
}

.remote__todo-item[data-state="done"] {
  color: var(--color-text-secondary);
  text-decoration: line-through;
}

.remote__todo-item[data-state="done"]::before {
  background: var(--color-success);
  border-color: var(--color-success);
}

.sessionrow__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .remote:has(.remote__todo:not([hidden])) {
    width: min(100%, calc(var(--column-width) + 21rem));
  }

  .remote__body {
    flex-direction: row;
    align-items: stretch;
  }

  .remote__todo {
    flex: none;
    width: 20rem;
    align-self: flex-start;
    max-height: 100%;
    overflow-y: auto;
  }

  .remote__todo[data-collapsed] .remote__todo-body {
    display: block;
  }

  .remote__todo-chevron {
    display: none;
  }
}

@keyframes remote-pulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes remote-spin {
  to {
    transform: rotate(360deg);
  }
}

.remote__heading-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.remote__heading {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
  min-height: var(--target-min);
  padding: 0 var(--space-2);
  font: inherit;
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-radius: var(--radius-soft);
  cursor: pointer;
}

.remote__heading:focus-visible,
.remote__menu-item:focus-visible,
.remote__mode-button:focus-visible,
.remote__mode-item:focus-visible,
.remote__session:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.remote__heading-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote__heading-dir {
  overflow: hidden;
  color: var(--color-text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote__heading-dir::before {
  margin-right: var(--space-2);
  content: "\00b7";
}

.remote__menu,
.remote__mode-menu {
  position: absolute;
  z-index: 5;
  display: grid;
  min-width: 14rem;
  padding: var(--space-1);
  background: var(--color-bg);
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-md);
}

.remote__menu[hidden],
.remote__mode-menu[hidden] {
  display: none;
}

.remote__menu {
  top: 100%;
  left: 0;
}

.remote__menu-item,
.remote__mode-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  font: inherit;
  color: var(--color-text);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: var(--radius-soft);
  cursor: pointer;
}

.remote__side {
  display: grid;
  flex: none;
  align-content: start;
  gap: var(--space-4);
  width: 17.5rem;
  padding: var(--space-3);
  overflow-y: auto;
  border-left: var(--border-hairline) solid var(--color-border);
}

.remote__section {
  display: grid;
  gap: var(--space-2);
}

.remote__section-title {
  margin: 0;
  font-size: var(--text-metadata);
  font-weight: var(--weight-title);
  color: var(--color-text-secondary);
}

.remote__env {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.remote__env-name {
  flex: 1;
}

.remote__context-text,
.remote__none {
  margin: 0;
  font-size: var(--text-metadata);
  color: var(--color-text-secondary);
  overflow-wrap: anywhere;
}

.remote__section--row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.remote__section--row .remote__section-title {
  flex: 1;
}

.remote__section--row .remote__context-bar {
  width: 1.5rem;
}

.remote__context-bar {
  height: 0.375rem;
  overflow: hidden;
  background: var(--color-surface-hover);
  border-radius: var(--radius-pill);
}

.remote__context-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--color-accent);
  transition: width var(--transition-ui);
}

.remote__outputs {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.remote__output {
  gap: var(--space-2);
  min-width: 0;
  font-size: var(--text-metadata);
}

.remote__output-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote__extras {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.remote__mode {
  position: relative;
}

.remote__mode-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--target-min);
  padding: 0 var(--space-2);
  font: inherit;
  font-size: var(--text-metadata);
  color: var(--color-text-secondary);
  background: transparent;
  border: 0;
  border-radius: var(--radius-soft);
  cursor: pointer;
}

.remote__mode-menu {
  right: 0;
  bottom: 100%;
}

.remote__spin {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--color-border-strong);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: remote-spin 0.8s linear infinite;
}

.remote__stop {
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  font: inherit;
  font-size: var(--text-metadata);
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-soft);
  cursor: pointer;
}

.remote__stop[hidden] {
  display: none;
}

.remote__change-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  cursor: pointer;
}

.remote__diff {
  margin: var(--space-1) 0 0;
  padding: var(--space-2);
  overflow-x: auto;
  font-size: var(--text-caption);
  line-height: 1.4;
  background: var(--color-surface-hover);
  border-radius: var(--radius-soft);
}

.remote__diff-add {
  color: var(--color-success);
}

.remote__diff-del {
  color: var(--color-danger);
}

.remote__spin[hidden] {
  display: none;
}

.remote__side-toggle {
  flex: none;
}

.sessionrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.sessionrow__text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.sessionrow__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sessionrow__state {
  flex: none;
  color: var(--color-text-secondary);
}

.sessionrow__state.is-online {
  color: var(--color-accent);
}

.composer__box {
  position: relative;
}

.composer__menu {
  position: absolute;
  right: auto;
  bottom: 100%;
  left: 0;
  width: 15rem;
  max-height: 22rem;
  overflow-y: auto;
  z-index: 5;
  display: grid;
  margin: 0 0 var(--space-2);
  padding: var(--space-1);
  list-style: none;
  background: var(--color-bg);
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-md);
}

.composer__menu[hidden] {
  display: none;
}

.composer__menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  border-radius: var(--radius-soft);
  cursor: pointer;
}

.composer__menu-item[aria-selected="true"] {
  background: var(--color-surface-hover);
}

@media (prefers-reduced-motion: reduce) {
  .remote__spin,
  .typing__dot,
  .step[data-state="running"] .step__state {
    animation: none;
  }

  .step__chevron,
  .remote__context-fill {
    transition: none;
  }
}

.signin__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: min(28rem, 100%);
  padding: var(--space-5) var(--space-4);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-dialog);
  box-shadow: var(--search-shadow);
}

.signin__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-heading);
  font-weight: var(--weight-regular);
}

.signin__code {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-hover);
  border-radius: var(--radius-soft);
  font-family: var(--font-mono);
  font-size: var(--text-heading);
  letter-spacing: 0.15em;
  user-select: all;
}

.signin__status {
  min-height: 1lh;
  margin: 0;
  color: var(--color-text-secondary);
}

.signin__status[data-failed="true"] {
  color: var(--color-danger);
}

.signin__actions {
  display: flex;
  gap: var(--space-3);
}

.signin__cancel {
  min-height: var(--target-min);
  padding: 0 var(--space-4);
  border-radius: var(--radius-soft);
  color: var(--color-text-secondary);
}

.signin__actions[hidden] {
  display: none;
}

.remote__rename {
  box-sizing: border-box;
  width: calc(100% - var(--space-4));
  min-height: var(--target-min);
  margin: 0 var(--space-2);
  padding: 0 var(--space-3);
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-soft);
}

.remote__rename:focus-visible,
.remote__archived:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.remote__archived {
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  font: inherit;
  font-size: var(--text-metadata);
  color: var(--color-text-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.step-group {
  display: grid;
}

.step-group__summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  color: var(--color-text-secondary);
  list-style: none;
}

.step-group__summary::-webkit-details-marker {
  display: none;
}

.step-group__body {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-2);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-md);
}

.remote__mode-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-block: var(--space-2);
}

.remote__mode-note {
  grid-column: 1;
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
}

.remote__mode-key {
  grid-column: 2;
  grid-row: 1 / span 2;
  font: inherit;
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
}

.remote__output-stat {
  margin-left: auto;
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
}

.remote__ask-key {
  margin-left: var(--space-2);
  font: inherit;
  font-size: var(--text-caption);
  opacity: 0.7;
}

.remote__menu-key {
  margin-left: auto;
  font: inherit;
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
}

.remote__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.remote__undo {
  min-height: var(--target-min);
  padding: 0 var(--space-2);
  font: inherit;
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.remote__undo[hidden] {
  display: none;
}

.remote__viewer-path {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: var(--text-metadata);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote__viewer-toggle,
.remote__viewer-close,
.remote__open {
  min-height: var(--target-min);
  padding: 0 var(--space-2);
  font: inherit;
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.remote__viewer[hidden],
.remote__viewer-toggle[hidden] {
  display: none;
}

.remote__viewer-body {
  max-height: 24rem;
  overflow: auto;
}

.remote__viewer-code {
  margin: 0;
  font-size: var(--text-caption);
  white-space: pre-wrap;
  word-break: break-word;
}

.remote__output {
  display: flex;
  align-items: center;
}

.remote__output .remote__change {
  flex: 1;
  min-width: 0;
}

.chat__menu-key {
  margin-left: auto;
  font: inherit;
  color: var(--color-text-secondary);
}

.sidebar__archived {
  margin: var(--space-2) var(--space-4);
  padding: 0;
  font: inherit;
  font-size: var(--text-metadata);
  color: var(--color-text-secondary);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.remote__ask-row .remote__always {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.remote__ask-row {
  align-items: stretch;
}

.remote__menu-item--danger { color: var(--color-danger); }

.msg__rate[aria-pressed="true"] { color: var(--color-text); background: var(--color-surface-hover); }

.remote__toggles {
  display: flex;
  gap: var(--space-1);
  margin-left: auto;
}

.remote__toggles .icon-button[aria-expanded="true"] {
  background: var(--color-surface-hover);
}

.remote__group {
  display: grid;
  gap: var(--space-4);
}

.remote__group[hidden] {
  display: none;
}

.remote__empty {
  margin: 0;
  font-size: var(--text-metadata);
  color: var(--color-text-secondary);
}

.remote__tree {
  display: grid;
}

.remote__node {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: var(--radius-soft);
  text-align: start;
  cursor: pointer;
}

.remote__node-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote:has(.remote__detail:not([hidden])) {
  width: min(100%, 76rem);
}

.main.is-code.is-empty .remote {
  padding-top: var(--space-1);
}

.composer__menu-tip {
  position: absolute;
  left: 15.5rem;
  z-index: 6;
  max-width: 16rem;
  margin: 0;
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-caption);
  color: var(--color-bg);
  background: var(--color-text);
  border-radius: var(--radius-soft);
}

.composer__menu-tip[hidden] {
  display: none;
}

.composer__plus-panel {
  position: absolute;
  bottom: 100%;
  z-index: 7;
  display: grid;
  min-width: 15rem;
  margin: 0 0 var(--space-2);
  background: var(--color-bg);
  border: var(--border-hairline) solid var(--color-border-strong);
}

.composer__plus-panel[hidden] {
  display: none;
}

.composer__plus-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: var(--radius-soft);
  text-align: start;
  cursor: pointer;
}

.composer__plus-item:focus-visible {
  background: var(--color-surface-hover);
}

.composer__plus-key {
  font: inherit;
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
}

.step-group__stat {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
}

.remote__submenu {
  display: grid;
  padding-left: var(--space-4);
}

.remote__submenu[hidden] {
  display: none;
}

.remote__submenu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--target-min);
  padding: 0 var(--space-2);
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: var(--radius-soft);
  text-align: start;
  cursor: pointer;
}

.remote__submenu-check {
  visibility: hidden;
}

.remote__submenu-item[aria-checked="true"] .remote__submenu-check {
  visibility: visible;
}

.remote__menu-more {
  margin-left: auto;
}

.settings__input {
  width: 100%;
  min-height: var(--target-min);
  padding: var(--space-2) var(--space-3);
  font: inherit;
  color: var(--color-text);
  background: var(--color-input-bg);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-soft);
}

.settings__textarea {
  resize: vertical;
  line-height: 1.5;
}

.settings__input:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.settings__option {
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  font: inherit;
  color: var(--color-text-secondary);
}

.settings__option[aria-checked="true"] {
  color: var(--color-text);
  background: var(--color-surface-hover);
}

.settings__option:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}

.settings__action--danger {
  color: var(--color-danger);
}

.chat__open--unread {
  font-weight: var(--weight-title);
}

.chat__open--unread::after {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-inline-start: var(--space-2);
  border-radius: 50%;
  background: var(--color-accent);
}

.chat__menu-caption {
  margin: 0;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
}

.chat__menu-check {
  margin-inline-start: auto;
}

.projects__card:focus-visible,
.artifacts__card:focus-visible,
.projects__chat:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.projects__files {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.projects__file {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.projects__file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.projects__chat {
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  font: inherit;
  color: var(--color-text);
  text-align: start;
  border-radius: var(--radius-soft);
}

.chat__hit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: auto;
  padding-block: var(--space-2);
  text-align: start;
  white-space: normal;
  mask-image: none;
}

.chat__hit-title {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat__hit-snippet {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  font-size: var(--text-caption);
  line-height: 1.35;
  color: var(--color-text-tertiary);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shared {
  height: 100%;
  overflow-y: auto;
  background: var(--color-bg);
}

.shared__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: min(var(--column-width), 100%);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-3);
}

.shared__title {
  margin: 0;
  font-size: var(--text-subhead);
  font-weight: var(--weight-title);
}

.shared__column {
  padding-inline: var(--space-4);
}

.shared__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  width: min(var(--column-width), 100%);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-7);
}

.shared__start {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.sharing {
  width: min(28rem, 100%);
}

.sharing__options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sharing__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  padding: var(--space-3);
  text-align: start;
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-soft);
}

.sharing__option[aria-checked="true"] {
  border-color: var(--color-accent);
  background: var(--color-surface-hover);
}

.sharing__option:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.sharing__label {
  font-weight: var(--weight-title);
}

.sharing__link {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.sharing__url {
  flex: 1;
  min-width: 0;
}

.composer__plus-check {
  visibility: hidden;
  margin-inline-start: auto;
}

.composer__plus-item[aria-checked="true"] .composer__plus-check {
  visibility: visible;
  color: var(--color-accent-text);
}

.settings__switch[aria-checked="true"] {
  color: var(--color-text);
  background: var(--color-surface-hover);
  border-color: var(--color-accent);
}

.settings__switch {
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-soft);
}

.recents__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-3);
  border-bottom: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-soft);
}

.recents__row.is-picked {
  background: var(--color-surface-hover);
}

.recents__check {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--color-accent);
}

.recents__open {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-width: 0;
  min-height: 3.3125rem;
  text-align: start;
}

.recents__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recents__time,
.recents__count,
.recents__empty {
  color: var(--color-text-secondary);
  font-size: var(--text-metadata);
}

.recents__count {
  margin-inline-end: var(--space-2);
}

.recents__empty {
  padding-top: var(--space-6);
  text-align: center;
}

.recents__head {
  margin-bottom: var(--space-4);
}

.recents__movebox {
  position: relative;
}

.recents__menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 50;
}

.recents__danger {
  color: var(--color-danger);
}

.recents__open:focus-visible,
.recents__check:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.msg__versions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-text-tertiary);
}

.msg__version {
  font-size: var(--text-metadata);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 64rem) {
  .app:not(.is-collapsed) > .recents,
  .app:not(.is-collapsed) > .artifacts,
  .app:not(.is-collapsed) > .projects,
  .app:not(.is-collapsed) > .scheduled {
    left: var(--sidebar-width);
  }
}

.composer__plus-label {
  flex: 1;
}

.usermenu__key {
  color: var(--color-text-secondary);
  font: inherit;
  font-size: var(--text-metadata);
}

@media (min-width: 64rem) {
  .sidebar {
    padding: var(--space-2);
    gap: 0.125rem;
  }

  .sidebar__head {
    height: 2.75rem;
  }

    .sidebar__new,
  .chat__open {
    min-height: 2.25rem;
  }

  .sidebar__title {
    padding: 0 0.625rem;
  }
}

@media (min-width: 64rem) {
  .tier__panel {
    width: 26rem;
  }

  .tier__option {
    min-height: 2.875rem;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-body);
  }

  .tier__option-desc {
    font-size: var(--text-metadata);
  }

  .tier__row {
    min-height: 2.25rem;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-body);
  }
}

@media (min-width: 64rem) {
  .topbar {
    height: 2.75rem;
  }

  .msg__bubble {
    background: var(--color-surface);
    border-color: transparent;
    border-radius: var(--radius-md);
  }

  .msg__body {
    font-size: calc(var(--text-body) * var(--transcript-scale));
    line-height: 1.4;
  }

  .md-paragraph {
    margin-block-end: 0.6875rem;
  }

}

.topbar__title:has(.topbar__share) {
  display: flex;
  align-items: center;
}

.topbar__share {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-inline-start: auto;
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  background: none;
  border-radius: var(--radius-soft);
  color: var(--color-text);
  font-size: var(--text-body);
  cursor: pointer;
}

@media (min-width: 64rem) {
  .dock {
    padding-bottom: var(--space-3);
  }
}

.pagehead__main {
  width: min(calc(60rem + 2 * var(--space-4)), 100%);
  padding: calc(var(--space-6) - 0.5rem) var(--space-4) var(--space-7);
}

.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 2rem;
}

.pagehead__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 2rem;
}

.pagehead__actions,
.pagehead__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.pagehead__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-5);
  margin-bottom: var(--space-5);
}

.pagehead__pill,
.pagehead__tool,
.pagehead__dark,
.pagehead__soft,
.pagehead__crumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2rem;
  padding: 0 var(--space-3);
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-text);
  cursor: pointer;
  background: transparent;
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-soft);
}

.pagehead__tool {
  padding: 0;
  color: var(--color-text-secondary);
}

.pagehead__pill[aria-pressed="true"],
.pagehead__tool[aria-pressed="true"] {
  background: var(--color-surface-hover);
}

.pagehead__dark {
  color: var(--color-bg);
  background: var(--color-text);
}

.pagehead__pill:focus-visible,
.pagehead__tool:focus-visible,
.pagehead__dark:focus-visible,
.pagehead__soft:focus-visible,
.pagehead__crumb:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.pagehead__segment {
  display: inline-flex;
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-soft);
}

.pagehead__segment .pagehead__pill[aria-pressed="true"] {
  background: var(--color-bg);
  border-color: var(--color-border);
}

.pagehead__field {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
  padding: 0 var(--space-3);
  color: var(--color-text-secondary);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-soft);
}

.pagehead__search {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-text);
  background: transparent;
  border: 0;
  outline: 0;
}

.pagehead__field:focus-within {
  border-color: var(--color-text-secondary);
}

.pagehead__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--space-7);
  text-align: center;
}

.pagehead__art {
  width: 5rem;
  height: 5rem;
  margin-bottom: var(--space-4);
  stroke-width: 0.9;
  color: var(--color-text);
}

.pagehead__empty-title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

.pagehead__empty-text {
  max-width: 20rem;
  margin: 0 0 var(--space-4);
  font-size: var(--text-metadata);
  color: var(--color-text-tertiary);
}

.projects__head,
.artifacts__head {
  display: flex;
  flex-direction: column;
}

.projects__head .pagehead__field {
  align-self: flex-end;
  margin-top: var(--space-3);
}

.artifacts__head .pagehead__field {
  align-self: flex-end;
  margin-top: calc(-1 * var(--space-3));
  margin-bottom: var(--space-4);
}

.projects__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.projects__cards,
.artifacts__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.projects__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  font: inherit;
  color: var(--color-text);
  text-align: start;
  cursor: pointer;
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-dialog);
}

.projects__card-title {
  font-weight: var(--weight-title);
}

.projects__card-meta,
.artifacts__meta {
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
}

.projects__dialog {
  width: min(32rem, calc(100vw - 2 * var(--space-4)));
  gap: var(--space-3);
}

.artifacts__list--rows {
  grid-template-columns: 1fr;
}

.artifacts__list--rows .artifacts__thumb {
  display: none;
}

.artifacts__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  font: inherit;
  color: var(--color-text);
  text-align: start;
  cursor: pointer;
  background: var(--color-bg);
  border: var(--border-hairline) solid var(--color-border);
}

.artifacts__thumb {
  display: flex;
  justify-content: center;
  height: 9.5rem;
  padding: var(--space-5) var(--space-6) 0;
  overflow: hidden;
}

.artifacts__preview {
  flex: 1;
  margin: 0;
  padding: var(--space-3);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1.4;
  color: var(--color-text-secondary);
  white-space: pre;
  background: var(--color-bg);
  border: var(--border-hairline) solid var(--color-border);
}

.artifacts__foot {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
}

.artifacts__glyph {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.artifacts__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.artifacts__title {
  overflow: hidden;
  font-size: var(--text-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 64rem) {
  .app:not(.is-collapsed) > .pagehead-page > .apps__head {
    display: none;
  }
}

.palette__scrim {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 27dvh var(--space-4) var(--space-4);
  background: var(--color-overlay);
}

.palette {
  display: flex;
  flex-direction: column;
  width: min(41.875rem, 100%);
  height: min(36.375rem, calc(100dvh - 27dvh - 1rem));
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: 0 0.25rem 1.5rem var(--color-shadow-key), 0 0 0 var(--border-hairline) var(--color-border);
  overflow: hidden;
}

.palette__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5) var(--space-2);
}

.palette__field {
  flex: 1;
  min-width: 0;
  height: 2.25rem;
  padding: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-body);
}

.palette__field::placeholder {
  color: var(--color-text-tertiary);
}

.palette__head:focus-within .palette__field::placeholder {
  color: var(--color-disabled);
}

.palette__tabs {
  display: flex;
  gap: 0.125rem;
  padding: 0 var(--space-5) 0.875rem;
  border-bottom: var(--border-hairline) solid var(--color-border);
  overflow-x: auto;
}

.palette__tab {
  flex: none;
  height: 1.75rem;
  padding: 0 0.625rem;
  background: none;
  border-radius: var(--radius-soft);
  color: var(--color-text-secondary);
  font: inherit;
  font-size: var(--text-body);
}

.palette__tab.is-selected {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.palette__list {
  flex: 1;
  min-height: 0;
  padding: var(--space-2) 0.625rem;
  overflow-y: auto;
}

.palette__caption {
  margin: var(--space-3) 0 0.3125rem;
  padding: 0 0.875rem;
  color: var(--color-text-tertiary);
  font-size: var(--text-metadata);
  line-height: 1.5rem;
}

.palette__empty {
  margin: var(--space-5) 0;
  color: var(--color-text-tertiary);
  text-align: center;
}

.palette__row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 2.25rem;
  padding: 0 0.875rem;
  background: none;
  border-radius: var(--radius-soft);
  color: var(--color-text-secondary);
  font: inherit;
  font-size: var(--text-body);
  text-align: left;
}

.palette__row.is-active {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.palette__glyph {
  position: relative;
  display: inline-flex;
  flex: none;
}

.palette__dot {
  position: absolute;
  top: -0.125rem;
  right: -0.125rem;
  width: 0.4375rem;
  height: 0.4375rem;
  background: var(--color-accent);
  border-radius: 50%;
}

.palette__text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.palette__title,
.palette__sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.palette__sub {
  color: var(--color-text-tertiary);
  font-size: var(--text-metadata);
}

.palette__enter {
  display: none;
  flex: none;
  color: var(--color-text-secondary);
}

.palette__row.is-active .palette__enter {
  display: block;
}

.palette__foot {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 2.5rem;
  padding: 0 1.25rem;
  border-top: var(--border-hairline) solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: var(--text-caption);
}

.palette__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.palette__key {
  min-width: 1.125rem;
  padding: 0 var(--space-1);
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-xs);
  font: inherit;
  line-height: 1.0625rem;
  text-align: center;
}

.main.is-code .topbar,
.main.is-code.is-empty .topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  z-index: 3;
  border-bottom: 0;
  background: transparent;
  pointer-events: none;
}

.main.is-code .topbar > * {
  pointer-events: auto;
}

.main.is-code .topbar__tools,
.main.is-code .topbar__title {
  display: none;
}

.main .remote,
.main .remote:has(.remote__detail:not([hidden])),
.main .remote:has(.remote__todo:not([hidden])),
.main.is-code.is-empty .remote {
  width: 100%;
  max-width: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.remote__status {
  padding: 0 var(--space-5);
}

.remote__status:empty {
  display: none;
}

.code-home {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.code-home[hidden] {
  display: none;
}

.code-home__crumb {
  display: flex;
  flex: none;
  align-items: center;
  height: 2.8125rem;
  margin: 0;
  padding: 0 1.25rem;
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

.app.is-collapsed .main.is-code .code-home__crumb,
.app.is-collapsed .main.is-code .remote__bar {
  padding-inline-start: 3.5rem;
}

.code-home__stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 0;
  padding: 0 var(--space-4) 4rem;
}

.code-home__card,
.code-home__folder {
  box-sizing: border-box;
  width: min(24rem, 100%);
  font-size: var(--text-body);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-md);
}

.code-home__card {
  position: relative;
  margin-top: var(--space-5);
}

.code-home__pet {
  position: absolute;
  right: var(--space-2);
  bottom: 100%;
  line-height: 0;
  pointer-events: none;
}

.code-home__row {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 2.5rem;
  padding: 0 var(--space-3);
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-text);
  text-align: start;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.code-home__row:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}

.code-home__card > .code-home__row:first-of-type {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.code-home__card > .code-home__row:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.code-home__card > .code-home__row + .code-home__row,
.code-home__menu,
.code-home__card > .remote__archived {
  border-top: var(--border-hairline) solid var(--color-border);
}

.code-home__card .remote__session {
  min-height: 2.5rem;
  background: transparent;
  border: 0;
}

.code-home__card .remote__session-text {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: var(--space-2);
}

.code-home__card .remote__session-name,
.code-home__card .remote__choice-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-weight: var(--weight-regular);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-home__card .remote__session-dir {
  flex: 1;
  min-width: 0;
}

.code-home__check {
  flex: none;
  margin-left: auto;
}

.code-home__choose {
  justify-content: flex-start;
}

.code-home__choose .icon {
  color: var(--color-text-secondary);
}

.code-home__choose[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.code-home__menu {
  display: grid;
}

.code-home__menu .remote__choice {
  border-radius: 0;
}

.code-home__menu .remote__choice[aria-pressed="true"] {
  background: var(--color-surface);
}

.code-home__card > .remote__archived {
  display: block;
  width: 100%;
  min-height: 2rem;
  font-size: var(--text-caption);
  text-align: start;
}

.code-home__card .remote__empty {
  gap: var(--space-2);
  padding: var(--space-3);
  border: 0;
}

.code-home__card .remote__install {
  justify-self: stretch;
  justify-content: flex-start;
  text-align: start;
  background: var(--color-surface);
  border: 0;
}

.code-home__folder {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.5rem;
  padding: 0 var(--space-3);
  color: var(--color-text-secondary);
}

.code-home__folder-label {
  flex: none;
  color: var(--color-text);
}

.code-home__folder-dir {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote__dock {
  box-sizing: border-box;
  flex: none;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
}

.remote__main .remote__dock {
  max-width: calc(40rem + 2 * var(--space-5));
  padding-inline: var(--space-5);
}

.remote__extras {
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  margin-left: 0;
}

.remote__chips {
  display: flex;
  gap: var(--space-1);
  min-width: 0;
  margin-right: auto;
}

.remote__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2rem;
  max-width: 12rem;
  padding: 0 var(--space-2);
  font: inherit;
  font-size: var(--text-metadata);
  color: var(--color-text-secondary);
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: var(--radius-soft);
}

.remote__chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.remote__chip--folder {
  cursor: default;
}

.remote__body,
.remote__body[data-wide] {
  display: flex;
  flex: 1;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  min-height: 0;
}

.remote__main {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.remote__bar {
  box-sizing: border-box;
  flex: none;
  padding: 0 var(--space-4) 0 var(--space-5);
  border-bottom: var(--border-hairline) solid var(--color-border);
}

.remote__back {
  display: none;
}

.remote__heading {
  font-size: var(--text-body);
}

.remote__heading-name {
  font-weight: var(--weight-regular);
}

.remote__heading-dir {
  display: none;
}

.remote__share {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  margin-inline-start: var(--space-1);
  padding: 0 var(--space-3);
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-text);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: var(--radius-soft);
}

@media (max-width: 1023px) {
  .remote__share {
    justify-content: center;
    min-width: var(--target-min);
    padding: 0;
  }

  .remote__share span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.remote__share:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.remote__toggles {
  align-items: center;
}

.remote__offline {
  margin: var(--space-3) var(--space-5) 0;
  color: var(--color-text);
  background: var(--color-surface);
  border-color: var(--color-border);
  border-radius: var(--radius-md);
}

.remote__transcript {
  box-sizing: border-box;
  max-width: calc(40rem + 2 * var(--space-5));
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.remote__transcript .msg--user .msg__bubble {
  background: var(--color-surface);
  border: 0;
  border-radius: var(--radius-md);
}

.remote__filecard {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 2.5rem;
  padding: 0 var(--space-3);
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-text);
  text-align: start;
  background: transparent;
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-md);
}

.remote__filecard-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote__filecard-stat {
  flex: none;
  font-size: var(--text-metadata);
  font-variant-numeric: tabular-nums;
}

.step-group__summary {
  flex-wrap: wrap;
  min-height: 2rem;
  font-size: var(--text-body);
}

.step-group__stat {
  margin-left: 0;
}

.step-group__add {
  color: var(--color-success);
}

.step-group__del {
  color: var(--color-danger);
}

.step-group__chevron {
  width: 0.75rem;
  height: 0.75rem;
  transform: rotate(-90deg);
}

.step-group[open] .step-group__chevron {
  transform: none;
}

.remote__divider {
  position: relative;
  z-index: 2;
  flex: none;
  width: 0.5rem;
  margin: 0 -0.25rem;
  cursor: col-resize;
  touch-action: none;
}

.remote__divider[hidden] {
  display: none;
}

.remote__divider::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  content: "";
  background: transparent;
}

.remote__divider:hover::after,
.remote__divider:focus-visible::after,
.remote__body[data-dragging] .remote__divider::after {
  background: var(--color-accent);
}

.remote__divider:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}

.remote__body[data-dragging] {
  cursor: col-resize;
  user-select: none;
}

.remote__body .remote__side,
.remote__body[data-wide] .remote__side {
  box-sizing: border-box;
  display: grid;
  flex: none;
  align-content: start;
  gap: 0;
  width: 20rem;
  min-width: 15rem;
  padding: 0;
  overflow-y: auto;
  border-left: var(--border-hairline) solid var(--color-border);
}

.remote__body[data-wide] .remote__side {
  width: 58%;
}

.remote__body[data-side="hidden"] .remote__side {
  display: none;
}

.remote__body[data-expanded] .remote__side,
.remote__body[data-expanded][data-wide] .remote__side {
  flex: 1 1 0;
  width: auto;
}

.remote__body[data-expanded] .remote__main {
  flex: 0 1 24rem;
}

.remote__pane-bar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-1);
  height: 3.5rem;
  padding: 0 var(--space-3);
  border-bottom: var(--border-hairline) solid var(--color-border);
}

.remote__pane-bar .icon-button[aria-expanded="true"],
.remote__pane-bar .icon-button[aria-pressed="true"] {
  background: var(--color-surface-hover);
}

.remote__side > :not(.remote__pane-bar) {
  padding: var(--space-4);
}

.remote__side .remote__todo {
  align-self: stretch;
  width: auto;
  max-height: none;
  border-bottom: var(--border-hairline) solid var(--color-border);
}

.remote__side .remote__todo[hidden] {
  display: none;
}

.remote__side .remote__todo[data-collapsed] .remote__todo-body {
  display: none;
}

.remote__side .remote__todo-chevron {
  display: inline-block;
}

.remote__side .remote__empty {
  display: grid;
  place-items: center;
  min-height: 40vh;
  padding: 0;
  text-align: center;
  border: 0;
}

@media (max-width: 899px) {
  .remote__body {
    position: relative;
  }

  .remote__body .remote__side,
  .remote__body[data-wide] .remote__side,
  .remote__body[data-expanded] .remote__side {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: auto;
    background: var(--color-bg);
    border-left: 0;
  }

  .remote__divider {
    display: none;
  }

  .remote__back {
    display: inline-flex;
  }

  .remote__heading-dir {
    display: inline;
  }
}

@media (min-width: 64rem) {
  .main.is-empty:not(.is-code) {
    padding-bottom: var(--space-5);
  }

  .main.is-empty:not(.is-code) .dock {
    max-width: 49rem;
    padding-inline: 4rem;
  }
}

@media (min-width: 64rem) {
  .sidebar__head {
    margin: -0.5rem 0 0.1875rem var(--space-1);
  }

  .brand {
    font-size: var(--text-subhead);
    font-weight: 500;
  }

  .modes {
    gap: 0;
    padding: 1px;
    background: var(--color-surface-hover);
    border: 0;
    border-radius: 7px;
  }

    .sidebar__new,
  .chat__open {
    padding-inline: var(--space-2);
    gap: var(--space-2);
    font-size: var(--text-body);
  }

  .sidebar__new .icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .chat__open {
    padding-inline: var(--space-4);
  }

  .sidebar__title {
    min-height: 1.75rem;
    margin: 1.25rem 0 0.125rem;
    padding-inline: var(--space-4);
  }

  .welcome {
    font-size: 2rem;
  }

  .composer__box {
    padding-inline: var(--space-2) var(--space-2);
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--search-shadow);
  }

  .composer__attach,
  .composer__send {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 0;
    min-height: 0;
    border-radius: var(--radius-md);
  }
}

@media (min-width: 64rem) {
  .sidebar {
    padding-inline-end: 0.6875rem;
  }

  .sidebar__title {
    margin-block-end: var(--space-1);
  }

  .tier__trigger {
    min-height: 1.75rem;
    font-size: var(--text-body);
  }

  .tier__trigger .tier__name {
    font-size: var(--text-body);
    font-weight: 400;
  }

  .composer {
    gap: var(--space-2);
  }
}

@media (min-width: 64rem) {
  .topbar {
    padding-inline-start: var(--space-2);
  }

  .topbar__name-button,
  .topbar__share {
    min-height: 1.75rem;
    font-size: var(--text-body);
  }

  .topbar__name-button {
    padding: 0 var(--space-3);
  }

  .topbar__chevron {
    width: 1.75rem;
    height: 1.75rem;
  }

  .topbar__share {
    padding: 0 var(--space-2);
    gap: var(--space-1);
  }

  .msg__bubble {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-body);
    line-height: 1.4;
  }

  .msg__meta {
    margin-block-start: var(--space-1);
  }

  .msg__age {
    font-size: var(--text-caption);
  }

  .main:not(.is-empty) .composer__hint,
  .main:not(.is-empty) .tier__trigger,
  .main:not(.is-empty) .tier__trigger .tier__name,
  .main:not(.is-empty) .tier__trigger .tier__desc {
    font-size: var(--text-metadata);
  }
}

@media (min-width: 64rem) {
  .thread__column {
    gap: var(--space-6);
    padding-block-start: 2.3125rem;
  }

  .msg__meta--user {
    height: 0;
    min-height: 0;
    margin-block-start: 0;
    overflow: visible;
  }
}

.pagehead__title {
  font-weight: var(--weight-title);
  letter-spacing: 0;
}

.pagehead__tool {
  width: 1.75rem;
  min-height: 1.75rem;
  height: 1.75rem;
}

.pagehead__pill,
.pagehead__dark,
.pagehead__soft {
  min-height: 2.25rem;
}

.pagehead__dark {
  padding: 0 0.5625rem;
}

.pagehead__soft {
  background: var(--color-surface-hover);
}

.pagehead__empty-title {
  margin-bottom: var(--space-4);
  font-weight: 500;
  line-height: 1.25rem;
}

.pagehead__empty-text {
  line-height: 1.0625rem;
}

.projects .pagehead__empty {
  padding-top: calc(var(--space-7) + 2.75rem);
}

.projects__cards,
.artifacts__list {
  gap: var(--space-5);
}

.artifacts__card {
  min-height: 14rem;
  border-radius: var(--radius-md);
}

.pagehead__segment {
  gap: 0;
  padding: 1px;
}

.pagehead__segment .pagehead__pill {
  min-height: 1.625rem;
  padding: 0 var(--space-3);
}

.pagehead__field {
  width: 16rem;
  min-height: 1.75rem;
  background: var(--color-surface-hover);
}

}

}

}

}

.scheduled__head {
  display: flex;
  flex-direction: column;
}

.scheduled__body {
  margin-top: var(--space-5);
}

.scheduled__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scheduled__row {
  position: relative;
  display: flex;
  min-width: 0;
}

.scheduled__open,
.scheduled__card {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 6.3125rem;
  padding: var(--space-2);
  font: inherit;
  color: var(--color-text);
  text-align: start;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
}

.scheduled__glyph {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
}

.scheduled__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.125rem;
}

.scheduled__name {
  font-size: var(--text-body);
  font-weight: 500;
}

.scheduled__prompt {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--text-body);
  line-height: 1.25rem;
  color: var(--color-text-secondary);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.scheduled__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
  font-size: var(--text-metadata);
  color: var(--color-text-secondary);
}

.scheduled__actions {
  position: absolute;
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  display: none;
  gap: 0.125rem;
  background: var(--color-surface-hover);
  border-radius: var(--radius-md);
}

.scheduled__row .scheduled__actions,
.scheduled__row:focus-within .scheduled__actions {
  display: flex;
}

.scheduled__when {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.scheduled__time {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.scheduled .pagehead__empty {
  padding-top: calc(var(--space-7) - 2.25rem);
}

.scheduled .pagehead__empty-text {
  display: none;
}

.scheduled .pagehead__empty-title {
  font-weight: 400;
}

@media (min-width: 64rem) {
  .remote__dock,
  .remote__main .remote__dock {
    max-width: calc(48rem + 2 * var(--space-4));
    padding-inline: var(--space-4);
  }
}

.main.is-empty:not(.is-code) .composer {
  position: relative;
}

.settings__scrim {
  align-items: center;
  padding: var(--space-4);
}

.settings__title {
  font-size: var(--text-body);
}

.settings__search {
  height: 1.75rem;
}

@media (min-width: 64rem) {
  .settings__close {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 0;
    min-height: 0;
  }
}

@media (max-width: 1023px) {
  .main.is-empty:not(.is-code) {
    justify-content: flex-end;
  }

  .main.is-empty:not(.is-code) .welcome {
    inset-inline: var(--space-4);
    margin: 0;
  }

}

@media (max-width: 1023px) {

  .sidebar__new .icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.topbar__title:has(.topbar__share) .topbar__menu-anchor {
  flex: 0 1 auto;
  min-width: 0;
}

.topbar__share {
  flex: none;
}

@media (max-width: 1023px) {
  .settings__scrim {
    padding: var(--space-4);
  }

  .settings__dialog {
    border-radius: var(--radius-md);
  }

  .settings__tab .icon {
    display: none;
  }
}

@media (max-width: 1023px) {
  .main.is-code .code-home__crumb,
  .main.is-code .remote__bar {
    padding-inline-start: 3.5rem;
  }
}

.composer__plus-panel {
  left: 0.5rem;
  width: 15.5rem;
  border-radius: var(--radius-md);
  font-size: var(--text-body);
  box-shadow: var(--search-shadow);
}

.composer__plus-item {
  min-height: 1.75rem;
  padding: 0 var(--space-2);
}

.main.is-empty:not(.is-code) .composer__plus-panel {
  top: 100%;
  bottom: auto;
  margin: -0.25rem 0 0;
}

@media (max-width: 1023px) {
  .main.is-empty:not(.is-code) .composer__plus-panel {
    top: auto;
    bottom: 100%;
    margin: 0 0 var(--space-2);
  }
}

.chat__menu {
  width: 12.25rem;
  padding: var(--space-2);
  font-size: var(--text-body);
}

.chat__menu-item {
  min-height: 1.75rem;
  padding: 0 var(--space-2);
}

.sidebar__new[aria-current="page"] {
  background: var(--color-surface-hover);
}

.tier__flyout {
  position: fixed;
  z-index: 60;
  display: block;
  width: 20rem;
  padding: var(--space-2);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--search-shadow);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--easing-standard), visibility 0s linear var(--duration-fast);
}

.tier__flyout[data-open] {
  opacity: 1;
}

.tier__flyout .tier__option {
  min-height: 1.75rem;
  padding: 0 var(--space-2);
}

.tier__flyout .tier__hint {
  padding: var(--space-1) var(--space-2) var(--space-2);
}

.chat__confirm-no {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-text);
  font-weight: var(--weight-regular);
}

@media (max-width: 1023px) {
  .sidebar__head {
    order: -2;
  }

  .sidebar .sidebar__search {
    order: -1;
    margin-block-end: var(--space-2);
    background: var(--color-surface-hover);
    border-radius: var(--radius-md);
  }
}

.sidebar__titlebar {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar__titlebar .sidebar__fold {
  flex: 1;
}

.sidebar__titlebar .recentfilter {
  opacity: 0;
}

.sidebar__titlebar .recentfilter,
.sidebar__titlebar:focus-within .recentfilter,
.recentfilter.is-open {
  opacity: 1;
}

.recentfilter__menu,
.flyout__panel {
  position: fixed;
  z-index: 40;
  width: 12.5rem;
  background: var(--color-bg);
  border: var(--border-hairline) solid var(--color-border);
  box-shadow: var(--search-shadow);
}

.recentfilter__menu {
  inset-inline-start: auto;
  margin-top: var(--space-1);
}

.recentfilter__menu[hidden],
.flyout__panel[hidden] {
  display: none;
}

.flyout__row,
.flyout__option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: 0 var(--space-3);
  border-radius: var(--radius-soft);
  text-align: left;
}

.flyout__row:focus-visible,
.flyout__option:focus-visible {
  background: var(--color-surface-hover);
}

.flyout__label {
  flex: 1;
}

.flyout__value {
  color: var(--color-text-secondary);
}

.flyout__check {
  visibility: hidden;
}

.flyout__option[aria-checked="true"] .flyout__check {
  visibility: visible;
}

.sidebar__section {
  margin: var(--space-3) 0 var(--space-1) 0.375rem;
  font-size: var(--text-caption);
  font-weight: normal;
  color: var(--color-text-secondary);
}

.flyout__label,
.flyout__value {
  white-space: nowrap;
}

.flyout__row {
  min-height: 1.75rem;
  font-size: var(--text-body);
}

.flyout__value {
  font-size: var(--text-metadata);
}

.sidebar__titlebar:has(.recentfilter.is-open) {
  background: var(--color-surface-hover);
  border-radius: var(--radius-soft);
}

.recentfilter__menu {
  padding: 0.3125rem;
  border-radius: var(--radius-md);
}

.recentfilter__menu .chat__menu-rule {
  margin-block: var(--space-1);
}

.flyout__panel {
  width: 10.75rem;
  padding: 0.3125rem;
  border-radius: var(--radius-md);
}

.flyout__option {
  min-height: 1.75rem;
  font-size: var(--text-body);
}

.flyout__check {
  color: var(--color-accent-text);
}

.flyout__row[aria-expanded="true"] {
  background: var(--color-surface-hover);
}

.tier__badge--cost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-danger);
}

.permission {
  position: relative;
}

.permission__menu {
  position: absolute;
  inset-inline-end: 0;
  bottom: calc(100% + var(--space-2));
  z-index: 40;
  width: 18rem;
  padding: var(--space-2);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--search-shadow);
}

.permission__menu[hidden] {
  display: none;
}

.permission__trigger {
  color: var(--color-text-secondary);
}

.permission__option .tier__option-desc {
  display: block;
  grid-column: 1 / -1;
}

.chat__menu .chat__menu-item {
  gap: var(--space-2);
  padding: 0 0.625rem;
}

.chat__menu .chat__menu-item .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.chat__menu-key {
  font-size: var(--text-body);
}

.msg--user .msg__bubble {
  background: var(--color-surface-hover);
  border: 0;
  border-radius: var(--radius-md);
}

.composer__hint {
  line-height: 17px;
}

.msg--plaude .msg__meta {
  margin-inline-start: -2px;
}

.welcome .logo {
  width: 1.33em;
  height: 1.33em;
}

.topbar__tools .icon-button.incognito__toggle {
  width: 1.75rem;
  height: 1.75rem;
  min-width: 0;
  min-height: 0;
  margin-inline-end: -0.25rem;
  position: relative;
  top: 2px;
}

.sidebar__head .modes {
  gap: 0;
  padding: 1px;
  border: 0;
  margin-inline-end: -0.1875rem;
}

.diffline {
  display: flex;
  flex: none;
  height: 1.1875rem;
  white-space: pre;
}

.diffline__no {
  text-align: end;
  opacity: 0.55;
}

.diffline--del {
  --diff-bar: var(--color-danger);
  --diff-bg: color-mix(in srgb, var(--color-danger) 12%, transparent);
}

.diffline--add {
  --diff-bar: var(--color-success);
  --diff-bg: color-mix(in srgb, var(--color-success) 12%, transparent);
}

.diffline--del,
.diffline--add {
  box-shadow: inset 0.1875rem 0 0 var(--diff-bar);
  background: var(--diff-bg);
}

.artifactfilter__menu {
  width: 13.4375rem;
}

.pagemenu {
  position: relative;
  display: inline-flex;
}

.pagemenu__panel {
  position: absolute;
  inset-block-start: calc(100% + 0.25rem);
  inset-inline-end: 0;
  z-index: 40;
  min-width: 13.5rem;
  padding: 0.3125rem;
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--search-shadow);
}

.pagemenu__panel[hidden] {
  display: none;
}

.pagemenu__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  height: 2rem;
  padding: 0 0.625rem;
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-text);
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
}

.pagemenu__item .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.pagemenu__item[aria-checked="true"] {
  background: var(--color-surface-hover);
}

.pagehead__dark .icon {
  opacity: 0.6;
}

.scheduled__wave {
  display: block;
  width: 100%;
  height: 0.375rem;
  color: var(--color-border);
}

.scheduled__glyph {
  background: var(--color-surface-hover);
}

@media (min-width: 64rem) {
  .pagehead-page {
    padding-inline-end: 0.625rem;
  }
}

.projects .pagehead__art,
.scheduled .pagehead__art {
  width: 5rem;
  height: 5.25rem;
  stroke-width: 2.2;
}

.scheduled .pagehead__art {
  margin-bottom: 1.75rem;
}

.scheduled__wave {
  margin: 3.1875rem 0 3.25rem;
}

.scheduled__grid {
  gap: var(--space-4) var(--space-5);
}

.pagehead__bar .pagehead__group:last-child {
  gap: var(--space-1);
}

.pagehead__bar .pagehead__group:last-child .pagemenu:last-child {
  margin-inline-start: var(--space-2);
}

.pagehead__bar .pagehead__group:first-child {
  gap: 0;
}

.scheduled__card,
.scheduled__open {
  gap: var(--space-4);
}

.scheduled__name {
  line-height: 1.25rem;
}

.artifacts__thumb {
  background: var(--color-surface);
}

.artifacts__preview {
  max-width: 14.5rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 1px 6px color-mix(in srgb, var(--color-text) 12%, transparent);
}

.artifacts__glyph {
  color: var(--color-accent-text);
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

@media (max-width: 63.99rem) {
  .scheduled__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.topbar__files {
  margin-inline-start: auto;
  width: 2rem;
  height: 2rem;
}

.topbar__files + .topbar__share {
  margin-inline-start: 0;
}

.settings__dropdown-field {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: 0 var(--space-2);
}

.settings__dropdown .settings__dropdown-field .icon {
  position: static;
  flex: none;
}

.settings__menu {
  width: auto;
  z-index: 60;
}

.settings__menu .flyout__option {
  width: 100%;
  white-space: nowrap;
}

.settings__menu {
  min-width: 14rem;
}

.settings__dropdown-field[aria-expanded="true"] {
  background: var(--settings-fill);
}

.settings__menu .flyout__option[aria-checked="true"] {
  background: var(--color-surface-hover);
}

.settings__menu .flyout__check {
  color: var(--color-accent-text);
}

.tier__option .icon {
  color: var(--color-accent-text);
}

@media (max-width: 1023px) {
  .sidebar__fold,
  .sidebar__viewall,
  .pagehead__dark,
  .pagehead__soft,
  .pagehead__pill {
    min-height: var(--target-min);
  }

  .pagehead__tool {
    position: relative;
  }
  .incognito__toggle::after,
  .pagehead__tool::after {
    position: absolute;
    inset: calc((100% - var(--target-min)) / 2);
    content: "";
  }
}

.pagehead__group > .recentfilter {
  display: inline-flex;
}

.main.has-activity {
  padding-right: var(--activity-width);
}

.main.has-activity .topbar {
  margin-right: calc(-1 * var(--activity-width));
}

.main {
  --activity-width: 20rem;
}

.topbar__tools .topbar__files.icon-button[aria-pressed="true"],
.topbar__files.icon-button[aria-pressed="true"] {
  background: var(--color-surface-hover);
}

.activity {
  position: fixed;
  top: 2.75rem;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 20rem;
  padding: var(--space-3);
  overflow-y: auto;
  background: var(--color-bg);
  border-left: var(--border-hairline) solid var(--color-border);
}

.activity[hidden] {
  display: none;
}

.activity__close {
  align-self: flex-end;
  flex: none;
}

.activity__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  text-align: center;
}

.activity__art {
  width: 7.2rem;
  height: 7.2rem;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.activity__empty {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-body);
}

.activity__hint {
  margin: 0;
  color: var(--color-text-tertiary);
  font-size: var(--text-metadata);
  line-height: 1.25rem;
}

.activity__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 2.25rem;
  padding: 0 var(--space-2);
  border-radius: var(--radius-soft);
  color: var(--color-text);
  font-size: var(--text-body);
  text-align: start;
}

.activity__row:focus-visible {
  background: var(--color-surface-hover);
}

.activity__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity__tag {
  color: var(--color-text-tertiary);
  font-size: var(--text-caption);
}

@media (max-width: 56rem) {
  .main.has-activity {
    padding-right: 0;
  }

  .main.has-activity .topbar {
    margin-right: 0;
  }

  .activity {
    width: 100%;
  }
}

.pageart__fill {
  fill: var(--color-surface-hover);
}

.activity__close {
  color: var(--color-text);
}

.sidebar__morewrap {
  position: relative;
}

.sidebar__more[hidden],
.navmore[hidden] {
  display: none;
}

.navmore {
  position: absolute;
  top: 0;
  left: calc(100% + var(--space-1));
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 9.5rem;
  padding: var(--space-1);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--search-shadow);
}

.navmore__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2rem;
  padding: 0 var(--space-2);
  border-radius: var(--radius-md);
  background: none;
  color: var(--color-text);
  font-size: var(--text-body);
  text-align: left;
}

.navmore__row--plain {
  padding-inline-start: 2.125rem;
}

.navmore__rule {
  width: 100%;
  margin: 0.125rem 0;
  border: 0;
  border-top: var(--border-hairline) solid var(--color-border);
}

.navedit {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: var(--color-overlay);
}

.navedit__dialog {
  width: min(25rem, 100%);
  padding: var(--space-4);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--search-shadow);
}

.navedit__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navedit__title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--weight-title);
}

.navedit__hint {
  margin: var(--space-3) 0;
  color: var(--color-text-secondary);
  font-size: var(--text-body);
}

.navedit__rows {
  display: flex;
  flex-direction: column;
}

.navedit__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 1.75rem;
  background: none;
  color: var(--color-text);
  font-size: var(--text-body);
  text-align: left;
}

.navedit__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: transparent;
  border: 0.0625rem solid var(--color-border-strong);
  border-radius: var(--radius-xs);
}

.navedit__row[aria-checked="true"] .navedit__box {
  color: var(--color-bg);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.navedit__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-4);
}

.navedit__done {
  min-height: 2rem;
  padding: 0 var(--space-3);
  color: var(--color-bg);
  background: var(--color-text);
  border-radius: var(--radius-md);
  font-size: var(--text-body);
}

.main.is-empty .dock {
  position: relative;
}

.memory {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.memory__crumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-body);
}

.memory__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  color: var(--color-text);
  font-size: var(--text-body);
}

.memory__arrow {
  transform: rotate(180deg);
}

.memory__sep {
  color: var(--color-text-secondary);
}

.memory__list {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-4);
}

.memory__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 2.75rem;
  border-top: var(--border-hairline) solid var(--color-border);
  font-size: var(--text-body);
}

.memory__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.memory__drop {
  flex: none;
  color: var(--color-text-secondary);
}

.memory__form {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-md);
}

.memory__ask {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--color-text);
  font-size: var(--text-body);
}

.memory__send {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  color: var(--color-bg);
  background: var(--color-text);
  border-radius: 50%;
}

.memory__send:disabled {
  opacity: 0.35;
}

.memimport__dialog {
  width: min(32.5rem, 100%);
}

.memimport__step {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: var(--space-4) 0 var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--text-body);
}

.memimport__num {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: var(--text-caption);
  background: var(--color-surface-hover);
  border-radius: 50%;
}

.memimport__box {
  position: relative;
  margin-left: 1.875rem;
}

.memimport__prompt {
  max-height: 6.5rem;
  margin: 0;
  padding: var(--space-3);
  overflow: auto;
  color: var(--color-text-secondary);
  font: inherit;
  font-size: var(--text-body);
  white-space: pre-wrap;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.memimport__copy {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.125rem var(--space-2);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  font-size: var(--text-body);
}

.memimport__paste {
  width: calc(100% - 1.875rem);
  min-height: 8rem;
  margin-left: 1.875rem;
  padding: var(--space-3);
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-body);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-md);
  resize: vertical;
}

.memimport__foot {
  gap: var(--space-2);
}

.memimport__cancel,
.memimport__add {
  min-height: 2rem;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-body);
}

.memimport__cancel {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.memimport__add {
  background: var(--color-text);
  color: var(--color-bg);
}

.memimport__add:disabled {
  background: var(--color-surface-hover);
  color: var(--color-text-secondary);
}

.settings__row--nested {
  margin-left: var(--space-5);
}

:root[data-artifacts="off"] .sidebar button[data-path="/artifacts"],
:root[data-artifacts="off"] .topbar__files {
  display: none;
}

.permission__icon {
  display: none;
}

@media (max-width: 1023px) {
  .main.is-empty:not(.is-code) .dock {
    position: static;
    padding-bottom: calc(4px + env(safe-area-inset-bottom));
  }

  .main.is-empty:not(.is-code) .welcome {
    position: absolute;
    top: 159px;
    left: 0;
    right: 0;
    justify-content: center;
    height: 30px;
    font-size: 24px;
    gap: var(--space-2);
  }

  .main.is-empty:not(.is-code) .welcome .logo {
    width: 24px;
    height: 24px;
  }

  .main:not(.is-code) .permission__label {
    display: none;
  }

  .main:not(.is-code) .permission__icon {
    display: block;
  }

  .topbar__tools {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
  }

  .incognito__toggle {
    width: 32px;
    height: 32px;
    color: var(--color-text);
  }
}

@media (max-width: 1023px) {
  .sidebar {
    padding: 0 var(--space-2);
    gap: 0;
  }

  .sidebar__head {
    position: relative;
    height: 48px;
    margin: 0 -8px;
    padding: 0;
  }

  .modes {
    position: absolute;
    top: 10px;
    right: 8px;
    width: 70px;
    height: 28px;
  }

    .sidebar .sidebar__search {
    min-height: 40px;
    height: 40px;
    margin: var(--space-2) 0 var(--space-3);
    padding: 0 var(--space-3);
    font-size: var(--text-body);
  }

  .sidebar__new,
  .chat__open {
    min-height: 44px;
    padding-inline: var(--space-2);
    font-size: var(--text-body);
    gap: var(--space-2);
  }

  .sidebar__new + .sidebar__new,
  .sidebar__chats {
    margin-top: 2px;
  }

  .sidebar__title,
  .sidebar__fold {
    font-size: var(--text-caption);
    font-weight: 520;
  }

  .chat__open,
  .sidebar__title {
    padding-inline: var(--space-4);
  }

  .recentfilter,
  .sidebar__titlebar .recentfilter {
    opacity: 1;
  }

  .sidebar__filter {
    width: 24px;
    height: 24px;
    min-width: 0;
    min-height: 0;
  }
}

@media (max-width: 1023px) {
  .tier__trigger .tier__desc {
    display: inline;
  }
}
.settings__segment {
  border-color: transparent;
}

@media (max-width: 1023px) {

  .app.is-drawer .sidebar {
    z-index: 70;
  }

  .app.is-drawer .scrim {
    z-index: 65;
  }

  .settings__head {
    height: 48px;
    padding: 0 var(--space-2) 0 var(--space-4);
    border-bottom: 0;
  }

  .settings__title {
    font-size: var(--text-body);
    font-weight: 520;
  }

  .settings__close {
    width: 32px;
    height: 32px;
    min-width: 0;
    min-height: 0;
  }

  .settings__nav {
    width: auto;
    padding: var(--space-1) var(--space-2) 0;
    overflow: visible;
    border: 0;
  }

  .settings__tabs {
    height: 32px;
    margin: 0;
    padding: 0;
    gap: 0;
    overflow-x: auto;
    scroll-padding-inline: var(--space-6);
    scrollbar-width: none;
    border: 0;
  }

  .settings__tabs::-webkit-scrollbar {
    display: none;
  }

  .settings__tab {
    height: 32px;
    padding: 0 var(--space-4);
    font-size: var(--text-body);
    border-radius: var(--radius-md);
  }

  .settings__body {
    border: 0;
  }

  .settings__pane {
    padding: var(--space-3) var(--space-4);
    border: 0;
  }

  .settings__pane .settings__row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-3);
    min-height: 0;
    padding: var(--space-3) 0;
    border-bottom: var(--border-hairline) solid var(--color-border);
  }

  .settings__pane .settings__row > .settings__row-text {
    flex: none;
  }

  .settings__group {
    font-size: var(--text-subhead);
    font-weight: var(--weight-title);
  }

  .apps__head {
    min-height: 48px;
    padding: 0;
    border-bottom: 0;
  }

  .apps__back {
    width: 28px;
    height: 28px;
    min-height: 0;
    margin: 10px 0 0 var(--space-3);
    padding: 0;
    justify-content: center;
  }

  .apps__back span {
    display: none;
  }

  .apps__main {
    padding: var(--space-5) var(--space-4) var(--space-6);
  }

  .pagehead-page .pagehead__title {
    font-size: 24px;
    font-weight: 500;
  }
}

@media (max-width: 1023px) {
  .main:not(.is-empty) .topbar {
    height: 48px;
    padding: 0;
  }

  .main:not(.is-empty) .topbar__title {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 0;
    min-width: 0;
    max-width: none;
    height: 32px;
    margin: 0 0 0 46px;
  }

  .main:not(.is-empty) .topbar__tools {
    position: static;
    flex: none;
    margin: 0 var(--space-2) 0 0;
  }

  .main:not(.is-empty) .topbar__share {
    justify-content: center;
    width: 32px;
  }

  .main:not(.is-empty) .topbar__share span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .main:not(.is-empty) .topbar__menu-anchor {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
  }

  .main:not(.is-empty) .topbar__name-button {
    min-height: 32px;
    height: 32px;
    padding: 0 var(--space-3);
    font-size: var(--text-body);
    font-weight: 435;
  }

  .main:not(.is-empty) .topbar__chevron,
  .main:not(.is-empty) .topbar__files {
    width: 32px;
    min-width: 0;
    height: 32px;
    min-height: 0;
  }

  .main:not(.is-empty) .topbar__files {
    margin-inline-start: auto;
  }

  .main:not(.is-empty) .topbar__share {
    flex: none;
    min-height: 32px;
    height: 32px;
    padding: 0 var(--space-2);
    font-size: var(--text-body);
    font-weight: 435;
  }

  .msg__age {
    font-size: var(--text-caption);
  }

  .msg__body {
    font-size: calc(var(--text-body) * var(--transcript-scale));
  }

  .main:not(.is-empty) .dock {
    padding-bottom: calc(4px + env(safe-area-inset-bottom));
  }
}

.composer__plus-item {
  gap: var(--space-2);
}

.composer__plus-label {
  white-space: nowrap;
}

.composer__plus-panel {
  padding: 0.375rem;
}

.composer__plus-panel .flyout__row,
.composer__plus-panel .flyout__option {
  min-height: 1.75rem;
  padding: 0 var(--space-2);
  gap: var(--space-2);
  white-space: nowrap;
}

.composer__plus-panel .flyout__panel {
  width: max-content;
  min-width: 12rem;
  padding: 0.375rem;
}

.pagehead__scope-box {
  display: none;
}

@media (max-width: 1023px) {
  .pagehead-page.artifacts .pagehead__bar,
  .pagehead-page.scheduled .pagehead__bar {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .pagehead-page.artifacts .pagehead__group,
  .pagehead-page.scheduled .pagehead__group {
    flex-wrap: nowrap;
  }

  .pagehead-page.artifacts .pagehead__group:last-child,
  .pagehead-page.scheduled .pagehead__group:last-child {
    margin-inline-start: auto;
  }

  .pagehead-page.artifacts .pagehead__group:first-child .pagehead__pill,
  .pagehead-page.scheduled .pagehead__group:first-child .pagehead__pill {
    display: none;
  }

  .pagehead-page.artifacts .pagehead__scope-box,
  .pagehead-page.scheduled .pagehead__scope-box {
    position: relative;
    display: inline-flex;
  }

  .pagehead__scope {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    height: 2rem;
    padding: 0 var(--space-3);
    border-radius: var(--radius-md);
    background: var(--color-surface-hover);
    font-size: var(--text-body);
  }

  .pagehead__scope-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    z-index: 5;
    min-width: 11rem;
    padding: 0.375rem;
  }

  .pagehead-page.scheduled .pagehead__dark {
    min-height: var(--target-min);
    height: var(--target-min);
    padding: 0 var(--space-3);
    font-size: var(--text-body);
  }
}

@media (max-width: 1023px) {
  .pagehead-page .pagehead__tool {
    width: var(--target-min);
    height: var(--target-min);
    min-height: var(--target-min);
  }

  .pagehead-page.projects .pagehead__dark,
  .pagehead-page.projects .pagehead__soft {
    min-height: var(--target-min);
    height: var(--target-min);
    padding: 0 var(--space-3);
    font-weight: 435;
  }
}

.settings__segment-item:not(:has(.icon)) {
  width: auto;
  height: 1.75rem;
  padding: 0 var(--space-3);
  font: inherit;
  font-size: var(--text-body);
  white-space: nowrap;
}

.settings__toggle[disabled] {
  opacity: 0.5;
  cursor: default;
}

.artifacts__item {
  position: relative;
  display: flex;
  min-width: 0;
}

.artifacts__item > .artifacts__card {
  flex: 1;
}

.artifacts__actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: var(--space-1);
  opacity: 0;
}

.artifacts__item .artifacts__actions,
.artifacts__item:focus-within .artifacts__actions,
.artifacts__actions:has([aria-expanded="true"]) {
  opacity: 1;
}

@media (hover: none) {
  .artifacts__actions {
    opacity: 1;
  }
}

.artifacts__act {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: var(--color-text);
  cursor: pointer;
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-md);
}

.artifacts__menu {
  position: absolute;
  top: 2.5rem;
  right: 0;
  z-index: 5;
  min-width: 9.5rem;
  padding: var(--space-1);
  background: var(--color-surface);
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-md);
}

.artifacts__menu[hidden] {
  display: none;
}

.artifacts__entry {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}

.artifacts__entry-label {
  flex: 1;
  text-align: start;
}

@media (max-width: 63.99rem) {
  .projects .pagehead__empty {
    padding-top: calc(var(--space-7) + 2.25rem);
  }

  .projects .pagehead__art {
    margin-bottom: 1.28rem;
  }
}

.settings__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin-bottom: var(--space-3);
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
}

.settings__back-icon {
  transform: rotate(180deg);
}

.settings__empty {
  margin: 48px 0;
  text-align: center;
  color: var(--color-text-secondary);
}

.settings__pane .settings__action .icon {
  margin-left: 6px;
}

.settings__pane {
  scrollbar-gutter: stable;
}

.settings__dropdown--box {
  display: flex;
  width: 14rem;
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-soft);
}

.settings__dropdown--box .settings__dropdown-field {
  flex: 1;
  width: 100%;
  height: 1.75rem;
  padding: 0 var(--space-2);
  justify-content: space-between;
}

.diffline__no {
  width: 3.375rem;
  padding-inline-end: 0.9375rem;
}
.composer__send[hidden] {
  display: none;
}

.recents .pagehead__segment {
  gap: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.recents .pagehead__pill {
  min-height: 1.75rem;
  padding: 0 var(--space-3);
  border-radius: var(--radius-soft);
}

.recents .pagehead__pill[aria-pressed="true"],
.recents .pagehead__group > .pagehead__pill {
  background: var(--color-surface-hover);
}

.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: var(--space-4);
  text-align: center;
  background: var(--color-bg);
}

.notfound__brand {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  margin: 0 0 var(--space-6);
  font-size: var(--text-heading);
  color: var(--color-text);
  font-weight: var(--weight-title);
}

.notfound__title {
  margin: 0 0 var(--space-2);
  font-size: 1.5rem;
  font-weight: var(--weight-title);
}

.notfound__text {
  margin: 0 0 var(--space-5);
  color: var(--color-text-secondary);
}

.notfound__home {
  min-height: 1.75rem;
  padding: 0 var(--space-3);
  color: var(--color-bg);
  background: var(--color-text);
  border-radius: var(--radius-soft);
}

.notfound__home:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.remote__perm {
  font-size: var(--text-metadata);
  color: var(--color-text-secondary);
  font-size: var(--text-metadata);
}

.remote__ring {
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
}

.remote__ring[data-level="mid"] {
  border-color: var(--color-text-secondary);
}

.remote__ring[data-level="high"] {
  border-color: var(--color-danger);
}

.remote__ring[hidden] {
  display: none;
}

.remote__perms {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-inline-start: var(--space-2);
}

.sidebar__keys {
  display: none;
  gap: 0.125rem;
  margin-left: auto;
  color: var(--color-text-secondary);
  font-size: var(--text-metadata);
}

.sidebar__keys kbd {
  font: inherit;
}

.sidebar__new .sidebar__keys,
.sidebar__new:focus-visible .sidebar__keys {
  display: inline-flex;
}

.sidebar .sidebar__drag {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--text-metadata);
}

.remote__body {
  position: relative;
}

.remote__bar {
  height: 2.8125rem;
}

.remote__body:not([data-wide]):not([data-expanded]) .remote__side {
  position: absolute;
  top: 2.8125rem;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 20rem;
  background: var(--color-bg);
}

.remote__body:not([data-wide]):not([data-expanded]) .remote__pane-bar {
  display: none;
}

.remote__body:not([data-wide]):not([data-expanded]) .remote__main {
  flex: 1 1 100%;
}

.remote__body[data-side="hidden"]:not([data-wide]) .remote__side {
  display: none;
}

.remote__ask-row .remote__deny {
  background: var(--color-surface-hover);
  border-color: transparent;
}

.remote__ask-row .remote__allow {
  color: var(--color-bg);
  background: var(--color-text);
  border-color: var(--color-text);
}
.composer__send.is-away {
  display: none;
}

.remote__env-state {
  color: var(--color-text-secondary);
  font-size: var(--text-metadata);
}

.msg__body {
  padding-inline-start: var(--space-1);
}

@media (max-width: 1023px) {
  .topbar {
    height: 2.8125rem;
    font-size: var(--text-body);
  }

  .topbar__name,
  .topbar__share {
    font-size: var(--text-body);
  }

  .main .topbar {
    height: 2.8125rem;
    min-height: 0;
  }

  .thread__column {
    padding: 2rem var(--space-3) var(--space-5);
    gap: var(--space-5);
  }

  .msg__body,
  .msg__meta,
  .typing,
  .remote__transcript > .step-group {
    padding-inline: var(--space-4);
  }

  .msg--user .msg__bubble {
    margin-inline-end: var(--space-4);
  }

  .tier__trigger,
  .composer__hint {
    font-size: var(--text-metadata);
  }
}

@media (min-width: 48rem) and (max-width: 1099px) {
  .thread__column {
    padding-inline: 1.375rem;
  }

  .main:not(.is-empty):not(.is-code) .dock {
    padding-inline: 1.375rem;
  }

  .main:not(.is-empty):not(.is-code) .msg__body,
  .main:not(.is-empty):not(.is-code) .msg__meta {
    padding-inline-start: 1.25rem;
  }
}

@media (hover: none) {
  .usermenu__key,
  .sidebar__filter {
    display: none;
  }
}

@media (max-width: 1023px) {
  .remote__bar .remote__back,
  .remote__bar .remote__files-toggle {
    display: none;
  }
}

@media (max-width: 899px) {
  .remote__body:not([data-wide]):not([data-expanded]) .remote__side {
    top: 2.8125rem;
    right: 0;
    left: 0;
    width: auto;
    border-left: 0;
  }

  .remote__bar .remote__heading-dir {
    display: none;
  }
}
.welcome-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--color-bg);
}

.welcome-head {
  border-bottom: 0;
}

.welcome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  max-width: none;
  min-height: 4.5rem;
  margin: 0;
  padding: 0 24px;
}

@media (max-width: 63.99rem) {
  .welcome-bar {
    padding: 0 16px;
  }
}

.welcome-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  color: var(--color-deep);
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.045rem;
  line-height: 1;
  text-decoration: none;
}

.welcome-bar__tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.welcome-shell .page.welcome {
  flex: 1;
  align-content: start;
  justify-content: normal;
  width: calc(100% - 2 * var(--space-4));
  font-family: var(--font-sans);
  font-size: var(--text-body);
  letter-spacing: normal;
  line-height: 1.5;
}

.welcome-shell .welcome__title {
  font-weight: var(--weight-title);
}

.welcome__start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--target-min);
  padding: 0 var(--space-5);
  color: var(--color-bg);
  background: var(--color-text);
  border-radius: var(--radius-soft);
  font-weight: var(--weight-strong);
  text-decoration: none;
}

.welcome__start:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.sidebar .sidebar__create {
  align-self: stretch;
  width: 100%;
  gap: var(--space-3);
  min-height: var(--control-height);
  margin-block: var(--space-1) var(--space-2);
  padding: 0 var(--space-4);
  color: var(--color-text);
  font-weight: var(--weight-strong);
  background: var(--color-surface);
  border: 0;
  border-radius: var(--radius-control);
  box-shadow: none;
}

.sidebar .sidebar__create .icon {
  color: var(--color-accent);
}

.sidebar .sidebar__projects {
  min-height: var(--target-min);
  padding: 0 var(--space-4);
  color: var(--color-text-secondary);
  border-radius: var(--radius-soft);
}

.sidebar .sidebar__projects[aria-current="page"] {
  color: var(--color-accent-text);
  font-weight: var(--weight-title);
  background: var(--color-surface);
}

.app > .apps {
  top: var(--header-height);
}

@media (max-width: 1023px) {
  .app > .pagehead-page > .apps__head {
    display: none;
  }
}

@media (min-width: 64rem) {
  .viewer {
    top: var(--header-height);
  }

  .activity {
    top: calc(var(--header-height) + 2.75rem);
  }
}

.settings__link {
  color: var(--color-text);
  text-decoration: none;
}

.chat__actions > .chat__menu {
  width: max-content;
  min-width: min(12.25rem, calc(100% - var(--space-2)));
  max-width: calc(100% - var(--space-2));
}

.sessionrow {
  color: var(--color-text);
}

@media (min-width: 75rem) {
  .remote__body:not([data-wide]):not([data-expanded]) .remote__side {
    position: static;
  }

  .remote__body:not([data-wide]):not([data-expanded]) .remote__main {
    flex: 1 1 0;
  }
}

.settings__search:has(:focus-visible),
.pagehead__field:has(:focus-visible),
.chat__rename:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-focus);
  outline-offset: 2px;
}

.thread__column.remote__transcript {
  gap: var(--space-3);
}

.remote__transcript > .msg--user:not(:first-child) {
  margin-block-start: calc(var(--space-6) - var(--space-3));
}

.remote__transcript > .msg--plaude:has(+ .step-group, + .msg--plaude) .msg__meta {
  display: none;
}

@media (max-width: 1023px) {
  .settings__segment-slot,
  .settings__segment-slot .settings__segment {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .settings__segment-slot .settings__segment-item:not(:has(.icon)) {
    flex: 1 1 auto;
    height: auto;
    min-height: 2rem;
    padding: var(--space-1) var(--space-3);
    white-space: nowrap;
  }

  .code-home__card .remote__session-dir {
    display: none;
  }

  .terminal__device-meta {
    white-space: normal;
  }
}

@media (pointer: coarse) {
  .incognito__toggle {
    min-width: var(--target-min);
    min-height: var(--target-min);
  }
}

:is(.dock, .remote__dock) .composer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
  padding: 0;
  background: var(--color-input-bg);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised);
}

:is(.dock, .remote__dock) .composer:has(.composer__field:focus-visible) {
  outline: var(--focus-ring-width) solid var(--color-focus);
  outline-offset: 2px;
}

:is(.dock, .remote__dock) .composer__box {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2);
  min-height: 0;
  padding: var(--space-3) var(--space-2) 0 var(--space-4);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

:is(.dock, .remote__dock) .composer__field {
  flex: 1 1 8rem;
  align-self: center;
  min-height: 1.5rem;
  padding: var(--space-1) 0;
  font-size: var(--text-body);
}

:is(.dock, .remote__dock) .composer__box .composer__files {
  flex: 0 0 100%;
  margin: 0 0 var(--space-1);
}

:is(.dock, .remote__dock) .composer__row {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-1);
  min-height: 0;
  margin: 0;
  padding: var(--space-1) var(--space-2) var(--space-2);
}
:is(.dock, .remote__dock) .composer__attach,
:is(.dock, .remote__dock) .composer__send {
  position: static;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 0;
  min-height: 0;
  margin: 0;
  color: var(--color-text-secondary);
  background: none;
  border-radius: var(--radius-soft);
  transform: none;
}
:is(.dock, .remote__dock) .composer__attach .icon,
:is(.dock, .remote__dock) .composer__send .icon {
  width: 1.25rem;
  height: 1.25rem;
}

:is(.dock, .remote__dock) .composer__send.is-stop {
  color: var(--color-text);
  background: var(--color-surface);
}
:is(.dock, .remote__dock) .composer__send.is-away,
:is(.dock, .remote__dock) .composer__hint {
  display: none;
}

:is(.dock, .remote__dock) .composer__count {
  order: 1;
  font-size: var(--text-metadata);
}

}

}

}

:is(.dock, .remote__dock) .composer__row > .tier {
  order: 2;
  min-width: 0;
  margin-inline-start: auto;
}

:is(.dock, .remote__dock) .tier__trigger {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

:is(.dock, .remote__dock) .tier__trigger .tier__name,
:is(.dock, .remote__dock) .tier__trigger .tier__desc {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(.dock, .remote__dock) .tier__trigger,
:is(.dock, .remote__dock) .permission__trigger {
  min-height: 2.25rem;
  font-size: var(--text-metadata);
  border-radius: var(--radius-soft);
}

:is(.dock, .remote__dock) .tier__trigger .tier__name,
:is(.dock, .remote__dock) .tier__trigger .tier__desc {
  font-size: var(--text-metadata);
}

:is(.dock, .remote__dock) .composer__row > :last-child:not(.tier) {
  order: 3;
}

@media (max-width: 1099px) {
  :is(.dock, .remote__dock) .permission__label {
    display: none;
  }

  :is(.dock, .remote__dock) .permission__icon {
    display: block;
  }

  :is(.dock, .remote__dock) .permission__trigger {
    justify-content: center;
    width: 2.25rem;
    padding: 0;
  }
}

@media (pointer: coarse) {
  :is(.dock, .remote__dock) .composer__attach,
  :is(.dock, .remote__dock) .composer__send {
    width: var(--target-min);
    height: var(--target-min);
  }
  :is(.dock, .remote__dock) .tier__trigger {
    min-height: var(--target-min);
  }

  :is(.dock, .remote__dock) .permission__trigger {
    min-width: var(--target-min);
    min-height: var(--target-min);
  }

  :is(.dock, .remote__dock) .composer__row {
    gap: 0;
    padding-inline: var(--space-1);
  }
}

@media (max-width: 30rem) {
  :is(.dock, .remote__dock) .tier__trigger .tier__desc {
    display: none;
  }

  :is(.dock, .remote__dock) .tier__trigger {
    padding-inline: var(--space-1);
  }
}

.remote__dock .composer__row > .remote__extras {
  flex: 0 1 auto;
  min-width: 0;
}

@media (max-width: 1023px) {
  .remote__dock .composer__row {
    flex-wrap: wrap;
  }

  .remote__dock .composer__row > .remote__extras {
    order: 4;
    flex: 0 0 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 var(--space-1);
  }

  .remote__dock .remote__chips {
    margin-right: 0;
  }
}

@media (max-width: 30rem) {
  .pagehead {
    flex-wrap: wrap;
  }

  .pagehead__actions {
    flex-wrap: nowrap;
  }
}

@media (pointer: coarse) {
  .settings__pane .settings__action {
    min-height: var(--target-min);
  }
}

@media (max-width: 1023px) {
  .settings__pane .settings__row:has(> .settings__toggle) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
  }

  .settings__pane .settings__row:has(> .settings__toggle) > .settings__row-text {
    flex: 1 1 auto;
    min-width: 0;
  }

  .settings__pane .settings__row > .settings__toggle {
    flex: none;
  }
}

.memory__empty {
  margin: 0;
  padding: var(--space-2) 0;
  color: var(--color-text-secondary);
}

.remote__dock .remote__mode-button {
  flex: none;
  white-space: nowrap;
}

@media (max-width: 1099px) {
  .remote__dock .tier__trigger .tier__desc {
    display: none;
  }
}

.composer__mic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: var(--radius-soft);
  background: none;
  color: var(--color-text-secondary);
  transition: background var(--transition-ui), color var(--transition-ui);
}

.composer__mic:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.composer__mic[aria-pressed="true"] {
  color: var(--color-accent);
}

.composer__mic[hidden] {
  display: none;
}

.skills__row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.skills__row .skills__card {
  flex: 1;
  min-width: 0;
}

.composer .composer__box {
  align-items: center;
  gap: var(--space-2);
  min-height: 64px;
  padding: 12px 12px 12px 16px;
  border: 0;
  background: transparent;
}

.composer .composer__box .composer__field {
  flex: 1 1 8rem;
  min-height: 24px;
  padding: 0;
  font-size: 16px;
  line-height: 24px;
}

.composer .composer__box .composer__send {
  margin-left: 0;
}

.composer .composer__box .composer__send:disabled {
  display: none;
}

.composer .composer__box:has(.composer__send:not(:disabled)) .composer__mic {
  display: none;
}

.composer .composer__box .tier__trigger {
  min-height: 40px;
  background: transparent;
}

.composer:has(.composer__hint) {
  position: relative;
}

.composer .composer__hint {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  right: 0;
  margin: 0;
  transform: none;
  font-size: 12px;
  text-align: center;
}

.main.is-empty .composer .composer__hint {
  visibility: hidden;
}

.composer .composer__box .composer__attach,
.composer .composer__box .composer__mic {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 50%;
}

.sidebar .sidebar__head {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 52px;
  margin: -4px 0 0;
  padding: 0 0 0 6px;
}

.sidebar__head .brand {
  display: inline-flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 470;
  text-decoration: none;
}

.sidebar__head .brand .logo {
  width: 24px;
  height: 24px;
}

.sidebar__head .sidebar__search,
.sidebar__head .sidebar__close {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.sidebar__head .sidebar__search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.sidebar .sidebar__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 4px 0 0 6px;
}

:root:root .sidebar__foot .account {
  width: 28px;
  height: 28px;
}

.sidebar__foot .sidebar__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--color-text);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar__foot .settings__trigger {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.sidebar__foot .settings__trigger span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (min-width: 64rem) {
  .app:not(.is-collapsed) .topbar__toggle {
    display: none;
  }
}

.sidebar {
  gap: 0;
}

:root:root .sidebar .sidebar__head {
  margin-bottom: 0;
}

.sidebar__head .brand span {
  color: var(--color-text);
  font-size: 17px;
  font-weight: 470;
  letter-spacing: 0;
}

.sidebar__head .brand svg {
  width: 24px;
  height: 24px;
}

:root:root .sidebar > .sidebar__new {
  gap: 12px;
  padding-inline: 8px;
  border-radius: 9999px;
  color: var(--color-text);
}

:root:root .sidebar > .sidebar__new:not(.sidebar__create) {
  background: transparent;
}

.sidebar > .sidebar__new .icon {
  width: 20px;
  height: 20px;
}

:root:root .sidebar__head .sidebar__close {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
}

:root:root .sidebar__foot .account__action {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
}

:root:root .main .topbar__tools {
  padding-top: 14px;
}

:root:root .main .topbar__tools .icon-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
}

.sidebar__chats .chat .chat__pin {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-secondary);
}

.sidebar__chats .chat .chat__actions {
  opacity: 0;
}

.sidebar__chats .chat:is(:hover, :focus-within, .is-active) .chat__actions {
  opacity: 1;
}

.sidebar__chats .chat:is(:hover, :focus-within) .chat__pin {
  display: none;
}

:root:root .sidebar__chats .chat {
  min-height: 32px;
  border-radius: 9999px;
}

:root:root .sidebar__chats .chat__open {
  min-height: 32px;
  padding: 0 8px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
}

:root:root .sidebar__titlebar .sidebar__title {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 400;
}

:root:root .sidebar__notebooks .sidebar__notebook {
  gap: 12px;
  min-height: 32px;
  padding-inline: 8px;
  border-radius: 9999px;
  background: transparent;
  color: var(--color-text);
  font-size: 13px;
}

:root:root .dock .composer__box .tier__trigger {
  gap: 4px;
  min-height: 40px;
  padding: 0 8px 0 16px;
  border-radius: 9999px;
  background: transparent;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 400;
}

:root:root .dock .composer__box .tier__trigger .tier__name {
  font-size: 15px;
}

:root:root .dock .composer__box .tier__trigger .tier__desc {
  display: none;
}

.tier__trigger .tier__caret {
  width: 24px;
  height: 24px;
}

:root:root .sidebar__chats {
  gap: 0;
}

:root:root .sidebar__chats .chat__actions .icon-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
}

:root:root .sidebar__titlebar {
  min-height: 32px;
  margin-top: 12px;
}

:root:root .sidebar__titlebar .sidebar__fold {
  min-height: 32px;
  padding: 0 8px;
}

.msg__more {
  position: relative;
  display: inline-flex;
}

:root :is(input, textarea, select):focus-visible {
  outline: 0;
  border-color: var(--color-deep);
  box-shadow: 0 0 0 1px var(--color-deep);
}

:root input:is([type="checkbox"], [type="radio"]):not([role="switch"], .switch__input, .toggle__input) {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  background: transparent;
  border: 2px solid var(--color-text-secondary);
  border-radius: 2px;
  cursor: pointer;
}

:root input[type="radio"]:not([role="switch"], .switch__input, .toggle__input) {
  border-radius: 50%;
}

:root input[type="checkbox"]:not([role="switch"], .switch__input, .toggle__input):checked {
  background: var(--color-focus) center / 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M5 12.5l4.5 4.5L19 7.5%27 fill=%27none%27 stroke=%27%23ffffff%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  border-color: var(--color-focus);
}

:root input[type="checkbox"]:not([role="switch"], .switch__input, .toggle__input):indeterminate {
  background: var(--color-focus) center / 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M6 12h12%27 fill=%27none%27 stroke=%27%23ffffff%27 stroke-width=%273%27 stroke-linecap=%27round%27/%3E%3C/svg%3E");
  border-color: var(--color-focus);
}

:root input[type="radio"]:not([role="switch"], .switch__input, .toggle__input):checked {
  background: var(--color-focus);
  border-color: var(--color-focus);
  box-shadow: inset 0 0 0 3px var(--color-bg);
}

:root :is(.find, .drive-find) {
  background: var(--color-pale);
  border: 0;
  border-radius: var(--radius-pill);
}

:root :is(.find, .drive-find):focus-within {
  border: 0;
  box-shadow: 0 0 0 2px var(--color-deep);
}

:root :is(.find, .drive-find) :is(.find__input, input):focus-visible {
  border-color: transparent;
  box-shadow: none;
}

.app {
  background: var(--color-bg);
}

.brand__name {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.045rem;
  line-height: 1;
}

.sidebar {
  z-index: 1;
  margin: 0 var(--space-2) var(--space-3) 24px;
  padding: var(--space-3);
  border: 0;
  border-radius: var(--radius-soft);
  background: var(--color-surface);
}

.sidebar__head {
  height: auto;
  margin: 0 0 var(--space-1);
  justify-content: center;
}

.sidebar .sidebar__new.sidebar__create {
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-height);
  border-radius: var(--radius-pill);
  background: var(--color-selected);
  color: var(--color-on-selected);
  font-weight: 700;
}

.sidebar__new:not(.sidebar__create) {
  min-height: 2.5rem;
  border-radius: var(--radius-pill);
}

.sidebar__new[aria-current="page"] {
  background: var(--color-bg);
  font-weight: 700;
}

.sidebar__title {
  color: var(--color-deep);
  font-weight: 800;
}

.chat {
  border-radius: var(--radius-pill);
}

.chat.is-active {
  background: var(--color-selected);
  color: var(--color-on-selected);
}

.chat.is-active .chat__open {
  color: var(--color-pale);
}

.chat__open {
  text-overflow: ellipsis;
  mask-image: none;
}

.main {
  position: relative;
}

.main.is-empty .welcome {
  flex-direction: column;
  gap: var(--space-2);
  font-weight: 800;
}

.welcome__moss {
  position: relative;
  z-index: 30;
  width: 4.5rem;
  height: 5.625rem;
  margin-bottom: var(--space-2);
}

.main:not(.is-empty) .main.is-empty .dock {
  position: relative;
  z-index: 1;
}

:is(.dock, .remote__dock) .composer {
  border: 1px solid var(--color-green);
  border-radius: var(--radius-field);
  background: var(--color-pale);
  box-shadow: none;
}

:is(.dock, .remote__dock) .composer:has(.composer__field:focus-visible) {
  outline: 0;
  border-color: var(--color-deep);
  box-shadow: 0 0 0 1px var(--color-deep);
}

.composer .composer__send {
  border-radius: 50%;
  background: var(--color-selected);
  color: var(--color-on-selected);
}

.composer .composer__send:disabled {
  background: var(--color-green);
  color: var(--color-pale);
}

.sidebar .sidebar__new.sidebar__create .icon {
  color: var(--color-pale);
}

.composer .tier__trigger,
.composer .permission__trigger {
  min-height: 2rem;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-deep);
}

.composer .tier__trigger[aria-expanded="true"],
.composer .permission__trigger[aria-expanded="true"] {
  background: var(--color-selected);
  color: var(--color-on-selected);
}

.composer .tier__trigger[aria-expanded="true"] .tier__name {
  color: var(--color-pale);
}

.app:has(.main.is-empty) .sidebar {
  margin-bottom: calc(clamp(8rem, 22vh, 14rem) + var(--space-3));
}

.topbar {
  border-bottom: 0;
}

.msg--user .msg__bubble {
  background: var(--color-pale);
  color: var(--color-deep);
  border-radius: var(--radius-field);
}

.msg__meta--user {
  margin-top: var(--space-1);
}

.settings__dialog {
  border: 0;
  border-radius: 1.25rem;
  background: var(--color-pale);
  box-shadow: none;
  overflow: hidden;
}

.settings__head {
  border-bottom: 0;
  background: none;
}

.settings__title {
  font-size: 1.375rem;
  font-weight: 800;
}

.settings__nav {
  border: 0;
  background: none;
  padding: var(--space-2) var(--space-3) var(--space-4);
}

.settings__tab {
  min-height: 2.75rem;
  border-radius: var(--radius-pill);
  color: var(--color-deep);
}

.settings__tab[aria-selected="true"] {
  background: var(--color-selected);
  color: var(--color-on-selected);
  font-weight: 700;
}

.settings__tab[aria-selected="true"] .icon {
  color: var(--color-pale);
}

.settings__pane {
  border: 0;
  padding: var(--space-3) var(--space-5) var(--space-5);
}

.settings__row {
  border: 0;
  border-radius: var(--radius-field);
  background: var(--color-bg);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
}

.settings__section,
.settings__group {
  border: 0;
}

.settings__dialog .settings__action {
  border-radius: var(--radius-pill);
  background: var(--color-selected);
  color: var(--color-on-selected);
  font-weight: 700;
}

:root :is(.pagehead__search input, .settings__search-field input):focus-visible {
  border-color: transparent;
  box-shadow: none;
}

:root .composer__field,
:root .composer__field:focus-visible {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
}

:root .sidebar__new {
  min-height: var(--control-height);
}

:root .icon-button,
:root .composer__send,
:root .composer__attach,
:root .tier__trigger,
:root .chat__open,
:root .sidebar__fold,
:root .sidebar__viewall,
:root .icon-button--small,
:root .sidebar__filter,
:root .topbar__toggle,
:root .sidebar__archived {
  min-width: var(--target);
  min-height: var(--target);
}

:root .topbar__tools .icon-button.incognito__toggle {
  width: var(--target);
  height: var(--target);
  margin-inline-end: 0;
  top: 0;
}

:root .chat.is-active .chat__actions > .icon-button {
  color: var(--color-pale);
}

@media (max-width: 1023px) {
  :root .sidebar__head {
    height: 3.25rem;
    margin: 0 0 var(--space-1);
    justify-content: flex-end;
  }

  :root .sidebar__head .modes {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
  }
}

@media (max-width: 1023px) {
  :root .settings__tabs {
    height: auto;
    min-height: 44px;
  }

  :root .settings__tab {
    height: 44px;
  }
}

:root .settings__row {
  padding: var(--space-3) var(--space-4);
  border: 0;
}

:root:root :is(.settings__row, button.settings__row, .settings__row > button) {
  border: 0;
}

:root :is(.chat__menu, .tier__panel, .recentfilter__menu, .flyout__panel, .composer__plus-panel, .pagemenu__panel, .composer__menu) {
  box-shadow: var(--overlay-ring);
  border-color: transparent;
}

:root {
  --gm-main: #faf9f9;
  --gm-side: #ffffff;
  --gm-new: #f2f0f0;
  --gm-ink: #1f1f1f;
  --gm-box: #ffffff;
}

:root[data-theme="dark"] {
  --gm-main: #0f0f0f;
  --gm-side: #1f1f1f;
  --gm-new: #171717;
  --gm-ink: #e3e3e3;
  --gm-box: #1e1f20;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gm-main: #0f0f0f;
    --gm-side: #1f1f1f;
    --gm-new: #171717;
    --gm-ink: #e3e3e3;
    --gm-box: #1e1f20;
  }
}

@media (min-width: 64rem) {
  :root:root .app {
    background: var(--gm-main);
  }

  :root:root .app .sidebar {
    margin: 0;
    padding: 8px;
    border-radius: 0;
    background: var(--gm-side);
  }

  :root:root .sidebar .sidebar__new.sidebar__create {
    justify-content: flex-start;
    min-height: 32px;
    padding: 0 12px;
    color: var(--gm-ink);
    font-size: 13px;
    font-weight: 540;
    background: var(--gm-new);
    border-radius: 9999px;
  }

  :root:root .sidebar .sidebar__new.sidebar__create .icon {
    color: var(--gm-ink);
  }

  :root:root .sidebar__new:not(.sidebar__create) {
    min-height: 32px;
    font-size: 13px;
  }

  :root:root .main.is-empty {
    padding-bottom: 84px;
  }

  :root:root .main.is-empty .welcome {
    gap: 0;
    margin-bottom: 40px;
    color: var(--gm-ink);
    font-size: 36px;
    font-weight: 320;
    line-height: 44px;
  }

  :root:root .main.is-empty .welcome__moss {
    display: none;
  }

  :root:root :is(.dock, .remote__dock) .composer {
    background: var(--gm-box);
    border: 0;
    border-radius: 32px;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.16);
  }

  :root:root :is(.dock, .remote__dock) .composer:has(.composer__field:focus-visible) {
    border: 0;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--color-border);
  }
}

:root:root .sidebar__chats .chat.is-active {
  background: #e9eaee;
}

:root:root .sidebar__chats .chat.is-active .chat__open {
  color: #000;
  font-weight: 500;
}

:root:root * {
  scrollbar-width: thin;
  scrollbar-color: #c4c7c5 transparent;
}

:root:root :is(.chat__menu, .recentfilter__menu, .composer__plus-panel, .tier__panel, .flyout__panel, .settings__menu) {
  min-width: 240px;
  padding: 8px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.1);
}

:root:root :is(.chat__menu, .recentfilter__menu, .composer__plus-panel, .tier__panel, .flyout__panel, .settings__menu) :is([role=menuitem], [role=menuitemradio], .chat__menu-item, .flyout__option, .flyout__row) {
  gap: 8px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  color: #000;
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
  text-decoration: none;
}

:root:root :is(.chat__menu, .recentfilter__menu, .composer__plus-panel, .tier__panel, .flyout__panel, .settings__menu) .icon {
  width: 20px;
  height: 20px;
}

:root:root :is(.chat__menu, .recentfilter__menu, .composer__plus-panel, .tier__panel, .flyout__panel, .settings__menu) .chat__menu-rule {
  display: none;
}

.recentfilter__glyph--done {
  color: #0b57d0;
}

.recentfilter__glyph--attention {
  color: #e8710a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):root :is(.chat__menu, .recentfilter__menu, .composer__plus-panel, .tier__panel, .flyout__panel, .settings__menu) {
    background: #1e1f20;
  }

  :root:not([data-theme="light"]):root :is(.chat__menu, .recentfilter__menu, .composer__plus-panel, .tier__panel, .flyout__panel, .settings__menu) :is([role=menuitem], [role=menuitemradio], .chat__menu-item, .flyout__option, .flyout__row),
  :root:not([data-theme="light"]):root .sidebar__chats .chat.is-active .chat__open {
    color: #e3e3e3;
  }

  :root:not([data-theme="light"]):root .sidebar__chats .chat.is-active {
    background: #2e3033;
  }

  :root:not([data-theme="light"]):root * {
    scrollbar-color: #5f6368 transparent;
  }
}

:root[data-theme="dark"]:root :is(.chat__menu, .recentfilter__menu, .composer__plus-panel, .tier__panel, .flyout__panel, .settings__menu) {
  background: #1e1f20;
}

:root[data-theme="dark"]:root :is(.chat__menu, .recentfilter__menu, .composer__plus-panel, .tier__panel, .flyout__panel, .settings__menu) :is([role=menuitem], [role=menuitemradio], .chat__menu-item, .flyout__option, .flyout__row),
:root[data-theme="dark"]:root .sidebar__chats .chat.is-active .chat__open {
  color: #e3e3e3;
}

:root[data-theme="dark"]:root .sidebar__chats .chat.is-active {
  background: #2e3033;
}

:root:root :is(.chat__menu, .settings__menu) .chat__menu-caption {
  padding: 8px 12px;
  color: #444746;
  font-size: 13px;
  line-height: 17px;
}

:root:root .palette__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
}

:root:root .palette__lens {
  width: 20px;
  height: 20px;
  color: #444746;
}

:root:root .palette__field {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
}

:root:root .palette__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
}

:root:root .palette__age {
  margin-inline-start: auto;
  color: #444746;
  font-size: 12px;
  white-space: nowrap;
}

:root:root .palette__caption {
  padding: 8px 16px;
  color: #444746;
  font-size: 14px;
  font-weight: 500;
}

:root:root .topbar__title {
  flex: 0 0 auto;
  min-width: 0;
}

.topbar__brand {
  display: none;
}

@media (max-width: 63.99rem) {
  .main.is-empty:not(.is-code) .topbar__brand {
    display: block;
    margin-inline-start: 12px;
    color: var(--gm-ink);
    font-size: 18px;
    line-height: 24px;
  }
}

:root:root .topbar__tools {
  margin-inline-start: auto;
}

.composer__attach .composer__attach-close,
.composer__attach[aria-expanded="true"] .composer__attach-open {
  display: none;
}

.composer__attach[aria-expanded="true"] .composer__attach-close {
  display: inline-block;
}

:root:root .main.is-empty {
  background-image: radial-gradient(800px 558px at 50% 555px, rgba(157, 210, 255, 0.62) 0%, rgba(157, 210, 255, 0.34) 38%, rgba(157, 210, 255, 0.1) 68%, rgba(157, 210, 255, 0) 100%);
  background-repeat: no-repeat;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):root .main.is-empty {
    background-image: radial-gradient(800px 558px at 50% 555px, rgba(66, 133, 244, 0.22) 0%, rgba(66, 133, 244, 0.1) 45%, rgba(66, 133, 244, 0) 100%);
  }
}

:root[data-theme="dark"]:root .main.is-empty {
  background-image: radial-gradient(800px 558px at 50% 555px, rgba(66, 133, 244, 0.22) 0%, rgba(66, 133, 244, 0.1) 45%, rgba(66, 133, 244, 0) 100%);
}

:root:root .sidebar .sidebar__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  margin: 12px 0 0;
  padding: 0;
}

:root:root .sidebar .sidebar__titlebar .sidebar__title {
  margin: 0;
  padding: 0 0 0 8px;
  line-height: 32px;
}

:root:root .sidebar__titlebar .recentfilter {
  margin-inline-start: auto;
}

:root:root .sidebar__titlebar .sidebar__filter {
  width: 32px;
  height: 32px;
  margin-inline-end: 2px;
}

:root:root .recentfilter__item[aria-checked] .chat__menu-check,
:root:root .recentfilter__item > .icon:last-child:not(.recentfilter__glyph) {
  margin-inline-start: auto;
}

:root:root .sidebar__foot .account-menu,
:root:root .sidebar__foot .account-menu__trigger {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
}

:root:root .sidebar__foot .account-menu__trigger .avatar {
  width: 28px;
  height: 28px;
}

:root:root .sidebar__foot .sidebar__name {
  font-size: 14px;
}

:root:root .main:not(.is-empty) .dock {
  padding-bottom: 50px;
}

:root:root .main:not(.is-empty) .dock .composer__hint {
  display: block;
  top: calc(100% + 16px);
  color: #444746;
  font-size: 12px;
  line-height: 16px;
}

:root:root .composer__plus-panel [role=menuitemcheckbox] {
  gap: 8px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  color: #000;
  font-size: 13px;
  line-height: 17px;
}

:root:root .settings__menu .flyout__value {
  display: none;
}

:root:root .tier__panel {
  width: 300px;
  min-width: 300px;
}

:root:root .tier__panel .tier__option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  text-align: start;
}

:root:root .tier__panel .tier__option > :is(.icon, .tier__option-gap) {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 16px;
  height: 16px;
}

:root:root .tier__panel .tier__option-name {
  grid-column: 2;
  grid-row: 1;
  color: #000;
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
}

:root:root .tier__panel .tier__option-desc {
  grid-column: 2;
  grid-row: 2;
  overflow: hidden;
  color: #444746;
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root:root .tier__trigger[aria-expanded="true"] {
  background: #e9eaee;
  opacity: 1;
}

:root:root .tier__trigger[aria-expanded="true"] :is(.tier__name, .icon) {
  color: #000;
  opacity: 1;
}

:root:root .sidebar__titlebar:has(.recentfilter.is-open) {
  background: none;
}

:root:root .sidebar .sidebar__titlebar .sidebar__filter {
  width: 24px;
  min-width: 24px;
  height: 24px;
  margin-inline-end: 6px;
  padding: 0;
  border-radius: 50%;
}

:root:root .sidebar .sidebar__titlebar .sidebar__filter .icon {
  width: 16px;
  height: 16px;
}

:root:root .recentfilter.is-open .sidebar__filter {
  background: #e9eaee;
}

:root:root .recentfilter__menu {
  width: 210px;
  min-width: 210px;
  margin-top: 0;
}

:root:root .recentfilter__menu .recentfilter__item[aria-checked="true"] {
  background: #e9eaee;
}

:root:root .recentfilter__menu .recentfilter__glyph {
  width: 14px;
  height: 14px;
}

:root:root .sidebar__foot .account-menu__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
}

:root:root .sidebar__foot .account-menu__trigger .avatar {
  margin: 0;
}

:root:root .sidebar__foot .account {
  display: flex;
  align-self: center;
  align-items: center;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):root :is(.chat__menu-caption, .composer__hint, .palette__age, .palette__caption, .palette__lens, .tier__option-desc) {
    color: #c4c7c5;
  }

  :root:not([data-theme="light"]):root :is(.tier__option-name, .composer__plus-panel [role=menuitemcheckbox]) {
    color: #e3e3e3;
  }

  :root:not([data-theme="light"]):root :is(.tier__trigger[aria-expanded="true"], .recentfilter.is-open .sidebar__filter, .recentfilter__menu .recentfilter__item[aria-checked="true"]) {
    background: #2e3033;
  }

  :root:not([data-theme="light"]):root .tier__trigger[aria-expanded="true"] :is(.tier__name, .icon) {
    color: #e3e3e3;
  }
}

:root[data-theme="dark"]:root :is(.chat__menu-caption, .composer__hint, .palette__age, .palette__caption, .palette__lens, .tier__option-desc) {
  color: #c4c7c5;
}

:root[data-theme="dark"]:root :is(.tier__option-name, .composer__plus-panel [role=menuitemcheckbox]) {
  color: #e3e3e3;
}

:root[data-theme="dark"]:root :is(.tier__trigger[aria-expanded="true"], .recentfilter.is-open .sidebar__filter, .recentfilter__menu .recentfilter__item[aria-checked="true"]) {
  background: #2e3033;
}

:root[data-theme="dark"]:root .tier__trigger[aria-expanded="true"] :is(.tier__name, .icon) {
  color: #e3e3e3;
}

:root:root .sidebar__foot .account-menu__trigger,
:root:root .sidebar .sidebar__titlebar .sidebar__filter {
  min-height: 0;
}

@media (max-width: 63.99rem) {
  :root:root .main.is-empty:not(.is-code) .welcome {
    top: 285px;
    flex-direction: column;
    height: auto;
    gap: var(--space-3);
  }

  :root:root .main.is-empty:not(.is-code) .welcome__text {
    font-size: 32px;
    font-weight: 400;
    line-height: 38px;
    letter-spacing: 0;
  }

  :root:root .main.is-empty:not(.is-code) .composer {
    background: var(--color-surface);
    border: 0;
    border-radius: 32px;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--color-border);
  }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  :root:root .main:not(.is-code) .composer {
    width: 100%;
    max-width: 660px;
    margin-inline: auto;
  }
}

@media (max-width: 63.99rem) {
  :root:root .main.is-empty {
    background-position: 50% calc(100% + 555px);
    background-size: 100% 1110px;
  }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  :root:root .main.is-empty:not(.is-code) .welcome {
    top: calc(50% - 130px);
  }
}

:root :is(.usage-page, .saved-info) .apps__main {
  width: min(800px, 100% - 32px);
  max-width: none;
  margin-inline: auto;
  padding-top: 16px;
}

.gpage__title {
  margin: 0 16px 12px;
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
}

.gpage__lead {
  margin: 0 16px 24px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 24px;
}

.suggest {
  display: none;
}

@media (min-width: 64rem) {
  .main.is-empty:not(.is-code) .dock {
    position: relative;
  }

  .main.is-empty:not(.is-code) .suggest {
    position: absolute;
    top: calc(100% + 24px);
    right: 0;
    left: 0;
    display: grid;
    width: min(636px, 100% - 56px);
    margin: 0 auto;
    padding: 0;
    list-style: none;
  }
}

.suggest__item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  border-radius: 9999px;
}

.suggest__item:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.suggest__ask {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 48px 0 18px;
  border: 0;
  border-radius: 9999px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  line-height: 20px;
  text-align: start;
  cursor: pointer;
}

.suggest__icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.suggest__drop {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  opacity: 0;
}

.suggest__item:hover .suggest__drop,
.suggest__drop:focus-visible {
  opacity: 1;
}

:root .public-links .apps__main {
  width: min(800px, 100% - 32px);
  max-width: none;
  margin-inline: auto;
  padding-top: 32px;
}

.links__head {
  display: grid;
  justify-items: center;
  text-align: center;
}

.links__lead {
  max-width: 740px;
}

.links__start {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 24px;
  background: color-mix(in srgb, currentColor 6%, transparent);
  color: inherit;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.links__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 8px 0 16px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.links__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root body.pc-body {
  margin: 0;
  color: #353841;
  font-family: "Google Sans Text", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 28px;
  background: #ffffff;
}

:root body.pc-body--dark {
  color: #e8eaed;
  background: #060606;
}

.pc-body a {
  color: #364bff;
  text-decoration: none;
}

.pc-body code,
.pc-body pre {
  font-family: "Roboto Mono", ui-monospace, monospace;
}

.pc-mark {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  vertical-align: middle;
  color: #4285f4;
  background: #0b1220;
  border: 2px solid #4285f4;
  border-radius: 22%;
}

.pc-mark--title {
  width: 26px;
  height: 26px;
}

.pc-mark--hero {
  width: 52px;
  height: 52px;
}

.pc-mark svg {
  width: 72%;
  height: 72%;
  fill: none;
  stroke: #34a853;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pc-top {
  position: sticky;
  top: 0;
  z-index: 20;
}

.pc-header {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
  box-sizing: border-box;
  padding: 0 20px;
  background: #ffffff;
  border-bottom: 1px solid #e8eaed;
}

.pc-body--dark .pc-header {
  background: radial-gradient(60% 140% at 50% 0%, rgba(66, 133, 244, 0.18), transparent 70%), #060606;
  border-bottom: 0;
}

.pc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-title {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #111111;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
}

.pc-body a.pc-title {
  color: #111111;
}

.pc-body--dark a.pc-title {
  color: #ffffff;
}

.pc-more,
.pc-sidemenu {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.pc-more svg,
.pc-sidemenu svg {
  fill: currentColor;
}

.pc-nav {
  display: flex;
  gap: 24px;
}

.pc-body a.pc-nav__link {
  color: #6f7380;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 16px;
}

.pc-body a.pc-nav__link[aria-current="page"] {
  color: #364bff;
}

.pc-body--dark a.pc-nav__link {
  color: #9aa0a6;
}

.pc-tools {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-inline-start: auto;
}

.pc-find {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px 0 12px;
  color: #353841;
  font: inherit;
  font-size: 14px;
  background: #ffffff;
  border: 1px solid #c4c7c5;
  border-radius: 6px;
  cursor: pointer;
}

.pc-find svg {
  fill: currentColor;
}

.pc-find kbd {
  padding: 0 4px;
  font-family: inherit;
  font-size: 12px;
  background: #f1f3f4;
  border-radius: 4px;
}

.pc-body a.pc-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #364bff;
  font-size: 17px;
}

.pc-body--dark a.pc-tool {
  color: #a8c7fa;
}

.pc-tool svg {
  fill: currentColor;
}

.pc-drawer nav {
  display: grid;
  padding: 8px 20px 16px;
  background: inherit;
}

.pc-drawer {
  background: #ffffff;
  border-bottom: 1px solid #e8eaed;
}

.pc-body--dark .pc-drawer {
  background: #060606;
}

.pc-drawer a {
  padding: 8px 0;
  font-family: "Roboto Mono", ui-monospace, monospace;
}

.pc-hero {
  display: grid;
  justify-items: center;
  padding: 196px 16px 0;
  text-align: center;
}

.pc-hero__title {
  margin: 0;
  color: #e8eaed;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 66px;
}

.pc-hero__title .pc-mark {
  margin-top: -8px;
}

.pc-hero__lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: #9aa0a6;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 19px;
  line-height: 26px;
}

.pc-hero__card {
  box-sizing: border-box;
  width: min(900px, 100%);
  margin-top: 80px;
  padding: 72px 114px;
  text-align: start;
  background: linear-gradient(180deg, #060606, #0f1a2a);
  border: 1px solid #4b3a8a;
  border-radius: 24px;
}

.pc-term {
  display: grid;
  gap: 24px;
  color: #c3c7cf;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 15px;
}

.pc-term pre {
  margin: 0;
  white-space: pre;
}

.pc-term__art {
  width: fit-content;
  padding: 12px 16px;
  color: transparent;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  background: linear-gradient(90deg, #4285f4, #34a853, #fbbc04) text;
  border: 1px solid #3c4043;
}

.pc-term__tips {
  color: #c58af9;
  font-weight: 700;
}

.pc-term__status,
.pc-term__foot {
  display: flex;
  justify-content: space-between;
  color: #80868b;
}

.pc-term__status {
  margin-bottom: -20px;
  border-top: 1px solid #4b3a8a;
}

.pc-term__input {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #8ab4f8;
  border-radius: 4px;
}

.pc-term__caret {
  color: #8ab4f8;
}

.pc-term__hint {
  color: #80868b;
}

.pc-term__foot {
  margin-top: -16px;
}

.pc-term__dir {
  color: #81c995;
}

.pc-term__model {
  color: #8ab4f8;
}

.pc-hero__rule {
  width: min(1080px, 100%);
  margin: 48px 0 72px;
  border: 0;
  border-top: 1px solid #202124;
}

.pc-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 93px;
  padding: 0 50px;
  font-size: 14px;
  border-top: 1px solid #202124;
}

.pc-footer__brand {
  margin-inline-end: 26px;
  color: #e8eaed;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 20px;
}

.pc-body .pc-footer a {
  color: #e8eaed;
}

.pc-docs {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
}

.pc-side {
  position: sticky;
  top: 76px;
  align-self: start;
  max-height: calc(100vh - 76px);
  box-sizing: border-box;
  padding: 16px 16px 32px 24px;
  overflow-y: auto;
  border-inline-end: 1px solid #e8eaed;
}

.pc-side__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  color: #17181c;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.pc-side__group summary::-webkit-details-marker {
  display: none;
}

.pc-side__group summary svg {
  fill: currentColor;
}

.pc-side__group:not([open]) summary svg {
  transform: rotate(-90deg);
}

.pc-side ul {
  margin: 0 0 12px;
  padding: 0 0 0 0;
  list-style: none;
  border-inline-start: 1px solid #e8eaed;
}

.pc-body a.pc-side__link {
  display: block;
  padding: 2px 16px;
  color: #353841;
  font-size: 14px;
  line-height: 24px;
  border-radius: 4px;
}

.pc-body a.pc-side__link[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
  background: #364bff;
}

.pc-main {
  min-width: 0;
  padding: 80px 24px 96px;
}

.pc-article {
  max-width: 720px;
  margin: 0 auto;
}

.pc-article h1 {
  margin: 0 0 16px;
  color: #17181c;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 50px;
}

.pc-article h2 {
  margin: 48px 0 16px;
  color: #17181c;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 35px;
  font-weight: 500;
  line-height: 42px;
}

.pc-article h3 {
  margin: 32px 0 8px;
  color: #17181c;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 34px;
}

.pc-article p,
.pc-article ul {
  margin: 16px 0;
}

.pc-article :not(pre) > code {
  padding: 2px 6px;
  font-size: 14px;
  background: #f1f3f4;
  border-radius: 4px;
}

.pc-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  color: #17181c;
  font: inherit;
  font-size: 14px;
  background: #ffffff;
  border: 1px solid #c4c7c5;
  border-radius: 8px;
  cursor: pointer;
}

.pc-copy svg {
  fill: currentColor;
}

.pc-lead {
  margin-top: 48px;
}

.pc-code {
  margin: 16px 0;
  overflow: hidden;
  background: #faf8f8;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.pc-code__bar {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  border-bottom: 1px solid #e0e0e0;
}

.pc-code__bar span {
  width: 8px;
  height: 8px;
  background: #c4c7c5;
  border-radius: 50%;
}

.pc-code pre {
  margin: 0;
  padding: 12px 16px;
  overflow-x: auto;
  color: #292929;
  font-size: 14px;
  line-height: 24px;
}

.pc-toc {
  position: sticky;
  top: 76px;
  align-self: start;
  max-height: calc(100vh - 76px);
  padding: 24px 16px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 24px;
}

.pc-toc__title {
  margin: 0 0 8px;
  color: #17181c;
  font-size: 18px;
  font-weight: 500;
}

.pc-toc ul {
  margin: 0;
  padding: 0 0 0 8px;
  list-style: none;
}

.pc-body .pc-toc a {
  color: #6f7380;
}

.pc-toc__h3 {
  padding-inline-start: 16px;
}

.pc-search {
  width: min(640px, calc(100vw - 32px));
  max-height: 80vh;
  margin-top: 64px;
  padding: 16px;
  border: 1px solid #c4c7c5;
  border-radius: 12px;
}

.pc-search::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.pc-search__head {
  display: flex;
  gap: 8px;
}

.pc-search__field {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  font: inherit;
  border: 1px solid #364bff;
  border-radius: 8px;
}

.pc-search__close {
  padding: 0 12px;
  color: #364bff;
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.pc-search__results {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.pc-search__results a {
  display: grid;
  padding: 8px 12px;
  border-radius: 8px;
}

.pc-search__results a:hover {
  background: #f1f3f4;
}

.pc-search__results span {
  color: #6f7380;
  font-size: 14px;
  line-height: 20px;
}

@media (max-width: 80rem) {
  .pc-docs {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .pc-toc {
    display: none;
  }
}

@media (max-width: 48rem) {
  .pc-header {
    gap: 8px;
    height: 64px;
    padding: 0 16px;
  }

  .pc-nav,
  .pc-tool span,
  .pc-find span,
  .pc-find kbd {
    display: none;
  }

  .pc-find {
    width: 40px;
    padding: 0;
    justify-content: center;
    border: 0;
    background: none;
  }

  .pc-more,
  .pc-sidemenu {
    display: inline-grid;
  }

  .pc-docs {
    display: block;
  }

  .pc-side {
    display: none;
  }

  .pc-docs--menu .pc-side {
    position: fixed;
    inset: 64px 0 0;
    z-index: 15;
    display: block;
    max-height: none;
    background: #ffffff;
  }

  .pc-main {
    padding: 32px 16px 64px;
  }

  .pc-article h1 {
    font-size: 32px;
    line-height: 40px;
  }

  .pc-article h2 {
    font-size: 26px;
    line-height: 34px;
  }

  .pc-hero {
    padding-top: 160px;
  }

  .pc-hero__title {
    font-size: 36px;
    line-height: 46px;
  }

  .pc-hero__title .pc-mark--hero {
    width: 34px;
    height: 34px;
  }

  .pc-hero__lead {
    font-size: 15px;
    line-height: 22px;
  }

  .pc-hero__card {
    margin-top: 48px;
    padding: 24px 16px;
    border-radius: 12px;
  }

  .pc-term {
    gap: 12px;
    font-size: 5px;
    line-height: 7px;
  }

  .pc-term__art {
    font-size: 9px;
    line-height: 11px;
  }

  .pc-footer {
    flex-wrap: wrap;
    padding: 24px 16px;
  }
}

.ck-ripple {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.ck-ripple__wave {
  position: absolute;
  top: 0;
  left: 0;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.1;
  transform: translate(var(--ck-ripple-end)) scale(var(--ck-ripple-scale));
  animation: ck-ripple-grow 225ms cubic-bezier(0.4, 0, 0.2, 1), ck-ripple-in 75ms linear;
}

.ck-ripple__wave--out {
  opacity: 0;
  animation: ck-ripple-out 150ms linear;
}

@keyframes ck-ripple-grow {
  from {
    transform: translate(var(--ck-ripple-start)) scale(1);
  }
}

@keyframes ck-ripple-in {
  from {
    opacity: 0;
  }
}

@keyframes ck-ripple-out {
  from {
    opacity: 0.1;
  }
}

dialog[open] {
  animation: ck-dialog-in 150ms cubic-bezier(0, 0, 0.2, 1), ck-fade-in 75ms linear;
}

dialog[open]::backdrop {
  animation: ck-fade-in 150ms linear;
}

dialog.ck-closing,
dialog.ck-closing::backdrop {
  animation: ck-fade-out 75ms linear forwards;
}

@keyframes ck-dialog-in {
  from {
    transform: scale(0.8);
  }
}

@keyframes ck-fade-in {
  from {
    opacity: 0;
  }
}

@keyframes ck-fade-out {
  to {
    opacity: 0;
  }
}

@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto.ttf?v=66e5a0fa4e964db1") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Flex";
  src: url("fonts/google-sans-flex.ttf?v=66e5a0fa4e964db1") format("truetype");
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-style: normal;
  font-display: swap;
}
