* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --ink: #262626;
  --muted: #8e8e8e;
  --line: #dbdbdb;
  --paper: #fff;
  --canvas: #f7f6f4;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.topbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: white;
  border-bottom: 1px solid #eceae7;
}
.brand { font-family: Georgia, serif; font-size: 25px; letter-spacing: -1px; }
.brand span { font-weight: 700; }
.local-label, .eyebrow { font-size: 10px; letter-spacing: 1.5px; font-weight: 700; }
.local-label { color: #68635c; display: flex; align-items: center; gap: 8px; }
.local-label span, .preview-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #6d987c; display: inline-block;
}
.workspace {
  width: min(1120px, 92vw);
  margin: 42px auto;
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}
.editor { background: white; padding: 28px; border: 1px solid #ebe8e3; border-radius: 12px; }
.eyebrow { color: #9a806b; margin: 0 0 10px; }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -0.7px; }
h1 { font-size: 27px; }
h2 { font-size: 20px; }
.muted { color: #777; font-size: 13px; line-height: 1.5; margin: 9px 0 26px; }
.field { display: grid; gap: 7px; margin: 18px 0; }
.field label { font-size: 12px; font-weight: 650; }
input, textarea {
  width: 100%; padding: 10px 11px; border: 1px solid #dedbd6;
  border-radius: 6px; background: white; color: var(--ink);
  font: inherit; font-size: 13px;
}
input[type=file] { padding: 8px; font-size: 12px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { outline: 2px solid #c6ad98; outline-offset: 1px; }
button { border: 0; border-radius: 6px; padding: 11px 15px; cursor: pointer; font-weight: 600; }
.secondary { width: 100%; background: #f0ece7; color: #51473f; }
.privacy-note { color: #858078; font-size: 11px; line-height: 1.5; margin: 17px 0 0; }
.preview-area { min-width: 0; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; margin: 5px 0 20px; }
.preview-dot { width: auto; height: auto; border-radius: 20px; padding: 6px 9px; color: #51735d; background: #e7f0e9; font-size: 9px; letter-spacing: 1px; font-weight: 700; }
.post {
  width: min(100%, 470px); margin: 0 auto; background: white;
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  font-family: Arial, Helvetica, sans-serif; font-size: 14px;
}
.post-header { height: 61px; display: flex; align-items: center; gap: 10px; padding: 0 13px; }
.avatar {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: white; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, #d2b49b, #65564c);
}
.post-user { min-width: 0; display: grid; gap: 3px; }
.post-user strong { font-size: 12px; overflow-wrap: anywhere; }
.post-user span { font-size: 11px; }
.more { margin-left: auto; letter-spacing: 2px; font-weight: 700; }
.photo-frame { aspect-ratio: 1 / 1; background: #f0eeeb; position: relative; overflow: hidden; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: #8d8882; }
.photo-placeholder span { width: 43px; height: 43px; border: 1px solid #c9c2ba; border-radius: 50%; display: grid; place-items: center; font-size: 24px; }
.photo-placeholder strong { font-size: 13px; font-weight: 500; }
.photo-placeholder small { font-size: 11px; }
.post-actions { height: 43px; display: flex; align-items: center; gap: 16px; padding: 0 13px; font-size: 24px; }
.heart { font-size: 29px; line-height: 1; }
.outline-icon { transform: rotate(-35deg); font-size: 25px; }
.paper-plane { font-size: 20px; transform: rotate(-20deg); }
.bookmark { margin-left: auto; font-size: 24px; transform: rotate(180deg); }
.post-body { padding: 0 13px 12px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.post-body > strong { font-size: 12px; }
.caption { margin: 7px 0; }
.caption strong { margin-right: 4px; }
.comments { color: #454545; }
.comment { margin: 4px 0; }
.comment strong { color: #262626; margin-right: 4px; }
.post-age { margin: 10px 0 0; font-size: 9px; letter-spacing: .3px; color: #8e8e8e; }
.preview-hint { text-align: center; color: #888078; font-size: 11px; line-height: 1.5; margin-top: 17px; }
@media (max-width: 760px) {
  .workspace { grid-template-columns: 1fr; margin: 22px auto; gap: 30px; }
  .editor { padding: 22px; }
  .preview-area { width: 100%; }
  .post { width: min(100%, 470px); }
  .topbar { padding: 0 4vw; }
}


/* Dark Instagram Studio theme */
:root {
  color-scheme: dark;
  --ink: #f5f5f5;
  --canvas: #101010;
}
html {
  background: #f8f3f6 !important;
}
body {
  background:
    radial-gradient(ellipse at 12% 18%, #f1dfe9 0%, transparent 38%),
    radial-gradient(ellipse at 88% 24%, #e8e1f4 0%, transparent 40%),
    linear-gradient(135deg, #fbf8f4, #f4edf4 58%, #fbf5f0) !important;
  color: #493e4b;
}
.topbar { background: #151515; border-color: #292929; }
.brand, .brand span { color: #f5f5f5; }
.local-label, .muted { color: #aaa; }
.editor { background: #191919; border-color: #303030; }
.eyebrow { color: #c2a6ff; }
.field label { color: #dedede; }
input, textarea, select {
  background: #111;
  color: #f5f5f5;
  border: 1px solid #414141;
}
input:focus, textarea:focus { outline: 1px solid #a78bfa; }
button { transition: opacity .15s ease; }
button:disabled { opacity: .65; cursor: wait; }
.primary {
  width: 100%;
  background: #a78bfa;
  color: #17121f;
  margin-top: 4px;
}
.primary:hover { opacity: .88; }
.privacy-note, .preview-hint { color: #999; }
.post-card { background: #000; border-color: #303030; color: #f5f5f5; }
.post-header { background: #000; }
.post-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 48px;
  padding: 0 13px;
}
.action-icon { display: inline-flex; width: 25px; height: 25px; }
.action-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.action-icon:first-child svg { fill: none; }
.share-icon { margin-left: auto; }
.post-body { color: #f5f5f5; background: #000; }
.caption, .comments { color: #dedede; }
.comment strong, .caption strong { color: #fff; }
.photo-frame { background: #191919; }
.photo-placeholder { color: #aaa; }
.avatar { border-color: #c2a6ff; }
.preview-dot { color: #d5c5ff; background: #302443; }


/* Preview fixes: image visibility, profile photo, and Instagram action row */
[hidden] {
  display: none !important;
}

.avatar {
  position: relative;
  overflow: hidden;
}

#avatarPhoto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.post-actions {
  color: #f5f5f5;
  background: #000;
  gap: 16px;
}

.action-icon {
  flex: 0 0 25px;
  color: #f5f5f5;
}

.action-icon svg {
  display: block;
  stroke: currentColor;
}

.share-icon {
  margin-left: 0;
}

.save-icon {
  margin-left: auto;
}

.post-body {
  color: #f5f5f5;
  background: #000;
}

.post-body .caption,
.post-body .comments {
  color: #dedede;
}

.post-body .caption strong,
.post-body .comment strong {
  color: #fff;
}


/* Show the full uploaded photo without cropping or zooming */
.photo-frame img {
  object-fit: contain;
}

/* Fill the Instagram photo frame edge to edge */
.photo-frame img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}


/* Optional Instagram-style verified badge */
.verified-badge {
  display: inline-flex;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  vertical-align: -3px;
  flex: 0 0 auto;
}

.verified-badge svg {
  display: block;
  width: 100%;
  height: 100%;
}

.verified-badge[hidden] {
  display: none;
}

/* Keep the username and verified badge on the same line */
.post-user {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.post-user .post-name-row {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

.post-user .post-name-row strong {
  overflow-wrap: anywhere;
}

.post-user .post-name-row .verified-badge {
  flex: 0 0 16px;
  margin: 0;
}

/* Final header layout: username + badge above location */
.post-user {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
}

.post-user .post-name-row {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  width: auto !important;
}

.post-user #previewLocation {
  display: block !important;
  width: auto !important;
}


/* Final header layout */
.post-user {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
}

.post-user .post-name-row {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  width: max-content !important;
  max-width: 100%;
}

.post-user .post-name-row .verified-badge {
  display: inline-flex;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
}

.post-user #previewLocation {
  display: block !important;
  width: auto !important;
  align-self: flex-start !important;
}


/* AU post counts and Follow button */
.post-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.post-header-right .more {
  margin-left: 0;
}
.follow-button {
  border: 0;
  border-radius: 5px;
  padding: 5px 10px;
  background: transparent;
  color: #3897f0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
}
.post-actions {
  gap: 11px;
}
.action-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.action-group .action-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 25px;
}
.action-group .action-icon svg {
  width: 22px;
  height: 22px;
}
.action-count {
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  color: #f5f5f5;
}
.post-actions .save-icon {
  margin-left: auto;
  flex: 0 0 25px;
}

/* Remove the unwanted line beneath the post header */
.post-header {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Remove the light divider around the Instagram post header */
.post {
  border-color: #000 !important;
}

.post-header {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: #000 !important;
}

/* Remove stray line around username and location */
.post-user,
.post-name-row,
#previewUsername,
#previewLocation {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  background-image: none !important;
}
.post-user::before,
.post-user::after,
.post-name-row::before,
.post-name-row::after,
#previewUsername::before,
#previewUsername::after,
#previewLocation::before,
#previewLocation::after {
  content: none !important;
  display: none !important;
}

/* Fix white strip between action icons and caption */
.post {
  background: #000 !important;
}
.post-actions {
  background: #000 !important;
  border: none !important;
  box-shadow: none !important;
}
.post-body {
  background: #000 !important;
  border: none !important;
  box-shadow: none !important;
  margin-top: 0 !important;
}


/* Compact username/location and comment spacing */
.post-user {
  gap: 1px !important;
}

#previewLocation {
  line-height: 1.2 !important;
}

#viewAllComments {
  margin: 5px 13px 2px !important;
  color: #8e8e8e;
  font-size: 12px;
  line-height: 1.3;
}

#previewComments .comment {
  margin-top: 2px !important;
  margin-bottom: 2px !important;
  line-height: 1.35;
}

#previewComments .comment strong {
  display: inline !important;
}


/* Fine-tune username, location, and comment spacing */
.post-user {
  gap: 2px !important;
}

#previewLocation {
  line-height: 1.2 !important;
}

/* Align with the caption and username at the left edge */
#viewAllComments {
  margin: 5px 0 2px !important;
}

/* Keep each comment distinct while keeping its text beside its username */
#previewComments .comment {
  margin: 4px 0 !important;
  line-height: 1.35;
}

#previewComments .comment strong {
  display: inline !important;
  margin-right: 4px;
}


/* Instagram-style liked-by row */
.liked-by-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 8px;
  background: #000 !important;
  color: #f5f5f5;
  font-size: 12px;
  line-height: 1.3;
}
.liked-by-row strong {
  font-weight: 600;
}
.liked-by-avatar,
.liked-by-avatar-fallback {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.liked-by-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #555;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.liked-by-avatar[hidden],
.liked-by-avatar-fallback[hidden] {
  display: none !important;
}

/* Compact Instagram spacing: icons, likes, caption, and comments */
.post-actions {
  padding-bottom: 2px !important;
  margin-bottom: 0 !important;
}

.liked-by-row {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  gap: 4px !important;
  line-height: 1.25 !important;
}

.liked-by-avatar,
.liked-by-avatar-fallback {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
}

.caption {
  margin-top: 3px !important;
  margin-bottom: 3px !important;
  line-height: 1.35 !important;
}

#viewAllComments {
  margin-top: 3px !important;
  margin-bottom: 2px !important;
}

#previewComments .comment {
  margin-top: 3px !important;
  margin-bottom: 3px !important;
  line-height: 1.35 !important;
}


/* Studio section navigation */
.studio-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 18px 16px 0;
  background: #101010;
}
.studio-tab {
  border: 1px solid #383838;
  border-radius: 8px;
  padding: 10px 22px;
  background: #191919;
  color: #ddd;
  font: inherit;
  cursor: pointer;
}
.studio-tab.active {
  background: #a78bfa;
  border-color: #a78bfa;
  color: #17121f;
  font-weight: 600;
}
.dm-workspace {
  width: min(1120px, 92vw);
  margin: 38px auto;
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(300px, 1fr);
  gap: 42px;
  align-items: start;
}
.dm-workspace[hidden] {
  display: none !important;
}
.dm-placeholder {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border: 1px solid #303030;
  border-radius: 14px;
  background: #191919;
  color: #aaa;
  text-align: center;
}
.dm-placeholder-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid #555;
  border-radius: 50%;
  font-size: 30px;
}
.dm-placeholder h3 {
  color: #f5f5f5;
  font-size: 17px;
}
.dm-placeholder p {
  max-width: 300px;
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 760px) {
  .dm-workspace {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/* DM Studio editor */
.dm-section-title {
  margin: 25px 0 12px;
  font-size: 16px;
}
.dm-message-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 20px;
}
.dm-message-item {
  padding: 12px;
  border: 1px solid #343434;
  border-radius: 10px;
  background: #191919;
  overflow-wrap: anywhere;
}
.dm-message-item p { margin: 7px 0; white-space: pre-wrap; }
.dm-message-meta { color: #aaa; font-size: 12px; }
.dm-message-controls { display: flex; gap: 8px; }
.dm-message-controls button { padding: 6px 10px; font-size: 12px; }
.dm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dm-small { font-size: 12px; line-height: 1.5; }
.dm-phone {
  width: min(100%, 390px);
  min-height: 590px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #393939;
  border-radius: 22px;
  background: #101010;
  color: #f5f5f5;
  box-shadow: 0 15px 45px #0005;
}
.dm-chat-header {
  min-height: 76px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #303030;
  background: #171717;
}
.dm-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #393939;
  color: white;
  font-weight: 700;
}
.dm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dm-header-copy { display: grid; gap: 4px; }
.dm-header-copy strong { font-size: 14px; }
.dm-header-copy span { color: #aaa; font-size: 12px; }
.dm-chat {
  min-height: 450px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #101010;
}
.dm-empty { margin: auto; color: #888; text-align: center; font-size: 13px; }
.dm-bubble-row { display: flex; width: 100%; }
.dm-bubble-row.outgoing { justify-content: flex-end; }
.dm-bubble-row.incoming { justify-content: flex-start; }
.dm-bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dm-bubble-row.outgoing .dm-bubble {
  background: #7c5ce0;
  color: white;
  border-bottom-right-radius: 5px;
}
.dm-bubble-row.incoming .dm-bubble {
  background: #292929;
  color: #f5f5f5;
  border-bottom-left-radius: 5px;
}
.dm-preview-footer {
  padding: 12px;
  border-top: 1px solid #303030;
  color: #777;
  text-align: center;
  font-size: 11px;
}
@media (max-width: 760px) {
  .dm-workspace { grid-template-columns: 1fr; }
  .dm-phone { width: 100%; }
}


/* DM header name and optional verification badge */
.dm-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.dm-name-row strong {
  overflow-wrap: anywhere;
}
.dm-verified-badge {
  position: static;
  display: inline-flex;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
.dm-verified-badge[hidden] {
  display: none !important;
}
.dm-verified-badge svg {
  width: 16px;
  height: 16px;
}


/* Typing indicator used in recorded DM conversations */
.dm-typing-bubble {
  min-width: 48px;
  text-align: center;
  letter-spacing: 2px;
  font-size: 18px;
  line-height: 1.2;
  padding-top: 10px;
  padding-bottom: 10px;
}


/* Live DM typing bubbles: three gently bouncing dots */
.dm-live-typing-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 54px;
  min-height: 38px;
  padding: 10px 14px;
}

.dm-typing-dot {
  display: block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  animation: dmTypingBounce 0.95s ease-in-out infinite;
}

.dm-typing-dot:nth-child(2) { animation-delay: 0.14s; }
.dm-typing-dot:nth-child(3) { animation-delay: 0.28s; }

@keyframes dmTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .dm-typing-dot { animation: none; opacity: 0.8; }
}


/* Instagram-style DM composer */
.dm-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 14px;
  background: #101010;
  color: #fff;
  box-sizing: border-box;
}
.dm-composer-camera,
.dm-composer-icons button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: default;
}
.dm-composer-camera {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3797f0;
}
.dm-composer svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dm-composer-camera svg {
  width: 22px;
  height: 22px;
}
.dm-composer-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 9px 0 13px;
  border-radius: 24px;
  background: #262626;
  box-sizing: border-box;
}
.dm-composer-placeholder {
  flex: 1;
  min-width: 35px;
  color: #bdbdbd;
  font-size: 13px;
  white-space: nowrap;
}
.dm-composer-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex: 0 0 auto;
}
.dm-composer-icons button {
  width: 22px;
  height: 32px;
}
.dm-composer-icons svg {
  width: 21px;
  height: 21px;
}
@media (max-width: 380px) {
  .dm-composer { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .dm-composer-field { gap: 5px; padding-left: 10px; padding-right: 7px; }
  .dm-composer-icons { gap: 6px; }
  .dm-composer-icons button { width: 20px; }
  .dm-composer-icons svg { width: 19px; height: 19px; }
}


/* Composer visibility and phone layout fix */
.dm-phone {
  display: flex;
  flex-direction: column;
  min-height: 590px;
  height: auto;
  overflow: hidden;
}

.dm-chat {
  flex: 1 0 450px;
  min-height: 450px;
}

.dm-composer {
  display: flex !important;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 54px;
  margin-top: auto;
  visibility: visible;
  opacity: 1;
}


/* FINAL FORCE-VISIBLE INSTAGRAM DM COMPOSER */
#dmCapture.dm-phone {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 640px !important;
  max-height: none !important;
  overflow: visible !important;
  position: relative !important;
}

#dmCapture #dmChat.dm-chat {
  flex: 1 1 auto !important;
  min-height: 400px !important;
  max-height: none !important;
}

#dmCapture .dm-composer {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 58px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  height: 58px !important;
  box-sizing: border-box !important;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 999 !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  background: #101010 !important;
  color: #fff !important;
  border-top: 1px solid #303030 !important;
}

#dmCapture .dm-composer-camera {
  display: flex !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  color: #3797f0 !important;
  background: transparent !important;
  border: 0 !important;
}

#dmCapture .dm-composer-field {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 40px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 0 10px !important;
  border: 1px solid #383838 !important;
  border-radius: 24px !important;
  background: #262626 !important;
  box-sizing: border-box !important;
}

#dmCapture .dm-composer-placeholder {
  display: block !important;
  flex: 1 1 auto !important;
  color: #bdbdbd !important;
  white-space: nowrap !important;
}

#dmCapture .dm-composer-icons {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 8px !important;
}

#dmCapture .dm-composer-icons button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 30px !important;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
}

#dmCapture .dm-composer svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* DM Studio: blue Instagram verification and purple camera circle */
#dmCapture .dm-verified-badge {
  color: #3897f0 !important;
}

#dmCapture .dm-verified-badge svg {
  fill: #3897f0 !important;
}

#dmCapture .dm-composer-camera {
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #a855f7 !important;
  color: #fff !important;
  border: none !important;
}

#dmCapture .dm-composer-camera svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #fff !important;
}


/* FINAL DM STUDIO FIX: blue verified badge + white camera in purple circle */
#dmCapture .dm-name-row .dm-verified-badge {
  color: #3897f0 !important;
}
#dmCapture .dm-name-row .dm-verified-badge svg path:first-child {
  fill: #3897f0 !important;
}
#dmCapture .dm-name-row .dm-verified-badge svg path:last-child {
  fill: #ffffff !important;
}
#dmCapture .dm-composer button.dm-composer-camera {
  display: flex !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  border-radius: 50% !important;
  background: #a855f7 !important;
  color: #ffffff !important;
}
#dmCapture .dm-composer button.dm-composer-camera svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 1.8 !important;
}
#dmCapture .dm-composer button.dm-composer-camera svg path,
#dmCapture .dm-composer button.dm-composer-camera svg circle {
  fill: none !important;
  stroke: #ffffff !important;
}


/* DM Studio: requested camera and verification badge fixes */
.dm-composer-camera {
  box-sizing: border-box !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #a855f7 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.dm-composer-camera svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  fill: none !important;
  stroke: #fff !important;
  stroke-width: 1.8 !important;
}
.dm-composer-camera svg path,
.dm-composer-camera svg circle {
  fill: none !important;
  stroke: #fff !important;
}
.dm-name-row .dm-verified-badge {
  color: #3897f0 !important;
}
.dm-name-row .dm-verified-badge svg path:first-child {
  fill: #3897f0 !important;
}
.dm-name-row .dm-verified-badge svg path:last-child {
  fill: #fff !important;
}

/* IPHONE LOCK SCREEN */
.iphone-lock-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 28px 18px;
  overflow: hidden;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  background:
    radial-gradient(ellipse at 20% 25%, rgba(190, 145, 220, .55), transparent 42%),
    radial-gradient(ellipse at 80% 65%, rgba(75, 90, 155, .65), transparent 45%),
    linear-gradient(145deg, #17152c, #35304f 48%, #111827);
}

.iphone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .2px;
}

.iphone-lock-content {
  text-align: center;
  margin-top: -70px;
}

.iphone-lock-date {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 500;
  opacity: .95;
}

.iphone-lock-time {
  margin: 0;
  font-size: clamp(88px, 19vw, 142px);
  line-height: 1;
  font-weight: 250;
  letter-spacing: -7px;
}

.iphone-lock-message {
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: .5px;
  opacity: .8;
}

.iphone-unlock-button {
  align-self: center;
  margin-bottom: 28px;
  padding: 13px 28px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 30px;
  background: rgba(255,255,255,.14);
  color: white;
  font-size: 15px;
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.iphone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 120px;
  height: 5px;
  border-radius: 10px;
  background: white;
  transform: translateX(-50%);
}


/* IPHONE APP SHELL */
body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 35%, #343044 0%, #17151f 48%, #09090d 100%);
}

.iphone-device {
  position: relative;
  width: min(430px, 94vw, calc((100vh - 16px) * .4778));
  height: min(900px, calc(100vh - 16px));
  padding: 9px;
  border: 2px solid #45434b;
  border-radius: 58px;
  background: linear-gradient(145deg, #38363e, #111114 45%, #29272f);
  box-shadow: 0 30px 90px rgba(0,0,0,.65), inset 0 0 0 2px #08080a;
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 46px;
  background: #101010;
  isolation: isolate;
}

.iphone-screen::before {
  content: "";
  position: absolute;
  z-index: 50;
  top: 9px;
  left: 50%;
  width: 112px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #050505;
  pointer-events: none;
}

.iphone-lock-screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  border-radius: 46px;
  padding-top: 48px;
}

.iphone-lock-screen[hidden],
.iphone-home-screen[hidden],
.iphone-app-view[hidden] {
  display: none !important;
}

.iphone-lock-time {
  font-size: clamp(76px, 18vw, 112px);
}

.iphone-unlock-button {
  margin-bottom: 42px;
}

.iphone-home-screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 48px 24px 24px;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(174,135,205,.55), transparent 42%),
    radial-gradient(ellipse at 85% 65%, rgba(70,89,155,.65), transparent 45%),
    linear-gradient(145deg, #17152c, #35304f 48%, #111827);
}

.iphone-home-status {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}

.iphone-home-welcome {
  margin: 76px 0 34px;
}

.iphone-home-welcome p {
  margin: 0 0 7px;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: .7;
}

.iphone-home-welcome h2 {
  font-size: 27px;
  color: white;
}

.iphone-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 12px;
  align-items: start;
}

.iphone-app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  color: white;
  font-size: 11px;
  font-weight: 500;
}

.app-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  font-size: 35px;
  box-shadow: 0 5px 14px rgba(0,0,0,.25);
}

.app-icon-post {
  background: linear-gradient(145deg, #f7b36c, #d94d83 55%, #7652ba);
}

.app-icon-dm {
  background: linear-gradient(145deg, #6bc9ec, #4774d9 55%, #7652ba);
}

.iphone-dock {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(20px);
}

.dock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
}

.iphone-home-screen .iphone-home-indicator {
  bottom: 7px;
}

.iphone-app-view {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 42px;
  background: #101010;
  color: #f5f5f5;
  scrollbar-width: thin;
}

.iphone-app-view .topbar {
  height: 54px;
  padding: 0 15px;
}

.iphone-app-view .brand {
  font-size: 20px;
}

.iphone-app-view .local-label {
  font-size: 8px;
}

.iphone-app-view .studio-tabs {
  gap: 6px;
  padding: 10px 8px 0;
}

.iphone-app-view .studio-tab {
  flex: 1;
  padding: 9px 5px;
  font-size: 11px;
}

.iphone-app-view .workspace,
.iphone-app-view .dm-workspace {
  width: 100%;
  margin: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.iphone-app-view .editor {
  min-width: 0;
  padding: 17px;
  border-radius: 14px;
}

.iphone-app-view .preview-area {
  min-width: 0;
  width: 100%;
}

.iphone-app-view .preview-heading {
  margin: 4px 0 12px;
}

.iphone-app-view .preview-heading h2 {
  font-size: 17px;
}

.iphone-app-view .post {
  width: 100%;
}

.iphone-app-view .iphone-home-button {
  position: fixed;
  z-index: 20;
  bottom: 16px;
  left: 50%;
  width: 112px;
  height: 5px;
  min-height: 5px;
  padding: 0;
  border-radius: 10px;
  background: white;
  transform: translateX(-50%);
  opacity: .9;
}

@media (max-height: 620px) {
  body { overflow: auto; }
  .iphone-device {
    height: 94vh;
    width: min(430px, 94vw);
  }
}


/* IPHONE LOCK SCREEN CONTROLS */
.iphone-lock-screen {
  z-index: 30;
  border-radius: 46px;
  overflow: hidden;
}
.iphone-lock-screen[hidden],
.iphone-home-screen[hidden],
.iphone-app-view[hidden],
.iphone-placeholder-app[hidden],
.iphone-app-view [hidden] {
  display: none !important;
}
.iphone-lock-screen button {
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.iphone-unlock-button {
  position: relative;
  z-index: 3;
  cursor: pointer;
}
.iphone-lock-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  display: flex;
  justify-content: space-between;
  padding: 0 27px;
  pointer-events: none;
}
.lock-control {
  width: 48px;
  height: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: white;
  background: rgba(30,30,40,.38);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}
.lock-control svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lock-control[aria-pressed="true"] {
  color: #17151f;
  background: #fff;
  box-shadow: 0 0 22px rgba(255,255,255,.65);
}

/* IPHONE HOME SCREEN APP GRID */
.iphone-home-screen {
  z-index: 10;
  padding: 48px 19px 25px;
}
.iphone-home-welcome {
  margin: 54px 0 27px;
}
.iphone-app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 23px 7px;
  align-items: start;
}
.iphone-app-icon {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: white;
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.app-icon {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-size: 29px;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.app-icon-post { background: linear-gradient(145deg,#f7b36c,#d94d83 55%,#7652ba); }
.app-icon-dm { background: linear-gradient(145deg,#6bc9ec,#4774d9 55%,#7652ba); }
.app-icon-instagram { background: linear-gradient(35deg,#ffd776,#f34c67 48%,#9b4bc3); }
.app-icon-messages { background: linear-gradient(145deg,#74e58b,#19a94f); }
.app-icon-photos { background: #f5f5f5; color: #ee7b85; }
.app-icon-camera { background: linear-gradient(145deg,#777,#252525); }
.app-icon-safari { background: linear-gradient(145deg,#8be1ff,#1675d1); }
.app-icon-settings { background: linear-gradient(145deg,#bfc5ce,#59616d); }
.app-icon-notes { background: linear-gradient(145deg,#fff5a7,#e5d77d); color: #554b2e; }
.app-icon-mail { background: linear-gradient(145deg,#79caff,#2672c9); }
.app-icon-music { background: linear-gradient(145deg,#f69bb9,#c62f72); }
.app-icon-calendar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  background: #fff;
  color: #242424;
  font-size: 21px;
  font-weight: 700;
}
.app-icon-calendar small {
  color: #e44c4c;
  font-size: 8px;
  letter-spacing: .5px;
}
.iphone-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 11px 9px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 23px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(20px);
}
.iphone-dock button {
  padding: 0;
  background: transparent;
}
.dock-app {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-size: 27px;
}
.dock-phone { background: linear-gradient(145deg,#7ee58c,#16a34a); }
.dock-messages { background: linear-gradient(145deg,#74e58b,#19a94f); }
.dock-safari { background: linear-gradient(145deg,#8be1ff,#1675d1); }
.dock-music { background: linear-gradient(145deg,#f69bb9,#c62f72); }

/* PLACEHOLDER APP SCREENS */
.iphone-placeholder-app {
  min-height: 75vh;
  padding: 24px;
  color: #f7f7f7;
  background: #111;
}
.placeholder-app-content {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.placeholder-app-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 22px;
  background: linear-gradient(145deg,#9b82d5,#4c65a5);
  font-size: 40px;
}
.placeholder-app-content h2 {
  color: white;
  font-size: 25px;
}
.placeholder-app-content p {
  color: #aaa;
  font-size: 13px;
}
.placeholder-app-content .placeholder-app-note {
  margin-top: 30px;
  color: #777;
  font-size: 11px;
}


/* REALISTIC IPHONE APP ICON DETAILS */

.app-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.app-icon-notes {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
}

.notes-yellow {
    height: 15px;
    flex: none;
    background: linear-gradient(#ffe77d, #ffd84a);
    border-bottom: 1px solid #e9c94b;
}

.notes-lines {
    flex: 1;
    background: repeating-linear-gradient(
        to bottom,
        white 0px,
        white 7px,
        #c5d9ed 8px,
        white 9px
    );
}

.app-icon-mail {
    padding: 4px;
    background: linear-gradient(145deg, #65b7f2, #2475c9);
}

.app-icon-settings {
    padding: 2px;
    background: linear-gradient(145deg, #cbd0d8, #737b88);
}

.app-icon-safari {
    padding: 2px;
    background: #d9f4ff;
}

.app-icon-camera {
    padding: 2px;
    background: #aeb2b8;
}

.app-icon-photos {
    padding: 3px;
    background: white;
}

.app-icon-messages {
    padding: 3px;
    background: linear-gradient(145deg, #70e78a, #16a34a);
}

.app-icon-calendar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding-top: 5px;
    background: white;
    color: #242424;
}

.app-icon-calendar small {
    color: #e04444;
    font-size: 9px;
    font-weight: 800;
}

.app-icon-calendar span {
    font-size: 23px;
    font-weight: 700;
}


/* IPHONE APP NAVIGATION */
.iphone-app-navigation {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 54px;
  padding: 0 15px;
  background: rgba(20, 20, 24, .94);
  border-bottom: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(18px);
}

.app-back-button {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 5px;
  padding: 7px 0;
  background: transparent;
  color: #a9c8ff;
  font-size: 15px;
  cursor: pointer;
}

.app-back-button span:first-child {
  font-size: 29px;
  line-height: 16px;
}

.iphone-app-navigation-title {
  color: white;
  font-size: 15px;
  font-weight: 650;
  text-align: center;
}

.iphone-app-navigation-spacer {
  min-width: 1px;
}

.iphone-app-view .iphone-home-button {
  position: fixed;
  z-index: 60;
  bottom: 16px;
  left: 50%;
  width: 112px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  transform: translateX(-50%);
  cursor: grab;
}

.iphone-app-view .iphone-home-button::after {
  content: "";
  display: block;
  width: 112px;
  height: 5px;
  margin: auto;
  border-radius: 10px;
  background: white;
  opacity: .95;
}

.iphone-placeholder-app[hidden] {
  display: none !important;
}


/* POLISHED IOS ICONS */
.app-icon-files {
  background: #fff !important;
  overflow: hidden;
}

.app-icon-books {
  background: linear-gradient(145deg, #ffb52e, #ff6a18) !important;
  overflow: hidden;
}

.app-icon-safari {
  background: #fff !important;
  overflow: hidden;
}

.app-icon-notes {
  background: #fff !important;
  overflow: hidden;
}

.app-icon-files svg,
.app-icon-books svg,
.app-icon-safari svg,
.app-icon-notes svg {
  width: 100%;
  height: 100%;
  display: block;
}


/* FINAL HOME SCREEN ICON DETAILS */
.app-icon-settings svg {
  width: 100%;
  height: 100%;
  display: block;
}

.app-icon-safari svg {
  width: 100%;
  height: 100%;
  display: block;
}

.iphone-dock .dock-app {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
}

.iphone-dock .dock-app svg {
  display: block;
  width: 100%;
  height: 100%;
}

.iphone-dock .dock-safari {
  background: white;
}

.iphone-dock .dock-messages {
  background: #20c65a;
}

.iphone-dock .dock-phone {
  background: #20c65a;
}

/* FINAL POST HEADER FIX — keep username and verification badge together */
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-header > .avatar {
  flex: 0 0 34px;
}

.post-header > .post-user {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
}

.post-user .post-name-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
}

.post-user .post-name-row strong {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
}

.post-user .post-name-row .verified-badge {
  display: inline-flex;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
}

.post-user #previewLocation {
  display: block !important;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-header-right {
  flex: 0 0 auto;
  margin-left: auto;
}

/* FIX: Keep the complete Instagram username on one line */
.post-header .post-user {
  min-width: 0 !important;
  overflow: visible !important;
}

.post-header .post-name-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
  width: max-content !important;
  max-width: none !important;
}

.post-header .post-name-row strong {
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: max-content !important;
  white-space: nowrap !important;
  overflow: visible !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-overflow: clip !important;
}

.post-header .post-name-row .verified-badge {
  flex: 0 0 16px !important;
  margin-left: 4px !important;
}

/* Username fit: smaller text and better use of header space */
.post-header > .post-user {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

.post-header .post-name-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 3px !important;
}

.post-header .post-name-row strong {
  font-size: 10px !important;
  letter-spacing: -0.3px !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

.post-header .post-name-row .verified-badge {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
  margin: 0 !important;
}


/* =========================================
   INSTAGRAM APP — PHONE INTERFACE
   ========================================= */

.instagram-app-screen {
  min-height: 75vh;
  padding-bottom: 34px;
  color: #171717;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.instagram-app-screen[hidden] {
  display: none !important;
}

.instagram-app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.instagram-wordmark {
  font-family: Georgia, serif;
  font-size: 25px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -1px;
}

.instagram-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.instagram-header-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #171717;
  font-size: 28px;
  cursor: pointer;
}

.instagram-screen-content {
  min-height: 60vh;
}

.instagram-app-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
}

.instagram-app-tab {
  flex: 1;
  padding: 13px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: #fff;
  color: #777;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.instagram-app-tab.active {
  border-bottom-color: #171717;
  color: #171717;
}

.instagram-stories {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 13px 14px;
  border-bottom: 1px solid #eee;
}

.instagram-story {
  display: flex;
  flex: 0 0 62px;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #333;
}

.instagram-story-ring {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(35deg, #feda75, #fa7e1e, #d62976, #962fbf);
}

.instagram-story-avatar {
  display: grid;
  width: 51px;
  height: 51px;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: #f2f2f2;
  color: #333;
  font-size: 24px;
}

.instagram-feed-posts {
  display: flex;
  flex-direction: column;
}

.instagram-feed-empty {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.instagram-feed-empty > span {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  margin-bottom: 12px;
  border: 2px solid #222;
  border-radius: 50%;
  font-size: 42px;
}

.instagram-feed-empty h2 {
  margin: 5px 0;
  font-size: 19px;
}

.instagram-feed-empty p {
  max-width: 230px;
  color: #777;
  font-size: 13px;
  line-height: 1.5;
}

.instagram-feed-post {
  border-bottom: 1px solid #eee;
}

.instagram-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
}

.instagram-post-avatar,
.instagram-message-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #e9e9e9;
  font-size: 13px;
  font-weight: 700;
}

.instagram-post-avatar img,
.instagram-message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-post-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.instagram-post-author strong {
  font-size: 13px;
}

.instagram-post-location {
  color: #777;
  font-size: 11px;
}

.instagram-post-photo {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  background: #f5f5f5;
}

.instagram-post-actions {
  display: flex;
  gap: 15px;
  padding: 10px 13px 4px;
  font-size: 25px;
}

.instagram-post-details {
  padding: 0 13px 13px;
  font-size: 12px;
  line-height: 1.5;
}

.instagram-post-details strong {
  font-weight: 700;
}

.instagram-messages-screen {
  min-height: 55vh;
  background: #fff;
}

.instagram-messages-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
}

.instagram-messages-heading h2 {
  margin: 0;
  font-size: 18px;
}

.instagram-messages-heading-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  flex-shrink: 0;
  text-align: center;
}

.instagram-messages-heading .instagram-messages-heading-actions > span:first-child {
  font-size: 22px;
  line-height: 1;
}

.instagram-messages-heading .instagram-messages-heading-actions .instagram-messages-requests {
  display: block;
  margin-top: 1px;
  font-size: 10px !important;
  line-height: 1;
  color: #a5a5a5 !important;
  opacity: 0.45;
  font-weight: 400;
  white-space: nowrap;
}

.instagram-inbox {
  display: flex;
  flex-direction: column;
}

.instagram-inbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.instagram-inbox-item:hover {
  background: #f8f8f8;
}

.instagram-inbox-details {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.instagram-inbox-details strong {
  font-size: 13px;
}

.instagram-inbox-details span {
  overflow: hidden;
  color: #888;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instagram-messages-empty {
  padding: 30px 20px;
  color: #777;
  font-size: 13px;
  text-align: center;
}

.instagram-conversation-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.instagram-conversation-header button {
  border: 0;
  background: transparent;
  font-size: 28px;
}

.instagram-conversation-header strong {
  font-size: 14px;
}

.instagram-conversation-messages {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  gap: 9px;
  padding: 18px 14px;
}

.instagram-dm-message {
  max-width: 78%;
  padding: 10px 13px;
  border-radius: 18px;
  background: #efefef;
  color: #171717;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.instagram-dm-message.outgoing {
  align-self: flex-end;
  background: #3797f0;
  color: white;
}

.instagram-bottom-navigation {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: 54px;
  border-top: 1px solid #eee;
  background: #fff;
}

.instagram-bottom-navigation button {
  width: 20%;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #171717;
  font-size: 25px;
  cursor: pointer;
}

.instagram-bottom-navigation button.active {
  font-weight: 800;
}


/* INSTAGRAM AU — REALISTIC FEED REDESIGN */
#instagramAppScreen {
  position: relative;
  background: #fff !important;
  color: #111 !important;
  min-height: 100%;
  padding-bottom: 66px !important;
  font-family: Arial, Helvetica, sans-serif;
}
#instagramAppScreen .ig-real-header {
  height: 52px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid #eee;
  background: #fff;
}
#instagramAppScreen .ig-header-action {
  border: 0;
  background: none;
  color: #111;
  font-size: 29px;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
#instagramAppScreen .ig-header-action:last-child { text-align: right; }
#instagramAppScreen .ig-wordmark {
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1.2px;
}
#instagramAppScreen .ig-stories {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  padding: 12px 12px 10px;
  border-bottom: 1px solid #eee;
  scrollbar-width: none;
  background: #fff;
}
#instagramAppScreen .ig-stories::-webkit-scrollbar { display: none; }
#instagramAppScreen .ig-story {
  flex: 0 0 62px;
  width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  padding: 0;
}
#instagramAppScreen .ig-story-ring {
  width: 62px;
  height: 62px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(35deg,#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5);
}
#instagramAppScreen .ig-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #e9e9ed;
  color: #555;
  font-weight: 600;
}
#instagramAppScreen .ig-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#instagramAppScreen .ig-story-avatar {
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  font-size: 19px;
}
#instagramAppScreen .ig-add-story .ig-story-avatar {
  position: relative;
  background: #eee;
}
#instagramAppScreen .ig-story-plus {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: #1685ee;
  color: white;
  font-size: 17px;
}
#instagramAppScreen .ig-story-label {
  width: 66px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font-size: 11px;
  color: #222;
}
#instagramAppScreen .ig-post {
  background: white;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}
#instagramAppScreen .ig-post-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
}
#instagramAppScreen .ig-post-avatar {
  width: 35px;
  height: 35px;
  font-size: 14px;
}
#instagramAppScreen .ig-post-identity { flex: 1; min-width: 0; }
#instagramAppScreen .ig-name-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
#instagramAppScreen .ig-verified {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #1685ee;
  color: #111;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
#instagramAppScreen .ig-location {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #555;
}
#instagramAppScreen .ig-more {
  border: 0;
  background: none;
  font-size: 24px;
}
#instagramAppScreen .ig-post-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f1f1f1;
}
#instagramAppScreen .ig-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#instagramAppScreen .ig-image-placeholder {
  color: #aaa;
  font-size: 13px;
  letter-spacing: .2px;
}
#instagramAppScreen .ig-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px 5px;
}
#instagramAppScreen .ig-action-group {
  display: flex;
  align-items: center;
  gap: 15px;
}
#instagramAppScreen .ig-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #111;
  padding: 0;
}
#instagramAppScreen .ig-action-symbol { font-size: 25px; line-height: 1; }
#instagramAppScreen .ig-action-count { font-size: 12px; font-weight: 600; }
#instagramAppScreen .ig-liked-by,
#instagramAppScreen .ig-caption,
#instagramAppScreen .ig-comment {
  padding: 2px 12px;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
#instagramAppScreen .ig-post-time {
  padding: 7px 12px 2px;
  color: #888;
  font-size: 9px;
  letter-spacing: .35px;
  text-transform: uppercase;
}
#instagramAppScreen .ig-empty-feed {
  padding: 35px 15px;
  text-align: center;
  color: #888;
  font-size: 13px;
}
#instagramAppScreen .ig-bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 20;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid #eee;
  background: #fff;
}
#instagramAppScreen .ig-nav-button {
  width: 20%;
  height: 52px;
  border: 0;
  background: none;
  color: #111;
  font-size: 27px;
  cursor: pointer;
}
#instagramAppScreen .ig-nav-button.ig-profile-nav { font-size: 20px; }
#instagramAppScreen .ig-nav-button.active { font-weight: 900; }
#instagramAppScreen #instagramMessagesScreen {
  padding-bottom: 10px;
}

/* Correct original Instagram app header: plus | centered wordmark | heart */
#instagramAppScreen .instagram-app-header {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  min-height: 54px;
  padding: 0 16px !important;
}
#instagramAppScreen .instagram-wordmark {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  text-align: center !important;
}
#instagramAppScreen .instagram-header-actions {
  display: contents !important;
}
#instagramAppScreen .instagram-header-actions button[aria-label="Create"] {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
}
#instagramAppScreen .instagram-header-actions button[aria-label="Notifications"] {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
}
#instagramAppScreen .instagram-header-actions button {
  font-weight: 300 !important;
  font-size: 27px !important;
  line-height: 1 !important;
  border: 0 !important;
  background: transparent !important;
  padding: 3px !important;
}

/* Proper outlined Instagram post action icons */
#instagramAppScreen .ig-post-actions {
  justify-content: space-between !important;
}
#instagramAppScreen .ig-action-group {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}
#instagramAppScreen .ig-action {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}
#instagramAppScreen .ig-action-symbol {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 25px !important;
  height: 25px !important;
  font-size: 0 !important;
}
#instagramAppScreen .ig-action-symbol svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
#instagramAppScreen .ig-save-action {
  margin-left: auto !important;
}

/* Bottom navigation icon refinements only */
#instagramAppScreen .ig-bottom-nav button svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#instagramAppScreen .ig-bottom-nav button:nth-child(3) svg {
  transform: rotate(-12deg);
}
#instagramAppScreen .ig-bottom-nav button:nth-child(4) svg {
  width: 27px;
  height: 27px;
  stroke-width: 2;
}
#instagramAppScreen .ig-bottom-nav .ig-nav-profile-photo {
  display: block;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid currentColor;
}

/* Reliable iPhone unlock button hit area */
#iphoneLockScreen #iphoneUnlockButton {
  position: relative !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
  cursor: pointer;
  touch-action: manipulation;
}

/* INSTAGRAM AU — FIXED IPHONE APP LAYOUT */
#instagramAppScreen {
  position: absolute !important;
  inset: 0 !important;
  z-index: 15;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  padding: 42px 0 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  background: #fff !important;
}

#instagramAppScreen[hidden] {
  display: none !important;
}

#instagramAppScreen .ig-real-header {
  flex: 0 0 52px;
  min-height: 52px;
}

#instagramAppScreen .ig-stories {
  flex: 0 0 auto;
  min-height: 0;
}

#instagramAppScreen .instagram-screen-content {
  display: flex !important;
  flex: 1 1 0 !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
}

#instagramAppScreen #instagramFeedScreen:not([hidden]),
#instagramAppScreen #instagramMessagesScreen:not([hidden]) {
  display: flex !important;
  flex: 1 1 0 !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
}

#instagramAppScreen #instagramFeedPosts {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#instagramAppScreen #instagramInbox,
#instagramAppScreen #instagramConversationMessages {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#instagramAppScreen .ig-bottom-nav {
  position: relative !important;
  inset: auto !important;
  z-index: 20;
  flex: 0 0 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  margin-top: auto;
}



/* FINAL INSTAGRAM STORY AND HEADER POLISH */
#instagramAppScreen .ig-header-action {
  font-family: "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 200 !important;
  -webkit-text-stroke: .35px #fff;
  font-size: 29px !important;
  line-height: 1 !important;
}

#instagramAppScreen .ig-stories {
  flex: 0 0 100px !important;
  height: 100px !important;
  min-height: 100px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  align-items: flex-start !important;
  padding: 10px 12px 8px !important;
}

#instagramAppScreen .ig-story {
  flex: 0 0 66px !important;
  width: 66px !important;
  min-height: 82px !important;
  gap: 4px !important;
  overflow: visible !important;
}

#instagramAppScreen .ig-story-ring {
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  flex: 0 0 62px !important;
  width: 62px !important;
  height: 62px !important;
  padding: 3px !important;
}

#instagramAppScreen .ig-story-avatar {
  box-sizing: border-box !important;
  width: 56px !important;
  height: 56px !important;
  border: 2px solid #fff !important;
}

#instagramAppScreen .ig-add-story .ig-story-avatar {
  background: #eee !important;
}

#instagramAppScreen .ig-add-story .ig-story-plus {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1685ee !important;
  font-family: "Helvetica Neue", Arial, sans-serif !important;
  font-size: 29px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
}

#instagramAppScreen .ig-story-label {
  display: block !important;
  flex: 0 0 15px !important;
  width: 66px !important;
  height: 15px !important;
  min-height: 15px !important;
  overflow: visible !important;
  line-height: 15px !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
  text-align: center !important;
  font-size: 11px !important;
}


/* Rounded Instagram-style activity heart and circular story center */
#instagramAppScreen .ig-heart-action {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  color: #111 !important;
}

#instagramAppScreen .ig-heart-action svg {
  display: block !important;
  width: 25px !important;
  height: 25px !important;
  overflow: visible !important;
}

#instagramAppScreen .ig-heart-action svg path {
  stroke-width: 1.8 !important;
}

#instagramAppScreen .ig-story-ring {
  border-radius: 50% !important;
  overflow: hidden !important;
}

#instagramAppScreen .ig-story-avatar {
  border-radius: 50% !important;
  overflow: hidden !important;
  background-clip: padding-box !important;
}

/* Refine the header plus: slightly smaller, a little stronger, centered */
#instagramAppScreen .ig-real-header > .ig-header-action:first-child {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  align-self: center !important;
  height: 25px !important;
  padding: 0 !important;
  font-size: 25px !important;
  font-weight: 400 !important;
  line-height: 25px !important;
  transform: translateY(-1px) !important;
  -webkit-text-stroke: 0 !important;
}


/* INSTAGRAM DIRECT — inbox and conversation styling */
#instagramAppScreen .instagram-messages-screen {
  min-height: 55vh;
  background: #fff;
}

#instagramAppScreen .instagram-inbox-item {
  min-height: 76px;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #f5f5f5;
}

#instagramAppScreen .instagram-inbox-item .instagram-message-avatar {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  font-size: 18px;
}

#instagramAppScreen .instagram-inbox-information {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

#instagramAppScreen .instagram-inbox-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
}

#instagramAppScreen .instagram-inbox-information .instagram-inbox-heading strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#instagramAppScreen .instagram-inbox-information .instagram-inbox-verified {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3897f0;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

#instagramAppScreen .instagram-inbox-information .instagram-inbox-username {
  color: #777;
  font-size: 11px;
}

#instagramAppScreen .instagram-inbox-information .instagram-inbox-preview {
  overflow: hidden;
  color: #888;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#instagramAppScreen .instagram-inbox-information .instagram-inbox-details {
  display: flex;
  min-height: 0;
  color: #999;
  font-size: 11px;
}

#instagramAppScreen .instagram-inbox-information .instagram-inbox-status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#instagramAppScreen .instagram-inbox-information strong {
  color: #111;
  font-size: 14px;
  font-weight: 600;
}

#instagramAppScreen .instagram-inbox-information span {
  overflow: hidden;
  color: #888;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#instagramAppScreen .instagram-conversation-view:not([hidden]) {
  display: flex;
  min-height: 55vh;
  flex-direction: column;
  background: #fff;
}

#instagramAppScreen .instagram-conversation-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 62px;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  padding: 7px 13px;
  border-bottom: 1px solid #efefef;
  background: #fff;
}

#instagramAppScreen .instagram-conversation-header > button {
  width: 25px;
  padding: 0;
  color: #111;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

#instagramAppScreen .instagram-conversation-header .instagram-message-avatar {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  font-size: 14px;
}

#instagramAppScreen .instagram-conversation-identity {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

#instagramAppScreen .instagram-conversation-identity strong {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #111;
  font-size: 14px;
  font-weight: 650;
}

#instagramAppScreen .instagram-conversation-identity > span {
  color: #8e8e8e;
  font-size: 11px;
}

#instagramAppScreen .instagram-verified-badge {
  display: inline-grid;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  place-items: center;
  border-radius: 50%;
  background: #3897f0;
  color: white;
  font-size: 9px;
  font-weight: 700;
}

#instagramAppScreen .instagram-conversation-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #111;
  font-size: 21px;
}

#instagramAppScreen .instagram-conversation-messages {
  display: flex;
  min-height: 300px;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 18px 13px 20px;
  background: #fff;
}

#instagramAppScreen .instagram-conversation-bubble-row {
  display: flex;
  width: 100%;
  align-items: flex-end;
}

#instagramAppScreen .instagram-conversation-bubble-row.incoming {
  justify-content: flex-start;
}

#instagramAppScreen .instagram-conversation-bubble-row.outgoing {
  justify-content: flex-end;
}

#instagramAppScreen .instagram-conversation-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border: 1px solid #efefef;
  border-radius: 21px;
  background: #efefef;
  color: #111;
  font-size: 14px;
  line-height: 1.38;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#instagramAppScreen .instagram-conversation-bubble-row.incoming
.instagram-conversation-bubble {
  border-bottom-left-radius: 6px;
  background: #efefef;
  color: #111;
}

#instagramAppScreen .instagram-conversation-bubble-row.outgoing
.instagram-conversation-bubble {
  border: 0;
  border-bottom-right-radius: 6px;
  background: linear-gradient(135deg, #833ab4 0%, #c13584 48%, #405de6 100%);
  color: #fff;
}

#instagramAppScreen .instagram-dm-composer {
  display: flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  gap: 13px;
  margin: 8px 10px 12px;
  padding: 5px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 25px;
  background: #fff;
  color: #111;
  font-size: 20px;
}

#instagramAppScreen .instagram-dm-camera {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #833ab4, #405de6);
  color: #fff;
  font-size: 19px;
}

#instagramAppScreen .instagram-dm-input {
  min-width: 0;
  flex: 1;
  color: #8e8e8e;
  font-size: 13px;
}

#instagramAppScreen .instagram-dm-composer > span:not(.instagram-dm-camera) {
  font-size: 18px;
}



/* INSTAGRAM STUDIO LIGHT MODE — POST + DM */
:root {
  color-scheme: light;
  --ink: #262626;
  --muted: #8e8e8e;
  --line: #dbdbdb;
  --paper: #ffffff;
  --canvas: #fafafa;
}

body {
  background: #fafafa !important;
  color: #262626 !important;
}

.topbar,
.studio-tabs {
  background: #ffffff !important;
  color: #262626 !important;
  border-color: #dbdbdb !important;
}

.brand,
.brand span {
  color: #262626 !important;
}

.local-label,
.muted,
.privacy-note,
.preview-hint {
  color: #737373 !important;
}

.editor,
.dm-message-item,
.dm-placeholder {
  background: #ffffff !important;
  color: #262626 !important;
  border-color: #dbdbdb !important;
}

.eyebrow {
  color: #8a6b82 !important;
}

.field label,
.dm-section-title,
.dm-placeholder h3 {
  color: #262626 !important;
}

input,
textarea,
select {
  color-scheme: light;
  background: #ffffff !important;
  color: #262626 !important;
  border-color: #dbdbdb !important;
}

input:focus,
textarea:focus {
  outline-color: #a8a8a8 !important;
}

.primary,
.studio-tab.active {
  background: #0095f6 !important;
  border-color: #0095f6 !important;
  color: #ffffff !important;
}

.secondary,
.studio-tab {
  background: #f5f5f5 !important;
  border-color: #dbdbdb !important;
  color: #262626 !important;
}

.studio-tab.active {
  background: #0095f6 !important;
  color: #ffffff !important;
}

.preview-dot {
  color: #287a48 !important;
  background: #e5f5eb !important;
}

/* Instagram post preview */
.post,
.post-card,
.post-header,
.post-actions,
.post-body {
  background: #ffffff !important;
  color: #262626 !important;
  border-color: #dbdbdb !important;
}

.caption,
.comments,
.comment,
.comment strong,
.caption strong {
  color: #262626 !important;
}

.photo-frame {
  background: #f2f2f2 !important;
}

.photo-placeholder {
  color: #737373 !important;
}

/* DM Studio preview */
.dm-phone {
  background: #ffffff !important;
  color: #262626 !important;
  border-color: #dbdbdb !important;
  box-shadow: 0 15px 45px rgba(0,0,0,.10) !important;
}

.dm-chat-header,
.dm-chat {
  background: #ffffff !important;
  color: #262626 !important;
  border-color: #efefef !important;
}

.dm-header-copy,
.dm-header-copy strong {
  color: #262626 !important;
}

.dm-header-copy span,
.dm-message-meta,
.dm-empty {
  color: #8e8e8e !important;
}

.dm-avatar {
  background: #efefef !important;
  color: #262626 !important;
}

.dm-bubble-row.incoming .dm-bubble {
  background: #efefef !important;
  color: #262626 !important;
}

.dm-bubble-row.outgoing .dm-bubble {
  background: #3797f0 !important;
  color: #ffffff !important;
}

.dm-preview-footer {
  background: #ffffff !important;
  color: #8e8e8e !important;
  border-color: #efefef !important;
}

.dm-message-item p {
  color: #262626 !important;
}


/* FINAL LIGHT MODE FIX — ACTUAL IPHONE APP VIEW */

/* The iPhone hardware frame stays dark; the apps displayed inside it are light. */
.iphone-app-view {
  background: #ffffff !important;
  color: #262626 !important;
  color-scheme: light !important;
}

.iphone-app-view .topbar,
.iphone-app-view .studio-tabs,
.iphone-app-view .workspace,
.iphone-app-view .dm-workspace,
.iphone-app-view .editor,
.iphone-app-view .preview-area,
.iphone-app-view .preview-heading {
  background: #ffffff !important;
  color: #262626 !important;
  border-color: #dbdbdb !important;
}

.iphone-app-view h1,
.iphone-app-view h2,
.iphone-app-view h3,
.iphone-app-view p,
.iphone-app-view label,
.iphone-app-view .brand,
.iphone-app-view .brand span,
.iphone-app-view .field label,
.iphone-app-view .eyebrow,
.iphone-app-view .muted {
  color: #262626 !important;
}

.iphone-app-view input,
.iphone-app-view textarea,
.iphone-app-view select {
  background: #ffffff !important;
  color: #262626 !important;
  border-color: #dbdbdb !important;
  color-scheme: light !important;
}

/* Post Studio preview */
.iphone-app-view #postCard,
.iphone-app-view #postCard .post-header,
.iphone-app-view #postCard .post-actions,
.iphone-app-view #postCard .post-body,
.iphone-app-view #postCard .liked-by-row {
  background: #ffffff !important;
  color: #262626 !important;
  border-color: #dbdbdb !important;
}

.iphone-app-view #postCard .post-user,
.iphone-app-view #postCard .post-user *,
.iphone-app-view #postCard .post-header-right,
.iphone-app-view #postCard .post-header-right .more,
.iphone-app-view #postCard .action-count,
.iphone-app-view #postCard .liked-by-row,
.iphone-app-view #postCard .liked-by-row strong,
.iphone-app-view #postCard .caption,
.iphone-app-view #postCard .caption strong,
.iphone-app-view #postCard .comments,
.iphone-app-view #postCard .comment,
.iphone-app-view #postCard .comment strong,
.iphone-app-view #postCard .post-age {
  color: #262626 !important;
}

.iphone-app-view #postCard .photo-frame {
  background: #f2f2f2 !important;
}

.iphone-app-view #postCard .photo-placeholder {
  color: #737373 !important;
}

.iphone-app-view #postCard .liked-by-avatar-fallback {
  background: #efefef !important;
  color: #262626 !important;
}

/* DM Studio preview */
.iphone-app-view #dmCapture,
.iphone-app-view #dmCapture .dm-chat-header,
.iphone-app-view #dmCapture .dm-chat,
.iphone-app-view #dmCapture .dm-preview-footer {
  background: #ffffff !important;
  color: #262626 !important;
  border-color: #dbdbdb !important;
}

.iphone-app-view #dmCapture .dm-header-copy,
.iphone-app-view #dmCapture .dm-header-copy strong {
  color: #262626 !important;
}

.iphone-app-view #dmCapture .dm-header-copy span,
.iphone-app-view #dmCapture .dm-empty {
  color: #8e8e8e !important;
}

.iphone-app-view #dmCapture .dm-bubble-row.incoming .dm-bubble {
  background: #efefef !important;
  color: #262626 !important;
}

.iphone-app-view #dmCapture .dm-bubble-row.outgoing .dm-bubble {
  background: #3797f0 !important;
  color: #ffffff !important;
}

/* This composer had its own explicit dark !important rule. */
.iphone-app-view #dmCapture .dm-composer {
  background: #ffffff !important;
  color: #262626 !important;
  border-top: 1px solid #dbdbdb !important;
}

.iphone-app-view #dmCapture .dm-composer-field {
  background: #ffffff !important;
  color: #262626 !important;
  border: 1px solid #dbdbdb !important;
}

.iphone-app-view #dmCapture .dm-composer-placeholder {
  color: #8e8e8e !important;
}

.iphone-app-view #dmCapture .dm-composer-icons,
.iphone-app-view #dmCapture .dm-composer-icons * {
  color: #3797f0 !important;
}



/* OUTER STUDIO PAGE — SOFT LIGHT BACKGROUND */
.iphone-app-view {
  background: #f4f4f4 !important;
  color: #262626 !important;
}

.iphone-app-view .topbar,
.iphone-app-view .studio-tabs {
  background: #f4f4f4 !important;
}

.iphone-app-view .workspace,
.iphone-app-view .dm-workspace {
  background: #f4f4f4 !important;
}


/* BLACK OUTER PAGE — LIGHT STUDIO PANELS */
.iphone-app-view {
  background: #101010 !important;
  color: #f5f5f5 !important;
}

.iphone-app-view .topbar,
.iphone-app-view .studio-tabs,
.iphone-app-view .workspace,
.iphone-app-view .dm-workspace {
  background: #101010 !important;
}


/* TRUE BLACK PAGE BACKGROUND — POST + DM STUDIO */
html:has(#iphoneAppView:not([hidden])),
body:has(#iphoneAppView:not([hidden])) {
  background: #101010 !important;
  background-color: #101010 !important;
  background-image: none !important;
}

/* FINAL COLORS */
.iphone-app-view,
.iphone-app-view .topbar,
.iphone-app-view .studio-tabs,
.iphone-app-view #postStudio,
.iphone-app-view #dmStudio,
.iphone-app-view #dmStudio .editor,
.iphone-app-view #dmStudio .preview-area {
  background: #101010 !important;
  color: #f5f5f5 !important;
}
.iphone-app-view #postStudio .editor,
.iphone-app-view #postStudio .preview-area,
.iphone-app-view #postCard {
  background: #fff !important;
  color: #262626 !important;
}

/* DM STUDIO — LIGHT WORKSPACE, BLACK OUTSIDE */
.iphone-app-view #dmStudio,
.iphone-app-view #dmStudio .editor,
.iphone-app-view #dmStudio .preview-area,
.iphone-app-view #dmCapture,
.iphone-app-view #dmCapture .dm-chat-header,
.iphone-app-view #dmCapture .dm-chat,
.iphone-app-view #dmCapture .dm-composer {
  background: #fff !important;
  color: #262626 !important;
}
.iphone-app-view #dmStudio .editor *,
.iphone-app-view #dmStudio .preview-area {
  color: #262626;
}
.iphone-app-view #dmCapture .dm-bubble-row.incoming .dm-bubble {
  background: #efefef !important;
  color: #262626 !important;
}
.iphone-app-view #dmCapture .dm-bubble-row.outgoing .dm-bubble {
  background: #3797f0 !important;
  color: #fff !important;
}

/* DM STUDIO — LIGHT WORKSPACE, BLACK OUTSIDE */
.iphone-app-view #dmStudio,
.iphone-app-view #dmStudio .editor,
.iphone-app-view #dmStudio .preview-area,
.iphone-app-view #dmCapture,
.iphone-app-view #dmCapture .dm-chat-header,
.iphone-app-view #dmCapture .dm-chat,
.iphone-app-view #dmCapture .dm-composer {
  background: #fff !important;
  color: #262626 !important;
}
.iphone-app-view #dmStudio .editor *,
.iphone-app-view #dmStudio .preview-area {
  color: #262626;
}
.iphone-app-view #dmCapture .dm-bubble-row.incoming .dm-bubble {
  background: #efefef !important;
  color: #262626 !important;
}
.iphone-app-view #dmCapture .dm-bubble-row.outgoing .dm-bubble {
  background: #3797f0 !important;
  color: #fff !important;
}

/* POST PREVIEW — USERNAME AND ACTION ICONS */
.iphone-app-view #postCard #previewUsername {
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
.iphone-app-view #postCard .post-actions
.action-group .action-icon svg {
  color: #000 !important;
  stroke: #000 !important;
}
.iphone-app-view #postCard .post-actions
.action-group .action-icon svg path {
  stroke: #000 !important;
}
.iphone-app-view #postCard .post-actions
.action-group:first-child .action-icon svg path {
  fill: none;
}
.iphone-app-view #postCard .post-actions
.action-group:first-child .action-icon[title="Like"] svg path {
  fill: none;
}

/* MATCH USERNAME TO VERIFIED BADGE */
.iphone-app-view #postCard #previewUsername {
  font-size: 16px !important;
}

/* FINAL USERNAME SIZE ADJUSTMENT */
.iphone-app-view #postCard #previewUsername {
  font-size: 14px !important;
  line-height: 16px !important;
}


/* Instagram photo crop controls */
.photo-adjustments input[type="range"] {
  display: block;
  width: 100%;
  margin: 7px 0 12px;
  accent-color: #8b6f91;
}
.photo-adjustments output {
  float: right;
  font-variant-numeric: tabular-nums;
  color: #777;
}


/* Direct Instagram-style photo crop controls */
.photo-crop-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
  color: #262626;
}

.photo-crop-toolbar label {
  font-size: 13px;
  font-weight: 600;
}

.photo-crop-toolbar output {
  margin-left: 6px;
  color: #777;
  font-variant-numeric: tabular-nums;
}

.photo-crop-toolbar input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  accent-color: #8b6f91;
  cursor: pointer;
}

.photo-crop-toolbar button {
  grid-column: 2;
  grid-row: 1;
  padding: 7px 11px;
}

.photo-crop-toolbar .crop-hint {
  grid-column: 1 / -1;
  color: #777;
  font-size: 11px;
}

#photoFrame #previewPhoto {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  transition: none !important;
}

#photoFrame #previewPhoto.is-dragging {
  cursor: grabbing;
}

/* PHONE VIEW — slightly more compact Your Story row */
#instagramFeedScreen .instagram-stories {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}


/* PHONE FEED — compact the actual Your Story row, not its circle */
#instagramAppScreen #instagramFeedScreen .instagram-stories {
  box-sizing: border-box !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
}

#instagramAppScreen #instagramFeedScreen .instagram-story {
  min-height: 0 !important;
}

#instagramAppScreen #instagramFeedScreen .instagram-story-ring {
  width: 58px !important;
  height: 58px !important;
  flex: 0 0 58px !important;
}

/* PHONE FEED — shrink the complete Your Story section */
#instagramAppScreen #instagramFeedScreen .instagram-stories {
  padding: 5px 12px !important;
  gap: 10px !important;
  min-height: 0 !important;
  height: auto !important;
  flex: 0 0 auto !important;
  align-items: center !important;
}

#instagramAppScreen #instagramFeedScreen .instagram-story {
  flex: 0 0 46px !important;
  width: 46px !important;
  min-height: 0 !important;
  gap: 2px !important;
  font-size: 9px !important;
  line-height: 11px !important;
}

#instagramAppScreen #instagramFeedScreen .instagram-story-ring {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
}

#instagramAppScreen #instagramFeedScreen .instagram-story-avatar {
  width: 32px !important;
  height: 32px !important;
  font-size: 17px !important;
}

/* Let the posts use the vertical space freed by the smaller story row */
#instagramAppScreen #instagramFeedScreen #instagramFeedPosts {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

/* FORCE COMPACT HEIGHT — actual feed story row */
#instagramFeedScreen .instagram-stories {
  height: 55px !important;
  min-height: 55px !important;
  max-height: 55px !important;
  box-sizing: border-box !important;
  padding: 3px 12px !important;
  gap: 9px !important;
  overflow: hidden !important;
  flex: 0 0 55px !important;
}

#instagramFeedScreen .instagram-story {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 49px !important;
  min-height: 0 !important;
  flex: 0 0 42px !important;
  gap: 1px !important;
  font-size: 8px !important;
  line-height: 10px !important;
}

#instagramFeedScreen .instagram-story-ring {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  flex: 0 0 34px !important;
}

#instagramFeedScreen .instagram-story-avatar {
  width: 27px !important;
  height: 27px !important;
  font-size: 15px !important;
}

#instagramFeedScreen #instagramFeedPosts {
  flex: 1 1 0 !important;
  min-height: 0 !important;
}


/* Instagram AU Studio: post action and Your Story refinements */
#instagramAppScreen .ig-action {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 25px !important;
  transform: none !important;
}
#instagramAppScreen .ig-action-symbol {
  box-sizing: border-box !important;
  flex: 0 0 25px !important;
  width: 25px !important;
  height: 25px !important;
}
#instagramAppScreen .ig-action-symbol svg {
  display: block !important;
  box-sizing: border-box !important;
  width: 24px !important;
  height: 24px !important;
  overflow: visible !important;
}
#instagramAppScreen .ig-add-story .ig-story-avatar {
  position: relative !important;
}
#instagramAppScreen .ig-add-story .ig-story-plus {
  position: absolute !important;
  z-index: 3 !important;
  right: -3px !important;
  bottom: -3px !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  width: 21px !important;
  height: 21px !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  background: #1685ee !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 17px !important;
}
#instagramAppScreen .ig-add-story .ig-story-avatar:has(.ig-customizer-story-image) .ig-story-plus {
  display: none !important;
}


/* Your Story photo and action icon sizing */
#instagramAppScreen .ig-add-story .ig-story-avatar {
  position: relative !important;
  overflow: visible !important;
}
#instagramAppScreen .ig-add-story .ig-story-plus {
  position: absolute !important;
  right: -2px !important;
  bottom: -2px !important;
  z-index: 5 !important;
  display: grid !important;
  place-items: center !important;
  width: 21px !important;
  height: 21px !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  background: #1685ee !important;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 17px !important;
}
#instagramAppScreen .ig-add-story .ig-story-plus[hidden] {
  display: none !important;
}
#instagramAppScreen .ig-your-story-upload {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
#instagramAppScreen .ig-post-actions .ig-action-symbol svg {
  width: 24px !important;
  height: 24px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}


/* Focused header and post-icon correction */
#instagramAppScreen .ig-real-header > .ig-header-action:first-child {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  transform: none !important;
  line-height: 1 !important;
}

#instagramAppScreen .ig-real-header > .ig-header-action:first-child svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

#instagramAppScreen .ig-action-symbol svg {
  width: 24px !important;
  height: 24px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}


/* Final optical alignment refinement */
#instagramAppScreen .ig-real-header > .ig-header-action:first-child svg {
  transform: translateY(-3px) !important;
}

#instagramAppScreen .ig-action-symbol {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
}

#instagramAppScreen .ig-action-symbol svg {
  width: 24px !important;
  height: 24px !important;
}


/* Keep the paper plane slightly smaller while preserving icon alignment */
#instagramAppScreen .ig-action[aria-label="Share"] .ig-action-symbol svg {
  width: 21px !important;
  height: 21px !important;
}

/* First-time screenshot privacy explanation */
.screenshot-privacy-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 12, 35, 0.72);
  backdrop-filter: blur(9px);
}

.screenshot-privacy-backdrop[hidden] {
  display: none;
}

.screenshot-privacy-modal {
  width: min(100%, 440px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 25px;
  background: #fffaff;
  color: #30223e;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}

.screenshot-privacy-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 15px;
  background: #f0e5ff;
  color: #8754bd;
  font-size: 25px;
}

.screenshot-privacy-modal .eyebrow {
  color: #9065b5;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.screenshot-privacy-modal h2 {
  margin: 8px 0 16px;
  color: #352344;
  font-size: 25px;
  line-height: 1.2;
}

.screenshot-privacy-modal p,
.screenshot-privacy-modal li {
  font-size: 14px;
  line-height: 1.6;
}

.screenshot-privacy-modal ul {
  padding-left: 21px;
  margin: 16px 0;
}

.screenshot-privacy-modal li {
  margin: 7px 0;
}

.screenshot-privacy-modal .screenshot-privacy-footnote {
  padding: 12px;
  border-radius: 12px;
  background: #f4eff8;
  color: #71647b;
  font-size: 12px;
}

.screenshot-privacy-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.screenshot-privacy-actions button {
  width: 100%;
  min-height: 46px;
  border-radius: 13px;
  cursor: pointer;
}

