.ios-profile-page {
  --ios-profile-background: #0e1015;
  --ios-profile-panel: rgba(25, 28, 36, 0.88);
  --ios-profile-panel-strong: #191c24;
  --ios-profile-text: #d4d4d8;
  --ios-profile-text-strong: #f4f4f5;
  --ios-profile-muted: #636370;
  --ios-profile-border: rgba(30, 32, 40, 0.92);
  --ios-profile-border-soft: rgba(30, 32, 40, 0.6);
  --ios-profile-blue: #3f9fd4;
  --ios-profile-blue-strong: #6fd2f2;
  --ios-profile-blue-deep: #103245;
  --ios-profile-blue-deeper: #091d29;
  --ios-profile-warning: #f59e0b;
  --ios-profile-danger: #ef4444;
  --ios-profile-font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Avenir Next Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: calc(100dvh - var(--shell-topbar-height) - var(--app-footer-height) - 32px);
  border: 0;
  background: var(--ios-profile-background);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.ios-profile-page::before {
  display: none;
}

.ios-profile-screen {
  width: min(100%, 440px);
  margin: 0 auto;
  color: var(--ios-profile-text);
  font-family: var(--ios-profile-font);
}

.ios-profile-screen__scroll {
  display: grid;
  gap: 12px;
  padding: 16px 20px 32px;
}

.ios-profile-header {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.ios-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(9, 29, 41, 0.86);
  border: 2px solid rgba(63, 159, 212, 0.48);
  box-shadow: 0 14px 28px rgba(4, 12, 19, 0.28);
}

.ios-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ios-profile-avatar-initial {
  color: var(--ios-profile-text-strong);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.ios-profile-name-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  max-width: 100%;
  min-width: 0;
}

.ios-profile-name {
  color: var(--ios-profile-text-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ios-profile-name-row[data-effect-color="blue"][data-effect-target="username"] .ios-profile-name,
.ios-profile-name-row[data-effect-color="blue"][data-effect-target="both"] .ios-profile-name {
  text-shadow: 0 0 6px rgba(84, 179, 255, 0.76), 0 0 14px rgba(84, 179, 255, 0.36);
}

.ios-profile-name-row[data-effect-color="green"][data-effect-target="username"] .ios-profile-name,
.ios-profile-name-row[data-effect-color="green"][data-effect-target="both"] .ios-profile-name {
  text-shadow: 0 0 6px rgba(73, 225, 154, 0.76), 0 0 14px rgba(73, 225, 154, 0.36);
}

.ios-profile-name-row[data-effect-color="red"][data-effect-target="username"] .ios-profile-name,
.ios-profile-name-row[data-effect-color="red"][data-effect-target="both"] .ios-profile-name {
  text-shadow: 0 0 6px rgba(255, 103, 98, 0.76), 0 0 14px rgba(255, 103, 98, 0.36);
}

.ios-profile-badge {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.ios-profile-badge img,
.ios-profile-badge span {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
}

.ios-profile-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 29, 41, 0.86);
  border: 1px solid rgba(63, 159, 212, 0.36);
  color: var(--ios-profile-text-strong);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ios-profile-badge[data-effect-color="blue"][data-effect-target="badge"],
.ios-profile-badge[data-effect-color="blue"][data-effect-target="both"] {
  filter: drop-shadow(0 0 7px rgba(84, 179, 255, 0.48)) drop-shadow(0 0 14px rgba(84, 179, 255, 0.26));
}

.ios-profile-badge[data-effect-color="green"][data-effect-target="badge"],
.ios-profile-badge[data-effect-color="green"][data-effect-target="both"] {
  filter: drop-shadow(0 0 7px rgba(73, 225, 154, 0.48)) drop-shadow(0 0 14px rgba(73, 225, 154, 0.26));
}

.ios-profile-badge[data-effect-color="red"][data-effect-target="badge"],
.ios-profile-badge[data-effect-color="red"][data-effect-target="both"] {
  filter: drop-shadow(0 0 7px rgba(255, 103, 98, 0.48)) drop-shadow(0 0 14px rgba(255, 103, 98, 0.26));
}

.ios-profile-description {
  margin: 0;
  max-width: 180px;
  color: rgba(212, 212, 216, 0.92);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.45;
}

.ios-profile-description[hidden] {
  display: none;
}

.ios-profile-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 4px;
}

.ios-profile-social[hidden] {
  display: none;
}

.ios-profile-social__link {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(63, 159, 212, 0.48);
  background: rgba(9, 29, 41, 0.86);
  color: var(--ios-profile-text-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.ios-profile-social__link:hover,
.ios-profile-social__link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(111, 210, 242, 0.56);
  background: rgba(16, 50, 69, 0.88);
}

.ios-profile-social__link svg {
  width: 14px;
  height: 14px;
  display: block;
}

.ios-profile-library {
  display: grid;
  gap: 10px;
}

.ios-profile-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(30, 32, 40, 0.92);
}

.ios-profile-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ios-profile-muted);
  display: grid;
  justify-items: center;
  gap: 10px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.ios-profile-tab:hover,
.ios-profile-tab:focus-visible {
  color: var(--ios-profile-text-strong);
}

.ios-profile-tab.is-active {
  color: var(--ios-profile-blue-strong);
}

.ios-profile-tab__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
}

.ios-profile-tab__icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ios-profile-tab__icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ios-profile-tab__indicator {
  width: 100%;
  height: 2px;
  background: transparent;
}

.ios-profile-tab.is-active .ios-profile-tab__indicator {
  background: var(--ios-profile-blue);
}

.ios-profile-filter-controls {
  display: grid;
  gap: 6px;
  padding-top: 0;
  margin-top: -4px;
  margin-bottom: -4px;
}

.ios-profile-filter-toggle-row {
  display: flex;
  justify-content: flex-end;
}

.ios-profile-filter-toggle {
  appearance: none;
  border: 1px solid rgba(63, 159, 212, 0.48);
  background: rgba(9, 29, 41, 0.86);
  color: var(--ios-profile-text-strong);
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.ios-profile-filter-toggle:hover,
.ios-profile-filter-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(111, 210, 242, 0.56);
  background: rgba(16, 50, 69, 0.88);
}

.ios-profile-filter-toggle__icon,
.ios-profile-filter-toggle__chevron {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ios-profile-filter-toggle__icon svg,
.ios-profile-filter-toggle__chevron svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ios-profile-filter-toggle__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.ios-profile-filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ios-profile-filter-panel[hidden] {
  display: none;
}

.ios-profile-filter-chip {
  appearance: none;
  border: 1px solid rgba(30, 32, 40, 0.88);
  background: rgba(25, 28, 36, 0.72);
  color: var(--ios-profile-text-strong);
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.ios-profile-filter-chip:hover,
.ios-profile-filter-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(63, 159, 212, 0.48);
}

.ios-profile-filter-chip.is-active {
  border-color: rgba(63, 159, 212, 0.48);
  background: rgba(25, 28, 36, 0.88);
}

.ios-profile-filter-chip.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.ios-profile-filter-chip--centered {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 4px);
}

.ios-profile-filter-chip__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}

.ios-profile-filter-chip__spacer {
  flex: 1 1 auto;
}

.ios-profile-filter-chip__count {
  color: var(--ios-profile-blue-strong);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.ios-profile-filter-chip.is-disabled .ios-profile-filter-chip__label,
.ios-profile-filter-chip.is-disabled .ios-profile-filter-chip__count {
  color: var(--ios-profile-muted);
}

.ios-profile-filter-chip__check {
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ios-profile-blue-strong);
}

.ios-profile-filter-chip__check svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ios-profile-feedback {
  color: var(--ios-profile-text-strong);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(9, 29, 41, 0.92);
  border: 1px solid rgba(63, 159, 212, 0.48);
  justify-self: center;
  max-width: min(100%, 320px);
}

.ios-profile-feedback[hidden] {
  display: none;
}

.ios-profile-state {
  width: 100%;
  min-height: 44px;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 10px;
}

.ios-profile-state[hidden] {
  display: none;
}

.ios-profile-state__message {
  max-width: 260px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.ios-profile-state--error .ios-profile-state__message {
  color: var(--ios-profile-danger);
}

.ios-profile-state--empty .ios-profile-state__message {
  max-width: 240px;
  color: var(--ios-profile-muted);
}

.ios-profile-spinner,
.ios-profile-inline-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(63, 159, 212, 0.22);
  border-top-color: var(--ios-profile-blue-strong);
  animation: ios-profile-spin 0.8s linear infinite;
}

.ios-profile-inline-spinner {
  width: 16px;
  height: 16px;
  border-color: rgba(244, 244, 245, 0.24);
  border-top-color: var(--ios-profile-text-strong);
}

.ios-profile-list {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.ios-profile-list[hidden] {
  display: none;
}

.ios-profile-row {
  --ios-profile-row-offset: 0px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.ios-profile-row.is-dragging .ios-profile-row__content {
  transition: none;
}

.ios-profile-row__action {
  position: absolute;
  inset: 0 0 0 auto;
  width: 98px;
  display: flex;
  justify-content: flex-end;
}

.ios-profile-row__action-button {
  appearance: none;
  width: 98px;
  border: 0;
  color: var(--ios-profile-text-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--ios-profile-font);
  cursor: pointer;
}

.ios-profile-row__action-button--danger {
  background: var(--ios-profile-danger);
}

.ios-profile-row__action-button--warning {
  background: var(--ios-profile-warning);
}

.ios-profile-row__action-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ios-profile-row__action-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ios-profile-row__action-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.ios-profile-row__content {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transform: translateX(var(--ios-profile-row-offset));
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  touch-action: pan-y;
}

.ios-profile-row__card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: rgba(25, 28, 36, 0.88);
  border: 1px solid rgba(30, 32, 40, 0.92);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ios-profile-row__thumb {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(9, 29, 41, 0.9);
  border: 1px solid rgba(63, 159, 212, 0.48);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.ios-profile-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ios-profile-row__thumb svg {
  width: 18px;
  height: 18px;
  stroke: var(--ios-profile-text-strong);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ios-profile-row__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ios-profile-row__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ios-profile-row__kind {
  color: var(--ios-profile-blue-strong);
  background: rgba(16, 50, 69, 0.7);
  padding: 0 8px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.ios-profile-row__date {
  color: var(--ios-profile-muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.ios-profile-row__title {
  color: var(--ios-profile-text-strong);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.ios-profile-row__subtitle {
  color: rgba(212, 212, 216, 0.82);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.ios-profile-row__notes {
  color: rgba(212, 212, 216, 0.9);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ios-profile-row__notes[hidden] {
  display: none;
}

.ios-profile-row__content[data-previewable="false"] {
  cursor: default;
}

@keyframes ios-profile-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .ios-profile-screen {
    width: min(100%, 420px);
  }

  .ios-profile-screen__scroll {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 420px) {
  .ios-profile-filter-chip--centered {
    width: calc(50% - 4px);
  }
}
