/* dm-sans-latin-ext-wght-normal */
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(./fonts/dm-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* dm-sans-latin-wght-normal */
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(./fonts/dm-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* literata-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Literata Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(./fonts/literata-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* literata-cyrillic-wght-normal */
@font-face {
  font-family: 'Literata Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(./fonts/literata-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* literata-greek-ext-wght-normal */
@font-face {
  font-family: 'Literata Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(./fonts/literata-greek-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+1F00-1FFF;
}

/* literata-greek-wght-normal */
@font-face {
  font-family: 'Literata Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(./fonts/literata-greek-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* literata-vietnamese-wght-normal */
@font-face {
  font-family: 'Literata Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(./fonts/literata-vietnamese-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* literata-latin-ext-wght-normal */
@font-face {
  font-family: 'Literata Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(./fonts/literata-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* literata-latin-wght-normal */
@font-face {
  font-family: 'Literata Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(./fonts/literata-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;
}

html, body, #root {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  background: #15111a;
  overflow: hidden;
}

:root :focus-visible {
  outline: 2px solid #f6ad96;
  outline-offset: 3px;
}

:root [data-testid="elsewhere-reader"] {
  background-image: radial-gradient(ellipse at 43% 0%, #291b2b 0, transparent 64%);
}

:root [data-testid="elsewhere-library"] {
  background-image: radial-gradient(ellipse at 59% 0%, #23192b 0, transparent 64%);
}

:root [data-testid="elsewhere-entry"] {
  background-image: radial-gradient(ellipse at 89% 24%, #372538 0, transparent 68%);
}

:root [data-testid="elsewhere-mobile-navigation"] {
  padding-bottom: max(.375rem, env(safe-area-inset-bottom));
}

:root [data-testid="elsewhere-composer-frame"]:focus-within {
  border-color: #f6ad96 !important;
}

.elsewhere-backdrop {
  position: fixed;
  z-index: 10;
  inset: 0;
  background: rgb(11 8 14 / 74%);
  backdrop-filter: blur(3px);
}

.elsewhere-dialog, .elsewhere-menu {
  box-sizing: border-box;
  border: 1px solid var(--popup-line);
  background: var(--popup-bg);
  box-shadow: 0 20px 64px rgb(5 2 8 / 55%);
}

.elsewhere-dialog {
  position: fixed;
  z-index: 11;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow: hidden;
}

.elsewhere-dialog-wide {
  width: min(790px, calc(100vw - 32px));
}

.elsewhere-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 23px;
  border-bottom: 1px solid var(--popup-line);
}

.elsewhere-dialog-header h2 {
  margin: 0;
  font-family: var(--popup-serif);
  font-size: 22px;
  font-weight: 550;
}

.elsewhere-close, .elsewhere-turn-trigger {
  color: var(--popup-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}

.elsewhere-close {
  width: 36px;
  height: 36px;
  font-size: 25px;
}

.elsewhere-close:hover, .elsewhere-turn-trigger:hover {
  background: var(--popup-hover);
  color: var(--popup-accent);
}

.elsewhere-dialog-body {
  padding: 23px;
  overflow: auto;
}

.elsewhere-palette {
  max-width: 550px;
}

.elsewhere-palette [data-slot="command"] {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.elsewhere-query {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 51px;
  padding: 0 24px;
  border-bottom: 1px solid var(--popup-line);
  color: var(--popup-accent);
  font: 500 18px var(--popup-code);
}

.elsewhere-query input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  color: var(--popup-ink);
  background: transparent;
  font: inherit;
  font-size: 15px;
}

.elsewhere-query:focus-within {
  box-shadow: inset 0 -1px var(--popup-accent);
}

.elsewhere-query input:focus-visible {
  outline: none;
}

.elsewhere-query input::placeholder {
  color: var(--popup-muted);
}

.elsewhere-command-list {
  min-height: 0;
  max-height: min(430px, calc(100dvh - 244px));
  overflow: auto;
  padding: 8px;
}

.elsewhere-command-empty:not(:empty) {
  padding: 16px 24px;
  color: var(--popup-muted);
}

.elsewhere-command-item, .elsewhere-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  cursor: pointer;
}

.elsewhere-command-item[data-highlighted], .elsewhere-menu-item[data-highlighted] {
  background: var(--popup-hover);
  outline: 0;
}

.elsewhere-command-item[data-disabled], .elsewhere-menu-item[data-disabled] {
  opacity: 0.5;
  cursor: default;
}

.elsewhere-command-item strong, .elsewhere-menu-item strong {
  display: block;
  font-size: 13px;
  font-weight: 680;
}

.elsewhere-command-item strong {
  font-family: var(--popup-code);
}

.elsewhere-command-item small, .elsewhere-menu-item small {
  display: block;
  margin-top: 3px;
  color: var(--popup-muted);
  font-size: 12px;
}

.elsewhere-action-icon {
  width: 28px;
  height: 28px;
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid var(--popup-line);
  border-radius: 7px;
  color: var(--popup-accent);
  font-size: 15px;
}

.elsewhere-action-enter {
  margin-left: auto;
  color: var(--popup-accent);
  opacity: 0;
}

[data-highlighted] > .elsewhere-action-enter {
  opacity: 1;
}

.elsewhere-keyboard {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 19px;
  border-top: 1px solid var(--popup-line);
  color: var(--popup-muted);
  font-size: 12px;
}

.elsewhere-keyboard kbd {
  padding: 2px 4px;
  border: 1px solid var(--popup-line);
  border-radius: 4px;
  font: 500 11px var(--popup-code);
}

.elsewhere-turn-menu {
  position: relative;
}

.elsewhere-turn-context {
  border-radius: 12px;
}

.elsewhere-turn-trigger {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 34px;
  font-size: 23px;
}

.elsewhere-turn-trigger:disabled {
  opacity: 0.35;
  cursor: default;
}

.elsewhere-menu {
  z-index: 12;
  width: min(295px, var(--available-width, calc(100vw - 24px)));
  max-height: var(--available-height, 75vh);
  padding: 6px;
  border-radius: 12px;
  overflow: auto;
}

.elsewhere-menu-title {
  padding: 8px 11px 7px;
  color: var(--popup-muted);
  font-size: 11px;
  font-weight: 650;
}

.elsewhere-command-item[hidden], .elsewhere-dialog[hidden], .elsewhere-menu[hidden], .elsewhere-backdrop[hidden] {
  display: none;
}

:root[data-elsewhere-theme="paper"] {
  color-scheme: light;
}

:root[data-elsewhere-theme="paper"] :focus-visible {
  outline-color: #8f3d2d;
}

:root[data-elsewhere-theme="paper"] [data-testid="elsewhere-composer-frame"]:focus-within {
  border-color: #8f3d2d !important;
}

:root[data-elsewhere-theme="paper"] [data-testid="elsewhere-entry"] {
  background-image: radial-gradient(ellipse at 89% 24%, #f5e2d9 0, transparent 68%);
}

:root[data-elsewhere-theme="paper"] [data-testid="elsewhere-reader"],
:root[data-elsewhere-theme="paper"] [data-testid="elsewhere-library"] {
  background-image: radial-gradient(ellipse at 55% 0%, #f4ded5 0, transparent 66%);
}

:root [data-testid="elsewhere-conversation-card"] {
  animation: elsewhere-emerge 260ms cubic-bezier(.23, 1, .32, 1) both;
}

@keyframes elsewhere-emerge {
  from { opacity: .55; transform: translateY(4px); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); filter: none; }
}

:root[data-elsewhere-motion="reduced"] [data-testid="elsewhere-conversation-card"] {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
    :root [data-testid="elsewhere-conversation-card"] { animation: none; }
}

.elsewhere-star-border {
  display: inline-grid;
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  padding: 1px;
  box-sizing: border-box;
  border-radius: 50%;
  overflow: hidden;
  background-color: color-mix(in srgb, currentColor 38%, transparent);
}

.elsewhere-star-border-shine {
  position: absolute;
  width: 300%;
  height: 50%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, currentColor, transparent 10%);
}

.elsewhere-star-border-shine-top {
  top: -5px;
  left: -250%;
  animation: elsewhere-star-top 1.25s linear both;
}

.elsewhere-star-border-shine-bottom {
  right: -250%;
  bottom: -5px;
  animation: elsewhere-star-bottom 1.25s linear both;
}

.elsewhere-star-border-inner {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

@keyframes elsewhere-star-top {
  from { transform: translate(0%, 0%); opacity: 1; }
  to { transform: translate(100%, 0%); opacity: 0; }
}

@keyframes elsewhere-star-bottom {
  from { transform: translate(0%, 0%); opacity: 1; }
  to { transform: translate(-100%, 0%); opacity: 0; }
}

:root[data-elsewhere-motion="reduced"] .elsewhere-star-border-shine {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .elsewhere-star-border-shine { display: none; }
}
