@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --ink: #111715;
  --ink-2: #25302d;
  --muted: #68716e;
  --canvas: #dfddd4;
  --paper: #f4f2ea;
  --card: #fffefa;
  --line: #d5d2c8;
  --line-dark: rgba(255, 255, 255, 0.14);
  --signal: #ff5c35;
  --signal-dark: #d83f1b;
  --pine: #204b40;
  --danger: #bb3434;
  --safe-top: max(16px, env(safe-area-inset-top));
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  --shadow-small: 0 8px 24px rgba(17, 23, 21, 0.08);
  --shadow-large: 0 24px 60px rgba(17, 23, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Golos Text", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
[contenteditable="true"]:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

h1,
h2,
p {
  margin-top: 0;
}

.app-shell {
  position: relative;
  min-height: 100dvh;
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
}

.screen {
  display: none;
  min-height: 100dvh;
}

.screen.is-active {
  display: block;
  animation: screen-in 220ms ease-out both;
}

@keyframes screen-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--safe-top) 20px 8px;
  background: var(--ink);
  color: var(--paper);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px 11px 11px 3px;
  background: var(--signal);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 17px;
  font-weight: 600;
}

.brand-name {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-name small {
  color: #999f9c;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.avatar-button,
.mini-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.avatar-button {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 13px 13px 13px 4px;
  background: #252d2a;
  font-size: 13px;
}

.avatar-button i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #77c98b;
}

.channels-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 20px 32px;
  background: var(--ink);
  color: var(--paper);
}

.channels-intro h1 {
  margin: 0;
  font-size: clamp(34px, 10vw, 48px);
  font-weight: 700;
  letter-spacing: -0.065em;
}

.channels-intro span {
  color: #aeb3b1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.search-box {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -13px 16px 24px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-small);
}

.search-box svg,
.icon-button svg,
.compose-fab svg,
.attach-button svg,
.format-toolbar svg,
.danger-icon svg,
.chevron svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-box svg {
  width: 19px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.search-box input::placeholder {
  color: #8a918e;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 20px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.test-chip {
  padding: 4px 7px;
  border: 1px solid rgba(255, 92, 53, 0.38);
  border-radius: 6px;
  color: var(--signal-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.channel-list {
  margin: 0 14px;
  padding: 0 14px calc(14px + var(--safe-bottom));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.channel-card {
  display: grid;
  grid-template-columns: 48px 1fr 28px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  animation: channel-in 360ms cubic-bezier(.2, .72, .25, 1) forwards;
  animation-delay: calc(var(--index) * 35ms);
}

.channel-card:last-child {
  border-bottom: 0;
}

@keyframes channel-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.channel-card:active {
  transform: scale(0.987);
}

.mini-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px 12px 12px 4px;
  font-size: 12px;
}

.channel-card .mini-avatar {
  width: 48px;
  height: 48px;
  background: var(--pine);
  font-size: 14px;
}

.channel-card:nth-child(3n + 2) .mini-avatar {
  background: var(--signal);
  color: var(--ink);
}

.channel-card:nth-child(3n + 3) .mini-avatar {
  background: #d7c866;
  color: var(--ink);
}

.channel-card strong {
  display: block;
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card small {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.chevron {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #8c9390;
}

.chevron svg {
  width: 18px;
}

.channel-skeleton,
.loading-block {
  background: #ebe8df;
  animation: skeleton 900ms ease-in-out infinite alternate;
}

.channel-skeleton {
  height: 76px;
  border-bottom: 1px solid var(--line);
}

@keyframes skeleton {
  to {
    background: #f6f4ed;
  }
}

.topbar {
  display: flex;
  align-items: center;
  padding: var(--safe-top) 16px 12px;
}

.posts-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 242, 234, 0.95);
  backdrop-filter: blur(14px);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.icon-button:active {
  background: #e9e6dc;
}

.icon-button svg {
  width: 20px;
}

.channel-headline {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.channel-headline .mini-avatar,
.destination-card .mini-avatar,
.preview-channel-row .mini-avatar {
  background: var(--pine);
}

.channel-headline h1 {
  overflow: hidden;
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-headline p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-stream {
  min-height: calc(100dvh - 76px);
  padding: 16px 12px 110px;
  background-color: var(--canvas);
  background-image: linear-gradient(rgba(17, 23, 21, 0.025) 1px, transparent 1px);
  background-size: 100% 32px;
}

.post-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #cbc8be;
  border-radius: 18px 18px 18px 5px;
  background: var(--card);
  box-shadow: var(--shadow-small);
  animation: message-in 300ms cubic-bezier(.2, .72, .25, 1) both;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.post-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--canvas);
}

.post-media.single {
  display: block;
}

.post-media img,
.post-media video {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  background: var(--canvas);
}

.post-media .file-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  color: var(--muted);
  font-size: 12px;
}

.post-content {
  padding: 15px 15px 13px;
}

.post-text {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.52;
}

.post-text:empty::after {
  content: "Без текста";
  color: #929895;
}

.post-text a,
.preview-text a {
  color: var(--pine);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.post-meta a {
  color: var(--pine);
  font-family: "Golos Text", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.post-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.post-actions button {
  min-height: 44px;
  padding: 11px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.post-actions button:active {
  background: #efede5;
}

.post-actions button + button {
  border-left: 1px solid var(--line);
}

.post-actions .delete-action {
  color: var(--danger);
}

.compose-fab {
  position: fixed;
  z-index: 12;
  right: max(16px, calc((100vw - 720px) / 2 + 16px));
  bottom: calc(var(--safe-bottom) + 8px);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 15px 15px 15px 4px;
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(216, 63, 27, 0.34), 0 0 0 1px rgba(17, 23, 21, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.compose-fab:active {
  transform: translateY(1px);
  background: #f04f2a;
}

.compose-fab svg {
  width: 19px;
}

.empty-state {
  padding: 72px 28px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.empty-state span {
  font-size: 12px;
}

.editor-sheet {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  background: var(--paper);
  transform: translateY(102%);
  transition: transform 320ms cubic-bezier(.2, .82, .2, 1), visibility 320ms;
}

.editor-sheet.is-open {
  visibility: visible;
  transform: none;
}

.editor-header {
  display: grid;
  grid-template-columns: 74px 1fr 100px;
  align-items: center;
  padding: var(--safe-top) 14px 11px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 242, 234, 0.96);
  backdrop-filter: blur(14px);
}

.editor-header h2 {
  overflow: hidden;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-button,
.publish-button {
  min-height: 40px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.text-button {
  padding: 0;
  color: var(--muted);
  text-align: left;
}

.publish-button {
  padding: 0 10px;
  border-radius: 11px;
  background: var(--signal);
  color: var(--ink);
}

.publish-button:disabled {
  opacity: 0.45;
}

.editor-scroll {
  overflow-y: auto;
  padding: 14px 14px calc(28px + var(--safe-bottom));
}

.destination-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 4px 2px 12px;
  border-bottom: 1px solid var(--line);
}

.destination-card .mini-avatar {
  width: 40px;
  height: 40px;
}

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

.destination-card strong {
  overflow: hidden;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.destination-card small {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.format-toolbar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #e7e4da;
}

.format-toolbar button {
  flex: 0 0 38px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--card);
}

.format-toolbar button:active {
  background: #d7d3c7;
}

.format-toolbar svg {
  width: 18px;
}

.editor-box {
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  background: var(--card);
}

.rich-editor {
  min-height: 180px;
  padding: 16px;
  outline: none;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.55;
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #969c98;
  pointer-events: none;
}

.rich-editor a {
  color: var(--pine);
}

.editor-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.attach-button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Golos Text", sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.attach-button svg {
  width: 15px;
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.attachment-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
}

.attachment-preview img,
.attachment-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-preview span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 8px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  overflow-wrap: anywhere;
}

.attachment-preview button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 23, 21, 0.86);
  color: white;
}

.edit-media-note {
  margin: 9px 3px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
}

.switch-row strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.switch-row input {
  position: absolute;
  opacity: 0;
}

.switch-row i {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: #c9c6bc;
  transition: background 180ms;
}

.switch-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.13);
  transition: transform 180ms;
}

.switch-row input:checked + i {
  background: var(--pine);
}

.switch-row input:checked + i::after {
  transform: translateX(18px);
}

.live-preview {
  margin-top: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canvas);
}

.preview-label {
  margin: 0 2px 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.preview-bubble {
  overflow: hidden;
  border: 1px solid #cbc8be;
  border-radius: 17px 17px 17px 5px;
  background: var(--card);
  box-shadow: var(--shadow-small);
}

.preview-channel-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.preview-channel-row strong,
.preview-channel-row small {
  display: block;
}

.preview-channel-row strong {
  font-size: 12px;
  font-weight: 600;
}

.preview-channel-row small {
  margin-top: 2px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
}

.preview-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.preview-media img,
.preview-media video {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.preview-text {
  padding: 14px;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.5;
}

.preview-text.empty {
  color: #929895;
}

.dialog-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  align-items: end;
  visibility: hidden;
  padding: 14px 14px var(--safe-bottom);
  background: rgba(17, 23, 21, 0.64);
  opacity: 0;
  backdrop-filter: blur(6px);
  transition: opacity 180ms, visibility 180ms;
}

.dialog-backdrop.is-open {
  visibility: visible;
  opacity: 1;
}

.confirm-dialog {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 22px 18px 15px;
  border-radius: 20px;
  background: var(--paper);
  text-align: center;
  transform: translateY(22px);
  transition: transform 220ms;
}

.dialog-backdrop.is-open .confirm-dialog {
  transform: none;
}

.danger-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(187, 52, 52, 0.12);
  color: var(--danger);
}

.danger-icon svg {
  width: 22px;
}

.confirm-dialog h2 {
  margin-bottom: 7px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.confirm-dialog p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.danger-button,
.quiet-button {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  font-weight: 600;
}

.danger-button {
  background: var(--danger);
  color: white;
}

.quiet-button {
  margin-top: 6px;
  background: transparent;
  color: var(--muted);
}

.link-dialog {
  padding-top: 24px;
  text-align: left;
}

.link-dialog h2 {
  margin-bottom: 7px;
}

.link-selection {
  overflow: hidden;
  margin-bottom: 16px !important;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-input-label {
  display: block;
  margin-bottom: 12px;
}

.link-input-label span {
  display: block;
  margin: 0 2px 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.link-input-label input {
  width: 100%;
  height: 50px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
}

.link-input-label input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 92, 53, 0.13);
}

.link-submit-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
}

.link-dialog .quiet-button {
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(20px + var(--safe-bottom));
  max-width: calc(100% - 28px);
  padding: 12px 15px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-large);
  font-size: 12px;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 180ms, transform 180ms;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: var(--danger);
}

.fatal-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 34px;
  background: var(--paper);
  text-align: center;
}

.fatal-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px 16px 16px 5px;
  background: var(--signal);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 26px;
  font-weight: 600;
}

.fatal-screen h1 {
  margin-bottom: 9px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.fatal-screen p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.fatal-screen button {
  min-height: 46px;
  margin-top: 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-weight: 600;
}

.is-hidden {
  display: none !important;
}

.loading-block {
  height: 180px;
  margin-bottom: 12px;
  border-radius: 18px;
}

@media (min-width: 721px) {
  body {
    padding: 24px 0;
  }

  .app-shell {
    min-height: calc(100dvh - 48px);
    overflow: hidden;
    border: 1px solid #c8c5bb;
    border-radius: 24px;
    box-shadow: var(--shadow-large);
  }

  .screen {
    min-height: calc(100dvh - 48px);
  }

  .compose-fab {
    right: calc((100vw - 720px) / 2 + 24px);
    bottom: 42px;
  }

  .editor-sheet {
    inset: 24px max(24px, calc((100vw - 720px) / 2));
    overflow: hidden;
    border: 1px solid #c8c5bb;
    border-radius: 24px;
    box-shadow: var(--shadow-large);
  }

  .dialog-backdrop {
    align-items: center;
  }
}

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