:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% -10%, rgba(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at 95% 5%, rgba(168, 85, 247, 0.12), transparent 30rem),
    #0f172a;
}

.brand-mark {
  border: 1px solid rgba(34, 211, 238, 0.7);
  background: linear-gradient(135deg, #03111f, #111827 54%, #25113f);
  box-shadow: inset 0 0 20px rgba(34, 211, 238, 0.18), 0 0 22px rgba(168, 85, 247, 0.28);
  color: transparent;
  -webkit-text-stroke: 1px #67e8f9;
  text-shadow: 2px 2px 0 #a855f7;
}

.panel-shell {
  border: 1px solid rgba(71, 85, 105, 0.52);
  border-radius: 1.125rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 60px rgba(0, 0, 0, 0.22);
}

.section-label {
  color: #b8c7e6;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-step {
  display: none;
}

.input-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.clear-text-button {
  min-height: 2rem;
  border: 1px solid rgba(71, 85, 105, 0.86);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 0.85rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.clear-text-button:hover {
  border-color: rgba(248, 113, 113, 0.72);
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
}

.input-area {
  min-height: 10.8rem;
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.78));
  color: #f8fafc;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.35;
  outline: none;
  padding: 1.6rem 1.55rem 3.5rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-area:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.symbol-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
  overflow: visible;
}

.symbol-chip {
  display: grid;
  min-width: 2rem;
  height: 2rem;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(71, 85, 105, 0.68);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 850;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.symbol-chip:hover {
  border-color: rgba(34, 211, 238, 0.72);
  background: rgba(8, 145, 178, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.font-select-row {
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1rem;
}

.font-select-label {
  color: #b8c7e6;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.font-picker {
  position: relative;
}

.selection-tools {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}

.selection-status {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.selection-status.active {
  color: #67e8f9;
}

.apply-selection-button {
  min-height: 2.8rem;
  border: 1px solid rgba(34, 211, 238, 0.46);
  border-radius: 0.85rem;
  background: rgba(8, 145, 178, 0.16);
  color: #a5f3fc;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 0.95rem;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.apply-selection-button:hover {
  border-color: rgba(34, 211, 238, 0.82);
  background: rgba(8, 145, 178, 0.28);
  color: #ecfeff;
}

.apply-selection-button:disabled {
  cursor: not-allowed;
  border-color: rgba(71, 85, 105, 0.62);
  background: rgba(15, 23, 42, 0.42);
  color: #64748b;
}

.apply-selection-button:disabled:hover {
  border-color: rgba(71, 85, 105, 0.62);
  background: rgba(15, 23, 42, 0.42);
  color: #64748b;
}

.font-menu-button {
  display: flex;
  min-height: 2.8rem;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(71, 85, 105, 0.8);
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  cursor: pointer;
  font-weight: 900;
  outline: none;
  padding: 0.42rem 2.8rem 0.42rem 0.9rem;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.font-menu-button:focus,
.font-picker.open .font-menu-button {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.font-current {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.font-current-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.font-current-sample {
  color: #e0f2fe;
  font-size: 1.05rem;
  font-weight: 950;
  white-space: nowrap;
}

.font-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: auto;
  z-index: 30;
  display: none;
  width: min(38rem, calc(100vw - 2rem));
  max-height: 24rem;
  overflow: hidden;
  overflow-y: auto;
  border: 1px solid rgba(71, 85, 105, 0.88);
  border-radius: 0.95rem;
  background: rgba(8, 13, 26, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(34, 211, 238, 0.12);
}

.font-menu::-webkit-scrollbar {
  width: 0.55rem;
}

.font-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
}

.font-picker.open .font-menu {
  display: block;
}

.font-menu-option {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(5rem, auto) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border-bottom: 1px solid rgba(71, 85, 105, 0.42);
  color: #e5e7eb;
  padding: 0.7rem 0.95rem;
  text-align: left;
  transition: background 140ms ease, color 140ms ease;
}

.font-menu-option:last-child {
  border-bottom: 0;
}

.font-menu-option:hover,
.font-menu-option.active {
  background: rgba(14, 165, 233, 0.14);
  color: #fff;
}

.font-option-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
}

.font-option-name {
  font-weight: 900;
  white-space: nowrap;
}

.font-option-tag {
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  color: #7dd3fc;
  font-size: 0.7rem;
  font-weight: 850;
  padding: 0.15rem 0.48rem;
}

.font-option-sample {
  color: #f8fafc;
  font-size: 1.02rem;
  font-weight: 950;
  white-space: nowrap;
}

.font-option-check {
  display: grid;
  height: 1.35rem;
  width: 1.35rem;
  place-items: center;
  border-radius: 999px;
  color: #22d3ee;
  font-weight: 950;
}

.font-select {
  min-height: 3.15rem;
  width: 100%;
  appearance: none;
  border: 1px solid rgba(71, 85, 105, 0.8);
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  cursor: pointer;
  font-weight: 900;
  outline: none;
  padding: 0 2.7rem 0 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.font-select:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.select-arrow {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-52%);
  color: #67e8f9;
  font-size: 1.25rem;
  font-weight: 900;
  pointer-events: none;
}


.font-card {
  display: grid;
  min-height: 5.75rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  border: 1px solid rgba(71, 85, 105, 0.7);
  border-radius: 0.95rem;
  background: rgba(15, 23, 42, 0.7);
  padding: 1.05rem 1.2rem;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.font-card:hover,
.font-card.active {
  border-color: #22d3ee;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.54), 0 0 26px rgba(34, 211, 238, 0.14);
}

.font-card:hover {
  transform: translateY(-1px);
}

.radio-dot {
  display: grid;
  height: 1.8rem;
  width: 1.8rem;
  place-items: center;
  border: 2px solid #64748b;
  border-radius: 999px;
}

.font-card.active .radio-dot {
  border-color: #22d3ee;
}

.font-card.active .radio-dot::after {
  content: "";
  height: 0.78rem;
  width: 0.78rem;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.8);
}

.style-tag {
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.18);
  color: #7dd3fc;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
}

.sample-text {
  color: #f8fafc;
  font-size: clamp(1.55rem, 4.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.primary-button,
.secondary-button,
.icon-button {
  border: 1px solid rgba(71, 85, 105, 0.8);
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  font-weight: 900;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.1rem;
  text-align: center;
}

.primary-button {
  background: linear-gradient(135deg, #0891b2, #7c3aed);
}

.primary-button:hover,
.secondary-button:hover,
.icon-button:hover {
  border-color: #22d3ee;
  transform: translateY(-1px);
}

.icon-button {
  display: grid;
  height: 3rem;
  width: 3rem;
  place-items: center;
  font-size: 1.35rem;
}

.note-strip {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid rgba(71, 85, 105, 0.76);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.66);
  padding: 1.05rem 1.15rem;
  color: #cbd5e1;
  font-weight: 600;
}

.how-steps {
  display: grid;
  gap: 0.65rem;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 800;
}

.how-steps li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.how-steps span {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.16);
  color: #67e8f9;
  font-size: 0.75rem;
  font-weight: 950;
}

.content-section {
  border: 1px solid rgba(71, 85, 105, 0.52);
  border-radius: 1.125rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.72));
  color: #cbd5e1;
  padding: 1.5rem;
}

.content-section h2 {
  color: #f8fafc;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 950;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.content-section h3 {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 0.45rem;
}

.content-section p {
  line-height: 1.7;
}

.info-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.info-grid article,
.faq-list details {
  border: 1px solid rgba(71, 85, 105, 0.62);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.58);
  padding: 1rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list summary {
  color: #f8fafc;
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin-top: 0.7rem;
}

.article-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.article-grid a {
  display: grid;
  gap: 0.55rem;
  min-height: 8rem;
  align-content: start;
  border: 1px solid rgba(71, 85, 105, 0.62);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.58);
  color: #f8fafc;
  padding: 1rem;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.article-grid a:hover {
  border-color: rgba(34, 211, 238, 0.62);
  background: rgba(8, 145, 178, 0.14);
  transform: translateY(-1px);
}

.article-grid span,
.article-kicker {
  color: #67e8f9;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-grid strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(71, 85, 105, 0.45);
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 1.5rem 1rem 2rem;
}

.site-footer a,
.static-shell a {
  color: #67e8f9;
  text-decoration: none;
}

.site-footer a:hover,
.static-shell a:hover {
  color: #cffafe;
}

.static-page {
  min-height: 100vh;
  color: #e2e8f0;
}

.static-shell {
  width: min(46rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.static-shell h1 {
  color: #f8fafc;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 950;
  line-height: 1;
  margin: 1rem 0 1.25rem;
}

.static-shell h2 {
  color: #f8fafc;
  font-size: 1.25rem;
  font-weight: 900;
  margin: 2rem 0 0.55rem;
}

.static-shell p {
  color: #cbd5e1;
  line-height: 1.8;
  margin-top: 0.8rem;
}

.static-shell ul {
  display: grid;
  gap: 0.55rem;
  color: #cbd5e1;
  line-height: 1.7;
  list-style: disc;
  margin: 1rem 0 0 1.25rem;
}

.article-shell {
  width: min(50rem, calc(100% - 2rem));
}

.back-link {
  display: inline-flex;
  font-weight: 900;
}

.platform-tabs-shell {
  width: min(100%, 32rem);
}

.platform-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  border: 1px solid rgba(71, 85, 105, 0.86);
  border-radius: 999px;
  padding: 0.22rem;
}

.platform-tab {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 900;
  padding: 0 0.75rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.platform-logo {
  width: 1.12rem;
  height: 1.12rem;
  flex: 0 0 auto;
}

.platform-tab[data-platform="x"] {
  color: #f8fafc;
}

.platform-tab[data-platform="plain"] {
  color: #67e8f9;
}

.platform-tab[data-platform="instagram"] {
  color: #f9a8d4;
}

.platform-tab[data-platform="threads"] {
  color: #f1f5f9;
}

.platform-tab[data-platform="x"].active {
  border-color: rgba(255, 255, 255, 0.34);
  background: #050505;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.platform-tab[data-platform="plain"].active {
  border-color: rgba(34, 211, 238, 0.68);
  background: rgba(8, 145, 178, 0.2);
  color: #a5f3fc;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.14);
}

.platform-tab[data-platform="instagram"].active {
  border-color: rgba(251, 191, 36, 0.55);
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 72%, #515bd4 100%);
  color: #fff;
  box-shadow: 0 0 22px rgba(221, 42, 123, 0.24);
}

.platform-tab[data-platform="threads"].active {
  border-color: rgba(255, 255, 255, 0.34);
  background: #fff;
  color: #050505;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.14);
}

.device-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.device-label {
  color: #b8c7e6;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-fields {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) auto;
  gap: 0.7rem;
}

.device-select,
.custom-width-input {
  min-height: 2.75rem;
  border: 1px solid rgba(71, 85, 105, 0.8);
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-weight: 850;
  outline: none;
}

.device-select {
  padding: 0 0.9rem;
}

.custom-width-label {
  display: grid;
  grid-template-columns: auto 5.3rem;
  align-items: center;
  gap: 0.45rem;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 900;
}

.custom-width-input {
  padding: 0 0.65rem;
}

.device-frame {
  width: min(var(--device-width, 390px), 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.65);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
}

.device-scale-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.device-chrome {
  display: none;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 2.2rem;
  border-bottom: 1px solid rgba(71, 85, 105, 0.72);
  background: linear-gradient(180deg, #111827, #020617);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0 0.9rem;
}

.device-chrome strong {
  color: #e2e8f0;
}

.device-chrome span:last-child {
  justify-self: end;
}

.device-screen {
  position: relative;
  width: 100%;
  height: calc(var(--device-width, 402px) * 1.78);
  min-height: 31rem;
  overflow: hidden;
  background: #fff;
}

.device-frame.plain-device {
  width: 100%;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.device-frame.plain-device .device-screen {
  height: auto;
  min-height: 0;
  overflow: visible;
  background: transparent;
}

.plain-device-wrap {
  display: block;
}

#profileMount {
  position: relative;
  width: 100%;
  height: 100%;
}

#profileMount.plain-mode {
  height: auto;
}

.plain-preview {
  min-height: 25rem;
  border: 1px solid rgba(71, 85, 105, 0.72);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 1.35rem;
}

.plain-preview-label {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.plain-output {
  color: #f8fafc;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-weight: 850;
  line-height: 1.45;
  min-height: 14rem;
}

.device-screen .profile-card {
  width: 100%;
  max-width: none;
  margin: 0;
  border-width: 0;
  border-radius: 0;
  box-shadow: none;
}

.real-phone {
  position: relative;
  --s: var(--screen-scale, 1);
  min-height: calc(874px * var(--s));
  overflow: hidden;
  background: #fff;
  color: #0f1419;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

.real-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(58px * var(--s));
  padding: calc(16px * var(--s)) calc(27px * var(--s)) 0;
  color: #050505;
  font-size: calc(20px * var(--s));
  font-weight: 900;
}

.real-status.blue {
  background: #1d9bf0;
  color: #fff;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: calc(7px * var(--s));
  font-size: calc(13px * var(--s));
  letter-spacing: 0;
}

.cellular-bars {
  display: flex;
  align-items: flex-end;
  gap: calc(2px * var(--s));
  height: calc(13px * var(--s));
}

.cellular-bars i {
  display: block;
  width: calc(4px * var(--s));
  border-radius: 999px;
  background: currentColor;
}

.cellular-bars i:nth-child(1) {
  height: 35%;
}

.cellular-bars i:nth-child(2) {
  height: 55%;
}

.cellular-bars i:nth-child(3) {
  height: 78%;
  opacity: 0.65;
}

.cellular-bars i:nth-child(4) {
  height: 100%;
  opacity: 0.35;
}

.wifi-icon {
  position: relative;
  width: calc(22px * var(--s));
  height: calc(15px * var(--s));
}

.wifi-icon i {
  position: absolute;
  left: 50%;
  border: calc(3px * var(--s)) solid currentColor;
  border-bottom: 0;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

.wifi-icon i:nth-child(1) {
  top: 0;
  width: calc(22px * var(--s));
  height: calc(12px * var(--s));
}

.wifi-icon i:nth-child(2) {
  top: calc(5px * var(--s));
  width: calc(14px * var(--s));
  height: calc(8px * var(--s));
}

.wifi-icon i:nth-child(3) {
  top: calc(11px * var(--s));
  width: calc(5px * var(--s));
  height: calc(5px * var(--s));
  border: 0;
  border-radius: 999px;
  background: currentColor;
}

.battery-pill {
  display: grid;
  min-width: calc(31px * var(--s));
  height: calc(25px * var(--s));
  place-items: center;
  border-radius: calc(8px * var(--s));
  background: rgba(120, 120, 128, 0.34);
  color: inherit;
  font-size: calc(15px * var(--s));
  font-weight: 950;
  line-height: 1;
}

.real-avatar-picker {
  position: relative;
  display: block;
  width: fit-content;
  cursor: pointer;
  border-radius: 999px;
}

.real-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.real-avatar-hint {
  position: absolute;
  right: -0.16rem;
  bottom: -0.16rem;
  display: grid;
  width: calc(30px * var(--s));
  height: calc(30px * var(--s));
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #1f2329;
  color: #fff;
  font-size: calc(20px * var(--s));
  font-weight: 900;
  line-height: 1;
}

.real-bio {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bio-overflow-line {
  color: #dc2626;
}

.bio-overflow-note {
  color: #dc2626;
  font-size: calc(11px * var(--s));
  font-weight: 850;
  line-height: 1.2;
  margin-top: calc(4px * var(--s));
}

.ig-header {
  display: grid;
  grid-template-columns: calc(60px * var(--s)) 1fr calc(118px * var(--s));
  align-items: center;
  height: calc(83px * var(--s));
  padding: 0 calc(16px * var(--s));
  color: #0a0d12;
  font-size: calc(21px * var(--s));
  font-weight: 900;
}

.ig-header button {
  font-size: calc(38px * var(--s));
}

.ig-header > div:nth-child(2) {
  justify-self: center;
}

.ig-header-icons {
  display: flex;
  justify-content: end;
  gap: calc(18px * var(--s));
  font-size: calc(31px * var(--s));
}

.ig-header-icons span:first-child {
  position: relative;
}

.ig-header-icons b {
  position: absolute;
  top: -0.5rem;
  right: -0.9rem;
  border-radius: 999px;
  background: #ff1138;
  color: #fff;
  font-size: calc(13px * var(--s));
  padding: 0.12rem 0.35rem;
}

.ig-profile {
  padding: calc(2px * var(--s)) calc(16px * var(--s)) calc(108px * var(--s));
}

.ig-summary {
  display: grid;
  grid-template-columns: calc(94px * var(--s)) 1fr;
  gap: calc(18px * var(--s));
  align-items: center;
}

.ig-avatar {
  width: calc(88px * var(--s));
  height: calc(88px * var(--s));
}

.ig-name-row h2 {
  margin-bottom: calc(16px * var(--s));
  font-size: calc(17px * var(--s));
  font-weight: 400;
  letter-spacing: 0;
}

.ig-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(22px * var(--s));
  text-align: left;
}

.ig-stats strong,
.ig-stats small {
  display: block;
  color: #0a0d12;
  font-size: calc(17px * var(--s));
  line-height: 1.05;
}

.ig-stats strong {
  font-weight: 850;
}

.ig-bio {
  margin-top: calc(16px * var(--s));
  min-height: calc(42px * var(--s));
  color: #0a0d12;
  font-size: calc(14px * var(--s));
  line-height: 1.22;
}

.ig-threads-chip {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.65rem;
  margin-top: calc(16px * var(--s));
  border: 1px solid #dfe3e8;
  border-radius: 999px;
  color: #111;
  font-size: calc(16px * var(--s));
  font-weight: 900;
  padding: calc(6px * var(--s)) calc(12px * var(--s));
}

.ig-threads-chip span {
  border-left: 1px solid #dfe3e8;
  color: #67717d;
  padding-left: 0.65rem;
}

.ig-actions,
.threads-actions,
.x-actions {
  display: grid;
  gap: 0.45rem;
}

.ig-actions {
  grid-template-columns: 1fr 1fr 2.2rem;
  margin-top: calc(12px * var(--s));
}

.ig-actions button,
.threads-actions button,
.x-actions button {
  min-height: calc(37px * var(--s));
  border-radius: calc(8px * var(--s));
  background: #eef0f3;
  color: #0a0d12;
  font-size: calc(15px * var(--s));
  font-weight: 900;
}

.ig-highlights {
  display: grid;
  grid-template-columns: repeat(4, calc(72px * var(--s)));
  gap: calc(14px * var(--s));
  margin-top: calc(18px * var(--s));
  overflow: hidden;
}

.ig-highlights span {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  font-size: calc(14px * var(--s));
}

.ig-highlights i {
  display: grid;
  width: calc(66px * var(--s));
  height: calc(66px * var(--s));
  place-items: center;
  border: 3px solid #e8ebef;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe, #f8fafc);
  font-size: calc(34px * var(--s));
  font-style: normal;
}

.ig-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: calc(24px * var(--s)) calc(-16px * var(--s)) 0;
  border-bottom: 1px solid #dfe3e8;
  text-align: center;
  color: #727a82;
  font-size: calc(27px * var(--s));
}

.ig-tabs > * {
  padding-bottom: calc(11px * var(--s));
}

.ig-tabs b {
  border-bottom: 2px solid #0a0d12;
  color: #0a0d12;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 calc(-16px * var(--s));
}

.ig-grid i {
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    hsl(calc(var(--i) * 38) 55% 45%);
}

.ig-bottom,
.threads-bottom,
.x-bottom {
  position: absolute;
  right: calc(20px * var(--s));
  bottom: calc(22px * var(--s));
  left: calc(20px * var(--s));
  display: grid;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px #e5e7eb, 0 12px 38px rgba(0, 0, 0, 0.14);
  min-height: calc(68px * var(--s));
  color: #0a0d12;
  font-size: calc(31px * var(--s));
  text-align: center;
}

.ig-bottom {
  grid-template-columns: repeat(5, 1fr);
}

.mini-avatar {
  justify-self: center;
  width: calc(35px * var(--s));
  height: calc(35px * var(--s));
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #ec4899);
}

.threads-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: calc(82px * var(--s));
  padding: calc(12px * var(--s)) calc(16px * var(--s)) 0;
  color: #050505;
  font-size: calc(32px * var(--s));
}

.threads-header div {
  display: flex;
  gap: calc(20px * var(--s));
}

.threads-profile {
  padding: calc(42px * var(--s)) calc(16px * var(--s)) calc(108px * var(--s));
}

.threads-identity {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.threads-identity h2 {
  color: #050505;
  font-size: calc(25px * var(--s));
  font-weight: 900;
}

.threads-identity p,
.threads-followers {
  color: #050505;
  font-size: calc(17px * var(--s));
}

.threads-avatar {
  width: calc(66px * var(--s));
  height: calc(66px * var(--s));
  margin-top: calc(-20px * var(--s));
}

.threads-avatar .real-avatar-hint {
  background: #fff;
  border-color: #fff;
  color: #0a0d12;
  outline: 1px dashed #888;
}

.threads-bio {
  margin-top: calc(14px * var(--s));
  color: #0a0d12;
  font-size: calc(15px * var(--s));
  line-height: 1.3;
}

.threads-followers {
  margin-top: calc(28px * var(--s));
  color: #999;
}

.threads-actions {
  grid-template-columns: 1fr 1fr;
  margin-top: calc(24px * var(--s));
}

.threads-actions button {
  background: #fff;
  border: 1px solid #dedede;
}

.threads-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: calc(24px * var(--s)) calc(-16px * var(--s)) 0;
  border-bottom: 1px solid #e6e6e6;
  text-align: center;
  color: #aaa;
  font-size: calc(17px * var(--s));
  font-weight: 900;
}

.threads-tabs > * {
  padding-bottom: calc(15px * var(--s));
}

.threads-tabs b {
  border-bottom: 2px solid #050505;
  color: #050505;
}

.threads-empty {
  display: grid;
  min-height: calc(318px * var(--s));
  place-items: center;
  color: #a3a3a3;
  font-size: calc(18px * var(--s));
}

.threads-bottom {
  grid-template-columns: repeat(5, 1fr);
}

.threads-bottom b,
.x-bottom b {
  position: absolute;
  border-radius: 999px;
  background: #ff1744;
  width: 0.42rem;
  height: 0.42rem;
}

.real-x {
  min-height: calc(874px * var(--s));
}

.x-hero {
  display: flex;
  justify-content: space-between;
  height: calc(130px * var(--s));
  padding: calc(46px * var(--s)) calc(16px * var(--s)) 0;
  background: linear-gradient(180deg, #168bd0, #1da1f2);
}

.x-hero button {
  display: grid;
  width: calc(52px * var(--s));
  height: calc(52px * var(--s));
  place-items: center;
  border-radius: 999px;
  background: #0874bd;
  color: #fff;
  font-size: calc(31px * var(--s));
}

.x-profile {
  position: relative;
  padding: calc(88px * var(--s)) calc(10px * var(--s)) calc(92px * var(--s));
}

.x-avatar {
  position: absolute;
  top: calc(-35px * var(--s));
  left: calc(10px * var(--s));
  width: calc(88px * var(--s));
  height: calc(88px * var(--s));
  border: 4px solid #fff;
}

.x-avatar .real-avatar-hint {
  display: none;
}

.x-identity h2 {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8px * var(--s));
  align-items: center;
  color: #0f1419;
  font-size: calc(27px * var(--s));
  font-weight: 950;
}

.x-identity button {
  border: 1px solid #cfd9de;
  border-radius: 999px;
  color: #0f1419;
  font-size: calc(14px * var(--s));
  font-weight: 900;
  padding: calc(5px * var(--s)) calc(12px * var(--s));
}

.x-identity p,
.x-meta,
.x-stats {
  color: #536471;
  font-size: calc(16px * var(--s));
}

.x-bio {
  margin-top: calc(20px * var(--s));
  color: #0f1419;
  font-size: calc(15px * var(--s));
  line-height: 1.28;
}

.x-meta {
  display: flex;
  flex-wrap: wrap;
  gap: calc(12px * var(--s));
  margin-top: calc(10px * var(--s));
}

.x-meta span:first-child {
  color: #1d9bf0;
}

.x-stats {
  margin-top: calc(12px * var(--s));
}

.x-stats b {
  color: #0f1419;
}

.x-actions {
  grid-template-columns: 1fr 1fr;
  margin-top: calc(19px * var(--s));
}

.x-actions button {
  background: #fff;
  border: 1px solid #cfd9de;
  border-radius: 999px;
}

.x-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: calc(21px * var(--s)) calc(-10px * var(--s)) 0;
  border-bottom: 1px solid #eff3f4;
  color: #71767b;
  text-align: center;
  font-size: calc(23px * var(--s));
}

.x-tabs > * {
  padding: calc(12px * var(--s)) 0;
}

.x-tabs b {
  border-bottom: 3px solid #0f1419;
  color: #0f1419;
  font-size: calc(17px * var(--s));
}

.x-recommend {
  padding-top: calc(16px * var(--s));
}

.x-recommend h3 {
  color: #0f1419;
  font-size: calc(21px * var(--s));
  font-weight: 950;
}

.x-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(12px * var(--s));
  margin-top: calc(14px * var(--s));
}

.x-cards article {
  overflow: hidden;
  border: 1px solid #dfe6eb;
  border-radius: 0.75rem;
  min-height: calc(172px * var(--s));
}

.x-cards i {
  display: block;
  height: calc(76px * var(--s));
  background: linear-gradient(135deg, #c084fc, #22c55e);
}

.x-cards h4,
.x-cards p {
  padding: 0 calc(12px * var(--s));
}

.x-cards h4 {
  margin-top: calc(11px * var(--s));
  color: #0f1419;
  font-weight: 950;
}

.x-cards p {
  color: #536471;
}

.x-cards button {
  margin: calc(10px * var(--s)) calc(12px * var(--s));
  border-radius: 999px;
  background: #0f1419;
  color: #fff;
  font-weight: 900;
  padding: calc(7px * var(--s)) calc(12px * var(--s));
}

.x-bottom {
  left: 0;
  right: 0;
  bottom: 0;
  grid-template-columns: repeat(5, 1fr);
  border-radius: 0;
  box-shadow: 0 -1px 0 #eff3f4;
  min-height: calc(74px * var(--s));
}

.x-compose {
  position: absolute;
  right: calc(18px * var(--s));
  bottom: calc(84px * var(--s));
  display: grid;
  width: calc(66px * var(--s));
  height: calc(66px * var(--s));
  place-items: center;
  border-radius: 999px;
  background: #1d9bf0;
  color: #fff;
  font-size: calc(38px * var(--s));
}

.profile-card {
  overflow: hidden;
  border: 1px solid rgba(71, 85, 105, 0.76);
  border-radius: 1.05rem;
  background: rgba(2, 6, 23, 0.62);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.profile-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.6rem;
  padding: 0 1rem;
  border-bottom: 1px solid currentColor;
  border-color: rgba(148, 163, 184, 0.16);
  font-weight: 800;
}

.profile-topbar strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.profile-topbar small {
  display: block;
  margin-top: 0.12rem;
  color: #71767b;
  font-size: 0.78rem;
  font-weight: 600;
}

.topbar-back {
  display: grid;
  height: 2.1rem;
  width: 2.1rem;
  place-items: center;
  border-radius: 999px;
  font-size: 1.35rem;
}

.topbar-icons {
  margin-left: auto;
  color: inherit;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.profile-header {
  height: clamp(9.25rem, 18vw, 12.25rem);
  background:
    radial-gradient(circle at 68% 35%, rgba(56, 189, 248, 0.46), transparent 18rem),
    radial-gradient(circle at 44% 58%, rgba(244, 114, 182, 0.35), transparent 13rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(2, 6, 23, 0.98)),
    linear-gradient(135deg, #061428, #11163a 58%, #090b16);
  position: relative;
}

.profile-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.86) 0 1px, transparent 1.5px),
    linear-gradient(165deg, transparent 0 72%, rgba(15, 23, 42, 0.9) 72% 100%);
  background-size: 46px 46px, 100% 100%;
  opacity: 0.42;
}

.profile-body {
  transition: padding 180ms ease;
}

.avatar-picker {
  position: relative;
  z-index: 2;
  display: block;
  width: fit-content;
  cursor: pointer;
  border-radius: 999px;
}

.avatar {
  position: relative;
  z-index: 2;
  height: clamp(8rem, 18vw, 11rem);
  width: clamp(8rem, 18vw, 11rem);
  border: 4px solid #020617;
  border-radius: 999px;
  background: #111827;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.42);
}

.avatar-upload-hint {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 0.08rem;
  border-radius: 0 0 999px 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.05;
  opacity: 0.94;
  padding: 0.42rem 0.25rem 0.48rem;
  text-align: center;
  transition: opacity 160ms ease, background 160ms ease;
}

.avatar-camera {
  font-size: 1rem;
  line-height: 1;
}

.avatar-picker:hover .avatar-upload-hint,
.avatar-picker:focus-within .avatar-upload-hint {
  background: rgba(14, 165, 233, 0.88);
  opacity: 1;
}

.round-action {
  display: grid;
  position: relative;
  z-index: 3;
  height: 3.4rem;
  width: 3.4rem;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.46);
  color: white;
  font-size: 1.2rem;
  font-weight: 900;
}

.follow-button {
  position: relative;
  z-index: 3;
  min-height: 3.4rem;
  border-radius: 999px;
  background: #f8fafc;
  color: #020617;
  font-size: 1.1rem;
  font-weight: 950;
  padding: 0 1.75rem;
}

.verified-badge {
  display: grid;
  height: 1.7rem;
  width: 1.7rem;
  place-items: center;
  border-radius: 999px;
  background: #1d9bf0;
  color: #020617;
  font-size: 1rem;
  font-weight: 950;
}

.bio-text {
  min-height: 3.5rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: white;
  font-size: clamp(1.55rem, 3.3vw, 2.45rem);
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: 0;
}

.extra-row {
  margin-top: 1.35rem;
}

.platform-x {
  max-width: 42rem;
  margin: 0 auto;
  border-color: #2f3336;
  border-radius: 0;
  background: #000;
  color: #e7e9ea;
}

.platform-x .profile-topbar {
  border-color: #2f3336;
  background: rgba(0, 0, 0, 0.88);
  color: #e7e9ea;
}

.platform-x .profile-header {
  display: block;
  height: clamp(8.3rem, 17vw, 11.5rem);
}

.platform-x .avatar {
  height: clamp(7.8rem, 15vw, 9.6rem);
  width: clamp(7.8rem, 15vw, 9.6rem);
  border-color: #000;
}

.platform-x .follow-button {
  background: #eff3f4;
  color: #0f1419;
}

.platform-x .round-action {
  border-color: #536471;
  background: #000;
  color: #eff3f4;
}

.platform-x .bio-text {
  color: #e7e9ea;
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  font-weight: 650;
}

.platform-x .verified-badge {
  background: #1d9bf0;
  color: white;
}

.platform-x #displayName {
  font-size: 1.55rem;
}

.platform-x #handleName {
  color: #71767b;
  font-size: 1rem;
}

.platform-x #metaRow,
.platform-x #statsRow {
  color: #71767b;
  font-size: 0.98rem;
}

.platform-x strong {
  color: #e7e9ea;
}

.platform-x .extra-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.35rem -1.75rem -1.5rem;
  border-top: 1px solid #2f3336;
}

.platform-x .extra-row button {
  min-height: 3.35rem;
  border-bottom: 4px solid transparent;
  color: #71767b;
  font-size: 0.9rem;
  font-weight: 800;
}

.platform-x .extra-row button:first-child {
  border-bottom-color: #1d9bf0;
  color: #e7e9ea;
}

.platform-instagram {
  max-width: 28rem;
  margin: 0 auto;
  border-color: #dbdbdb;
  border-radius: 1.2rem;
  background: #fff;
  color: #000;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
}

.platform-instagram .profile-topbar {
  min-height: 3.25rem;
  border-color: #efefef;
  color: #000;
}

.platform-instagram .profile-topbar strong {
  font-size: 1.05rem;
}

.platform-instagram .profile-header {
  display: none;
}

.platform-instagram .profile-body {
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr);
  column-gap: 1rem;
  padding: 1.5rem 1.25rem 1.65rem;
}

.platform-instagram #avatarActionRow {
  order: 1;
  margin-top: 0;
  align-items: flex-start;
  grid-column: 1 / -1;
  display: contents;
}

.platform-instagram .avatar {
  display: block;
  grid-column: 1;
  grid-row: 1;
  height: 5.9rem;
  width: 5.9rem;
  border: 3px solid #fff;
  outline: 3px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(45deg, #f58529, #feda77, #dd2a7b, #8134af, #515bd4) border-box;
  box-shadow: 0 0 0 1px #dbdbdb;
}

.platform-instagram .avatar-picker {
  grid-column: 1;
  grid-row: 1;
}

.platform-instagram #profileActions {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.platform-instagram .round-action,
.platform-instagram .follow-button {
  min-height: 2rem;
  height: 2rem;
  width: auto;
  border: 0;
  border-radius: 0.5rem;
  background: #efefef;
  color: #000;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0 0.8rem;
}

.platform-instagram .follow-button {
  background: #0095f6;
  color: #fff;
}

.platform-instagram #identityBlock {
  order: 3;
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 1rem;
}

.platform-instagram #displayName {
  font-size: 1.18rem;
  font-weight: 800;
}

.platform-instagram #handleName {
  color: #737373;
  font-size: 0.92rem;
}

.platform-instagram .verified-badge {
  height: 1.15rem;
  width: 1.15rem;
  background: #0095f6;
  color: #fff;
  font-size: 0.72rem;
}

.platform-instagram .bio-text {
  order: 4;
  grid-column: 1 / -1;
  grid-row: 4;
  margin-top: 1rem;
  min-height: 2.5rem;
  color: #000;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
}

.platform-instagram #metaRow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  order: 2;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin: 0.35rem 0 0;
  width: 100%;
  color: #000;
  gap: 0.6rem;
  text-align: center;
}

.platform-instagram .avatar-upload-hint {
  font-size: 0.58rem;
  padding-bottom: 0.34rem;
}

.platform-instagram #metaRow span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
}

.platform-instagram #statsRow {
  order: 5;
  grid-column: 1 / -1;
  grid-row: 5;
  margin-top: 1.2rem;
  gap: 0.5rem;
  color: #737373;
  font-size: 0.9rem;
}

.platform-instagram #statsRow span {
  border: 1px solid #efefef;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.platform-instagram strong {
  color: #000;
}

.platform-instagram .extra-row {
  grid-column: 1 / -1;
  grid-row: 6;
  display: flex;
  gap: 1.1rem;
  margin-top: 1.25rem;
  overflow-x: auto;
}

.platform-instagram .extra-row span {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  color: #262626;
  font-size: 0.76rem;
  font-weight: 700;
}

.platform-instagram .extra-row i {
  display: block;
  height: 3.75rem;
  width: 3.75rem;
  border: 1px solid #dbdbdb;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5f5f5, #fff);
}

.platform-threads {
  max-width: 32rem;
  margin: 0 auto;
  border-color: #2f3336;
  border-radius: 1.45rem;
  background: #101010;
  color: #f3f5f7;
}

.platform-threads .profile-topbar {
  border-color: #2f3336;
  color: #f3f5f7;
}

.platform-threads .profile-header {
  display: none;
}

.platform-threads .profile-body {
  padding: 1.55rem;
}

.platform-threads #avatarActionRow {
  margin-top: 0;
  flex-direction: row-reverse;
  align-items: flex-start;
}

.platform-threads .avatar-upload-hint {
  font-size: 0.58rem;
  padding-bottom: 0.34rem;
}

.platform-threads .avatar {
  height: 5.25rem;
  width: 5.25rem;
  border: 0;
  box-shadow: 0 0 0 1px #333;
}

.platform-threads .avatar-picker {
  align-self: start;
}

.platform-threads #profileActions {
  margin: 0;
}

.platform-threads .round-action {
  display: none;
}

.platform-threads .follow-button {
  min-height: 2.55rem;
  border: 1px solid #3a3a3a;
  background: #fff;
  color: #101010;
  font-size: 0.95rem;
  padding: 0 1.25rem;
}

.platform-threads #identityBlock {
  margin-top: -3.1rem;
  padding-right: 6rem;
}

.platform-threads #displayName {
  font-size: 1.45rem;
}

.platform-threads #handleName {
  color: #aaa;
  font-size: 0.98rem;
}

.platform-threads .verified-badge {
  height: 1.15rem;
  width: 1.15rem;
  background: #fff;
  color: #101010;
  font-size: 0.7rem;
}

.platform-threads .bio-text {
  margin-top: 1.5rem;
  min-height: 2.8rem;
  color: #f3f5f7;
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  font-weight: 650;
  line-height: 1.45;
}

.platform-threads #metaRow {
  margin-top: 1.25rem;
  gap: 0.6rem;
  color: #aaa;
  font-size: 0.95rem;
}

.platform-threads #statsRow {
  margin-top: 1.25rem;
  border-top: 1px solid #2f3336;
  padding-top: 1rem;
  color: #aaa;
  font-size: 0.95rem;
}

.platform-threads strong {
  color: #f3f5f7;
}

.platform-threads .extra-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.3rem -1.55rem -1.55rem;
  border-top: 1px solid #2f3336;
}

.platform-threads .extra-row button {
  min-height: 3.1rem;
  border-bottom: 2px solid transparent;
  color: #777;
  font-size: 0.92rem;
  font-weight: 800;
}

.platform-threads .extra-row button.active {
  border-bottom-color: #f3f5f7;
  color: #f3f5f7;
}

.char-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(71, 85, 105, 0.86);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  padding: 0.85rem 1.35rem;
  font-size: 1.1rem;
  font-weight: 900;
}

.counter-stack {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.line-count {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.2;
}

.line-count.over {
  color: #fb7185;
}

.limit-error {
  color: #fb7185;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 50;
  transform: translate(-50%, 1rem);
  border: 1px solid rgba(52, 211, 153, 0.55);
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.94);
  color: #ecfdf5;
  font-weight: 900;
  opacity: 0;
  padding: 0.85rem 1.25rem;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .desktop-step {
    display: none;
  }

  .mobile-step {
    display: inline;
  }

  .section-label {
    font-size: 0.72rem;
  }

  .input-area {
    min-height: 7.8rem;
    border-radius: 0.85rem;
    font-size: 1.05rem;
    padding: 1rem 1rem 2.55rem;
  }

  #inputCount {
    bottom: 0.95rem;
    right: 1rem;
    font-size: 0.75rem;
  }

  #controls,
  #controlsContent {
    display: contents;
  }

  #inputSection,
  #actionSection,
  #noteStrip {
    border: 1px solid rgba(71, 85, 105, 0.52);
    border-radius: 1.125rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.76));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 60px rgba(0, 0, 0, 0.22);
  }

  #inputSection,
  #actionSection {
    padding: 0.95rem;
    min-width: 0;
  }

  #inputSection {
    order: 1;
  }

  #previewPanel {
    order: 2;
  }

  #actionSection {
    order: 4;
  }

  #noteStrip {
    order: 5;
  }

  .how-steps {
    order: 6;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .content-section {
    padding: 1rem;
  }

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

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

  #previewPanel {
    display: flex;
    flex-direction: column;
    padding: 0.95rem;
    overflow: hidden;
  }

  #profileCard {
    order: 2;
  }

  #previewToolbar {
    order: 1;
    margin-top: 0;
    margin-bottom: 0.75rem;
    gap: 0.65rem;
  }

  .device-control {
    order: 4;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    margin-top: 0.75rem;
  }

  .device-fields {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .device-select,
  .custom-width-input {
    min-height: 2.35rem;
    font-size: 0.82rem;
  }

  .custom-width-label {
    grid-template-columns: auto 4.7rem;
    font-size: 0.72rem;
  }

  .platform-tabs-shell {
    width: 100%;
  }

  .platform-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 1.1rem;
  }

  .platform-tab {
    min-height: 2.2rem;
    gap: 0.28rem;
    padding: 0 0.42rem;
    font-size: 0.76rem;
  }

  .platform-logo {
    width: 0.98rem;
    height: 0.98rem;
  }

  .char-badge {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
  }

  #counterWrap {
    order: 5;
    margin-top: 0.75rem;
  }

  #deviceScaleWrap {
    order: 3;
    position: relative;
    --mobile-device-scale: min(0.66, calc((100vw - 3.25rem) / var(--device-width, 402px)));
    align-self: center;
    width: calc(var(--device-width, 402px) * var(--mobile-device-scale));
    max-width: 100%;
    height: calc(var(--device-width, 402px) * 1.78 * var(--mobile-device-scale));
    margin-bottom: 0.45rem;
    overflow: visible;
  }

  #deviceFrame {
    position: absolute;
    top: 0;
    left: 0;
    flex: 0 0 auto;
    width: var(--device-width, 402px);
    max-width: none;
    transform: scale(var(--mobile-device-scale));
    transform-origin: top left;
    margin: 0;
  }

  #deviceScaleWrap.plain-device-wrap {
    align-self: stretch;
    width: 100%;
    height: auto;
  }

  #deviceFrame.plain-device {
    position: static;
    width: 100%;
    transform: none;
  }

  .font-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sample-text {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .font-select-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .font-menu {
    right: 0;
    width: 100%;
    max-width: calc(100vw - 3rem);
  }

  .selection-tools {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }

  .font-current {
    display: flex;
    gap: 0.75rem;
  }

  .font-current-sample {
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .font-menu-option {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0.52rem 0.72rem;
  }

  .font-option-title {
    flex-wrap: nowrap;
  }

  .font-option-tag {
    display: none;
  }

  .font-menu-button {
    min-height: 2.55rem;
  }

  .font-current-name,
  .font-current-sample,
  .font-option-name,
  .font-option-sample {
    font-size: 0.92rem;
  }

  .font-option-name {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .follow-button {
    min-height: 3rem;
    padding: 0 1.25rem;
  }

  .platform-instagram #profileActions {
    grid-template-columns: 1fr 1fr auto;
    max-width: none;
  }

  .platform-instagram .round-action,
  .platform-instagram .follow-button {
    width: 100%;
  }

  .platform-instagram .round-action:last-of-type {
    width: 2rem;
    padding: 0;
  }

  .platform-threads #identityBlock {
    margin-top: -2.2rem;
    padding-right: 5.5rem;
  }
}
