:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #000000;
  --muted: #737373;
  --line: #dbdbdb;
  --soft: #efefef;
  --soft-hover: #e8e8e8;
  --blue: #0095f6;
  --green: #148f63;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(302px, 360px) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #fafafa;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: #111;
  color: white;
  font-weight: 800;
}

.brand span,
.empty-state span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.panel {
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 0.95rem;
}

.stack {
  display: grid;
  gap: 9px;
}

label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 9px 11px;
}

textarea {
  resize: vertical;
}

.primary-button,
.ghost-button,
.icon-button,
.profile-actions button,
.profile-menu {
  border: 0;
  border-radius: 8px;
  font-weight: 700;
}

.primary-button {
  min-height: 42px;
  margin-top: 4px;
  background: #111;
  color: white;
}

.ghost-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
}

.icon-button {
  min-width: 54px;
  height: 32px;
  padding: 0 8px;
  background: var(--soft);
  color: var(--text);
  font-size: 0.72rem;
}

.share-link {
  margin-top: 10px;
  padding: 10px;
  border-radius: 7px;
  background: var(--soft);
  color: #555;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.check-row {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 9px;
  color: #111;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: none;
}

.check-row input {
  width: 16px;
  min-height: 16px;
}

.preview {
  width: min(978px, 100%);
  margin: 0 auto;
  padding: 48px 24px 40px;
}

.channel-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: -24px auto 30px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.channel-tab {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.channel-tab.is-active {
  background: #111;
  color: #fff;
}

.channel-view {
  display: none;
}

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

.client-header {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 0 6px 36px;
}

.profile-photo-wrap {
  display: flex;
  justify-content: center;
}

.avatar {
  display: grid;
  width: 162px;
  height: 162px;
  place-items: center;
  border: 5px solid white;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5) border-box;
  color: #111;
  font-size: 2.9rem;
  font-weight: 800;
}

.profile-main {
  min-width: 0;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-title-row h1 {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: 0;
}

.profile-menu {
  width: 34px;
  height: 32px;
  background: transparent;
  font-size: 1.1rem;
}

.profile-stats {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 18px;
}

.profile-stats div {
  display: flex;
  gap: 5px;
  align-items: baseline;
  min-width: 0;
}

.profile-stats strong,
.profile-stats span {
  font-size: 0.95rem;
}

.profile-stats strong {
  font-weight: 800;
}

.profile-stats span {
  color: #111;
}

.profile-copy {
  display: grid;
  gap: 4px;
  max-width: 560px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.profile-copy p,
.profile-copy span,
.profile-copy strong,
.profile-copy small {
  margin: 0;
}

.profile-copy p {
  font-weight: 800;
}

.profile-copy span {
  color: var(--muted);
}

.profile-copy small {
  color: #111;
  font-size: 0.9rem;
}

.profile-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  gap: 8px;
  max-width: 560px;
  margin-top: 24px;
}

.profile-actions button {
  min-height: 44px;
  background: var(--soft);
  color: #111;
}

.profile-actions button:hover {
  background: var(--soft-hover);
}

.highlights {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 6px 30px;
  border-bottom: 1px solid var(--line);
}

.highlight {
  display: grid;
  flex: 0 0 74px;
  justify-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
}

.highlight span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  outline: 2px solid #d9d9d9;
  background: linear-gradient(135deg, #f2f2f2, #cfd8dc);
  color: #111;
  font-size: 0.82rem;
  font-weight: 800;
  overflow: hidden;
}

.highlight span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.highlight strong {
  max-width: 82px;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  min-height: 52px;
}

.tab {
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-top: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tab span {
  font-size: 0.68rem;
}

.tab.is-active {
  border-top-color: #111;
  color: #111;
}

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

.feed-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #f2f2f2;
  cursor: pointer;
}

.media-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #efefef;
}

.media-wrap.story {
  aspect-ratio: 9 / 16;
}

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

.media-wrap.video::after,
.media-wrap.carousel::after,
.media-wrap.story::after {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.media-wrap.video::after {
  content: "Reel";
  padding: 0 7px;
}

.media-wrap.carousel::after {
  content: "Multi";
  padding: 0 7px;
}

.media-wrap.story::after {
  content: "Story";
  padding: 0 7px;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.05), transparent);
  color: white;
  opacity: 0;
  transition: opacity 160ms ease;
}

.feed-card:hover .grid-overlay {
  opacity: 1;
}

.card-meta,
.card-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.format-pill,
.status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 0.7rem;
  font-weight: 800;
}

.status-pill {
  color: #8a5a00;
}

.status-pill.approved {
  color: var(--green);
}

.status-pill.review {
  color: var(--blue);
}

.grid-overlay h3,
.grid-overlay p {
  margin: 0;
}

.grid-overlay h3 {
  font-size: 0.95rem;
  line-height: 1.2;
}

.grid-overlay p {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
}

.card-actions .ghost-button {
  min-height: 30px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
}

.post-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px 58px;
  background: rgba(0, 0, 0, 0.66);
}

.post-modal.is-open {
  display: flex;
}

.post-dialog {
  display: grid;
  width: min(1194px, 100%);
  height: min(92vh, 860px);
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 490px);
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
}

.modal-media {
  display: grid;
  min-width: 0;
  place-items: center;
  background: #000;
}

.modal-media img,
.modal-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-panel {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-left: 1px solid var(--line);
  background: #fff;
}

.modal-header,
.caption-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header {
  min-height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-header div:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.modal-header strong,
.caption-row strong {
  font-size: 0.86rem;
}

.modal-header span {
  color: #111;
  font-size: 0.78rem;
}

.modal-header button {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-weight: 800;
}

.mini-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf) border-box;
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
}

.modal-caption {
  overflow: auto;
  padding: 22px 16px;
}

.caption-row {
  align-items: flex-start;
}

.caption-row p {
  margin: 0;
  color: #111;
  font-size: 0.9rem;
  line-height: 1.45;
}

.caption-row p span {
  margin-left: 5px;
}

.modal-time,
.modal-footer span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.modal-time {
  margin: 14px 0 0 48px;
}

.modal-footer {
  display: grid;
  gap: 10px;
  padding: 14px 16px 0;
  border-top: 1px solid var(--line);
}

.modal-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.modal-actions button {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 0.8rem;
  font-weight: 800;
}

.modal-actions button:first-child {
  color: #ed4956;
}

.modal-actions button:last-child {
  margin-left: auto;
}

.modal-footer strong {
  font-size: 0.86rem;
}

.comment-box {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  margin: 0 -16px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
}

.comment-box input {
  min-height: 42px;
  border: 0;
  padding: 0;
}

.comment-box button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
}

.modal-close,
.modal-nav {
  position: fixed;
  z-index: 51;
  border: 0;
  background: transparent;
  color: white;
  font-weight: 400;
}

.modal-close {
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  font-size: 1.45rem;
}

.modal-nav {
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 2rem;
  transform: translateY(-50%);
}

.modal-prev {
  left: 12px;
}

.modal-next {
  right: 12px;
}

body.modal-open {
  overflow: hidden;
}

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px 70px;
  background: rgba(0, 0, 0, 0.86);
}

.story-modal.is-open {
  display: flex;
}

.story-frame {
  position: relative;
  width: min(420px, calc(100vw - 36px));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 10px;
  background: #050505;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
}

.story-progress {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  gap: 5px;
  grid-auto-flow: column;
}

.story-progress span {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
}

.story-progress span.is-active,
.story-progress span.is-seen {
  background: rgba(255, 255, 255, 0.95);
}

.story-header {
  position: absolute;
  top: 24px;
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.story-header strong {
  display: block;
  font-size: 0.88rem;
}

.story-header span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.74rem;
}

.story-media,
.story-media img,
.story-media video {
  width: 100%;
  height: 100%;
}

.story-media img,
.story-media video {
  object-fit: contain;
  display: block;
}

.story-footer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-footer span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-footer button {
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.story-close,
.story-nav {
  position: fixed;
  z-index: 75;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  font-weight: 900;
}

.story-close {
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.story-nav {
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
}

.story-prev {
  left: 18px;
}

.story-next {
  right: 18px;
}

.empty-state {
  display: none;
  padding: 48px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.facebook-shell {
  max-width: 900px;
  min-height: 80vh;
  margin: 0 auto;
  background: #f0f2f5;
  color: #050505;
}

.facebook-cover {
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.facebook-cover-art {
  height: 280px;
  background: linear-gradient(135deg, #3b155c, #148f63);
  background-position: center;
  background-size: cover;
}

.facebook-profile-row {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 0 28px 20px;
  margin-top: -54px;
}

.facebook-avatar {
  width: 136px;
  height: 136px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #fff center / cover no-repeat;
}

.facebook-profile-row h2 {
  margin: 0 0 4px;
  font-size: 2rem;
}

.facebook-profile-row span {
  color: #65676b;
  font-weight: 700;
}

.facebook-profile-row button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: #1877f2;
  color: white;
  font-weight: 800;
}

.facebook-nav {
  display: flex;
  gap: 8px;
  padding: 0 28px;
  border-top: 1px solid #e4e6eb;
  background: #fff;
}

.facebook-nav span {
  padding: 16px 12px;
  color: #65676b;
  font-weight: 800;
}

.facebook-feed {
  display: grid;
  max-width: 640px;
  gap: 16px;
  margin: 0 auto;
  padding: 18px 12px 40px;
}

.facebook-post {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.facebook-post-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px 8px;
}

.facebook-post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eee center / cover no-repeat;
}

.facebook-post-head strong {
  display: block;
  font-size: 0.92rem;
}

.facebook-post-head span,
.facebook-post-copy span {
  color: #65676b;
  font-size: 0.78rem;
}

.facebook-post-copy {
  padding: 0 16px 12px;
}

.facebook-post-copy p {
  margin: 0 0 6px;
  line-height: 1.4;
}

.facebook-post img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.facebook-post-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #e4e6eb;
}

.facebook-post-actions button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #65676b;
  font-weight: 800;
}

.site-shell {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.site-frame,
.video-frame {
  width: 100%;
  border: 0;
  display: block;
}

.site-frame {
  min-height: 740px;
}

.site-mock-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 34px;
  align-items: center;
  padding: 54px;
  background: linear-gradient(135deg, #32104b, #6d1d7c);
  color: white;
}

.site-mock-hero h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.site-mock-hero p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.55;
}

.site-mock-hero button {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #feda75;
  color: #1b1025;
  font-weight: 900;
}

.site-mock-hero img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.site-mock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
}

.site-mock-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.site-mock-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.site-mock-card div {
  padding: 14px;
}

.site-mock-card h3,
.site-mock-card p {
  margin: 0;
}

.site-mock-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.video-preview-shell {
  max-width: 980px;
  margin: 0 auto;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111;
  color: #fff;
}

.video-frame {
  aspect-ratio: 16 / 9;
  min-height: 360px;
  background: #000;
  width: 100%;
  object-fit: contain;
  display: block;
}

.video-placeholder {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 36px;
  background: linear-gradient(135deg, #191919, #46215f);
  text-align: center;
}

.video-placeholder h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.video-placeholder p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.client-view .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

.client-view .sidebar,
.client-view [data-admin-only] {
  display: none !important;
}

.client-view .preview {
  padding-top: 48px;
}

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

  .sidebar {
    position: relative;
    grid-column: 1;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .preview {
    grid-column: 1;
  }
}

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

  .sidebar,
  .preview {
    grid-column: 1;
  }

  .preview {
    padding: 26px 0 28px;
  }

  .client-header {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 0 14px 22px;
  }

  .avatar {
    width: 82px;
    height: 82px;
    font-size: 1.45rem;
  }

  .profile-title-row {
    margin-bottom: 10px;
  }

  .profile-title-row h1 {
    font-size: 1.15rem;
  }

  .profile-stats {
    gap: 13px;
    margin-bottom: 12px;
  }

  .profile-stats div {
    display: grid;
    gap: 1px;
    justify-items: center;
  }

  .profile-stats strong,
  .profile-stats span {
    font-size: 0.78rem;
  }

  .profile-actions {
    grid-template-columns: 1fr 1fr 40px;
    margin-top: 14px;
  }

  .profile-actions button {
    min-height: 36px;
    font-size: 0.78rem;
  }

  .highlights {
    padding: 0 14px 20px;
  }

  .highlight {
    flex-basis: 62px;
  }

  .highlight span {
    width: 58px;
    height: 58px;
  }

  .tabs {
    grid-template-columns: repeat(4, max-content);
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
  }

  .tab {
    padding: 0 2px;
    font-size: 0;
  }

  .tab span {
    font-size: 0.72rem;
  }

  .feed-grid {
    gap: 3px;
  }

  .channel-tabs {
    position: static;
    justify-content: flex-start;
    margin: 0 12px 18px;
    overflow-x: auto;
    border-radius: 10px;
  }

  .channel-tab {
    flex: 0 0 auto;
  }

  .facebook-cover-art {
    height: 170px;
  }

  .facebook-profile-row {
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: end;
    gap: 12px;
    padding: 0 14px 16px;
    margin-top: -36px;
  }

  .facebook-avatar {
    width: 82px;
    height: 82px;
  }

  .facebook-profile-row h2 {
    font-size: 1.35rem;
  }

  .facebook-profile-row button {
    grid-column: 1 / -1;
  }

  .facebook-nav {
    overflow-x: auto;
    padding: 0 14px;
  }

  .site-mock-hero,
  .site-mock-grid {
    grid-template-columns: 1fr;
  }

  .site-mock-hero {
    padding: 28px 18px;
  }

  .site-mock-grid {
    padding: 16px;
  }

  .site-frame {
    min-height: 620px;
  }

  .video-frame,
  .video-placeholder {
    min-height: 320px;
  }

  .post-modal {
    padding: 0;
    align-items: flex-start;
    overflow: auto;
  }

  .post-dialog {
    width: 100%;
    min-height: 100dvh;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    border-radius: 0;
  }

  .modal-media {
    aspect-ratio: 4 / 5;
    width: 100%;
    min-height: 0;
  }

  .modal-media.is-story {
    aspect-ratio: 9 / 16;
  }

  .modal-media img,
  .modal-media video {
    object-fit: contain;
  }

  .modal-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .modal-caption {
    max-height: none;
  }

  .modal-footer {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .modal-close {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 60;
  }

  .modal-nav {
    top: auto;
    bottom: 12px;
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
    transform: none;
  }

  .modal-prev {
    left: 12px;
  }

  .modal-next {
    right: 12px;
  }

  .story-modal {
    padding: 0;
  }

  .story-frame {
    width: 100%;
    height: 100dvh;
    aspect-ratio: auto;
    border-radius: 0;
  }

  .story-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  .story-nav {
    display: none;
  }
}
