@font-face {
  font-family: "Dr";
  src: url("assets/dr-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

html.capture-mode,
html.capture-mode body {
  width: 375px;
  height: 812px;
  min-width: 375px;
  min-height: 812px;
  overflow: hidden;
  background: #fff;
}

.capture-mode .lab-bar {
  display: none;
}

.capture-mode .stage {
  display: block;
  height: 812px;
  min-height: 0;
  padding: 0;
}

.capture-mode .study-note {
  display: none;
}

.capture-mode .device-wrap {
  width: 375px;
  height: 812px;
  margin-block: 0 !important;
  transform: none !important;
}

.capture-mode .device {
  width: 375px;
  height: 812px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.capture-mode .screen {
  border-radius: 0;
}

.capture-mode .status-bar {
  height: 44px;
  padding-top: 10px;
}

.capture-mode .feed {
  height: calc(100% - 44px - 67px - 74px);
}

.capture-mode :is(.channels-view, .notifications-view, .messages-view) {
  inset: 44px 0 74px;
}

.capture-mode .thread-view {
  top: 44px;
}

:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --accent: #ff2c5b;
  --line: #e5e5e7;
  --muted: #85858a;
  --screen-width: 375px;
  --screen-height: 812px;
  --push-duration: 400ms;
  --push-ease: cubic-bezier(.32, .72, 0, 1);
  --icon-stroke: 2;
  --icon-stroke-compact: 1.8;
  --icon-stroke-emphasis: 2.2;
}

.icon-mask {
  display: inline-block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-pencil { --icon: url("assets/icons/pencil.svg?v=3"); }
.icon-user-add { --icon: url("assets/icons/user-add.svg?v=3"); }
.icon-user-heart { --icon: url("assets/icons/user-heart.svg?v=3"); }
.icon-user-block { --icon: url("assets/icons/user-block.svg?v=3"); }
.icon-flag { --icon: url("assets/icons/flag.svg?v=3"); }

* { box-sizing: border-box; }

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

body {
  background: #e9e8e5;
  color: #111;
  overflow: hidden;
}

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

.lab-bar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid #cecdca;
  background: rgba(245, 244, 241, .9);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 50;
}

.lab-bar > div:first-child { display: grid; gap: 2px; }
.lab-bar strong { font-size: 15px; }
.lab-bar span { color: #676765; font-size: 12px; }
.lab-actions { display: flex; gap: 8px; }

.lab-button {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid #1f1f1e;
  border-radius: 4px;
  background: #1f1f1e;
  color: white;
  cursor: pointer;
}

.lab-button--quiet { background: transparent; color: #1f1f1e; }

.stage {
  height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(260px, 390px);
  align-items: center;
  justify-items: center;
  gap: clamp(36px, 7vw, 110px);
  padding: 22px clamp(26px, 6vw, 90px);
}

.device-wrap { width: 399px; height: 836px; display: grid; place-items: center; }

.device {
  width: 399px;
  height: 836px;
  padding: 12px;
  border-radius: 52px;
  background: #111214;
  box-shadow: 0 28px 70px rgba(28, 27, 25, .2), 0 4px 14px rgba(28, 27, 25, .14);
}

.screen {
  width: var(--screen-width);
  height: var(--screen-height);
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  background: #f5f5f6;
  isolation: isolate;
}

.screen > .app-bar,
.screen > .feed {
  transform: translate3d(0, 0, 0);
  transition: transform var(--push-duration) var(--push-ease);
  will-change: transform;
}

.screen.is-navigation-pushed > .app-bar,
.screen.is-navigation-pushed > .feed {
  transform: translate3d(-28%, 0, 0);
}

.status-bar {
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 0;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 6;
}

.status-icons { display: flex; align-items: center; gap: 5px; color: #111; }
.status-icon { display: block; flex: 0 0 auto; }
.status-icon--cellular { width: 18px; height: 12px; fill: currentColor; }
.status-icon--wifi { width: 18px; height: 13px; }
.status-icon--wifi path { stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; }
.status-icon--wifi circle { fill: currentColor; }
.status-icon--battery { width: 27px; height: 13px; }
.battery-case { fill: none; stroke: #777; stroke-width: 1.7; }
.battery-charge { fill: currentColor; }
.battery-terminal { fill: #888; }

.app-bar {
  height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid #cacacc;
  background: #fff;
  position: relative;
  z-index: 6;
}

.avatar-button, .post-identity, .profile-action, .wordmark, .icon-button, .reply-summary, .post-media, .tab, .profile-view button, .thread-view button, .compose-view button, .compose-audience-sheet button, .bottom-sheet button, .account-drawer button, .channels-view button, .notifications-view button, .messages-view button, .message-thread button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.avatar-button { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; }
.avatar-button img, .post-avatar, .ringed-avatar img { width: 100%; height: 100%; object-fit: cover; }

.wordmark {
  position: absolute;
  left: calc(50% + 3px);
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent);
  font-family: "Dr", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.app-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { width: 28px; height: 28px; color: var(--accent); }
.icon-button svg, .profile-action svg, .tab svg, .reply-summary svg, .profile-view svg, .bottom-sheet svg, .drawer-links svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
#compose-action svg { stroke-width: 1.7; }

.feed {
  height: calc(100% - 27px - 67px - 74px);
  overflow-y: auto;
  overflow-x: hidden;
  background: #f4f4f5;
  scrollbar-width: none;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.feed::-webkit-scrollbar { display: none; }

.post { background: #fff; border-top: 8px solid #f4f4f5; }
.post:first-child { border-top-width: 7px; }

.post-author {
  min-height: 59px;
  padding: 13px 15px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-identity { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.post-avatar, .generated-avatar { flex: 0 0 auto; width: 35px; height: 35px; border-radius: 50%; object-fit: cover; }
.generated-avatar { display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; }
.generated-avatar--blue { background: #3e9db5; }
.post-identity > span, .post-author-copy { display: grid; gap: 1px; }
.post-author strong, .post-identity strong { font-size: 15px; line-height: 18px; }
.post-author small, .post-identity small { color: #8b8b8f; font-size: 14px; line-height: 17px; }
.identity-name { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.post-meta { display: inline-flex; align-items: center; gap: 3px; }
.verified-badge {
  width: 12px;
  height: 12px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.verified-badge svg { width: 8px; height: 8px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.visibility-lock { width: 11px; height: 12px; display: inline-grid; place-items: center; flex: 0 0 auto; color: var(--accent); }
.visibility-lock svg { width: 11px; height: 12px; fill: currentColor; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.verified-badge[hidden], .visibility-lock[hidden] { display: none; }
.post-author em, .profile-view em, .drawer-profile em { display: inline-block; margin-left: 3px; padding: 1px 7px 2px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; font-style: normal; vertical-align: 2px; }
.profile-action { width: 29px; height: 29px; color: var(--accent); flex: 0 0 auto; }
.relationship-action {
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: #fff;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.relationship-action:active { transform: scale(.92); }
.relationship-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.relationship-action[data-relationship="following"],
.relationship-action[data-relationship="friend"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.relationship-action[data-relationship="blocked"] { background: #fff; color: var(--accent); }

.post-copy { margin: 0; padding: 5px 15px 15px; font-size: 17px; line-height: 1.19; letter-spacing: 0; }
.post-copy-button { width: 100%; display: block; border: 0; background: #fff; text-align: left; cursor: pointer; }

.post-media { width: 100%; height: 470px; display: block; overflow: hidden; position: relative; background: #e9e8e3; }
.post-media--natural { height: auto; }
.source-photo { position: absolute; width: 120%; max-width: none; height: auto; display: block; left: -10%; top: -190px; }
.feed-photo { display: block; width: 100%; height: auto; background: #e9e8e3; }
.carousel-dots { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 7px; }
.carousel-dots[hidden] { display: none; }
.carousel-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.carousel-dots i.is-active { background: var(--accent); }

.reply-summary {
  width: 100%; min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 7px 15px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px;
}
.reply-summary > span:nth-child(2) { flex: 1; }
.reply-summary > svg { width: 18px; height: 18px; color: #999; }
.avatar-stack { display: flex; min-width: 42px; }
.avatar-stack img, .mini-avatar { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; border: 2px solid white; }
.avatar-stack img + img, .mini-avatar + .mini-avatar { margin-left: -8px; }
.mini-avatar { display: block; }
.mini-avatar--gold { background: #e1a81e; }
.mini-avatar--teal { background: #14a2ae; }

.post--secondary .post-copy { padding-top: 6px; }
.graphic-post { height: 320px; position: relative; overflow: hidden; background: #ff315f; }
.graphic-post span { position: absolute; display: block; border: 2px solid rgba(255,255,255,.92); transform: rotate(45deg); }
.graphic-post span:nth-child(1) { width: 140px; height: 140px; left: 34px; top: 31px; }
.graphic-post span:nth-child(2) { width: 200px; height: 200px; right: -72px; top: 48px; }
.graphic-post span:nth-child(3) { width: 66px; height: 66px; left: 151px; bottom: 30px; background: #fff; }
.graphic-post span:nth-child(4) { width: 96px; height: 96px; left: -27px; bottom: -16px; background: #171717; border-color: #171717; }
.graphic-post span:nth-child(5) { width: 20px; height: 20px; right: 80px; top: 28px; background: #171717; border-color: #171717; }
.feed-end { padding: 32px 0 54px; text-align: center; color: #96969a; font-size: 13px; }

.tab-bar {
  position: absolute;
  z-index: 7;
  left: 0; right: 0; bottom: 0;
  height: 74px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid #dedee0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
}
.screen.is-thread-open .tab-bar {
  border-top-color: transparent;
  background: #fff;
  backdrop-filter: none;
}
.screen.is-messages-open .status-bar,
.screen.is-messages-open .tab-bar {
  background: #fff;
  backdrop-filter: none;
  box-shadow: none;
}
.tab { height: 37px; display: grid; place-items: center; color: #111; }
#feed-filter {
  touch-action: manipulation;
  -webkit-touch-callout: none;
}
.tab svg { width: 27px; height: 27px; stroke-width: var(--icon-stroke-compact); }
#messages-tab svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke-compact); }
#messages-tab .messages-filled { display: none; }
.tab.is-active { color: var(--accent); }
.tab.is-active svg path:first-child { fill: currentColor; stroke: currentColor; }
#messages-tab.is-active svg { fill: currentColor; stroke: none; }
#messages-tab.is-active .messages-outline { display: none; }
#messages-tab.is-active .messages-filled { display: inline; }
.hash { font-size: 36px; font-weight: 300; line-height: 30px; }
.home-indicator { position: absolute; width: 111px; height: 5px; bottom: 7px; left: 50%; transform: translateX(-50%); background: #555; border-radius: 999px; }

.scrim {
  position: absolute; z-index: 19; inset: 0; background: rgba(0,0,0,.22); opacity: 0; pointer-events: none; transition: opacity 220ms ease;
}
.scrim.is-visible { opacity: 1; pointer-events: auto; }

.bottom-sheet {
  position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; padding: 28px 21px 28px; border-radius: 22px 22px 0 0; background: #fff; transform: translateY(102%); transition: transform 360ms cubic-bezier(.2,.8,.2,1); box-shadow: 0 -8px 30px rgba(0,0,0,.09);
}
.bottom-sheet.is-visible { transform: translateY(0); }
.sheet-handle { position: absolute; top: 8px; left: 50%; width: 50px; height: 5px; transform: translateX(-50%); border-radius: 5px; background: #e3e3e5; }
.bottom-sheet > button { width: 100%; min-height: 57px; display: flex; align-items: center; gap: 18px; text-align: left; font-size: 18px; }
.bottom-sheet > button svg { width: 29px; height: 29px; color: var(--accent); }
#feed-sheet > button { gap: 14px; }
#feed-sheet > button svg {
  width: 26px;
  height: 26px;
  margin-left: 5px;
  flex: 0 0 26px;
  stroke-width: 1.5;
}
.author-sheet { padding-bottom: 24px; }
.author-sheet > button { min-height: 50px; }
.author-sheet > button > .icon-mask { width: 30px; height: 30px; margin-inline: 4px; color: var(--accent); }
.author-sheet [data-author-name] { display: contents; }
.author-sheet .sheet-cancel { min-height: 48px; justify-content: center; margin-top: 10px; border-radius: 24px; background: #efeff0; }

.account-drawer {
  position: absolute; z-index: 21; inset: 0 auto 0 0; width: 290px; padding: 47px 0 20px; background: #fff; transform: translateX(-102%); transition: transform 360ms cubic-bezier(.2,.8,.2,1); box-shadow: 10px 0 40px rgba(0,0,0,.08);
}
.account-drawer.is-visible { transform: translateX(0); }
.drawer-profile { min-height: 193px; display: grid; justify-items: center; align-content: center; gap: 26px; border-bottom: 1px solid #e5e5e7; }
.ringed-avatar {
  display: block;
  padding: 6px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #fff;
}
.ringed-avatar img { display: block; border-radius: 50%; }
.ringed-avatar--drawer { width: 95px; height: 95px; }
.drawer-profile strong { font-size: 20px; }
.drawer-links { padding: 43px 33px; display: grid; gap: 24px; }
.drawer-links button { min-height: 24px; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; text-align: left; font-size: 19px; }
.drawer-links button svg {
  width: 28px;
  height: 28px;
  justify-self: center;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.channels-view {
  position: absolute;
  z-index: 6;
  inset: 27px 0 74px;
  display: grid;
  grid-template-rows: 61px minmax(0, 1fr);
  background: #f4f4f5;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.channels-view.is-visible { visibility: visible; opacity: 1; pointer-events: auto; }
.channels-header {
  display: grid;
  place-items: center;
  border-bottom: 1px solid #f0f0f1;
  background: #fff;
}
.channels-header strong { font-size: 20px; font-weight: 600; line-height: 1; }
.channels-scroll {
  min-height: 0;
  overflow-y: auto;
  padding-top: 8px;
  background: #f4f4f5;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.channels-scroll::-webkit-scrollbar { display: none; }
.channel-list { background: #fff; }
.channel-list h2 {
  height: 44px;
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1;
}
.channel-row {
  width: 100%;
  min-height: 64px;
  padding: 9px 14px 9px 15px !important;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line) !important;
  background: #fff !important;
  text-align: left;
}
.channel-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}
.channel-copy { min-width: 0; display: grid; gap: 1px; }
.channel-copy strong { overflow: hidden; font-size: 16px; line-height: 19px; white-space: nowrap; text-overflow: ellipsis; }
.channel-copy small { color: #161616; font-size: 15px; line-height: 18px; }
.channel-row > svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke-emphasis);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notifications-view {
  position: absolute;
  z-index: 6;
  inset: 27px 0 74px;
  display: grid;
  grid-template-rows: 61px 47px minmax(0, 1fr);
  background: #f4f4f5;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.notifications-view.is-visible { visibility: visible; opacity: 1; pointer-events: auto; }
.notifications-header {
  position: relative;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #f0f0f1;
  background: #fff;
}
.notifications-header strong { font-size: 20px; font-weight: 600; line-height: 1; }
.notifications-avatar { position: absolute; left: 15px; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; }
.notifications-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.notification-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  box-shadow: 0 8px 0 #f4f4f5;
}
.notification-filters button {
  position: relative;
  color: #b3b3b6;
  font-size: 16px;
  font-weight: 600;
}
.notification-filters button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: transparent;
}
.notification-filters button.is-active { color: var(--accent); }
.notification-filters button.is-active::after { background: currentColor; }
.notification-scroll {
  min-height: 0;
  overflow-y: auto;
  padding-top: 8px;
  background: #f4f4f5;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.notification-scroll::-webkit-scrollbar { display: none; }
.notification-panel { display: none; }
.notification-panel.is-active { display: block; }
.notification-group { margin: 0 0 8px; background: #fff; }
.notification-group h2 {
  height: 43px;
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1;
}
.notification-item {
  width: 100%;
  min-height: 66px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border-bottom: 1px solid var(--line) !important;
  background: #fff !important;
  text-align: left;
}
.notification-item--follow { grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; }
.notification-item > img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.notification-item p { min-width: 0; margin: 0; font-size: 15px; line-height: 1.25; }
.notification-item p strong { font-weight: 700; }
.notification-item time { float: right; margin-left: 7px; color: #b4b4b8; font-size: 14px; font-weight: 400; white-space: nowrap; }
.notification-item--follow time { float: none; margin: 0; }
.notification-item--follow time::before { content: " · "; }
.notification-item p > span { display: block; margin-top: 1px; color: #8a8a8f; font-size: 14px; line-height: 1.28; }
.notification-item--story {
  min-height: 0;
  padding: 13px 15px 14px !important;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
}
.notification-item--story > img { margin-top: 1px; }
.notification-item--story p { line-height: 1.22; }
.notification-item--story p > span { margin-top: 3px; font-size: 15px; line-height: 1.28; }
.notification-panel--structured .notification-item--story {
  padding: 13px 16px 14px !important;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
}
.notification-panel--structured .notification-item--story > img { margin-top: 1px; }
.notification-panel--structured .notification-item--story p { line-height: 1; }
.notification-panel--structured .notification-heading {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: #161616;
  font-size: 15px;
  line-height: 18px;
}
.notification-panel--structured .notification-heading > span {
  min-width: 0;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
.notification-panel--structured .notification-heading time {
  float: none;
  flex: 0 0 auto;
  margin: 0;
  font-size: 14px;
  line-height: inherit;
}
.notification-panel--structured .notification-heading time::before { content: "\00b7\00a0"; }
.notification-panel--structured .notification-excerpt {
  margin-top: 2px;
  color: #8a8a8f;
  font-size: 15px;
  line-height: 1.28;
}
.follow-button {
  height: 36px;
  min-width: 96px;
  padding: 0 12px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1.5px solid var(--accent) !important;
  border-radius: 19px !important;
  color: var(--accent);
  font-size: 14px;
  white-space: nowrap;
}
.follow-button.is-following { background: var(--accent) !important; color: #fff; }
.follow-person {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("assets/icons/user-add.svg?v=3") center / contain no-repeat;
  mask: url("assets/icons/user-add.svg?v=3") center / contain no-repeat;
}

.messages-view {
  position: absolute;
  z-index: 7;
  inset: 27px 0 74px;
  display: grid;
  grid-template-rows: 61px minmax(0, 1fr);
  overflow: visible;
  background: #f4f4f5;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.messages-view.is-visible { visibility: visible; opacity: 1; pointer-events: auto; box-shadow: none; filter: none; }
.messages-header,
.conversation-list {
  transform: translate3d(0, 0, 0);
  transition: transform var(--push-duration) var(--push-ease);
  will-change: transform;
}
.messages-view.is-thread-open > .messages-header,
.messages-view.is-thread-open > .conversation-list {
  transform: translate3d(-28%, 0, 0);
}
.messages-header {
  position: relative;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.messages-header strong { font-size: 25px; font-weight: 400; line-height: 1; }
.messages-avatar { position: absolute; left: 15px; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; }
.messages-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.new-message { position: absolute; right: 14px; width: 24px; height: 24px; color: var(--accent); }
.new-message svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.conversation-list { min-height: 0; overflow-y: auto; background: #fff; scrollbar-width: none; }
.conversation-list::-webkit-scrollbar { display: none; }
.messages-view .conversation-row {
  position: relative;
  width: 100%;
  height: 92px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  border-bottom: 1px solid var(--line) !important;
  background: #fff !important;
  text-align: left;
}
.message-avatars { position: relative; width: 52px; height: 52px; display: block; justify-self: center; }
.message-avatars img { position: absolute; width: 52px; height: 52px; top: 0; left: 0; border: 1.5px solid #fff; border-radius: 50%; object-fit: cover; }
.message-avatars--pair > img { width: 32px; height: 32px; }
.message-avatars--pair > img:first-child { top: 2px; left: 2px; z-index: 1; }
.message-avatars--pair > img:nth-child(2) { top: auto; right: 2px; bottom: 2px; left: auto; z-index: 2; }
.message-avatars--three > img { width: 28px; height: 28px; }
.message-avatars--three > img:first-child { top: 0; left: 12px; z-index: 1; }
.message-avatars--three > img:nth-child(2) { top: auto; bottom: 0; left: 1px; z-index: 2; }
.message-avatars--three > img:nth-child(3) { top: auto; right: 1px; bottom: 0; left: auto; z-index: 3; }
.message-avatars--group > img { width: 26px; height: 26px; }
.message-avatars--group > img:first-child { top: 0; left: 13px; z-index: 1; }
.message-avatars--group > img:nth-child(2) { top: 13px; left: 0; z-index: 2; }
.message-avatars--group > img:nth-child(3) { top: 13px; right: 0; left: auto; z-index: 3; }
.message-avatars--group > img:nth-child(4) { top: auto; bottom: 0; left: 13px; z-index: 4; }
.message-avatars--group-five > img { width: 25px; height: 25px; }
.message-avatars--group-five > img:first-child { top: 0; left: 1px; z-index: 1; }
.message-avatars--group-five > img:nth-child(2) { top: 0; right: 1px; left: auto; z-index: 2; }
.message-avatars--group-five > img:nth-child(3) { top: 10.5px; left: 10.5px; z-index: 5; }
.message-avatars--group-five > img:nth-child(4) { top: auto; bottom: 0; left: 1px; z-index: 3; }
.message-avatars--group-five > img:nth-child(5) { top: auto; right: 1px; bottom: 0; left: auto; z-index: 4; }
.conversation-copy { min-width: 0; display: grid; gap: 1px; }
.conversation-copy strong { padding-right: 64px; display: block; overflow: hidden; font-size: 17px; line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.conversation-copy small { display: -webkit-box; overflow: hidden; color: #9d9d9f; font-size: 17px; line-height: 20px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.conversation-row time { position: absolute; top: 18px; right: 15px; color: #3d3d40; font-size: 17px; line-height: 20px; white-space: nowrap; }

.message-thread {
  position: absolute;
  z-index: 9;
  inset: 0;
  display: grid;
  grid-template-rows: 61px minmax(0, 1fr) 52px 0;
  overflow: hidden;
  background: #f4f4f5;
  transform: translate3d(100%, 0, 0);
  transition: transform var(--push-duration) var(--push-ease), bottom 380ms var(--push-ease), grid-template-rows 380ms var(--push-ease);
  box-shadow: none;
  will-change: transform;
}
.message-thread.is-visible { transform: translate3d(0, 0, 0); box-shadow: none; }
.message-thread.is-writing { bottom: -74px; grid-template-rows: 61px minmax(0, 1fr) 52px 300px; }
.message-thread-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.message-thread-header > button:first-child { width: 28px; height: 28px; color: var(--accent); }
.message-thread-header > button:first-child svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
.message-participant-toggle { grid-column: 2; justify-self: center; min-width: 152px; height: 48px; }
.participant-strip { display: flex; align-items: center; justify-content: center; }
.participant-strip img { width: 27px; height: 27px; margin-left: -6px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
.participant-strip img:first-child { margin-left: 0; }
.participant-strip span { width: 27px; height: 27px; margin-left: -6px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #f0f0f2; color: #66666a; font-size: 11px; font-weight: 700; }
.message-participants {
  position: absolute;
  z-index: 3;
  top: 61px;
  right: 0;
  left: 0;
  padding: 4px 0 8px;
  border-bottom: 8px solid #f4f4f5;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 180ms ease, transform 220ms ease;
}
.message-thread.is-participants-open .message-participants { opacity: 1; pointer-events: auto; transform: translateY(0); }
.message-participants > button { width: 100%; height: 42px; padding: 0 16px; display: grid; grid-template-columns: 29px minmax(0, 1fr) auto; align-items: center; gap: 10px; text-align: left; }
.message-participants img { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; }
.message-participants strong { font-size: 13px; }
.message-participants small { color: #a0a0a5; font-size: 12px; }
.message-scroll { min-height: 0; overflow-y: auto; padding: 16px 13px 22px; background: #fff; scrollbar-width: none; }
.message-scroll::-webkit-scrollbar { display: none; }
.message-date { display: block; margin: 0 0 14px; color: #99999e; font-size: 11px; text-align: center; }
.message-group { margin: 0 0 20px; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: end; gap: 7px; }
.message-group > img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.message-group > div { max-width: 84%; display: grid; gap: 3px; }
.message-group p { margin: 0; padding: 9px 11px; border-radius: 7px; background: #ececef; font-size: 14px; line-height: 1.25; }
.message-group--mine { grid-template-columns: minmax(0, 1fr); justify-items: end; }
.message-group--mine > div { justify-items: end; }
.message-group--mine p { background: var(--accent); color: #fff; }
.message-composer { display: grid; grid-template-columns: 31px minmax(0, 1fr) 31px; align-items: center; gap: 7px; padding: 7px 10px; border-top: 1px solid var(--line); background: #fff; color: var(--accent); }
.message-composer > button { width: 29px; height: 29px; color: currentColor; }
.message-composer svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
.message-composer textarea { min-width: 0; width: 100%; height: 36px; padding: 8px 13px; overflow: hidden; border: 0; border-radius: 18px; outline: 0; resize: none; background: #eeeef0; color: #222; font-size: 14px; line-height: 20px; white-space: nowrap; }
.message-composer textarea::placeholder { color: #99999d; opacity: 1; }
.message-composer > button:disabled { color: #c8c8cc; }
.message-keyboard { min-height: 0; transform: translateY(100%); transition: transform 380ms var(--push-ease); }
.message-thread.is-writing .message-keyboard { transform: translateY(0); }

.profile-view {
  position: absolute; z-index: 18; inset: 0; background: #f4f4f5; transform: translate3d(100%, 0, 0); transition: transform var(--push-duration) var(--push-ease); box-shadow: none; will-change: transform;
}
.profile-view.is-visible { transform: translate3d(0, 0, 0); box-shadow: -12px 0 28px rgba(0,0,0,.14); }
.profile-view > header { height: 87px; padding: 27px 18px 0; display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; background: #fff; border-bottom: 1px solid #dedee0; }
.profile-view > header strong { text-align: center; font-size: 20px; }
.profile-view > header button { width: 27px; height: 27px; color: var(--accent); }
.profile-content { height: calc(100% - 87px); overflow-y: auto; background: #fff; scrollbar-width: none; }
.profile-content::-webkit-scrollbar { display: none; }
.ringed-avatar--profile { width: 174px; height: 174px; margin: 23px auto 12px; padding: 7px; }
.profile-view h2 { margin: 0; text-align: center; font-size: 21px; }
.profile-view h2 + p { margin: 3px 0 12px; text-align: center; color: #555; }
.profile-buttons { display: flex; justify-content: center; gap: 9px; margin-bottom: 16px; }
.profile-buttons button { min-width: 114px; height: 40px; border: 2px solid var(--accent); border-radius: 20px; color: var(--accent); }
.profile-buttons button:first-child { color: #fff; background: var(--accent); }
.premium { padding: 17px 65px; display: grid; gap: 8px; background: var(--accent); color: #fff; text-align: center; }
.premium p { margin: 0; }
.premium button { height: 34px; border-radius: 20px; background: #fff; color: var(--accent); }
.premium span { font-size: 14px; }
.profile-bio { padding: 24px 22px; font-size: 16px; line-height: 1.45; }
.profile-row { min-height: 58px; padding: 0 21px; display: flex; align-items: center; gap: 11px; border-top: 1px solid var(--line); font-size: 14px; }
.profile-row > span:nth-child(2) { flex: 1; }
.profile-row > svg { width: 18px; height: 18px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }

.thread-view {
  position: absolute; z-index: 18; top: 27px; right: 0; bottom: 74px; left: 0; display: grid; grid-template-rows: 60px minmax(0, 1fr) 62px 0; overflow: hidden; background: #fff; transform: translate3d(100%, 0, 0); transition: transform var(--push-duration) var(--push-ease), bottom 380ms var(--push-ease), grid-template-rows 380ms var(--push-ease); box-shadow: none; will-change: transform;
}
.thread-view.is-visible { transform: translate3d(0, 0, 0); box-shadow: none; }
.thread-view.is-replying { bottom: 0; grid-template-rows: 60px minmax(0, 1fr) 94px 300px; }
.thread-header { padding: 0 15px; display: grid; grid-template-columns: 30px 40px 1fr 30px; align-items: center; gap: 9px; background: #fff; }
.thread-header > button { width: 28px; height: 28px; color: var(--accent); }
.thread-header > button svg, .thread-composer svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
.thread-header > .relationship-action svg { width: 16px; height: 16px; stroke-width: 1.6; }
.thread-header > img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.thread-header > span { min-width: 0; display: grid; gap: 1px; }
.thread-header strong { font-size: 16px; line-height: 18px; }
.thread-header small { color: #88888d; font-size: 14px; line-height: 17px; }
.thread-header em { display: inline-block; margin-left: 3px; padding: 1px 7px 2px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 9px; font-style: normal; vertical-align: 2px; }
.thread-header em[hidden], .thread-root-post > p[hidden] { display: none; }
.thread-scroll { min-height: 0; overflow-y: auto; background: #fff; scrollbar-width: none; overscroll-behavior: contain; }
.thread-scroll::-webkit-scrollbar { display: none; }
.thread-root-post > p { margin: 0; padding: 22px 15px; font-size: 18px; line-height: 1.25; }
.thread-media { height: 470px; position: relative; overflow: hidden; background: #e9e8e3; }
.thread-media > img { position: absolute; width: 120%; max-width: none; height: auto; left: -10%; top: -190px; }
.thread-media.is-natural { height: auto; }
.thread-media.is-natural > img { position: static; width: 100%; max-width: 100%; height: auto; }
.liked-by { min-height: 55px; display: flex; align-items: center; gap: 9px; padding: 0 15px; border-bottom: 1px solid var(--line); font-size: 15px; }
.liked-heart { width: 25px; height: 25px; color: var(--accent); fill: currentColor; stroke: none; }
.thread-reply-count { min-height: 46px; display: flex; align-items: center; padding: 0 15px; border-bottom: 8px solid #f4f4f5; color: #77777c; font-size: 16px; }
.thread-composer { padding: 8px 12px; border-top: 1px solid var(--line); background: #fff; color: var(--accent); }
.thread-composer svg { stroke-width: 1.7; }
.thread-reply-entry { display: grid; grid-template-columns: 40px minmax(0, 1fr) repeat(3, 30px); align-items: center; gap: 8px; }
.thread-reply-entry > img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.thread-reply-entry > textarea { min-width: 0; width: 100%; height: 38px; padding: 9px 15px; overflow: hidden; border: 0; border-radius: 20px; outline: 0; resize: none; background: #eeeef0; color: #222; line-height: 20px; white-space: nowrap; }
.thread-reply-entry > textarea::placeholder { color: #77777c; opacity: 1; }
.thread-entry-action, .thread-reply-expand { width: 30px; height: 30px; }
.thread-reply-expand, .thread-reply-tools { display: none; }
.thread-reply-tools { align-items: center; justify-content: space-between; min-height: 38px; }
.thread-reply-tools > button:first-child { width: 27px; height: 27px; }
.thread-reply-tools > button:first-child svg { stroke-width: 1.6; }
.thread-reply-tools > button:last-child { min-width: 76px; height: 32px; padding: 0 13px; border-radius: 17px; background: var(--accent); color: #fff; font-size: 13px; }
.thread-reply-tools > button:last-child:disabled { background: #dedee0; cursor: default; }
.thread-view.is-replying .thread-composer { padding: 6px 10px; }
.thread-view.is-replying .thread-reply-entry { grid-template-columns: minmax(0, 1fr) 28px; gap: 5px; }
.thread-view.is-replying .thread-reply-entry > img, .thread-view.is-replying .thread-entry-action { display: none; }
.thread-view.is-replying .thread-reply-expand { display: block; width: 24px; height: 24px; }
.thread-view.is-replying .thread-reply-tools { display: flex; }
.thread-keyboard { min-height: 0; transform: translateY(100%); transition: transform 380ms var(--push-ease); }
.thread-view.is-replying .thread-keyboard { transform: translateY(0); }
.thread-reply { padding: 18px 15px 20px; border-bottom: 1px solid var(--line); }
.thread-reply > header { display: grid; grid-template-columns: 39px 1fr 31px; align-items: center; gap: 10px; }
.thread-reply > header > span:nth-child(2) { display: grid; gap: 1px; }
.thread-reply strong { font-size: 16px; line-height: 18px; }
.thread-reply small { color: #88888d; font-size: 14px; line-height: 17px; }
.thread-reply > header > button { width: 31px; height: 31px; display: grid; place-items: center; border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 17px; }
.thread-reply-action .icon-mask { width: 16px; height: 16px; }
.thread-reply-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
.thread-avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; }
.thread-avatar--grey { background: #76777a; }
.thread-avatar--amber { background: #b46f27; }
.thread-avatar--cyan { background: #169bac; }
.thread-avatar--violet { background: #764e9e; }
.thread-avatar--blue { background: #337bb5; }
.thread-reply > p { margin: 14px 0 0; font-size: 17px; line-height: 1.3; }
.reply-graphic { height: 250px; margin: 15px -15px -20px; position: relative; overflow: hidden; background: #2a7f85; }
.reply-graphic span { position: absolute; border-radius: 50%; }
.reply-graphic span:nth-child(1) { width: 260px; height: 260px; right: -32px; bottom: -90px; border: 22px solid #e6c58d; }
.reply-graphic span:nth-child(2) { width: 170px; height: 170px; right: 13px; bottom: -44px; border: 18px solid #f2ddb4; }
.reply-graphic span:nth-child(3) { width: 58px; height: 110px; left: 78px; top: 62px; border: 9px solid #d7d2a8; transform: rotate(-34deg); }
.reply-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px 12px; color: #67676b; font-size: 14px; }
.reply-meta strong { color: var(--accent); font-size: 14px; }
.reply-meta span:last-child { flex-basis: 100%; color: #222; }
.reply-likes { display: flex; align-items: center; gap: 6px; }
.reply-likes svg { width: 16px; height: 16px; color: var(--accent); fill: currentColor; stroke: none; }

.compose-view {
  position: absolute; z-index: 22; inset: 27px 0 0; display: grid; grid-template-rows: 57px minmax(210px, 1fr) 52px 300px; background: #fff; transform: translateY(103%); transition: transform 420ms cubic-bezier(.2,.8,.2,1);
}
.compose-view.is-visible { transform: translateY(0); }
.compose-header { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; padding: 0 8px; border-bottom: 1px solid var(--line); }
.compose-header > button:first-child, .compose-header > button:last-child { width: 28px; height: 28px; justify-self: center; }
.compose-header > button:first-child { color: var(--accent); }
.compose-header > button:last-child { color: #b9b9bc; }
.compose-header svg, .compose-submit svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; }
.compose-audience { justify-self: center; color: var(--accent); font-size: 16px; border-bottom: 1px solid currentColor !important; line-height: 1.25; }
.compose-audience svg { display: inline-block; width: 11px; height: 11px; margin-left: 2px; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; vertical-align: -1px; }
.compose-view textarea { width: 100%; min-height: 0; padding: 18px 15px; border: 0; border-radius: 0; outline: 0; resize: none; color: #151515; font-size: 18px; line-height: 1.35; }
.compose-view textarea::placeholder { color: #8b8b8f; opacity: 1; }
.compose-submit { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 17px; border-top: 1px solid #efeff0; }
.compose-submit > button:first-child { width: 28px; height: 28px; color: var(--accent); }
.compose-submit > button:first-child svg { stroke-width: 1.6; }
.compose-submit > button:last-child { min-width: 61px; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--accent); color: #fff; font-size: 14px; }
.compose-submit > button:last-child:disabled { background: #dedee0; color: #fff; cursor: default; }
.compose-audience-scrim {
  position: absolute;
  z-index: 24;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.21);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.compose-audience-scrim.is-visible { opacity: 1; pointer-events: auto; }
.compose-audience-sheet {
  position: absolute;
  z-index: 25;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 230px;
  padding: 18px 0 44px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #fff;
  transform: translateY(102%);
  transition: transform 340ms cubic-bezier(.2,.8,.2,1);
}
.compose-audience-sheet.is-visible { transform: translateY(0); }
.compose-audience-handle {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 44px;
  height: 5px;
  border-radius: 5px;
  background: #e2e2e4;
  transform: translateX(-50%);
}
.compose-audience-sheet h2 {
  height: 40px;
  margin: 0;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #ededee;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}
.compose-audience-sheet > button {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 15px;
  padding: 0 23px;
  color: #111;
  text-align: left;
  font-size: 16px;
}
.compose-audience-sheet > button > .icon-mask,
.compose-audience-sheet > button > svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.compose-audience-sheet > button > svg {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.compose-audience-home-indicator {
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 136px;
  height: 5px;
  border-radius: 5px;
  background: #050505;
  transform: translateX(-50%);
}
.keyboard { height: 300px; display: grid; grid-template-rows: 42px 44px 44px 44px 44px 82px; padding: 0 4px; background: #d1d5dc; color: #111; user-select: none; }
.keyboard-suggestions { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; text-align: center; color: #3f4145; font-size: 15px; }
.keyboard-suggestions span + span { border-left: 1px solid #bdc1c8; }
.keyboard-row { display: grid; align-items: center; gap: 5px; }
.keyboard-row i { height: 38px; display: grid; place-items: center; border-radius: 5px; background: #fff; box-shadow: 0 1px 0 #aeb3bb; font-size: 17px; font-style: normal; }
.keyboard-row--ten { grid-template-columns: repeat(10, 1fr); }
.keyboard-row--nine { grid-template-columns: repeat(9, 1fr); padding-inline: 17px; }
.keyboard-row--shift { grid-template-columns: 43px repeat(7, 1fr) 43px; }
.keyboard-row--shift i:first-child, .keyboard-row--shift i:last-child { background: #afb5be; }
.keyboard-row .key-icon svg { width: 21px; height: 21px; fill: none; stroke: #111; stroke-width: var(--icon-stroke-compact); stroke-linecap: round; stroke-linejoin: round; }
.keyboard-row--bottom { grid-template-columns: 90px 1fr 90px; }
.keyboard-row--bottom i:first-child, .keyboard-row--bottom i:last-child { background: #afb5be; font-size: 14px; }
.keyboard-utility { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 23px 25px; color: #555b64; font-size: 24px; }
.keyboard-utility > svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke-compact); stroke-linecap: round; stroke-linejoin: round; }
.keyboard-utility b { position: absolute; width: 136px; height: 5px; left: 50%; bottom: 8px; transform: translateX(-50%); border-radius: 5px; background: #050505; }

.toast { position: absolute; z-index: 30; left: 50%; bottom: 92px; padding: 9px 14px; border-radius: 18px; background: rgba(17,17,18,.88); color: #fff; font-size: 13px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.study-note { max-width: 370px; align-self: center; }
.study-kicker { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.study-note h1 { margin: 0 0 18px; font-size: clamp(30px, 3.2vw, 47px); line-height: 1.02; letter-spacing: 0; }
.study-note > p:not(.study-kicker) { margin: 0; color: #595956; font-size: 16px; line-height: 1.55; }
.study-note dl { margin: 31px 0 0; border-top: 1px solid #c7c6c3; }
.study-note dl div { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 0; border-bottom: 1px solid #c7c6c3; }
.study-note dt { color: #6f6f6c; }
.study-note dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

body.is-embed { background: #fff; overflow: hidden; }
body.is-embed .lab-bar, body.is-embed .study-note { display: none; }
body.is-embed .stage { display: block; height: var(--screen-height); padding: 0; }
body.is-embed .device-wrap, body.is-embed .device { width: var(--screen-width); height: var(--screen-height); }
body.is-embed .device { padding: 0; border-radius: 0; box-shadow: none; }
body.is-embed .screen { border-radius: 0; }

@media (max-width: 850px) {
  body { overflow: auto; }
  .lab-bar { height: auto; min-height: 68px; padding: 13px 18px; align-items: start; }
  .lab-bar span { display: none; }
  .stage { height: auto; min-height: calc(100vh - 68px); grid-template-columns: 1fr; padding: 24px 16px 42px; gap: 28px; overflow: hidden; }
  .study-note { order: -1; max-width: 399px; }
  .study-note h1 { font-size: 31px; }
  .study-note dl { display: none; }
}

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