/* InstaKoz ? User Panel (light, mobile-first) */

body[data-surface='panel'] {
  --ip-bg: #eef1f4;
  --ip-bg-soft: #e4e9ef;
  --ip-ink: #101418;
  --ip-muted: #5c6672;
  --ip-dim: #8a94a0;
  --ip-line: rgba(16, 20, 24, 0.1);
  --ip-line-strong: rgba(16, 20, 24, 0.16);
  --ip-surface: #ffffff;
  --ip-surface-2: #f7f8fa;
  --ip-accent: #c81e4a;
  --ip-accent-soft: rgba(200, 30, 74, 0.1);
  --ip-accent-ink: #9f183a;
  --ip-success: #1f8a5b;
  --ip-danger: #c81e4a;
  --ip-radius: 14px;
  --ip-radius-sm: 10px;
  --ip-rail-w: 248px;
  --ip-bottom-h: 64px;
  --ip-font: 'Manrope', 'Plus Jakarta Sans', system-ui, sans-serif;
  --ip-display: 'Manrope', 'Plus Jakarta Sans', system-ui, sans-serif;
  --ip-shadow: 0 1px 0 rgba(16, 20, 24, 0.04);
  --ip-ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.ip-body {
  margin: 0;
  font-family: var(--ip-font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(200, 30, 74, 0.07), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(16, 20, 24, 0.05), transparent 50%),
    linear-gradient(180deg, #f4f6f8 0%, var(--ip-bg) 40%, #e8ecf1 100%);
  color: var(--ip-ink);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.ip-body * {
  box-sizing: border-box;
}

.ip-shell {
  display: flex;
  min-height: 100dvh;
  min-height: var(--app-height, 100dvh);
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--ip-bottom-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  .ip-shell {
    padding-bottom: 0;
  }
}

/* ?? Desktop rail ?? */
.ip-rail {
  display: none;
  width: var(--ip-rail-w);
  min-width: var(--ip-rail-w);
  background: rgba(255, 255, 255, 0.82);
  border-right: 1px solid var(--ip-line);
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 20px 14px 16px;
  z-index: 20;
}

@media (min-width: 900px) {
  .ip-rail {
    display: flex;
  }
}

.ip-rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 4px 8px 18px;
}

.ip-rail-brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.ip-rail-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ip-rail-brand-name {
  font-family: var(--ip-font);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ip-ink);
}

.ip-rail-brand-tag {
  font-size: 11px;
  color: var(--ip-dim);
  font-weight: 500;
}

.ip-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.ip-rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ip-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 12px;
  border-radius: var(--ip-radius-sm);
  cursor: pointer;
  min-height: 44px;
  transition: background var(--ip-ease), color var(--ip-ease);
}

.ip-rail-link:hover {
  background: var(--ip-surface-2);
  color: var(--ip-ink);
}

.ip-rail-link.is-active {
  background: var(--ip-accent-soft);
  color: var(--ip-accent-ink);
  font-weight: 600;
}

.ip-rail-foot {
  padding-top: 12px;
  border-top: 1px solid var(--ip-line);
  display: grid;
  gap: 8px;
}

.ip-rail-foot a {
  color: var(--ip-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 10px;
}

.ip-rail-foot a:hover {
  color: var(--ip-ink);
}

/* ?? Main ?? */
.ip-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ip-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(238, 241, 244, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ip-line);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 12px;
}

@media (min-width: 900px) {
  .ip-top {
    padding: 18px 28px 16px;
  }
}

.ip-profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 14px;
  align-items: center;
  animation: ip-fade-up 0.35s ease both;
}

.ip-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ip-bg-soft);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--ip-line);
}

.ip-avatar-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ip-bg-soft);
  border: 2px solid #fff;
}

@media (min-width: 900px) {
  .ip-avatar,
  .ip-avatar-fallback {
    width: 72px;
    height: 72px;
  }
}

.ip-profile-meta {
  min-width: 0;
}

.ip-profile-name {
  font-family: var(--ip-font);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip-profile-fullname {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ip-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip-profile-bio {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ip-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ip-profile-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  align-self: start;
}

.ip-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
  max-width: 420px;
}

.ip-stat {
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--ip-radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--ip-line);
}

.ip-stat strong {
  display: block;
  font-family: var(--ip-font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ip-ink);
}

.ip-stat span {
  font-size: 11px;
  color: var(--ip-dim);
  font-weight: 500;
}

/* Compact header on Sosyal / G?nderiler ? more room for lists */
.ip-top.is-compact {
  padding-bottom: 8px;
}

.ip-top.is-compact .ip-avatar,
.ip-top.is-compact .ip-avatar-fallback {
  width: 40px;
  height: 40px;
}

.ip-top.is-compact .ip-profile-name {
  font-size: 1rem;
}

.ip-top.is-compact .ip-profile-bio {
  display: none;
}

.ip-top.is-compact .ip-stats {
  max-width: none;
  margin-top: 0;
  gap: 6px;
}

.ip-top.is-compact .ip-stat {
  padding: 6px 4px;
}

.ip-top.is-compact .ip-stat strong {
  font-size: 0.9rem;
}

.ip-top.is-compact .ip-btn-ghost {
  display: none;
}

@media (min-width: 900px) {
  .ip-top.is-compact .ip-avatar,
  .ip-top.is-compact .ip-avatar-fallback {
    width: 48px;
    height: 48px;
  }

  .ip-top.is-compact .ip-btn-ghost {
    display: inline-flex;
  }
}

/* ?? Chips ?? */
.ip-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 16px 4px;
  scroll-snap-type: x proximity;
}

.ip-chips::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  .ip-chips {
    padding: 8px 28px 4px;
  }
}

.ip-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid var(--ip-line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ip-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  min-height: 40px;
  border-radius: var(--ip-radius-sm);
  cursor: pointer;
  transition: background var(--ip-ease), color var(--ip-ease), border-color var(--ip-ease),
    transform var(--ip-ease);
}

.ip-chip:hover {
  color: var(--ip-ink);
  border-color: var(--ip-line-strong);
}

.ip-chip.is-active {
  background: var(--ip-ink);
  border-color: var(--ip-ink);
  color: #fff;
}

/* ?? Content ?? */
.ip-content {
  flex: 1;
  padding: 8px 16px 24px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .ip-content {
    padding: 12px 28px 40px;
  }
}

.ip-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
  max-width: 420px;
}

.ip-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ip-dim);
}

.ip-row-meta span {
  white-space: nowrap;
}

.ip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  min-height: 72px;
  border-bottom: 1px solid var(--ip-line);
}

.ip-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 14px;
}

.ip-section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ip-section-actions p {
  margin: 0;
  font-size: 13px;
  color: var(--ip-dim);
}

.ip-row-action {
  flex-shrink: 0;
  align-self: center;
  padding: 8px 10px;
  min-height: 36px;
  font-size: 12px;
}

.ip-section-head h2 {
  margin: 0;
  font-family: var(--ip-font);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ip-section-head p {
  margin: 0;
  font-size: 13px;
  color: var(--ip-dim);
}

.ip-panel {
  animation: ip-fade-in 0.28s ease both;
}

.ip-empty {
  margin: 0;
  padding: 36px 18px;
  text-align: center;
  color: var(--ip-muted);
  font-size: 14px;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed var(--ip-line-strong);
  border-radius: var(--ip-radius);
}

.ip-error {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: var(--ip-radius-sm);
  background: rgba(200, 30, 74, 0.08);
  color: var(--ip-accent-ink);
  font-size: 13px;
}

/* ?? Lists ?? */
.ip-list {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius);
  overflow: hidden;
}

.ip-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  min-height: 72px;
  border-bottom: 1px solid var(--ip-line);
}

.ip-row:last-child {
  border-bottom: 0;
}

.ip-rank {
  width: 22px;
  flex-shrink: 0;
  font-family: var(--ip-font);
  font-weight: 700;
  font-size: 13px;
  color: var(--ip-dim);
  text-align: center;
}

.ip-row-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ip-bg-soft);
}

.ip-row-avatar-ph {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--ip-bg-soft);
}

.ip-row-body {
  min-width: 0;
  flex: 1;
}

.ip-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ip-ink);
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip-row-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ip-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip-verified {
  color: var(--ip-accent);
  font-size: 12px;
  font-weight: 700;
}

/* ?? Media grid ?? */
.ip-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

@media (min-width: 900px) {
  .ip-media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
}

.ip-media-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ip-bg-soft);
  border-radius: 4px;
}

@media (min-width: 900px) {
  .ip-media-cell {
    border-radius: 8px;
  }
}

.ip-media-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ip-media-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e4e9ef, #d5dbe3);
}

.ip-media-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(16, 20, 24, 0.72));
}

/* ?? Highlights / stories ?? */
.ip-story-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 14px 10px;
  padding: 8px 2px;
}

.ip-story {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.ip-story-cover {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--ip-accent);
  padding: 2px;
  background: #fff;
}

.ip-story-cover img,
.ip-story-cover .ip-media-ph {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ip-story span {
  font-size: 11px;
  color: var(--ip-muted);
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ?? Buttons ?? */
.ip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  min-height: 40px;
  border-radius: var(--ip-radius-sm);
  cursor: pointer;
  transition: background var(--ip-ease), color var(--ip-ease), border-color var(--ip-ease),
    opacity var(--ip-ease);
}

.ip-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.ip-btn-ghost {
  background: transparent;
  color: var(--ip-muted);
  border-color: var(--ip-line);
}

.ip-btn-ghost:hover {
  color: var(--ip-ink);
  border-color: var(--ip-line-strong);
}

.ip-btn-primary {
  background: var(--ip-accent);
  color: #fff;
}

.ip-btn-primary:hover {
  background: var(--ip-accent-ink);
}

.ip-icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--ip-line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ip-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ip-icon-btn:hover {
  border-color: var(--ip-line-strong);
}

.ip-icon-btn:disabled {
  opacity: 0.5;
}

/* ?? Mobile bottom bar ?? */
.ip-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--ip-line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  height: calc(var(--ip-bottom-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  .ip-bottom {
    display: none;
  }
}

.ip-bottom-btn {
  border: 0;
  background: transparent;
  color: var(--ip-dim);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  cursor: pointer;
  position: relative;
  transition: color var(--ip-ease);
}

.ip-bottom-btn svg {
  width: 22px;
  height: 22px;
}

.ip-bottom-btn.is-active {
  color: var(--ip-accent);
}

.ip-bottom-btn.is-active::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ip-accent);
  transform: translateX(-50%);
  animation: ip-underline 0.22s ease both;
}

/* ?? Brand mark override on panel ?? */
body[data-surface='panel'] .ikz-logo-text {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--ip-ink);
  font-family: var(--ip-font);
}

body[data-surface='panel'] .ikz-logo-mark {
  box-shadow: none;
  border-radius: 12px;
}

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

@keyframes ip-fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ip-underline {
  from {
    transform: translateX(-50%) scaleX(0.4);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ip-profile,
  .ip-panel,
  .ip-bottom-btn.is-active::after,
  .ip-sheet {
    animation: none;
  }
}

.ip-row-click {
  cursor: pointer;
  transition: background 0.15s ease;
}

.ip-row-click:hover,
.ip-row-click:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.ip-sheet-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ip-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 25, 23, 0.42);
  cursor: pointer;
}

.ip-sheet {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background: #fffaf7;
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--ip-line);
  box-shadow: 0 -12px 40px rgba(28, 25, 23, 0.14);
  animation: ip-fade-up 0.22s ease both;
}

.ip-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ip-sheet-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.ip-person-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ip-person-avatar,
.ip-person-avatar-ph {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ip-bg-soft);
}

.ip-person-meta {
  min-width: 0;
  flex: 1;
}

.ip-person-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ip-ink);
}

.ip-person-user {
  margin-top: 2px;
  font-size: 13px;
  color: var(--ip-dim);
}

.ip-person-flag {
  display: inline-block;
  margin-top: 6px;
  margin-right: 6px;
  font-size: 11px;
  color: var(--ip-muted);
}

.ip-person-bio {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ip-ink);
  white-space: pre-wrap;
}

.ip-person-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ip-accent-ink);
  word-break: break-all;
}

.ip-person-stats {
  margin-top: 16px;
}

.ip-person-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.ip-person-actions .ip-btn {
  text-decoration: none;
  text-align: center;
}

.ip-person-posts-title {
  margin: 18px 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

@media (min-width: 900px) {
  .ip-sheet-root {
    align-items: center;
    padding: 24px;
  }

  .ip-sheet {
    border-radius: 18px;
    max-height: min(84vh, 760px);
  }
}

/* ?? IG-parity panel extensions ?? */
.ip-shell-ig .ip-main { flex: 1; min-width: 0; width: 100%; }
.ip-content-full { padding: 0; max-width: 640px; margin: 0 auto; width: 100%; }
.ip-bottom-5 { grid-template-columns: repeat(5, 1fr) !important; }
.ip-bottom-5 .ip-bottom-btn span { font-size: 9px; letter-spacing: -0.02em; }
.ip-bottom-5 .ip-bottom-btn svg { width: 22px; height: 22px; }
.ip-bottom-6 { grid-template-columns: repeat(6, 1fr) !important; }
.ip-bottom-6 .ip-bottom-btn span { font-size: 8px; letter-spacing: -0.02em; }
.ip-bottom-6 .ip-bottom-btn svg { width: 20px; height: 20px; }
.ip-bottom-biz {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af);
  color: #fff;
}

/* ?? Business / ?nstakoz ?? */
.ip-biz { padding: 16px 16px 28px; max-width: 720px; }
.ip-biz-hero {
  padding: 28px 20px;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(245, 133, 41, 0.18), transparent 55%),
    radial-gradient(90% 70% at 90% 10%, rgba(221, 42, 123, 0.14), transparent 50%),
    #fafafa;
  border: 1px solid rgba(18, 21, 26, 0.08);
}
.ip-biz-hero h2 { margin: 0 0 8px; font-size: 1.45rem; }
.ip-biz-hero p { margin: 0 0 16px; color: #5c6570; line-height: 1.5; }
.ip-biz-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ip-biz-top h2 { margin: 0 0 4px; font-size: 1.35rem; }
.ip-biz-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.ip-biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.ip-biz-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(18, 21, 26, 0.08);
  background: #fff;
}
.ip-biz-card strong { display: block; margin-bottom: 4px; }
.ip-biz-card p { margin: 0; color: #5c6570; font-size: 0.9rem; }
.ip-biz-chat {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  border: 1px solid rgba(18, 21, 26, 0.08);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.ip-biz-chat-log {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 52vh;
  background:
    linear-gradient(180deg, rgba(245, 133, 41, 0.04), transparent 40%),
    #f7f7f8;
}
.ip-biz-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  border: 1px solid rgba(18, 21, 26, 0.08);
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  align-self: flex-start;
}
.ip-biz-bubble.is-me {
  align-self: flex-end;
  background: linear-gradient(135deg, #f58529, #dd2a7b);
  color: #fff;
  border: none;
  border-radius: 14px 14px 4px 14px;
}
.ip-biz-bubble.is-sys {
  align-self: center;
  max-width: 95%;
  background: rgba(18, 21, 26, 0.05);
  color: #5c6570;
  font-size: 0.82rem;
  border: none;
}
.ip-biz-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(18, 21, 26, 0.08);
}
.ip-biz-chat-form input {
  flex: 1;
  border: 1px solid rgba(18, 21, 26, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.ip-biz-block, .ip-biz-form { display: flex; flex-direction: column; gap: 12px; }
.ip-biz-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ip-biz-row input { flex: 1; min-width: 120px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(18,21,26,.12); font: inherit; }
.ip-biz-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ip-biz-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(18, 21, 26, 0.08);
  background: #fff;
}
.ip-biz-list li span { color: #5c6570; font-size: 0.88rem; }
.ip-biz-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.88rem; }
.ip-biz-form input, .ip-biz-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(18, 21, 26, 0.12);
}
.ip-biz-toggle {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(18, 21, 26, 0.08);
  background: #fff;
}
.ip-biz-overview { display: flex; flex-direction: column; gap: 14px; }
.ip-biz-plan {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(18, 21, 26, 0.08);
  background:
    linear-gradient(135deg, rgba(245, 133, 41, 0.08), transparent 50%),
    #fff;
}
.ip-biz-plan-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
}
.ip-biz-plan-head span { font-size: 0.82rem; color: #5c6570; }
.ip-biz-plan-slots {
  list-style: none;
  margin: 10px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ip-biz-plan-slots li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.35;
}
.ip-biz-plan-slots em {
  font-style: normal;
  font-weight: 800;
  color: #dd2a7b;
}
.ip-biz-overview { display: flex; flex-direction: column; gap: 14px; }
.ip-biz-plan {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(18, 21, 26, 0.08);
  background:
    linear-gradient(135deg, rgba(245, 133, 41, 0.08), transparent 50%),
    #fff;
}
.ip-biz-plan-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
}
.ip-biz-plan-head span { font-size: 0.82rem; color: #5c6570; }
.ip-biz-plan-slots {
  list-style: none;
  margin: 10px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ip-biz-plan-slots li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.35;
}
.ip-biz-plan-slots em {
  font-style: normal;
  font-weight: 800;
  color: #dd2a7b;
}

.ip-empty-box { padding: 28px 16px; text-align: center; }
.ip-empty-sub { margin: 6px 0 0; color: var(--ip-dim); font-size: 13px; }
.ip-more-wrap { display: flex; justify-content: center; padding: 12px 16px 20px; gap: 8px; }
.ip-disclaimer { margin: 0 16px 12px; font-size: 12px; color: var(--ip-muted); line-height: 1.4; }

.ip-feed-top {
  position: sticky; top: 0; z-index: 12;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-top, 0px));
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ip-line);
}
.ip-feed-brand { flex: 1; font-size: 1.15rem; letter-spacing: -0.03em; }
.ip-feed-top-actions { display: flex; gap: 2px; }

.ip-story-tray {
  display: flex; gap: 12px; overflow-x: auto; padding: 12px 14px;
  border-bottom: 1px solid var(--ip-line); -webkit-overflow-scrolling: touch;
}
.ip-story-item {
  border: 0; background: transparent; width: 72px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11px; color: var(--ip-muted); cursor: pointer;
}
.ip-story-item span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-story-av, .ip-story-av-ph {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 0 0 2px #dbdbdb; background: var(--ip-bg-soft);
}
.ip-story-item.is-unseen .ip-story-av { box-shadow: 0 0 0 2px #c81e4a; }

.ip-feed-card { border-bottom: 1px solid var(--ip-line); background: #fff; }
.ip-feed-card-head { padding: 10px 12px; }
.ip-feed-user {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: transparent; cursor: pointer; font-weight: 700; color: inherit;
}
.ip-feed-media {
  position: relative; display: block; width: 100%; border: 0; padding: 0;
  background: #111; aspect-ratio: 1; cursor: pointer; overflow: hidden;
}
.ip-feed-media img, .ip-feed-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-badge {
  position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
}
.ip-feed-actions { display: flex; align-items: center; gap: 4px; padding: 8px 8px 0; }
.ip-feed-likes { margin: 6px 14px 0; font-weight: 700; font-size: 14px; }
.ip-feed-caption { margin: 6px 14px 14px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; }

.ip-search { padding: 12px 14px; }
.ip-search input, .ip-composer input, .ip-field input, .ip-textarea, .ip-boost input {
  width: 100%; border: 1px solid var(--ip-line-strong); border-radius: 12px;
  padding: 11px 12px; font: inherit; background: #fff; color: var(--ip-ink);
}
.ip-explore-grid { padding: 0 2px 16px; }
.ip-media-cell.is-btn {
  border: 0; padding: 0; cursor: pointer; display: block; width: 100%;
  aspect-ratio: 1; overflow: hidden; background: var(--ip-bg-soft);
}
.ip-media-cell.is-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ip-reels { padding-bottom: 12px; }
.ip-reels-stage {
  position: relative; margin: 0 auto; max-width: 420px; aspect-ratio: 9/16;
  background: #000; border-radius: 12px; overflow: hidden;
}
.ip-reels-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.ip-reels-overlay {
  position: absolute; left: 12px; right: 72px; bottom: 16px; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.ip-reels-user { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #fff; font-weight: 800; cursor: pointer; }
.ip-reels-caption { margin: 8px 0 0; font-size: 13px; }
.ip-reels-plays { margin: 4px 0 0; font-size: 12px; opacity: .85; }
.ip-reels-side {
  position: absolute; right: 10px; bottom: 24px; display: flex; flex-direction: column; gap: 10px;
}
.ip-reels-side button {
  border: 0; background: rgba(0,0,0,.35); color: #fff; border-radius: 999px;
  padding: 8px 10px; cursor: pointer; font-weight: 700;
}
.ip-reels-nav { display: flex; justify-content: space-between; align-items: center; max-width: 420px; margin: 10px auto; padding: 0 8px; }
.ip-reels-comments { margin: 12px 14px; background: #fff; border: 1px solid var(--ip-line); border-radius: 14px; padding: 12px; }

.ip-profile-page { padding-bottom: 20px; }
.ip-profile-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  border-bottom: 1px solid var(--ip-line); background: rgba(255,255,255,.92);
  position: sticky; top: 0; z-index: 10;
}
.ip-profile-bar-actions { display: flex; gap: 4px; }
.ip-profile-hero {
  display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: center;
  padding: 16px 14px 8px;
}
.ip-profile-hero .ip-avatar, .ip-profile-hero .ip-avatar-fallback { width: 86px; height: 86px; }
.ip-profile-hero .ip-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ip-profile-hero .ip-stat {
  border: 0; background: transparent; cursor: pointer; text-align: center; color: inherit;
}
.ip-profile-bio-block { padding: 0 14px 10px; }
.ip-profile-cat { font-size: 12px; color: var(--ip-dim); margin-top: 2px; }
.ip-profile-actions-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; }
.ip-profile-actions-row .ip-btn { flex: 1; min-width: 120px; }
.ip-contact-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; }
.ip-grid-tabs { display: flex; gap: 6px; padding: 8px 14px; overflow-x: auto; }
.ip-chips-scroll { overflow-x: auto; flex-wrap: nowrap; padding: 10px 12px; }

.ip-composer { display: flex; gap: 8px; margin-top: 10px; }
.ip-composer input { flex: 1; }
.ip-row-click-inner {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  border: 0; background: transparent; text-align: left; cursor: pointer; color: inherit; padding: 0;
}

.ip-chat { display: flex; flex-direction: column; gap: 10px; min-height: 50vh; }
.ip-chat-list { flex: 1; display: flex; flex-direction: column; gap: 8px; max-height: 48vh; overflow: auto; }
.ip-chat-bubble { align-self: flex-start; max-width: 85%; background: var(--ip-surface-2); border-radius: 14px; padding: 8px 12px; }
.ip-chat-bubble.is-me { align-self: flex-end; background: #d7ecff; }
.ip-chat-bubble p { margin: 0; font-size: 14px; line-height: 1.35; }

.ip-post-media { background: #111; border-radius: 12px; overflow: hidden; margin: 10px 0; }
.ip-post-media-el { width: 100%; max-height: 70vh; object-fit: contain; display: block; background: #000; }
.ip-boost { margin: 12px 0; padding: 12px; border: 1px solid var(--ip-line); border-radius: 14px; background: var(--ip-surface-2); }
.ip-boost h4 { margin: 0 0 6px; }
.ip-boost p { margin: 0 0 8px; font-size: 13px; color: var(--ip-muted); }
.ip-boost-msg { color: var(--ip-success); font-size: 13px; font-weight: 600; }

.ip-stories { color: #fff; }
.ip-stories-progress { display: flex; gap: 4px; margin-bottom: 10px; }
.ip-stories-bar { flex: 1; height: 3px; border-radius: 99px; background: rgba(255,255,255,.25); }
.ip-stories-bar.is-on { background: #fff; }
.ip-stories-user { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; }
.ip-stories-media { position: relative; border-radius: 12px; overflow: hidden; background: #111; min-height: 50vh; }
.ip-stories-el { width: 100%; max-height: 65vh; object-fit: contain; display: block; margin: 0 auto; }
.ip-stories-hit { position: absolute; top: 0; bottom: 0; width: 35%; border: 0; background: transparent; cursor: pointer; }
.ip-stories-hit.is-left { left: 0; }
.ip-stories-hit.is-right { right: 0; }

.ip-sheet.is-dark, .ip-sheet-root.is-dark .ip-sheet {
  background: #0a0a0a; color: #f5f5f5; border-color: rgba(255,255,255,.12);
}
.ip-sheet.is-wide { width: min(720px, 100%); }
.ip-sheet.is-dark .ip-icon-btn { color: #fff; }
.ip-sheet.is-dark .ip-composer input { background: #1a1a1a; color: #fff; border-color: rgba(255,255,255,.18); }

.ip-file {
  display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: 13px; font-weight: 600;
}
.ip-file input { font-weight: 500; }
.ip-publish-preview { width: 100%; max-height: 280px; object-fit: contain; border-radius: 12px; background: #111; margin: 8px 0; }
.ip-textarea { resize: vertical; min-height: 80px; }
.ip-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.ip-field input, .ip-field textarea { font-weight: 500; border: 1px solid var(--ip-line-strong); border-radius: 12px; padding: 10px 12px; font: inherit; }
.ip-edit-photo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.ip-insights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ip-insight-card {
  background: var(--ip-surface-2); border: 1px solid var(--ip-line); border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.ip-insight-card span { font-size: 12px; color: var(--ip-muted); }
.ip-insight-card strong { font-size: 1.25rem; }
.ip-insight-card em { font-style: normal; font-size: 12px; }
.ip-insight-card em.up { color: var(--ip-success); }
.ip-insight-card em.down { color: var(--ip-danger); }
.ip-bars { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.ip-bar-row { display: grid; grid-template-columns: 90px 1fr 48px; gap: 8px; align-items: center; font-size: 12px; }
.ip-bar-track { height: 8px; background: var(--ip-bg-soft); border-radius: 99px; overflow: hidden; }
.ip-bar-fill { height: 100%; background: #0095f6; border-radius: 99px; }
.ip-insight-list { list-style: none; padding: 0; margin: 0 0 12px; }
.ip-insight-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--ip-line); font-size: 13px; }

.ip-menu-list { display: flex; flex-direction: column; gap: 4px; }
.ip-menu-list button, .ip-menu-list a {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 14px 10px; border-radius: 12px; font: inherit; color: inherit; text-decoration: none; cursor: pointer;
}
.ip-menu-list button:hover, .ip-menu-list a:hover { background: var(--ip-surface-2); }
.ip-menu-list .is-danger { color: var(--ip-danger); font-weight: 700; }
.ip-rail-user { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.ip-rail-user .ip-row-avatar, .ip-rail-user .ip-row-avatar-ph { width: 28px; height: 28px; border-radius: 50%; }

@media (max-width: 899px) {
  .ip-content-full { max-width: none; }
  .ip-reels-stage { max-width: none; border-radius: 0; min-height: calc(var(--app-height, 100dvh) - 150px); aspect-ratio: auto; }
  .ip-sheet { max-height: min(92dvh, 900px); }
  .ip-profile-actions-row .ip-btn { min-width: calc(50% - 4px); }
  .ip-biz { padding: 12px 12px 88px; }
  .ip-biz-chat { min-height: 360px; }
  .ip-biz-chat-log { max-height: 46vh; }
  .ip-tools { padding: 10px 14px 96px; }
  .ip-tools-head { margin-bottom: 14px; }
  .ip-row-actions { flex-wrap: wrap; }
  .ip-row-btns { width: 100%; display: flex; gap: 8px; padding: 0 12px 12px; }
  .ip-row-btns .ip-btn { flex: 1; }
  .ip-auto-card { margin: 0 0 14px; }
}

@media (max-width: 420px) {
  .ip-bottom-5 .ip-bottom-btn span,
  .ip-bottom-6 .ip-bottom-btn span { font-size: 8px; }
  .ip-profile-hero { grid-template-columns: 72px 1fr; }
  .ip-profile-hero .ip-avatar, .ip-profile-hero .ip-avatar-fallback { width: 72px; height: 72px; }
  .ip-insights-grid { grid-template-columns: 1fr; }
  .ip-chips-scroll { margin-inline: -4px; padding-inline: 4px; }
}

/* —— Tools (Araçlar) —— */
.ip-tools {
  padding: 14px 16px 32px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.ip-tools-head {
  margin: 4px 0 16px;
  padding: 4px 2px 0;
}

.ip-tools-title {
  margin: 0 0 6px;
  font-family: var(--ip-display);
  font-size: clamp(1.45rem, 4.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ip-ink);
}

.ip-tools-head .ip-muted,
.ip-tools-sub {
  margin: 0;
  max-width: 36ch;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ip-muted);
  font-weight: 500;
}

.ip-tools .ip-chips {
  gap: 6px;
  padding: 0 0 14px;
  margin: 0;
}

.ip-tools .ip-chip {
  padding: 8px 14px;
  min-height: 36px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(16, 20, 24, 0.08);
  box-shadow: 0 1px 2px rgba(16, 20, 24, 0.04);
}

.ip-tools .ip-chip:hover {
  background: #fff;
  color: var(--ip-ink);
  border-color: rgba(16, 20, 24, 0.14);
}

.ip-tools .ip-chip.is-active {
  background: var(--ip-ink);
  border-color: var(--ip-ink);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 20, 24, 0.18);
}

.ip-tools .ip-disclaimer {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.ip-tools .ip-list {
  background: #fff;
  border: 1px solid rgba(16, 20, 24, 0.07);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(16, 20, 24, 0.03),
    0 10px 28px rgba(16, 20, 24, 0.045);
  overflow: hidden;
}

.ip-tools .ip-row {
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 68px;
  border-bottom-color: rgba(16, 20, 24, 0.06);
}

.ip-tools .ip-row:active {
  background: rgba(16, 20, 24, 0.025);
}

.ip-tools .ip-row-avatar,
.ip-tools .ip-avatar,
.ip-tools .ip-avatar-fallback {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.ip-tools .ip-row-title {
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.ip-tools .ip-row-sub {
  font-size: 0.8rem;
  color: var(--ip-dim);
  margin-top: 2px;
}

.ip-tools .ip-btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(16, 20, 24, 0.12);
  background: #fff;
  color: var(--ip-ink);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  min-height: 36px;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(16, 20, 24, 0.03);
}

.ip-tools .ip-btn-ghost:hover {
  border-color: rgba(200, 30, 74, 0.35);
  color: var(--ip-accent-ink);
  background: rgba(200, 30, 74, 0.04);
}

.ip-tools .ip-btn-primary {
  border-radius: 999px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 750;
  padding: 8px 14px;
}

.ip-tools-nfb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.ip-tools-nfb-bar .ip-btn {
  border-radius: 999px;
}

.ip-auto-card {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 20, 24, 0.07);
  background:
    linear-gradient(145deg, rgba(16, 20, 24, 0.03), transparent 42%),
    linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  box-shadow:
    0 1px 0 rgba(16, 20, 24, 0.03),
    0 8px 22px rgba(16, 20, 24, 0.04);
  margin-bottom: 14px;
  overflow: hidden;
}

.ip-auto-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--ip-ink);
  opacity: 0.55;
}

.ip-auto-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ip-auto-card-top strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ip-auto-card-top p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 44ch;
  color: var(--ip-muted);
}

.ip-auto-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--ip-dim);
  font-weight: 600;
}

.ip-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 20, 24, 0.04);
  border: 1px solid rgba(16, 20, 24, 0.06);
  font-weight: 750;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
  color: var(--ip-muted);
  transition: background var(--ip-ease), color var(--ip-ease), border-color var(--ip-ease);
}

.ip-switch:has(input:checked) {
  background: rgba(31, 138, 91, 0.1);
  border-color: rgba(31, 138, 91, 0.22);
  color: var(--ip-success);
}

.ip-switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--ip-success);
}

.ip-check {
  display: flex;
  align-items: center;
  padding: 0 4px 0 8px;
}

.ip-row-actions {
  align-items: center;
}

.ip-row-click-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  text-align: left;
  padding: 4px 2px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.ip-tools .ip-more-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.ip-tools .ip-more-wrap .ip-btn {
  border-radius: 999px;
  min-width: 140px;
}

.ip-tools-info {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--ip-muted);
  font-weight: 600;
}

@media (min-width: 900px) {
  .ip-feed-top { border-radius: 0; }
  .ip-content-full { padding-top: 8px; }
  .ip-tools { padding: 20px 28px 40px; }
  .ip-tools-head { margin-bottom: 18px; }
}
