:root {
  --page-bg: #040404;
  --bg: #050505;
  --panel: rgba(10, 10, 10, 0.96);
  --panel-soft: #121212;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f5f3ef;
  --muted: rgba(255, 255, 255, 0.68);
  --accent: #d7f4aa;
  --accent-soft: #d1f193;
  --heart: #ff7997;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  color: var(--text);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(215, 244, 170, 0.1), transparent 20%),
    radial-gradient(circle at top right, rgba(215, 244, 170, 0.06), transparent 18%),
    linear-gradient(180deg, #050505 0%, #020202 100%);
}

body.is-mobile-drawer-open {
  overflow: hidden;
}

body.is-booting .app-shell,
body.is-booting .mobile-bottom-nav,
body.is-booting .mobile-drawer,
body.is-booting .mobile-drawer-backdrop {
  opacity: 0;
  visibility: hidden;
}

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

button,
input,
textarea,
select {
  border: 0;
  background: none;
}

button {
  cursor: pointer;
}

textarea:focus,
input:focus,
select:focus {
  outline: none;
}

.app-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 40px;
  height: 100dvh;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
}

.app-shell.is-home-view {
  grid-template-columns: 96px minmax(0, 1fr) 300px;
}

.sidebar-left,
.timeline,
.sidebar-right {
  height: calc(100dvh - 56px);
  min-height: 0;
}

.sidebar-left,
.sidebar-right {
  position: sticky;
  top: 16px;
  align-self: start;
}

.sidebar-left {
  z-index: 90;
  padding-top: 5px;
}

.sidebar-right {
  z-index: 70;
}

.brand-mark,
.side-nav-link,
.text-link {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--text);
}

.brand-mark-button {
  padding: 0;
}

.brand-mark-image,
.about-brand-mark {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(215, 244, 170, 0.24), rgba(242, 240, 235, 0.12)),
    #141414 center / cover no-repeat;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark-fallback {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f5f3ef;
}

.side-nav {
  display: grid;
  gap: 4px;
  margin: 20px 0 0;
  justify-items: start;
}

.viewer-mode-switch {
  display: grid;
  justify-items: start;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.viewer-mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  min-height: auto;
  padding: 0 10px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.language-button.is-active {
  background: transparent;
  color: var(--text);
}

.language-button + .language-button {
  position: relative;
  margin-left: 10px;
  padding-left: 14px;
}

.language-button + .language-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-50%);
}

.viewer-mode-button.is-active {
  border-color: rgba(215, 244, 170, 0.24);
  background: rgba(215, 244, 170, 0.12);
  color: var(--accent);
}

.side-nav-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: var(--muted);
  transition: 180ms ease;
  z-index: 1;
}

.side-nav-link svg {
  width: 27px;
  height: 27px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-nav-link::after {
  content: attr(data-nav-tooltip);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(103, 103, 103, 0.94);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transition: opacity 140ms ease, transform 140ms ease;
}

.side-nav-link:hover,
.side-nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

body[data-viewer-role="client"] [data-view="settings"] {
  display: none;
}

body[data-viewer-role="client"] #composer,
body[data-viewer-role="client"] #about-page-menu {
  display: none !important;
}

.side-nav-link:hover::after,
.side-nav-link:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.sidebar-note,
.timeline-header,
.composer-card,
.tweet-card,
.about-card,
.profile-card,
.widget-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.sidebar-note {
  margin-top: 20px;
  padding: 18px;
  border-radius: 24px;
}

.sidebar-note-label,
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.sidebar-note p:last-child {
  margin-bottom: 0;
  color: rgba(5, 5, 5, 0.72);
  line-height: 1.65;
}

.timeline {
  background: var(--bg);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: auto;
  scrollbar-gutter: stable;
}

.app-view {
  display: none;
}

.app-view.is-active {
  display: block;
}

.timeline-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  background: rgba(5, 5, 5, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.timeline-header-tools {
  display: none;
  align-items: center;
  justify-content: flex-end;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.mobile-topbar,
.mobile-drawer,
.mobile-drawer-backdrop,
.mobile-bottom-nav {
  display: none;
}

.mobile-topbar {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.98);
}

.mobile-topbar-logo,
.mobile-topbar-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
}

.mobile-topbar-logo .brand-mark-image {
  width: 34px;
  height: 34px;
}

.mobile-topbar-menu svg,
.mobile-bottom-link svg,
.mobile-drawer-link svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-topbar-language {
  margin-top: 0;
  margin-left: auto;
  margin-right: 2px;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 190;
  width: min(86vw, 360px);
  height: 100dvh;
  padding: 18px 18px 28px;
  background: #070707;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 220ms ease;
}

body.is-mobile-drawer-open .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
}

.mobile-drawer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-drawer-logo {
  width: 52px;
  height: 52px;
  flex: none;
}

.mobile-drawer-copy {
  display: grid;
  gap: 4px;
}

.mobile-drawer-copy strong {
  font-size: 1rem;
  font-weight: 800;
}

.mobile-drawer-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--muted);
}

.mobile-drawer-nav {
  display: grid;
  gap: 4px;
  padding: 10px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-link {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 4px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
}

.mobile-drawer-link span {
  font-size: 1rem;
  font-weight: 700;
}

.mobile-drawer-link.is-active {
  background: rgba(255, 255, 255, 0.06);
}

.mobile-drawer-card {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.mobile-drawer-card .profile-bio {
  margin: 0 0 14px;
}

.mobile-drawer-footer {
  padding-top: 18px;
}

.mobile-admin-button {
  min-height: 36px;
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 170;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  padding: 6px 10px calc(env(safe-area-inset-bottom, 0px) + 6px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(18px);
}

.mobile-bottom-link {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.mobile-bottom-link.is-active {
  color: var(--text);
}

.timeline-tab {
  position: relative;
  width: 100%;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 700;
  transition: 180ms ease;
}

.timeline-tab.is-active {
  color: var(--text);
}

.timeline-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateX(-50%);
}

.composer-card,
.tweet-card,
.about-card {
  margin: 0;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}

.composer-card {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px 14px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: 0 0 auto;
  background:
    linear-gradient(135deg, rgba(215, 244, 170, 0.42), rgba(242, 240, 235, 0.24)),
    #141414 center / cover no-repeat;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.avatar-large {
  width: 56px;
  height: 56px;
}

.avatar-xl {
  width: 84px;
  height: 84px;
}

.avatar-fallback {
  font-size: 1.25rem;
  font-weight: 800;
}

.composer-handle,
.tweet-meta {
  margin: 0;
}

.composer-handle {
  font-size: 0.98rem;
}

.composer-handle span,
.tweet-meta,
.profile-head p,
.mini-thread span,
.profile-meta dt,
.profile-meta dd {
  color: var(--muted);
}

.tweet-composer {
  position: relative;
  display: grid;
  gap: 14px;
}

.tweet-composer textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
}

.composer-media-preview {
  display: grid;
  gap: 8px;
}

.composer-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.composer-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(215, 244, 170, 0.1);
  border: 1px solid rgba(215, 244, 170, 0.24);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.recommend-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.recommend-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.composer-media-preview.is-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.composer-media-preview.is-single {
  grid-template-columns: 1fr;
}

.composer-media-thumb,
.tweet-media-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.composer-media-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.composer-media-remove:hover {
  background: rgba(5, 5, 5, 0.92);
}

.composer-media-preview.is-single .composer-media-thumb {
  aspect-ratio: 4 / 3;
}

.composer-media-preview.is-single.is-natural .composer-media-thumb {
  aspect-ratio: auto;
  max-height: 540px;
}

.composer-media-preview.is-single.is-cropped .composer-media-thumb {
  aspect-ratio: 4 / 5;
}

.composer-media-preview.is-grid .composer-media-thumb {
  aspect-ratio: 1 / 1;
}

.composer-media-thumb img,
.composer-media-thumb video,
.tweet-media-thumb img,
.tweet-media-thumb video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.composer-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.composer-icon-button,
.editor-save,
.editor-ghost,
.tweet-menu-button,
.tweet-action {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
}

.composer-icon-button {
  position: relative;
  padding: 0;
  border-radius: 0;
  color: var(--accent);
}

.composer-icon-button.is-active {
  color: var(--text);
}

.composer-icon-button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(4px);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(103, 103, 103, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.composer-icon-button::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  width: 10px;
  height: 10px;
  background: rgba(103, 103, 103, 0.92);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
}

.composer-icon-button svg,
.tweet-menu-button svg,
.tweet-action svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: currentColor;
}

.composer-icon-button:hover,
.tweet-menu-button:hover,
.tweet-action:hover {
  opacity: 0.88;
}

.composer-icon-button:hover::after,
.composer-icon-button:hover::before,
.composer-icon-button:focus-visible::after,
.composer-icon-button:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.composer-submit {
  min-width: 112px;
  min-height: 46px;
  background: var(--accent);
  color: #050505;
  font-size: 1rem;
  font-weight: 800;
}

.composer-submit.is-disabled {
  opacity: 0.42;
  cursor: pointer;
}

.emoji-picker {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: min(100%, 640px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #f7f7f6;
  color: #101010;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 40;
}

.emoji-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 14px;
}

.emoji-search svg {
  width: 24px;
  height: 24px;
  fill: #5b6b78;
  flex: 0 0 auto;
}

.emoji-search input {
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid #2f9bff;
  background: #fff;
  color: #101010;
  font-size: 1rem;
}

.emoji-categories {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-top: 1px solid rgba(16, 16, 16, 0.08);
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
}

.emoji-category {
  display: grid;
  place-items: center;
  min-height: 54px;
  color: #a8a8a8;
  font-size: 1.8rem;
  position: relative;
}

.emoji-category.is-active {
  color: #f7b93e;
}

.emoji-category.is-active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: #1d9bf0;
}

.emoji-section-title {
  padding: 18px 20px 12px;
  font-size: 1.05rem;
  font-weight: 800;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  padding: 0 20px 22px;
  max-height: 320px;
  overflow: auto;
}

.emoji-item {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 12px;
  font-size: 1.7rem;
  transition: background 160ms ease;
}

.emoji-item:hover,
.emoji-item:focus-visible {
  background: rgba(29, 155, 240, 0.12);
}

.emoji-empty {
  grid-column: 1 / -1;
  padding: 14px 0 6px;
  color: #667685;
  font-size: 0.92rem;
}

.feed {
  padding-bottom: 20px;
}

.feed-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.feed-filter-label {
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
}

.feed-filter-clear {
  color: #b9b9b9;
  font-size: 0.92rem;
  font-weight: 700;
}

.feed-filter-clear:hover,
.feed-filter-clear:focus-visible {
  color: #f5f5f5;
}

.feed-filter-empty {
  margin: 18px 20px 0;
}

.feed.is-gallery {
  padding: 10px 10px 24px;
}

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

.gallery-card {
  min-width: 0;
}

.gallery-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #101010;
}

.gallery-card-media img,
.gallery-card-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-card-media.is-text {
  background:
    radial-gradient(circle at top left, rgba(215, 244, 170, 0.14), transparent 32%),
    linear-gradient(160deg, #253247 0%, #12151d 100%);
}

.gallery-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 22px 18px;
  color: #f5f3ef;
  text-align: left;
}

.gallery-card-copy p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-quote {
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
}

.gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.74);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.tweet-card {
  padding: 16px 20px 14px;
  transition:
    background 220ms ease,
    border-color 220ms ease;
}

.tweet-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-strong);
}

.tweet-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tweet-head-copy {
  min-width: 0;
  flex: 1;
}

.tweet-head-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tweet-menu-wrap {
  position: relative;
}

.tweet-head-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.tweet-privacy {
  font-size: 0.78rem;
  color: var(--accent);
}

.tweet-menu-button {
  padding: 0;
  color: var(--muted);
}

.tweet-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  z-index: 20;
}

.tweet-card.is-menu-open .tweet-menu {
  display: grid;
  gap: 2px;
}

.tweet-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text);
  text-align: left;
}

.tweet-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

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

.tweet-meta {
  display: flex;
  gap: 8px;
  font-size: 0.92rem;
}

.tweet-body {
  padding-left: 60px;
}

.tweet-body p,
.about-card p,
.profile-bio,
.mini-thread p,
.availability p {
  color: var(--text);
  line-height: 1.72;
}

.tweet-body-text p {
  margin: 8px 0 0;
  font-size: 0.99rem;
  white-space: pre-wrap;
}

.tweet-body-copy-wrap {
  display: grid;
  justify-items: start;
}

.tweet-body-copy.is-collapsed {
  max-height: calc(1.72em * 8);
  overflow: hidden;
}

.tweet-expand-button {
  margin-top: 2px;
  color: #1d9bf0;
  font-size: 0.95rem;
  font-weight: 700;
}

.tweet-expand-button:hover,
.tweet-expand-button:focus-visible {
  text-decoration: underline;
}

.tweet-inline-editor {
  display: none;
  margin-top: 8px;
  padding-top: 6px;
}

.tweet-card.is-editing .tweet-body-copy-wrap,
.tweet-card.is-editing .tweet-body-copy,
.tweet-card.is-editing .tweet-media-gallery {
  display: none;
}

.tweet-card.is-editing .tweet-inline-editor {
  display: block;
}

.tweet-inline-editor textarea {
  width: 100%;
  min-height: 120px;
  background: transparent;
  color: var(--text);
  padding: 8px 0 0;
  resize: vertical;
  font: inherit;
  line-height: 1.72;
}

.tweet-inline-toolbar {
  margin-top: 12px;
}

.tweet-inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.tweet-inline-save {
  min-width: 96px;
  min-height: 42px;
  font-size: 0.96rem;
}

.tweet-media-gallery {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  width: min(100%, 540px);
  overflow: hidden;
  border-radius: 18px;
}

.tweet-media-gallery.media-count-1 {
  grid-template-columns: 1fr;
}

.tweet-media-gallery.media-count-1 .tweet-media-thumb {
  aspect-ratio: 4 / 3;
}

.tweet-media-gallery.media-count-1.media-layout-natural .tweet-media-thumb {
  aspect-ratio: auto;
  max-height: 560px;
}

.tweet-media-gallery.media-count-1.media-layout-natural .tweet-media-thumb img,
.tweet-media-gallery.media-count-1.media-layout-natural .tweet-media-thumb video,
.composer-media-preview.is-single.is-natural .composer-media-thumb img,
.composer-media-preview.is-single.is-natural .composer-media-thumb video {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.02);
}

.tweet-media-gallery.media-count-1.media-layout-cropped .tweet-media-thumb {
  aspect-ratio: 4 / 5;
}

.tweet-media-gallery.media-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tweet-media-gallery.media-count-2 .tweet-media-thumb {
  aspect-ratio: 1 / 1;
}

.tweet-media-gallery.media-count-3 {
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.tweet-media-gallery.media-count-3 .tweet-media-thumb:nth-child(1) {
  grid-row: 1 / span 2;
  aspect-ratio: 4 / 5;
}

.tweet-media-gallery.media-count-3 .tweet-media-thumb:nth-child(2),
.tweet-media-gallery.media-count-3 .tweet-media-thumb:nth-child(3) {
  aspect-ratio: 1 / 1;
}

.tweet-media-gallery.media-count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tweet-media-gallery.media-count-4 .tweet-media-thumb {
  aspect-ratio: 1 / 1;
}

.tweet-media-thumb {
  padding: 0;
  border-radius: 0;
}

.tweet-media-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.hash-tag {
  color: var(--accent);
  font-weight: 600;
}

.tweet-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding-left: 60px;
  margin-top: 10px;
  color: var(--muted);
}

.tweet-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: inherit;
}

.tweet-action.is-liked {
  color: var(--heart);
}

.tweet-reply-box {
  display: none;
  padding-left: 60px;
  margin-top: 12px;
}

.tweet-card.is-replying .tweet-reply-box {
  display: block;
}

.tweet-reply-box textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  color: var(--text);
  padding: 12px 14px;
  resize: vertical;
}

.tweet-reply-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.tweet-reply-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.tweet-reply-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.tweet-reply-item strong {
  display: block;
  font-size: 0.92rem;
}

.tweet-reply-item p {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}

.tweet-reply-item time {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.editor-ghost {
  border: 1px solid var(--line);
  color: var(--muted);
}

.editor-save {
  background: var(--accent);
  color: #050505;
  font-weight: 700;
}

.about-card {
  padding: 22px 20px;
}

.about-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.about-brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.about-brand-mark-large {
  width: 72px;
  height: 72px;
}

.about-brand strong {
  display: block;
  font-size: 0.98rem;
}

.about-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.inline-brand-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
}

.inline-brand-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.inline-brand-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.detail-view {
  padding: 28px 24px 32px;
}

.view-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.view-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.about-page-menu {
  position: relative;
}

.about-page-menu.is-open .tweet-menu {
  display: grid;
  gap: 2px;
}

.view-header p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-card,
.notice-card,
.setting-card,
.result-card,
.message-list,
.message-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
}

.detail-card {
  margin-top: 20px;
  padding: 22px;
}

.home-services-card,
.home-about-stream {
  margin-top: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  background: var(--panel);
}

.home-about-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-about-head h2 {
  margin: 6px 0 0;
  font-size: 1.2rem;
}

.about-page-card {
  display: grid;
  gap: 22px;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.about-page-topbar {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 12px;
}

.detail-copy {
  margin: 20px 0 0;
  color: var(--text);
  line-height: 1.8;
}

.about-page-display {
  display: grid;
  gap: 18px;
}

.freeform-stream {
  display: grid;
  gap: 16px;
}

.freeform-block {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.freeform-block--text {
  padding: 18px 18px 20px;
}

.freeform-block--text p {
  margin: 0;
  color: var(--text);
  line-height: 1.9;
  white-space: pre-wrap;
}

.freeform-block--image img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.about-services-board {
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.about-services-head {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: end;
  padding: 12px 0 44px;
}

.about-services-head-left {
  display: grid;
  gap: 22px;
}

.about-services-head-right {
  display: flex;
  align-items: flex-end;
}

.about-services-head-right p {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.35;
  white-space: pre-wrap;
  text-align: left;
}

.about-services-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-services-head h3 {
  margin: 0;
  max-width: 520px;
  justify-self: start;
  text-align: left;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.about-services-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.about-service-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.about-service-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 44px;
  gap: 18px;
  align-items: center;
  padding: 24px 0;
  text-align: left;
}

.about-service-index {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.about-service-title {
  font-size: clamp(1.6rem, 2.2vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.about-service-arrow {
  justify-self: end;
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 180ms ease;
}

.about-service-item.is-open .about-service-arrow {
  transform: rotate(45deg);
}

.about-service-body {
  display: grid;
  grid-template-columns: 72px minmax(0, 220px) minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 28px;
}

.about-service-body::before {
  content: "";
  display: block;
}

.about-service-media {
  grid-column: 2;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: #111 center / contain no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.about-service-body p {
  grid-column: 3;
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-wrap;
}

.about-services-closing {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 420px);
  gap: 36px;
  padding: 28px 0 0;
}

.about-services-closing p {
  grid-column: 2;
  max-width: 420px;
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.about-service-cta {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 6px;
  padding: 0 20px;
  border: 1px solid rgba(215, 244, 170, 0.5);
  background: var(--accent);
  color: #050505;
  font-weight: 800;
  border-radius: 999px;
}

.about-section-block {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.about-section-block h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
}

.about-section-block p {
  margin: 0;
  color: var(--text);
  line-height: 1.9;
}

.about-section-block p + p {
  margin-top: 12px;
}

.about-bullet-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.about-bullet-list li {
  position: relative;
  padding-left: 16px;
  line-height: 1.8;
}

.about-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.about-editor {
  display: grid;
  gap: 14px;
}

.about-editor-note {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.about-editor-note strong {
  display: block;
  margin-bottom: 6px;
}

.about-editor-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-editor-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.about-upload-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.about-upload-button:hover {
  background: rgba(255, 255, 255, 0.04);
}

.about-editor label {
  display: grid;
  gap: 8px;
}

.about-editor span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.about-editor input,
.about-editor select,
.about-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.about-editor textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.7;
}

.about-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.brand-dialog {
  width: min(100%, 520px);
  min-height: auto;
}

.brand-modal-head-spacer {
  display: block;
  width: 44px;
  height: 44px;
}

.brand-modal-body {
  display: grid;
  justify-content: center;
  align-content: start;
  gap: 10px;
  padding: 12px 0 8px;
  justify-items: center;
  text-align: center;
}

.brand-modal-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 320px;
}

.brand-modal-preview {
  display: grid;
  justify-items: center;
  margin: 0 auto;
}

.brand-modal-preview .brand-mark-image {
  width: 96px;
  height: 96px;
}

.brand-modal-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #050505;
  font-weight: 800;
  margin-top: 0;
}

.detail-grid,
.search-results {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-chip-card,
.result-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.detail-chip-card span,
.result-card span,
.notice-card span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-chip-card strong,
.result-card strong,
.notice-card strong,
.setting-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
}

.detail-chip-card strong {
  line-height: 1.6;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.search-shell svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-shell input {
  width: 100%;
  color: var(--text);
}

.search-keyword-wrap {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.search-keyword-head strong {
  display: block;
  font-size: 1rem;
}

.search-keyword-head span,
.settings-editor-head p {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.search-keyword-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(215, 244, 170, 0.18);
  background: rgba(215, 244, 170, 0.08);
  color: var(--accent);
  font-weight: 700;
}

.search-keyword-chip.is-active,
.search-keyword-chip:hover {
  background: rgba(215, 244, 170, 0.14);
  border-color: rgba(215, 244, 170, 0.3);
}

.search-results {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.search-result-card,
.search-result-empty {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.search-result-type {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.search-result-card strong,
.search-result-empty strong {
  display: block;
  font-size: 1.02rem;
}

.search-result-card p,
.search-result-empty p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

.search-result-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 16px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(215, 244, 170, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.result-card p,
.notice-card p,
.setting-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.notice-card,
.setting-card {
  padding: 20px;
}

.notice-card time {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.notice-empty {
  text-align: center;
}

.message-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: calc(100vh - 120px);
  margin: -28px -24px -32px;
}

.message-sidebar,
.message-panel {
  min-height: calc(100vh - 120px);
}

.message-sidebar {
  border-right: 1px solid var(--line);
  padding: 18px 16px 24px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.message-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.message-title-row h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
}

.message-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.message-filter,
.message-icon-action,
.message-primary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.message-filter {
  min-height: 44px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
}

.message-filter[aria-pressed="true"] {
  border-color: rgba(215, 244, 170, 0.28);
  background: rgba(215, 244, 170, 0.1);
  color: var(--accent);
}

.message-icon-action {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.message-icon-action svg,
.message-search svg,
.message-empty-list svg,
.message-empty-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.message-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin-top: 22px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.message-search input {
  width: 100%;
  color: var(--text);
}

.message-list-panel {
  min-height: 0;
  display: grid;
}

.message-list {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 18px;
  overflow: auto;
}

.message-list-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.message-list-item.is-active {
  border-color: rgba(215, 244, 170, 0.26);
  background: rgba(215, 244, 170, 0.08);
}

.message-list-item.is-unread strong::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.message-list-item strong {
  font-size: 0.98rem;
}

.message-list-item p,
.message-list-item time {
  margin: 0;
  color: var(--muted);
}

.message-list-item p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.5;
}

.message-empty-list {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}

.message-empty-list svg {
  width: 72px;
  height: 72px;
}

.message-empty-list strong {
  color: var(--text);
  font-size: 1rem;
}

.message-empty-list p {
  margin: 0;
}

.message-panel {
  display: grid;
  min-height: 0;
  padding: 24px;
}

.message-empty-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
  place-self: center;
}

.message-empty-icon {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.message-empty-icon svg {
  width: 58px;
  height: 58px;
}

.message-empty-hero h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

.message-empty-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.message-primary {
  min-height: 46px;
  padding: 0 22px;
  background: #f5f3ef;
  color: #050505;
  font-weight: 800;
}

.share-dialog {
  width: min(100%, 620px);
  min-height: auto;
}

.share-modal-body {
  display: grid;
  gap: 18px;
  padding: 8px 30px 30px;
}

.share-modal-copy {
  margin: 0;
  color: #536471;
  line-height: 1.7;
}

.share-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.share-link-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15, 20, 25, 0.12);
  border-radius: 14px;
  background: #f7f7f7;
  color: #0f1419;
  padding: 0 14px;
}

.share-copy-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
}

.share-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.share-channel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(15, 20, 25, 0.12);
  border-radius: 16px;
  background: #fff;
  color: #0f1419;
  font-weight: 700;
  text-decoration: none;
}

.share-channel-button:hover {
  background: #f7f7f7;
}

.schedule-dialog.inquiry-dialog {
  width: min(100%, 620px);
  min-height: auto;
}

.inquiry-modal-body {
  display: grid;
  gap: 14px;
  padding: 6px 30px 30px;
}

.inquiry-modal-copy {
  margin: 0;
  color: #536471;
  line-height: 1.7;
}

.inquiry-field {
  display: grid;
  gap: 8px;
}

.inquiry-field span {
  color: #536471;
  font-size: 0.92rem;
  font-weight: 700;
}

.inquiry-field input,
.inquiry-field textarea {
  width: 100%;
  border: 1px solid rgba(15, 20, 25, 0.12);
  border-radius: 16px;
  background: #f7f7f7;
  color: #0f1419;
  padding: 12px 14px;
  font: inherit;
}

.inquiry-field textarea {
  min-height: 180px;
  resize: vertical;
}

.inquiry-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.schedule-dialog.admin-dialog {
  width: min(100%, 460px);
  min-height: auto;
}

.admin-modal-body {
  display: grid;
  gap: 14px;
  padding: 6px 30px 30px;
}

.admin-modal-copy {
  margin: 0;
  color: #536471;
  line-height: 1.7;
}

.admin-modal-field {
  display: grid;
  gap: 8px;
}

.admin-modal-field span {
  color: #536471;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-modal-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15, 20, 25, 0.12);
  border-radius: 14px;
  background: #f7f7f7;
  color: #0f1419;
  padding: 0 14px;
}

.admin-modal-error {
  margin: 0;
  color: #d64b4b;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-auth-submit {
  min-height: 48px;
  border-radius: 999px;
}

.settings-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: calc(100vh - 120px);
  margin: -28px -24px -32px;
}

.settings-sidebar {
  border-right: 1px solid var(--line);
  padding: 18px 0 24px;
}

.settings-sidebar-head {
  padding: 0 18px 18px;
}

.settings-sidebar-head h1 {
  margin: 0 0 18px;
  font-size: 1.9rem;
  font-weight: 800;
}

.settings-search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.settings-search-shell svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-search-shell input {
  width: 100%;
  color: var(--text);
}

.settings-nav {
  display: grid;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 20px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
}

.settings-nav-item.is-active {
  border-left-color: #3c96ff;
  background: rgba(255, 255, 255, 0.04);
}

.settings-nav-item::after {
  content: "›";
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
}

.settings-content {
  padding: 22px 28px 32px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.settings-section {
  display: grid;
  gap: 16px;
}

.settings-section:not(.is-active) {
  display: none;
}

.settings-section h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
}

.settings-section > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.settings-option-list {
  display: grid;
  gap: 8px;
}

.settings-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.message-thread {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}

.message-thread-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.message-thread-head strong {
  display: block;
  font-size: 1.2rem;
}

.message-thread-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.message-thread-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.message-thread-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.message-thread-badge.is-private {
  color: var(--accent);
  background: rgba(215, 244, 170, 0.1);
}

.message-thread-select {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.message-thread-body {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding-right: 6px;
}

.message-bubble {
  display: grid;
  gap: 6px;
  max-width: min(540px, 80%);
  padding: 14px 16px;
  border-radius: 20px;
}

.message-bubble p,
.message-bubble time {
  margin: 0;
}

.message-bubble p {
  line-height: 1.7;
  white-space: pre-wrap;
}

.message-bubble time {
  color: var(--muted);
  font-size: 0.78rem;
}

.message-bubble--them {
  justify-self: start;
  background: rgba(255, 255, 255, 0.05);
}

.message-bubble--me {
  justify-self: end;
  background: rgba(215, 244, 170, 0.12);
  border: 1px solid rgba(215, 244, 170, 0.22);
}

.message-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.message-compose-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.message-compose-status.is-success {
  color: var(--accent);
}

.message-compose-status.is-error {
  color: #ff8e8e;
}

.message-compose textarea {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 14px 16px;
  resize: vertical;
}

.setting-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.setting-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(215, 244, 170, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.settings-editor-card {
  margin-top: 14px;
}

.settings-editor-head strong {
  font-size: 1rem;
}

.settings-search-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.settings-search-form textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  line-height: 1.7;
  resize: vertical;
}

.settings-form-note {
  margin: -4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.settings-form-status {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
}

.about-editor-actions .settings-form-status {
  margin-right: auto;
}

.settings-sales-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.settings-sales-mode {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.settings-sales-mode p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.settings-sales-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.settings-sales-item strong {
  font-size: 0.98rem;
}

.settings-sales-item label {
  display: grid;
  gap: 8px;
}

.settings-sales-item input,
.settings-sales-item textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  line-height: 1.7;
}

.settings-sales-item textarea {
  min-height: 92px;
  resize: vertical;
}

.settings-sales-toggle {
  display: inline-grid !important;
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  gap: 10px !important;
  color: var(--muted);
}

.settings-sales-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
}

.about-card h2,
.profile-head h2,
.widget-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.about-card p:last-child,
.profile-bio {
  color: var(--muted);
}

.sidebar-right {
  display: grid;
  gap: 18px;
  align-content: start;
}

.sidebar-top-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 74px;
  padding: 0 8px 0 0;
}

.desktop-language-switch {
  margin-top: 0;
  align-self: center;
}

.sidebar-right[hidden] {
  display: none !important;
}

.profile-card,
.widget-card {
  border-radius: 28px;
  padding: 20px;
}

.request-card {
  background: var(--panel);
  border-color: var(--line);
}

.request-card h3,
.request-card .profile-bio {
  color: var(--text);
}

.request-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #050505;
  font-weight: 800;
}

.request-mail {
  display: inline-flex;
  margin-top: 14px;
}

.sales-card {
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.98), rgba(8, 8, 8, 0.98));
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.sales-card h3,
.sales-card strong,
.sales-card p,
.sales-card span {
  color: var(--text);
}

.sales-item {
  display: grid;
  gap: 14px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.sales-item + .sales-item {
  margin-top: 14px;
}

.sales-item-copy {
  display: grid;
  gap: 8px;
}

.sales-item-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.sales-item-state {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.sales-item-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #050505;
  font-size: 0.9rem;
  font-weight: 700;
}

.sales-coming-soon {
  display: grid;
  gap: 8px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.sales-coming-soon p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tweet-card.is-highlighted {
  outline: 1px solid rgba(215, 244, 170, 0.42);
  box-shadow: 0 0 0 1px rgba(215, 244, 170, 0.12), 0 0 0 12px rgba(215, 244, 170, 0.03);
}

.profile-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.profile-meta {
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.profile-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-grid span,
.stack-grid .search-keyword-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.stack-grid .search-keyword-chip {
  font-size: 0.88rem;
  cursor: pointer;
}

.widget-card h3 {
  margin-bottom: 14px;
}

.mini-thread + .mini-thread {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mini-thread strong {
  display: block;
  margin-bottom: 6px;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.82);
  padding: 24px;
}

.media-lightbox-content {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  position: relative;
  overflow: auto;
  overscroll-behavior: contain;
}

.media-lightbox-content img,
.media-lightbox-content video {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 0;
}

.media-lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: min(92vw, 1200px);
  min-height: min(70vh, 88vh);
}

.media-lightbox-image {
  cursor: zoom-in;
}

.media-lightbox-content.is-zoomed {
  cursor: grab;
}

.media-lightbox-content.is-zoomed .media-lightbox-image {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  cursor: zoom-out;
}

.media-lightbox-toolbar {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.media-lightbox-tool {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.media-lightbox-tool[hidden] {
  display: none;
}

.media-lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
}

.media-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.media-lightbox-nav.is-prev {
  left: 22px;
}

.media-lightbox-nav.is-next {
  right: 22px;
}

.media-lightbox-count {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.schedule-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.42);
}

.schedule-dialog {
  width: min(100%, 1200px);
  border-radius: 36px;
  background: #fff;
  color: #0f1419;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.24);
}

.schedule-dialog.brand-dialog {
  width: min(100%, 520px);
  min-height: auto;
}

.schedule-dialog-head {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 30px 18px;
}

.schedule-dialog-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.schedule-close,
.schedule-confirm {
  min-height: 44px;
  min-width: 44px;
}

.schedule-close {
  font-size: 2rem;
}

.schedule-confirm {
  padding: 0 22px;
  border-radius: 999px;
  background: #0f1419;
  color: #fff;
  font-weight: 800;
}

.schedule-summary {
  margin: 0;
  padding: 0 30px 20px;
  color: #536471;
  font-size: 0.98rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 0 30px 28px;
}

.schedule-grid label {
  display: grid;
  gap: 10px;
  color: #536471;
  font-size: 0.95rem;
  font-weight: 700;
}

.schedule-grid select {
  width: 100%;
  min-height: 76px;
  padding: 0 18px;
  border: 1px solid #d6dee6;
  border-radius: 16px;
  background: #fff;
  color: #0f1419;
  font-size: 1.05rem;
}

.schedule-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 22px 30px 28px;
  border-top: 1px solid rgba(15, 20, 25, 0.08);
  color: #536471;
}

.schedule-footer strong {
  color: #0f1419;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .app-shell.is-home-view {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .sidebar-right {
    grid-column: 1 / -1;
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar-note p,
  .sidebar-note strong {
    display: none;
  }

  .sidebar-note {
    padding: 12px;
  }
}

@media (max-width: 860px) {
  body {
    height: auto;
    overflow: auto;
    overscroll-behavior: auto;
  }

  .app-shell {
    width: min(100%, calc(100% - 16px));
    height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 94px;
  }

  .sidebar-left,
  .timeline,
  .sidebar-right {
    min-height: auto;
    position: static;
  }

  .sidebar-left {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 6px 4px 0;
  }

  .side-nav {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 140;
    width: min(calc(100vw - 16px), 520px);
    grid-column: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 8px;
    border-top: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(5, 5, 5, 0.94);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    justify-items: stretch;
    gap: 8px;
  }

  .side-nav-link {
    display: inline-grid;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 14px;
  }

  .side-nav-link::after {
    display: none;
  }

  .sidebar-note strong,
  .sidebar-note p {
    display: block;
  }

   .brand-mark {
    width: 56px;
    height: 56px;
  }

  .viewer-mode-switch {
    grid-column: 2;
    align-self: center;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    justify-items: end;
    gap: 8px;
  }

  .mobile-language-switch {
    display: inline-flex;
    margin-top: 0;
  }

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

  .timeline-header-tools {
    display: flex;
    padding: 0 10px;
  }

  .timeline {
    border: 0;
    border-radius: 0;
  }

  .detail-view {
    padding: 20px 14px 24px;
  }

  .detail-card {
    margin-top: 16px;
    padding: 18px 16px;
    border-radius: 18px;
  }

  .view-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .about-services-head h3 {
    justify-self: start;
    text-align: left;
  }

  .about-services-head {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 8px 0 24px;
  }

  .about-services-head-left {
    gap: 14px;
  }

  .about-services-head-right {
    align-items: flex-start;
  }

  .about-services-head-right p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .about-service-toggle {
    grid-template-columns: 54px minmax(0, 1fr) 32px;
    gap: 12px;
    padding: 20px 0;
  }

  .about-service-body {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 0 22px;
  }

  .about-service-body::before {
    display: none;
  }

  .about-service-media,
  .about-service-body p,
  .about-service-cta {
    grid-column: 1;
  }

  .about-service-media {
    max-width: 240px;
  }

  .about-service-body p {
    max-width: none;
    line-height: 1.75;
  }

  .timeline-header {
    position: static;
  }

  .timeline-tab {
    min-height: 64px;
    font-size: 1rem;
  }

  .composer-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px;
  }

  .tweet-composer textarea {
    min-height: 84px;
    font-size: 0.98rem;
  }

  .composer-toolbar {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  .composer-submit {
    min-width: 120px;
  }

  .composer-icons {
    flex-wrap: wrap;
    gap: 10px;
  }

  .emoji-picker {
    width: 100%;
  }

  .emoji-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .tweet-body,
  .tweet-actions,
  .tweet-reply-box {
    padding-left: 0;
  }

  .sidebar-right {
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
  }

  .sidebar-top-tools {
    display: none;
  }

  .profile-card,
  .widget-card {
    border: 0;
    border-radius: 0;
    padding: 18px 16px;
    background: transparent;
  }

  .widget-card + .widget-card,
  .profile-card + .widget-card {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid,
  .message-layout {
    grid-template-columns: 1fr;
  }

  .message-layout {
    min-height: auto;
    margin: 0;
  }

  .message-sidebar,
  .message-panel {
    min-height: auto;
  }

  .message-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .message-panel {
    padding-top: 8px;
  }

  .message-compose {
    grid-template-columns: 1fr;
  }

  .message-empty-icon {
    width: 96px;
    height: 96px;
  }

  .message-empty-icon svg {
    width: 44px;
    height: 44px;
  }

  .settings-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    margin: 0;
  }

  .settings-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .setting-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-content {
    padding: 18px 0 0;
  }

  .settings-sidebar-head {
    padding: 0 0 16px;
  }

  .settings-nav-item {
    min-height: 64px;
    padding: 0 14px;
    font-size: 1rem;
  }

  .search-shell,
  .settings-search-shell,
  .message-search {
    min-height: 52px;
    padding: 0 14px;
  }

  .about-services-closing {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 20px;
  }

  .about-services-closing p {
    grid-column: 1;
    max-width: none;
    font-size: 1rem;
    line-height: 1.5;
  }

  .about-service-title {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }

  .about-editor-note,
  .about-editor-block {
    padding: 14px;
    border-radius: 16px;
  }

  .share-modal-body,
  .inquiry-modal-body,
  .admin-modal-body {
    padding: 8px 18px 20px;
  }

  .share-link-row {
    grid-template-columns: 1fr;
  }

  .inquiry-actions,
  .about-editor-actions {
    flex-direction: column-reverse;
  }

  .inquiry-actions .editor-save,
  .inquiry-actions .editor-ghost,
  .about-editor-actions .editor-save,
  .about-editor-actions .editor-ghost {
    width: 100%;
  }

  .schedule-dialog,
  .share-dialog,
  .schedule-dialog.inquiry-dialog,
  .schedule-dialog.admin-dialog,
  .schedule-dialog.brand-dialog {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    border-radius: 26px;
    overflow: auto;
  }

  .schedule-dialog-head {
    padding: 18px 18px 14px;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100%, calc(100% - 12px));
    gap: 12px;
    padding-top: 12px;
  }

  .sidebar-left {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding-inline: 2px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .viewer-mode-switch {
    grid-column: 2;
    justify-items: end;
  }

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

  .timeline-header-tools {
    padding: 0 8px;
  }

  .viewer-mode-button,
  .language-button {
    min-height: auto;
    font-size: 0.84rem;
  }

  .timeline-tab {
    min-height: 56px;
    font-size: 0.94rem;
  }

  .side-nav {
    width: min(calc(100vw - 12px), 420px);
    bottom: 8px;
    padding: 7px;
  }

  .side-nav-link {
    height: 46px;
    border-radius: 12px;
  }

  .mobile-language-switch .language-button {
    padding: 0 8px;
  }

  .mobile-language-switch .language-button + .language-button {
    margin-left: 8px;
    padding-left: 12px;
  }

  .mobile-language-switch .language-button + .language-button::before {
    height: 14px;
  }

  .detail-view {
    padding: 18px 10px 20px;
  }

  .detail-card {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .about-services-head h3 {
    max-width: 280px;
    font-size: clamp(2.2rem, 15vw, 4rem);
  }

  .about-service-toggle {
    grid-template-columns: 42px minmax(0, 1fr) 28px;
    gap: 10px;
    padding: 18px 0;
  }

  .about-service-index {
    font-size: 0.98rem;
  }

  .about-service-arrow {
    font-size: 1.5rem;
  }

  .about-service-media {
    max-width: none;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
  }

  .composer-card {
    grid-template-columns: 1fr;
  }

  .composer-card .avatar {
    display: none;
  }

  .tweet-composer textarea {
    min-height: 76px;
    font-size: 0.94rem;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .emoji-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .share-channel-grid {
    grid-template-columns: 1fr;
  }

  .share-modal-body,
  .inquiry-modal-body,
  .admin-modal-body {
    padding: 4px 14px 18px;
  }

  .brand-modal-body {
    gap: 8px;
    padding: 8px 0 4px;
  }

  .settings-sidebar-head h1,
  .view-header h1 {
    font-size: 1.6rem;
  }

  .settings-content {
    gap: 14px;
  }

  .about-services-head {
    padding-bottom: 20px;
  }

  .about-services-head-right p,
  .about-services-closing p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .about-service-toggle {
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    gap: 10px;
  }

  .about-service-index {
    font-size: 0.92rem;
  }

  .about-service-arrow {
    font-size: 1.5rem;
  }

  .about-service-media {
    aspect-ratio: 4 / 5;
    border-radius: 14px;
  }

  .search-keyword-wrap,
  .search-result-card,
  .search-result-empty,
  .notice-card,
  .setting-card,
  .settings-sales-mode,
  .settings-sales-item {
    border-radius: 16px;
  }
}

@media (max-width: 860px) {
  .app-shell {
    width: 100%;
    max-width: none;
    padding: 0 0 calc(72px + env(safe-area-inset-bottom, 0px));
    gap: 0;
    grid-template-columns: 1fr;
  }

  .sidebar-left,
  .sidebar-right {
    display: none !important;
  }

  .timeline {
    height: auto;
    min-height: 100dvh;
    border: 0;
    background: var(--bg);
    overflow: visible;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: auto;
  }

  .mobile-topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 120;
  }

  .mobile-drawer-backdrop,
  .mobile-drawer,
  .mobile-bottom-nav {
    display: block;
  }

  .mobile-bottom-nav {
    display: grid;
  }

  .timeline-header {
    position: sticky;
    top: 60px;
    z-index: 110;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: -1px;
    background: rgba(5, 5, 5, 0.99);
  }

  .timeline-header-tools {
    display: none !important;
  }

  .timeline-tab {
    min-height: 52px;
    font-size: 0.96rem;
    font-weight: 800;
  }

  .timeline-tab.is-active::after {
    width: 74px;
  }

  .composer-card,
  .tweet-card,
  .about-card {
    border-left: 0;
    border-right: 0;
  }

  .composer-card {
    padding: 14px 14px 12px;
  }

  .tweet-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .mobile-drawer .stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .mobile-drawer .search-keyword-chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
  }

  .mobile-drawer #mobile-sales-list {
    display: grid;
    gap: 10px;
  }

  .mobile-drawer #mobile-sales-list .sales-item,
  .mobile-drawer #mobile-sales-list .sales-empty {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 640px) {
  .mobile-topbar {
    padding: 8px 12px 10px;
  }

  .mobile-topbar-logo,
  .mobile-topbar-menu {
    width: 38px;
    height: 38px;
  }

  .mobile-topbar-logo .brand-mark-image {
    width: 30px;
    height: 30px;
  }

  .mobile-topbar-language .language-button {
    font-size: 0.86rem;
    padding: 0 8px;
  }

  .mobile-topbar-language .language-button + .language-button {
    margin-left: 8px;
    padding-left: 12px;
  }

  .mobile-drawer {
    width: min(88vw, 340px);
    padding: 16px 16px 26px;
  }

  .mobile-drawer-link {
    min-height: 48px;
  }

  .mobile-drawer-link span {
    font-size: 0.96rem;
  }

  .mobile-bottom-nav {
    padding-inline: 8px;
  }
}

@media (max-width: 860px) {
  body .app-shell,
  body .app-shell.is-home-view {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: none !important;
    gap: 0 !important;
    padding-top: 0 !important;
  }

  body .sidebar-left,
  body .sidebar-right,
  body .timeline-header-tools,
  body .mobile-language-switch {
    display: none !important;
  }

  body .timeline {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body .mobile-topbar {
    display: flex !important;
  }

  body .mobile-drawer,
  body .mobile-drawer-backdrop {
    display: block;
  }

  body .mobile-bottom-nav {
    display: grid !important;
  }
}
