:root {
  --page: #ffffff;
  --ink: var(--rr-color-neutral-950, #080808);
  --muted: var(--rr-color-neutral-400, #9c9c9c);
  --brand: var(--rr-color-brand, #9b65d7);
  --brand-hover: var(--rr-color-brand-hover, #8b55c9);
  --focus: #0a84ff;
  --shadow-soft: 0 24px 70px rgba(42, 24, 12, 0.12);
  --dropdown-hover: #f8f8f8;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 19px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 13px;
  line-height: 19px;
}

[hidden] {
  display: none !important;
}

.auth-screen {
  position: relative;
  min-height: 100svh;
  background: #fff;
  overflow: hidden;
  display: block;
  padding: 0;
  isolation: isolate;
}

.app-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  background: #fff;
  color: var(--rr-color-ink);
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

.app-sidebar {
  position: relative;
  min-height: calc(100svh - 20px);
  padding: 25px 5px 10px;
  display: flex;
  flex-direction: column;
  background: #fff;
  animation: sidebarIntro 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-logo {
  width: fit-content;
  margin: 0 0 24px 12px;
  color: var(--rr-color-brand);
  font-family: var(--rr-font-display);
  font-size: 23px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: -0.6px;
  text-decoration: none;
}

.app-shell :where(button, a, h2, strong, small, textarea, .title-pill, .composer-meta, .menu-item, .paper-option, .paper-coming-soon, .toast) {
  font-weight: 400;
}

.primary-nav {
  display: grid;
  gap: 4px;
  margin: 0 0 24px;
}

.nav-item,
.letter-link {
  color: var(--rr-color-ink);
  text-decoration: none;
}

.nav-item {
  width: 200px;
  height: 33px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 400;
  line-height: 19px;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-item:hover,
.nav-item.is-active {
  background: var(--rr-color-subtle);
}

.nav-item:active,
.letter-link:active,
.profile-card:active {
  transform: scale(0.99);
}

.nav-item svg {
  width: 16px;
  height: 16px;
  color: var(--rr-color-muted);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4px;
  flex: 0 0 auto;
}

.sidebar-section {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.sidebar-section h2 {
  width: 200px;
  height: 19px;
  margin: 0;
  padding: 0 12px;
  color: var(--rr-color-neutral-600);
  font-size: 13px;
  font-weight: 400;
  line-height: 19px;
}

.letter-link {
  width: 200px;
  height: 33px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 100px;
  display: flex;
  align-items: center;
  color: var(--rr-color-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 19px;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.letter-link.is-renaming {
  background: #fff;
  border-color: var(--rr-color-primary);
  color: var(--rr-color-ink);
}

.letter-rename-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--rr-color-ink);
  font: inherit;
  font-weight: 510;
  line-height: 19px;
}

.letter-rename-caret {
  width: 1.5px;
  height: 16px;
  margin-left: 2px;
  border-radius: 100px;
  background: var(--rr-color-primary);
  flex: 0 0 1.5px;
  animation: renameCaretBlink 940ms steps(1) infinite;
}

.letter-link.is-active {
  background: var(--rr-color-subtle);
  color: var(--rr-color-ink);
}

.letter-link:hover {
  background: var(--rr-color-subtle);
}

.profile-card {
  width: 200px;
  min-height: 47px;
  margin: auto 0 0;
  padding: 5px 7px;
  border: var(--rr-border-hairline);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--rr-shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.profile-card:hover {
  box-shadow: var(--rr-shadow-menu);
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 68% 20%, #1e1e1e 0 20%, transparent 21%),
    linear-gradient(130deg, #d20000 0 38%, #080808 39% 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  flex: 0 0 auto;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card strong,
.profile-card small {
  display: block;
}

.profile-card strong {
  color: var(--rr-color-ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 19px;
}

.profile-card small {
  color: var(--rr-color-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.workspace {
  position: relative;
  min-height: calc(100svh - 20px);
  margin: 0;
  overflow: hidden;
  border: 0.5px solid var(--rr-color-border);
  border-radius: 24px;
  background: var(--rr-color-subtle);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.workspace-topbar {
  position: absolute;
  inset: 20px 20px auto;
  z-index: 4;
  height: 40px;
  display: block;
  padding: 0;
}

.workspace[data-view="sent-empty"] .workspace-topbar,
.workspace[data-view="sent-empty"] .paper-stage,
.workspace[data-view="sent-empty"] .message-composer,
.workspace[data-view="archived"] .workspace-topbar,
.workspace[data-view="archived"] .paper-stage,
.workspace[data-view="archived"] .message-composer {
  display: none;
}

.sent-empty-view,
.archived-view {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: var(--rr-color-subtle);
}

.sent-empty-view[hidden],
.archived-view[hidden] {
  display: none;
}

.sent-filter-tabs {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 210px;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sent-filter-tab {
  box-sizing: border-box;
  height: 28px;
  padding: 6px 12px;
  border: 0;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: var(--rr-shadow-popover);
  color: var(--rr-color-ink);
  font: 400 12px / 16px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.sent-filter-tab[data-sent-filter="all"] {
  width: 39px;
}

.sent-filter-tab[data-sent-filter="instant"] {
  width: 63px;
}

.sent-filter-tab[data-sent-filter="scheduled"] {
  width: 84px;
}

.sent-filter-tab.is-active {
  background: var(--rr-color-brand);
  box-shadow: none;
  color: #fff;
}

.sent-letters-list {
  position: absolute;
  inset: 68px 20px 20px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.sent-empty-view:not(.has-sent-letters) .sent-letters-list {
  display: none;
}

.sent-empty-view.has-sent-letters .sent-empty-copy {
  display: none;
}

.archived-list {
  position: absolute;
  inset: 20px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.archived-view:not(.has-archived-letters) .archived-list {
  display: none;
}

.archived-view.has-archived-letters .archived-empty-copy {
  display: none;
}

.archived-letter-link {
  width: 220px;
  height: 33px;
  padding: 7px 12px;
  border: 0;
  border-radius: 100px;
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: var(--rr-shadow-card);
  color: var(--rr-color-ink);
  font: 400 13px / 19px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  cursor: pointer;
}

.archived-letter-link:hover {
  background: var(--rr-color-subtle-2);
}

.sent-empty-copy,
.archived-empty-copy {
  width: 173px;
  height: 61px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.sent-empty-copy h2,
.sent-empty-copy p,
.archived-empty-copy h2,
.archived-empty-copy p {
  width: 173px;
  margin: 0;
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: normal;
  text-align: center;
}

.sent-empty-copy h2,
.archived-empty-copy h2 {
  height: 19px;
  color: var(--rr-color-ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 19px;
}

.sent-empty-copy p,
.archived-empty-copy p {
  height: 38px;
  color: var(--rr-color-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 19px;
}

.title-pill,
.editor-toolbar,
.more-button,
.message-composer {
  background: #fff;
  box-shadow: var(--rr-shadow-popover);
}

.title-pill {
  animation: controlDrop 560ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

.title-pill {
  position: absolute;
  left: 0;
  top: 0;
  width: fit-content;
  max-width: min(360px, calc(100vw - 56px));
  height: 40px;
  min-height: 0;
  padding: 6px 24px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--rr-color-ink);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.editor-toolbar {
  position: absolute;
  left: 50%;
  top: 0;
  width: 524px;
  height: 40px;
  min-height: 0;
  padding: 6px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  animation: toolbarDrop 620ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both;
}

.toolbar-chip,
.language-chip,
.download-chip,
.paper-chip {
  height: 28px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rr-color-ink);
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.chevron-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background: #9c9c9c;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.53977 4.30461C2.61817 4.11993 2.79938 4 3.00001 4L9.00001 4C9.20065 4 9.38185 4.11993 9.46025 4.30461C9.53866 4.48929 9.49908 4.70295 9.35972 4.84729L6.69938 7.60275L6.69938 7.60276C6.62874 7.67602 6.54497 7.76289 6.46313 7.82756C6.3651 7.90503 6.21055 8 6.00001 8C5.78947 8 5.63492 7.90502 5.53689 7.82756C5.45506 7.76289 5.37129 7.67601 5.30064 7.60275L2.64031 4.84729C2.50095 4.70295 2.46137 4.48929 2.53977 4.30461Z' fill='%239C9C9C'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.53977 4.30461C2.61817 4.11993 2.79938 4 3.00001 4L9.00001 4C9.20065 4 9.38185 4.11993 9.46025 4.30461C9.53866 4.48929 9.49908 4.70295 9.35972 4.84729L6.69938 7.60275L6.69938 7.60276C6.62874 7.67602 6.54497 7.76289 6.46313 7.82756C6.3651 7.90503 6.21055 8 6.00001 8C5.78947 8 5.63492 7.90502 5.53689 7.82756C5.45506 7.76289 5.37129 7.67601 5.30064 7.60275L2.64031 4.84729C2.50095 4.70295 2.46137 4.48929 2.53977 4.30461Z' fill='%239C9C9C'/%3E%3C/svg%3E") center / contain no-repeat;
}

.toolbar-chip:hover,
.language-chip:hover,
.download-chip:hover,
.paper-chip:hover,
.more-button:hover {
  transform: translateY(-1px);
}

.toolbar-chip[aria-expanded="true"],
.language-chip[aria-expanded="true"],
.paper-chip[aria-expanded="true"] {
  background: #fff;
  box-shadow: var(--rr-shadow-control);
}

.toolbar-chip,
.language-chip {
  padding: 6px 6px 6px 12px;
  background: var(--rr-color-subtle);
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.toolbar-chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#fontButton {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  flex: 0 0 72px;
  margin-right: -8px;
  border-radius: 100px 5px 5px 100px;
}

.toolbar-chip:nth-child(2) {
  width: 63px;
  border-radius: 5px 100px 100px 5px;
}

.paper-chip {
  width: 28px;
  padding: 0;
  background: var(--rr-color-neutral-950);
}

.paper-chip span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-image: var(--rr-paper-paper);
  background-position: center;
  background-size: cover;
  box-shadow: 0 2px 8px rgba(27, 20, 17, 0.16);
  transform: rotate(-12deg);
}

.align-group {
  width: 88px;
  height: 28px;
  padding: 7px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--rr-color-subtle);
}

.align-group button {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rr-color-neutral-300);
  cursor: pointer;
  transition:
    color 140ms ease,
    transform 140ms ease;
}

.align-group button:hover {
  color: var(--rr-color-neutral-800);
}

.align-group button:active {
  transform: scale(0.94);
}

.align-group svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.align-group button.is-active {
  color: var(--rr-color-neutral-950);
}

.language-chip {
  width: 44px;
  padding: 6px;
  gap: 4px;
}

.language-chip .rr-flag,
.language-menu-item .rr-flag {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.language-menu-item {
  gap: 10px;
}

.language-menu-label {
  color: #393939;
  font: 400 13px / 19px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.toolbar-divider {
  width: 1px;
  height: 16px;
  margin: 0;
  background: var(--rr-color-neutral-300);
  border-radius: 999px;
}

.share-chip {
  width: 58px;
  min-width: 58px;
  padding: 6px 12px;
}

.download-chip {
  width: 96px;
  min-width: 96px;
  height: 28px;
  padding: 6px 8px 6px 12px;
  gap: 2px;
  background: #a462de;
  color: #fff;
  font: 400 12px / 16px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: var(--rr-shadow-brand);
}

.download-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: currentColor;
}

.download-chip[aria-expanded="true"],
.download-chip:hover {
  background: var(--rr-color-brand-hover);
}

.more-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 6px;
  border: 0;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
  color: #080808;
  cursor: pointer;
  animation: controlDrop 560ms cubic-bezier(0.22, 1, 0.36, 1) 220ms both;
}

.more-button-inner {
  width: 28px;
  height: 28px;
  padding: 7px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--rr-color-subtle);
  flex: 0 0 auto;
}

.more-button svg {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
}

.paper-stage {
  position: absolute;
  left: 50%;
  top: calc(50% - 36px);
  width: clamp(360px, 34vw, 620px);
  aspect-ratio: 515 / 586.79;
  height: auto;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: paperFloatIn 760ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

.paper-sheet {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: var(--rr-paper-paper);
  background-position: center;
  background-size: cover;
  filter: drop-shadow(0 0 100px rgba(0, 0, 0, 0.2));
  overflow: hidden;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease,
    background-image 180ms ease;
}

.paper-sheet-front {
  transform: translate(0, 0) rotate(0deg);
}

.paper-text {
  position: absolute;
  top: 21.47%;
  left: 19.8%;
  width: 60.4%;
  height: 54.5%;
  overflow: hidden;
  color: var(--rr-color-ink);
  font: 500 8px / 17.78px "SF Compact Rounded", "SF Pro Rounded", "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 160ms ease,
    transform 180ms ease,
    text-align 120ms ease;
}

.paper-text.has-content {
  opacity: 1;
  transform: translateY(0);
}

.paper-stage.is-switching .paper-sheet-front {
  transform: translateY(-6px) scale(0.992);
}

.workspace[data-paper="cardboard"] .paper-sheet,
.workspace[data-paper="cardboard"] .paper-chip span {
  background-image: var(--rr-paper-cardboard);
}

.workspace[data-paper="paper"] .paper-sheet,
.workspace[data-paper="paper"] .paper-chip span {
  background-image: var(--rr-paper-paper);
}

.workspace[data-paper="carton"] .paper-sheet,
.workspace[data-paper="carton"] .paper-chip span {
  background-image: var(--rr-paper-carton);
}

.workspace[data-paper="a4"] .paper-sheet,
.workspace[data-paper="a4"] .paper-chip span {
  background-image: var(--rr-paper-a4);
}

.message-composer {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 30px;
  width: 487px;
  height: 97px;
  padding: 10px 10px 14px;
  border: 0;
  border-radius: 22px;
  background: #fafafa;
  box-shadow: none;
  transform: translateX(-50%);
  overflow: hidden;
  animation: composerRise 620ms cubic-bezier(0.22, 1, 0.36, 1) 260ms both;
  transition:
    height 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 160ms ease;
}

.message-composer.is-expanded {
  height: 384px;
}

.message-composer.is-focused {
  background: #fafafa;
  transform: translateX(-50%);
  box-shadow: none;
}

.composer-input {
  width: 100%;
  height: 47px;
  padding: 14px 10px;
  border: 0.3px solid var(--rr-color-border);
  border-radius: 12px;
  resize: none;
  outline: none;
  color: var(--rr-color-ink);
  box-shadow: var(--rr-shadow-control);
  font: 400 13px / 19px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition:
    height 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.message-composer.is-expanded .composer-input {
  height: 334px;
}

.composer-input::placeholder {
  color: var(--rr-color-muted);
}

.composer-input:focus {
  border: var(--rr-border-active);
  box-shadow: var(--rr-shadow-control);
}

.composer-meta {
  width: 100%;
  height: 16px;
  margin: 10px 0 0;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--rr-color-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.composer-counts {
  width: 433px;
  height: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
}

.composer-meta strong {
  font: inherit;
}

.composer-toggle {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rr-color-neutral-300);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 14px;
}

.composer-toggle:hover {
  color: var(--rr-color-neutral-600);
}

.composer-toggle-icon {
  grid-area: 1 / 1;
  width: 14px;
  height: 14px;
}

.composer-toggle-icon--shrink,
.message-composer.is-expanded .composer-toggle-icon--expand {
  display: none;
}

.message-composer.is-expanded .composer-toggle-icon--shrink {
  display: block;
}

.floating-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.dropdown-panel {
  position: absolute;
  min-width: 132px;
  padding: 8px;
  border: var(--rr-border-hairline);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--rr-shadow-menu);
  display: grid;
  gap: 4px;
  pointer-events: auto;
  transform-origin: top center;
  animation: menuIn 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dropdown-panel.is-fixed {
  position: fixed;
  z-index: 20;
}

.dropdown-panel[data-menu="paper"] {
  width: 577px;
  min-width: 577px;
  height: 413px;
  padding: 20px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 30px rgb(0 0 0 / 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.dropdown-panel[data-menu="profile"] {
  width: 228px;
  min-width: 228px;
  min-height: 168px;
  gap: 10px;
}

.dropdown-panel[data-menu="font"] {
  width: 150px;
  min-width: 150px;
  height: 245px;
  padding: 8px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 30px rgb(0 0 0 / 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.dropdown-panel[data-menu="size"] {
  width: 113px;
  min-width: 113px;
  height: 113px;
  padding: 8px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 30px rgb(0 0 0 / 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.dropdown-panel[data-menu="language"] {
  width: 150px;
  min-width: 150px;
  height: 179px;
  padding: 8px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 30px rgb(0 0 0 / 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.dropdown-panel[data-menu="download"] {
  width: 204px;
  min-width: 204px;
  height: 80px;
  padding: 8px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 30px rgb(0 0 0 / 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.dropdown-panel[data-menu="share"] {
  width: 157px;
  min-width: 157px;
  height: 80px;
  padding: 8px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 30px rgb(0 0 0 / 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.menu-item {
  width: 100%;
  height: 31px;
  min-height: 31px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rr-color-ink);
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 13px / 19px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.menu-item:hover,
.menu-item.is-selected {
  background: var(--dropdown-hover);
}

.menu-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--rr-color-muted);
  display: inline-grid;
  place-items: center;
}

.menu-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.dropdown-panel[data-menu="font"] .menu-item {
  width: 134px;
  height: 31px;
  min-height: 31px;
  padding: 6px 10px;
  gap: 10px;
  color: #393939;
  align-self: stretch;
  flex: 0 0 auto;
  font-size: 13px;
  font-style: normal;
  line-height: 19px;
}

.dropdown-panel[data-menu="font"] .menu-item.is-current {
  background: transparent;
}

.dropdown-panel[data-menu="font"] .menu-item:hover {
  background: var(--dropdown-hover);
}

.font-menu-check {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--rr-color-brand, #a462de);
  display: inline-grid;
  place-items: center;
  opacity: 0;
}

.font-menu-check svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.font-menu-item.is-current .font-menu-check {
  opacity: 1;
}

.font-menu-label {
  width: fit-content;
  max-width: 88px;
  height: 19px;
  flex: 0 1 auto;
  overflow: hidden;
  color: #393939;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.font-menu-item[data-font-option="sf-pro"] .font-menu-label {
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 510;
}

.font-menu-item[data-font-option="inter"] .font-menu-label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
}

.font-menu-item[data-font-option="shantell-sans"] .font-menu-label {
  font-family: "Shantell Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
}

.font-menu-item[data-font-option="geist"] .font-menu-label {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
}

.font-menu-item[data-font-option="geist-mono"] .font-menu-label {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
}

.font-menu-item[data-font-option="cal-sans"] .font-menu-label {
  font-family: "Cal Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

.font-menu-item[data-font-option="siemreap"] .font-menu-label {
  font-family: "Siemreap", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

.dropdown-panel[data-menu="size"] .menu-item {
  width: 97px;
  height: 31px;
  min-height: 31px;
  padding: 6px 10px;
  gap: 10px;
  color: #393939;
  align-self: stretch;
  flex: 0 0 auto;
  font: 400 13px / 19px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dropdown-panel[data-menu="size"] .menu-item.is-current {
  background: transparent;
}

.dropdown-panel[data-menu="size"] .menu-item:hover {
  background: var(--dropdown-hover);
}

.size-menu-check {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--rr-color-brand, #a462de);
  display: inline-grid;
  place-items: center;
  opacity: 0;
}

.size-menu-check svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.size-menu-item.is-current .size-menu-check {
  opacity: 1;
}

.size-menu-label {
  width: fit-content;
  max-width: 30px;
  height: 19px;
  flex: 0 0 auto;
  overflow: hidden;
  color: #393939;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-panel[data-menu="language"] .menu-item {
  width: 134px;
  height: 31px;
  min-height: 31px;
  padding: 6px 10px;
  gap: 10px;
  color: #393939;
  align-self: stretch;
  flex: 0 0 auto;
  font: 400 13px / 19px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dropdown-panel[data-menu="language"] .menu-item:hover {
  background: var(--dropdown-hover);
}

.dropdown-panel[data-menu="language"] .rr-flag {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  order: 0;
}

.dropdown-panel[data-menu="language"] .language-menu-label {
  width: fit-content;
  max-width: 59px;
  height: 19px;
  flex: 0 0 auto;
  overflow: hidden;
  color: #393939;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-panel[data-menu="download"] .menu-item {
  width: 188px;
  height: 31px;
  min-height: 31px;
  padding: 6px 10px;
  gap: 10px;
  color: #393939;
  align-self: stretch;
  flex: 0 0 auto;
  font: 400 13px / 19px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dropdown-panel[data-menu="download"] .menu-item:hover {
  background: var(--dropdown-hover);
}

.download-menu-label {
  width: fit-content;
  max-width: 110px;
  height: 19px;
  flex: 0 0 auto;
  overflow: hidden;
  color: #393939;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-panel[data-menu="share"] .menu-item {
  width: 141px;
  height: 31px;
  min-height: 31px;
  padding: 6px 10px;
  gap: 10px;
  color: #393939;
  align-self: stretch;
  flex: 0 0 auto;
  font: 400 13px / 19px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dropdown-panel[data-menu="share"] .menu-item:hover {
  background: var(--dropdown-hover);
}

.share-menu-label {
  width: fit-content;
  max-width: 121px;
  height: 19px;
  flex: 0 0 auto;
  overflow: hidden;
  color: #393939;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-panel[data-menu="share-someone"] {
  position: absolute;
  width: 410px;
  min-height: 438px;
  height: auto;
  padding: 15px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 30px rgb(0 0 0 / 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  isolation: isolate;
}

.share-someone-content {
  width: 380px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.share-someone-content h2 {
  width: 380px;
  height: 20px;
  margin: 0;
  color: var(--rr-color-ink);
  font: 400 15px / 20px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.share-someone-fields {
  width: 380px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.share-field {
  width: 380px;
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.share-field span {
  width: 380px;
  height: 19px;
  color: var(--rr-color-ink);
  font: 400 13px / 19px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.share-field input {
  box-sizing: border-box;
  width: 380px;
  height: 39px;
  padding: 10px;
  border: 0.3px solid var(--rr-color-border);
  border-radius: 12px;
  outline: 0;
  background: #fff;
  box-shadow: none;
  color: var(--rr-color-ink);
  font: 400 13px / 19px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.share-field input::placeholder {
  color: var(--rr-color-border);
  font: 400 13px / 19px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.share-field input:focus {
  border: 0.3px solid var(--rr-color-border);
  box-shadow: none;
}

.share-schedule-toggle {
  box-sizing: border-box;
  width: 380px;
  height: 50px;
  padding: 10px 12px;
  border: 1px dashed var(--rr-color-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.share-schedule-toggle > span:first-child {
  color: var(--rr-color-ink);
  font: 400 13px / 19px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.share-schedule-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.share-schedule-switch {
  flex: 0 0 48px;
}

.share-field[hidden] {
  display: none;
}

.share-someone-actions {
  width: 380px;
  height: 28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.share-someone-cancel,
.share-someone-send {
  height: 28px;
  border: 0;
  border-radius: 100px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font: 400 12px / 16px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.share-someone-cancel {
  width: 63px;
  padding: 6px 12px;
  background: var(--rr-color-neutral-100);
  color: var(--rr-color-ink);
}

.share-someone-send {
  width: 90px;
  padding: 6px 12px;
  background: var(--rr-color-brand);
  color: #fff;
}

.share-someone-cancel:hover {
  background: var(--dropdown-hover);
}

.share-someone-send:hover {
  background: var(--rr-color-brand-hover);
}

.profile-menu-header {
  width: 212px;
  height: 37px;
  padding: 0 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-menu-header .profile-avatar {
  width: 36px;
  height: 36px;
}

.profile-menu-header strong,
.profile-menu-header small {
  display: block;
}

.profile-menu-header strong {
  width: 164px;
  color: var(--rr-color-ink);
  font: 400 13px / 19px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.profile-menu-header small {
  width: 164px;
  color: var(--rr-color-muted);
  font: 400 12px / 18px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.profile-menu-options {
  width: 212px;
  display: grid;
  gap: 4px;
}

.menu-divider {
  width: 212px;
  height: 0;
  border-top: 0.5px solid var(--rr-color-border);
}

.menu-item:active {
  transform: scale(0.99);
}

.menu-item.is-danger {
  color: var(--rr-color-danger);
}

.paper-options {
  width: 537px;
  height: 149px;
  display: flex;
  align-items: flex-start;
  gap: 19px;
}

.paper-option {
  width: 120px;
  height: 149px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #393939;
  font: 400 13px / 19px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  border-radius: 8px;
  transition:
    background-color 140ms ease,
    transform 140ms ease;
}

.paper-option:hover {
  background: var(--dropdown-hover);
}

.paper-option span:first-child {
  width: 120px;
  height: 120px;
  flex: 0 0 auto;
  border-radius: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.paper-option span:last-child {
  width: 120px;
  height: 19px;
  flex: 0 0 auto;
  color: #393939;
  text-align: center;
}

.paper-option:hover span:first-child,
.paper-option.is-selected span:first-child {
  filter: drop-shadow(0 0 20px rgb(0 0 0 / 0.08));
}

.paper-option[data-paper="cardboard"] span:first-child {
  background-image: var(--rr-paper-cardboard);
}

.paper-option[data-paper="paper"] span:first-child {
  background-image: var(--rr-paper-paper);
}

.paper-option[data-paper="carton"] span:first-child {
  background-image: var(--rr-paper-carton);
}

.paper-option[data-paper="a4"] span:first-child {
  background-image: var(--rr-paper-a4);
}

.paper-coming-soon {
  width: 537px;
  height: 200px;
  padding: 10px;
  border-radius: 16px;
  background: #f8f8f8;
  display: grid;
  place-items: center;
  color: #393939;
  font: 400 13px / 19px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.toast-region {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 132px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--rr-color-neutral-950);
  color: #fff;
  box-shadow: var(--rr-shadow-menu);
  font: 400 12px / 16px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: toastIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.is-authenticated .auth-screen {
  display: none;
}

body.is-authenticated .app-shell {
  display: grid;
}

.auth-panel {
  position: absolute;
  left: 50%;
  top: calc(50% - 221px / 2 + 0.5px);
  z-index: 2;
  width: 442px;
  height: 221px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-items: center;
  gap: 24px;
  margin-top: 0;
  transform: translateX(-50%);
  animation: panelSettle 820ms cubic-bezier(0.22, 1, 0.36, 1) 160ms both;
}

h1 {
  width: 442px;
  height: 110px;
  margin: 0;
  display: grid;
  grid-template-rows: 55px 55px;
  gap: 0;
  text-align: center;
  font-family: "SF Pro Rounded", "Nunito", "Arial Rounded MT Bold", ui-rounded, sans-serif;
  font-size: 45px;
  line-height: 55px;
  letter-spacing: 0;
  font-weight: 700;
}

h1 span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
  animation: textReveal 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1 span + span {
  animation-delay: 95ms;
}

.google-button {
  width: 438px;
  max-width: calc(100vw - 3rem);
  height: 44px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
  box-shadow: var(--rr-shadow-brand);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
  animation: textReveal 760ms cubic-bezier(0.22, 1, 0.36, 1) 260ms both;
}

.google-button:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: none;
}

.google-button:active,
.google-button.is-loading {
  transform: translateY(0) scale(0.99);
}

.google-button:disabled {
  cursor: wait;
  opacity: 0.86;
}

.google-button:focus-visible,
.legal a:focus-visible {
  outline: 4px solid color-mix(in srgb, var(--focus) 34%, transparent);
  outline-offset: 5px;
}

.auth-provider-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

.auth-status {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  animation: textReveal 760ms cubic-bezier(0.22, 1, 0.36, 1) 340ms both;
}

.auth-status:empty {
  display: none;
}

.legal {
  width: 442px;
  height: 19px;
  max-width: none;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  color: var(--muted);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 19px;
  font-weight: 400;
  letter-spacing: 0;
  animation: textReveal 760ms cubic-bezier(0.22, 1, 0.36, 1) 420ms both;
}

.legal a {
  color: inherit;
  text-decoration: none;
}

.legal a:first-of-type {
  margin-left: auto;
}

.legal a + a {
  margin-left: 16px;
}

.legal a:hover {
  color: #777272;
}

.asset {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(var(--shadow-soft));
  will-change: transform, opacity;
}

.asset-notes {
  top: -24px;
  left: calc(50% - 720px + 225px);
  width: 338.85px;
  height: 338.85px;
  --asset-final-transform: rotate(-28.83deg);
  transform: var(--asset-final-transform);
  animation: notesSettle 1200ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

.asset-sun {
  top: -300px;
  left: calc(50% - 720px + 571px);
  width: 603.03px;
  height: 588.68px;
  --asset-final-transform: rotate(14.67deg);
  transform: var(--asset-final-transform);
  animation: sunSettle 1300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.asset-love {
  left: calc(50% - 720px + 155px);
  bottom: auto;
  top: 604px;
  width: 548.63px;
  height: 381.03px;
  --asset-final-transform: rotate(-20.99deg);
  transform: var(--asset-final-transform);
  animation: loveSettle 1250ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

.asset-phone {
  right: auto;
  bottom: auto;
  left: calc(50% - 720px + 784px);
  top: 640px;
  width: 332px;
  height: 542px;
  --asset-final-transform: rotate(0deg);
  transform: var(--asset-final-transform);
  animation: phoneSettle 1250ms cubic-bezier(0.22, 1, 0.36, 1) 220ms both;
}

.mobile-unavailable {
  display: none;
}

@keyframes panelSettle {
  from {
    opacity: 0;
    transform: translate(-50%, 18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes notesSettle {
  from {
    opacity: 0;
    transform: translate(-44px, -24px) rotate(-18deg) scale(0.94);
  }
  to {
    opacity: 1;
    transform: var(--asset-final-transform);
  }
}

@keyframes sunSettle {
  from {
    opacity: 0;
    transform: translate(56px, -54px) rotate(26deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: var(--asset-final-transform);
  }
}

@keyframes loveSettle {
  from {
    opacity: 0;
    transform: translate(-72px, 84px) rotate(-30deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: var(--asset-final-transform);
  }
}

@keyframes phoneSettle {
  from {
    opacity: 0;
    transform: translate(56px, 86px) rotate(8deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: var(--asset-final-transform);
  }
}

@keyframes sidebarIntro {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes renameCaretBlink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes controlDrop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toolbarDrop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes paperFloatIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes composerRise {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    min-height: auto;
    padding: 22px 18px;
    gap: 18px;
  }

  .app-logo {
    margin: 0;
  }

  .primary-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }

  .nav-item {
    padding: 10px 12px;
    border-radius: 999px;
    background: var(--rr-color-subtle);
    justify-content: center;
    font-size: 15px;
  }

  .sidebar-section {
    display: none;
  }

  .profile-card {
    position: absolute;
    top: 18px;
    right: 18px;
    width: auto;
    min-width: 210px;
    margin: 0;
  }

  .workspace {
    min-height: 840px;
    margin: 0 14px 14px;
  }

  .workspace-topbar {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .title-pill {
    grid-column: 1;
  }

  .editor-toolbar {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .more-button {
    grid-column: 2;
  }

}

@media (max-height: 840px) and (min-width: 900px) {
}

@media (max-width: 720px) {
  .app-sidebar {
    padding-top: 18px;
  }

  .primary-nav {
    grid-template-columns: 1fr;
  }

  .nav-item {
    justify-content: flex-start;
  }

  .profile-card {
    position: static;
    width: 100%;
    order: 2;
  }

  .workspace {
    min-height: 760px;
    margin-inline: 8px;
    border-radius: 24px;
  }

  .workspace-topbar {
    grid-template-columns: 1fr;
    padding: 18px 16px 0;
  }

  .title-pill,
  .editor-toolbar,
  .more-button {
    justify-self: center;
  }

  .editor-toolbar {
    width: min(100%, 420px);
    justify-content: center;
  }

  .toolbar-divider {
    display: none;
  }

  .paper-stage {
    top: calc(50% - 24px);
    width: min(78vw, 515px);
  }

  .auth-screen {
    min-height: 100svh;
    padding: 0;
    background: #fafafa;
  }

  .auth-panel {
    top: calc(50% - 204px / 2 + 33px);
    width: 343px;
    height: 204px;
    gap: 16px;
    margin-top: 0;
  }

  h1 {
    width: 293px;
    height: 80px;
    margin: 0;
    font-size: 30px;
    line-height: 40px;
  }

  .google-button {
    width: 277px;
  }

  .legal {
    width: 343px;
    height: 48px;
    margin-top: 0;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: 19px 19px;
    justify-content: center;
    align-content: center;
    justify-items: center;
    gap: 10px 16px;
  }

  .legal span {
    grid-column: 1 / -1;
  }

  .legal a:first-of-type,
  .legal a + a {
    margin-left: 0;
  }

  .asset-notes {
    top: 61.9px;
    left: calc(50% - 187.5px - 18.8px);
    width: 210.2px;
    height: 210.2px;
    --asset-final-transform: rotate(-28.83deg);
  }

  .asset-sun {
    top: -162.6px;
    left: calc(50% - 187.5px + 102.2px);
    right: auto;
    width: 342.85px;
    height: 334.69px;
    --asset-final-transform: rotate(14.67deg);
  }

  .asset-love {
    left: calc(50% - 187.5px - 107.3px);
    top: 649.9px;
    bottom: auto;
    width: 312.91px;
    height: 217.32px;
    --asset-final-transform: rotate(-27.58deg);
  }

  .asset-phone {
    right: auto;
    bottom: auto;
    left: calc(50% - 187.5px + 179.3px);
    top: 566.5px;
    width: 219px;
    height: 358px;
    --asset-final-transform: rotate(0deg);
  }

}

@media (max-width: 1024px) {
  body {
    min-width: 0;
    overflow: hidden;
    background: #fafafa;
  }

  .auth-screen,
  .app-shell {
    display: none !important;
  }

  .mobile-unavailable {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: block;
    overflow: hidden;
    background: #fafafa;
  }

  .mobile-canvas {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100svh;
    overflow: hidden;
    background: #fafafa;
    transform: translateX(-50%);
  }

  .mobile-asset {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(var(--shadow-soft));
  }

  .mobile-asset-notes {
    width: clamp(235.67px, 27vw, 338.85px);
    height: clamp(235.67px, 27vw, 338.85px);
    left: calc(50% - clamp(235.67px, 27vw, 338.85px) / 2 - clamp(145.66px, 16.7vw, 170.91px));
    top: 17px;
    transform: rotate(-28.83deg);
  }

  .mobile-asset-sun {
    width: clamp(342.85px, 39.3vw, 603.03px);
    height: clamp(334.69px, 38.35vw, 588.68px);
    left: calc(50% - clamp(342.85px, 39.3vw, 603.03px) / 2 + clamp(68.54px, 7.85vw, 80.42px));
    top: -188.44px;
    transform: rotate(14.67deg);
  }

  .mobile-asset-love {
    width: clamp(312.91px, 35.85vw, 548.63px);
    height: clamp(217.32px, 24.9vw, 381.03px);
    left: calc(50% - clamp(312.91px, 35.85vw, 548.63px) / 2 - clamp(172.04px, 19.7vw, 201.87px));
    bottom: 44.51px;
    transform: rotate(-27.58deg);
  }

  .mobile-asset-phone {
    width: clamp(219px, 25.1vw, 332px);
    height: clamp(357.56px, 41vw, 542px);
    left: calc(50% - clamp(219px, 25.1vw, 332px) / 2 + clamp(117px, 13.4vw, 137.28px));
    bottom: -117px;
  }

  .mobile-message-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 343px;
    height: 141px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    text-align: center;
    transform: translate(calc(-50% - 0.5px), calc(-50% + 0.5px));
  }

  .mobile-message-panel h2 {
    width: 293px;
    height: 80px;
    margin: 0;
    color: #080808;
    font-family: "SF Pro Rounded", "Nunito", "Arial Rounded MT Bold", ui-rounded, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: 0;
  }

  .mobile-message-panel p {
    width: 273px;
    height: 57px;
    margin: 0;
    color: #9c9c9c;
    font-family: "SF Pro", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 19px;
  }

}

@media (max-width: 375px) {
  .mobile-message-panel {
    transform: translate(-50%, -50%);
  }

  .mobile-asset-notes {
    width: 235.67px;
    height: 235.67px;
    left: calc(50% - 235.67px / 2 - 145.66px);
  }

  .mobile-asset-sun {
    width: 342.85px;
    height: 334.69px;
    left: calc(50% - 342.85px / 2 + 68.54px);
  }

  .mobile-asset-love {
    width: 312.91px;
    height: 217.32px;
    left: calc(50% - 312.91px / 2 - 172.04px);
    bottom: 23.68px;
  }

  .mobile-asset-phone {
    width: 219px;
    height: 357.56px;
    left: calc(50% - 219px / 2 + 117px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
