body.model-ui {
  --model-bg: #09090b;
  --model-page-bg:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.06), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.04), transparent 26%),
    #09090b;
  --model-footer-bg:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.055), transparent 34%),
    #09090b;
  --model-studio-bg:
    radial-gradient(circle at 42% 0%, rgba(255, 255, 255, 0.065), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 36%),
    #09090b;
  --model-panel: #141416;
  --model-panel-2: #1d1d20;
  --model-card-bg: rgba(11, 11, 13, 0.94);
  --model-card-soft-bg: rgba(24, 24, 27, 0.78);
  --model-field-bg: #fff;
  --model-field-text: #09090b;
  --model-border: rgba(255, 255, 255, 0.1);
  --model-border-strong: rgba(255, 255, 255, 0.14);
  --model-soft: rgba(255, 255, 255, 0.055);
  --model-text: #f8fafc;
  --model-muted: #a1a1aa;
  --model-faint: #71717a;
  --model-inverse: #09090b;
  --model-inverse-text: #fff;
  --model-dock-bg: rgba(9, 9, 11, 0.84);
  --model-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --model-logo-filter: invert(1);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.06), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.04), transparent 26%),
    #09090b;
  color: #f4f4f5;
}

body.model-ui {
  background: var(--model-page-bg);
  color: var(--model-text);
  overflow-x: hidden;
}

body.model-ui[data-theme="light"] {
  --model-bg: #f7f7f4;
  --model-page-bg:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.94), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(230, 230, 224, 0.85), transparent 28%),
    #f7f7f4;
  --model-footer-bg:
    radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.035), transparent 34%),
    #f7f7f4;
  --model-studio-bg:
    radial-gradient(circle at 42% 0%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.025), transparent 36%),
    #f7f7f4;
  --model-panel: #ffffff;
  --model-panel-2: #f0f0ed;
  --model-card-bg: rgba(255, 255, 255, 0.92);
  --model-card-soft-bg: rgba(255, 255, 255, 0.72);
  --model-field-bg: #fff;
  --model-field-text: #08080a;
  --model-border: rgba(8, 8, 10, 0.12);
  --model-border-strong: rgba(8, 8, 10, 0.18);
  --model-soft: rgba(8, 8, 10, 0.055);
  --model-text: #09090b;
  --model-muted: #52525b;
  --model-faint: #71717a;
  --model-inverse: #fff;
  --model-inverse-text: #09090b;
  --model-dock-bg: rgba(255, 255, 255, 0.86);
  --model-shadow: 0 24px 70px rgba(15, 15, 17, 0.11);
  --model-logo-filter: none;
}

.model-ui .shell {
  width: min(1120px, calc(100% - 32px));
}

.model-ui .brand,
.model-ui .nav-links a,
.model-ui .section-title,
.model-ui h1,
.model-ui h2,
.model-ui h3,
.model-ui strong {
  color: #fff;
}

.model-ui .brand,
.model-ui .section-title,
.model-ui h1,
.model-ui h2,
.model-ui h3,
.model-section-head h2,
.model-post-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
}

.brand-logo {
  display: block;
  width: clamp(158px, 42vw, 230px);
  height: auto;
  filter: var(--model-logo-filter);
}

.model-ui .brand-mark {
  background: var(--model-inverse);
  color: var(--model-inverse-text);
}

.model-ui .muted,
.model-ui p {
  color: var(--model-muted);
}

.model-page {
  min-height: 100vh;
  padding: 0 0 5rem;
}

.app-footer {
  border-top: 1px solid var(--model-border);
  background: var(--model-footer-bg);
  padding: clamp(2rem, 5vw, 3.5rem) 0 7rem;
}

.app-footer-inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.app-footer .brand {
  display: inline-flex;
  justify-content: center;
}

.app-footer .brand-logo {
  width: clamp(140px, 34vw, 210px);
}

.app-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1rem;
}

.app-footer nav a {
  color: var(--model-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.app-footer nav a:hover,
.app-footer nav a:focus-visible {
  color: var(--model-text);
}

.model-hero {
  padding: clamp(1rem, 3vw, 2.5rem) 0;
}

.model-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: 1rem;
  align-items: stretch;
}

.model-welcome,
.model-phone,
.model-card,
.model-carousel-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 24, 27, 0.68);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px);
}

.model-welcome {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: clamp(1.2rem, 4vw, 2.2rem);
  border-radius: 36px;
}

.model-welcome h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.model-welcome .btn {
  align-self: flex-start;
  color: #09090b;
  background: #fff;
}

.model-phone {
  position: relative;
  overflow: hidden;
  border: 10px solid #27272a;
  border-radius: 50px;
  min-height: 680px;
  padding: 1rem;
  background:
    radial-gradient(circle at 0% 8%, rgba(255, 255, 255, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.95));
}

.model-phone-feed {
  display: grid;
  gap: 1.15rem;
  min-height: auto;
}

.model-phone::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 50%;
  width: 112px;
  height: 18px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.home-feed {
  padding-top: 0.75rem;
}

.home-feed-surface {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.home-feed-surface::before {
  display: none;
}

.home-feed-surface .model-search {
  margin-bottom: 1.15rem;
}

.home-feed-surface .model-search input {
  min-height: 56px;
}

.model-status {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  padding: 0 0.6rem;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.model-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.1rem 0 0.9rem;
}

.model-app-head div {
  display: grid;
  gap: 0.1rem;
}

.model-app-head span,
.model-app-head small {
  color: #71717a;
  font-size: 0.72rem;
  font-weight: 900;
}

.model-app-head strong {
  font-size: clamp(1.7rem, 8vw, 2.5rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.model-app-head small {
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.model-app-head a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 950;
}

.model-search {
  display: block;
}

.model-search input {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  color: #09090b;
  font-weight: 800;
}

.model-audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 1rem 0 0.15rem;
  padding: 0.45rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.model-audience button {
  min-height: 58px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #e4e4e7;
  font-weight: 950;
}

.model-audience button.active {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.model-audience span {
  display: block;
  color: #a1a1aa;
  font-size: 0.7rem;
}

.model-section {
  overflow: hidden;
  padding: 1.1rem 0;
}

.model-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.model-section-head h2 {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.model-section-head a,
.model-section-head span {
  color: #71717a;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.model-rail {
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.model-rail::-webkit-scrollbar {
  display: none;
}

.story-chip,
.user-chip {
  --story-avatar-size: 62px;
  --story-ring-size: 68px;
  flex: 0 0 76px;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  width: 76px;
  color: #d4d4d8;
  text-align: center;
  font-weight: 800;
  scroll-snap-align: start;
}

.story-chip {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: var(--story-ring-size);
  align-content: center;
}

.story-chip span {
  display: none;
}

.story-chip {
  position: relative;
}

.story-chip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--story-ring-size);
  height: var(--story-ring-size);
  border-radius: 999px;
  background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
  opacity: 1;
  transform: translate(-50%, -50%);
}

.story-chip.viewed::before {
  background: conic-gradient(from 210deg, #3f3f46, #71717a, #3f3f46);
}

.story-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0 0.55rem;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.story-row::-webkit-scrollbar {
  display: none;
}

.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(16px);
}

.story-viewer[hidden] {
  display: none;
}

.story-viewer-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  width: min(390px, calc(100vw - 24px));
  height: min(760px, calc(100vh - 24px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  padding: 0.9rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 32%),
    #08080a;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  color: #fff;
}

.story-viewer-progress {
  display: flex;
  gap: 0.25rem;
  height: 3px;
}

.story-progress-segment {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.story-progress-segment span {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
}

.story-progress-segment.done span {
  width: 100%;
}

.story-tap-zone {
  position: absolute;
  top: 5.1rem;
  bottom: 4.7rem;
  z-index: 3;
  width: 38%;
  border: 0;
  background: transparent;
}

.story-tap-prev {
  left: 0;
}

.story-tap-next {
  right: 0;
}

.story-viewer-close {
  position: absolute;
  top: 1.45rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.35rem;
}

.story-viewer-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-right: 3rem;
}

.story-viewer-user img {
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 999px;
  object-fit: cover;
}

.story-viewer-user span {
  display: block;
  color: #a1a1aa;
  font-size: 0.78rem;
}

.story-viewer-art {
  display: grid;
  place-items: center;
  min-height: 0;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
}

.story-viewer-art svg {
  width: 88%;
  height: 88%;
}

.story-viewer-action {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 999px;
  background: #fff;
  color: #09090b;
  font-weight: 500;
}

.story-chip img,
.user-chip img {
  position: relative;
  z-index: 1;
  width: var(--story-avatar-size);
  height: var(--story-avatar-size);
  border: 4px solid #09090b;
  border-radius: 999px;
  object-fit: cover;
}

.story-chip span,
.user-chip strong,
.user-chip span {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.05;
}

.user-chip span {
  font-size: 0.68rem;
  line-height: 1;
}

.model-drawing-card {
  flex: 0 0 min(260px, 78vw);
  display: grid;
  gap: 0.7rem;
  min-height: 310px;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(9, 9, 11, 0.82);
  color: #fff;
}

.model-post-card {
  display: grid;
  gap: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--model-border);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 34%),
    rgba(11, 11, 13, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  color: #fff;
  overflow: hidden;
}

.model-post-user,
.model-post-actions,
.model-post-tags {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.model-post-user {
  justify-content: space-between;
}

.model-post-user > span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.55rem;
}

.model-post-user img {
  width: 38px;
  height: 38px;
  border: 2px solid #fff;
  border-radius: 999px;
  object-fit: cover;
  filter: grayscale(1);
}

.model-post-user small,
.model-post-card p,
.model-post-card small {
  color: var(--model-muted);
}

.model-post-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(280px, 58vw, 520px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.1), transparent 30%),
    linear-gradient(145deg, #1f1f23, #060607 58%);
  overflow: hidden;
}

.model-post-art::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  pointer-events: none;
}

.model-post-art svg {
  position: relative;
  z-index: 1;
  width: min(82%, 520px);
  height: min(82%, 520px);
  max-height: 480px;
  padding: 1rem;
  border-radius: 24px;
  background: #fff;
}

.model-post-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 2.2rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.model-post-tags {
  flex-wrap: wrap;
}

.model-post-tags span,
.model-action-pill {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
  font-size: 0.72rem;
  font-weight: 900;
}

.model-post-tags span {
  padding: 0.35rem 0.55rem;
}

.model-post-actions {
  justify-content: space-between;
}

.model-action-pill {
  padding: 0.5rem 0.7rem;
}

.model-post-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: #fff;
  color: #09090b;
  font-weight: 950;
}

.model-drawing-thumb {
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
}

.model-drawing-thumb svg {
  width: 86%;
  height: 86%;
}

.model-drawing-card span,
.model-drawing-card small {
  color: #71717a;
  font-weight: 800;
}

.model-drawing-card.compact-post {
  min-height: 360px;
}

.model-drawing-card.compact-post .model-post-user {
  display: flex;
}

.model-drawing-card.compact-post .model-post-user img {
  width: 34px;
  height: 34px;
}

.model-category-card {
  flex: 0 0 min(190px, 58vw);
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(24, 24, 27, 0.78);
  color: #fff;
}

.model-category-card.pill {
  min-height: 112px;
  text-align: left;
}

.model-feed-card {
  display: grid;
  gap: 0.8rem;
  padding: 0.8rem;
  border: 1px solid var(--model-border);
  border-radius: 28px;
  background: rgba(15, 15, 17, 0.9);
  color: #fff;
}

.model-feed-card .model-cover {
  min-height: 250px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    #111113;
  overflow: hidden;
}

.model-profile {
  display: grid;
  gap: 1rem;
}

.model-profile-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--model-border);
  border-radius: 42px;
  background: linear-gradient(180deg, #151519, #080809 68%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.model-profile-cover {
  height: 150px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, #f5f5f5, #1f1f22 58%, #050506);
  filter: grayscale(1);
}

.model-profile-body {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 0 1.2rem 1.4rem;
  text-align: center;
}

.model-profile-avatar {
  width: 88px;
  height: 88px;
  margin-top: -44px;
  border: 5px solid #fff;
  border-radius: 999px;
  object-fit: cover;
  filter: grayscale(1);
}

.model-profile-stats,
.model-tags,
.model-comments,
.model-mini-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.model-profile-stats > *,
.model-tags span,
.model-mini-gallery a,
.model-comment {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.model-profile-stats > * {
  min-width: 78px;
  padding: 0.65rem;
}

.model-profile-stats strong,
.model-profile-stats span {
  display: block;
}

.model-profile-stats span,
.model-tags span {
  color: var(--model-muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.model-tags span {
  padding: 0.4rem 0.65rem;
}

.model-mini-gallery a {
  display: grid;
  place-items: center;
  flex: 1 0 86px;
  min-height: 86px;
  color: #fff;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 35%),
    #17171a;
}

.model-mini-gallery .saved-drawing-card {
  align-content: start;
  gap: 0.45rem;
  flex-basis: 112px;
  min-height: 140px;
  padding: 0.55rem;
  overflow: hidden;
}

.saved-drawing-art {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.saved-drawing-art svg {
  width: 92%;
  height: 92%;
}

.saved-drawing-card strong {
  width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 0.72rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-mini-gallery .saved-empty {
  flex-basis: 100%;
  min-height: 92px;
  color: var(--model-muted);
}

.model-comment {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.7rem;
  width: 100%;
  padding: 0.8rem;
  text-align: left;
}

.model-comment img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
}

.model-category-card .category-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  color: #09090b;
  font-size: 1.2rem;
}

.model-dock {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: min(390px, calc(100vw - 24px));
  padding: 0.45rem;
  border: 1px solid var(--model-border-strong);
  border-radius: 999px;
  background: var(--model-dock-bg);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.model-dock a,
.model-dock button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--model-muted);
  font-size: 1.15rem;
  font-weight: 900;
}

[data-icon] svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.icon-btn[data-icon],
.tool-btn[data-icon],
.model-dock a[data-icon] {
  display: inline-grid;
  place-items: center;
}

.model-dock a[data-icon] svg,
.model-dock button[data-icon] svg {
  width: 1.18rem;
  height: 1.18rem;
}

.model-dock .primary[data-icon] svg {
  width: 1.35rem;
  height: 1.35rem;
}

.model-action-pill[data-icon],
.model-post-open[data-icon] {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.model-action-pill[data-icon] svg {
  width: 0.9rem;
  height: 0.9rem;
}

.model-post-open[data-icon] svg {
  width: 1rem;
  height: 1rem;
}

.model-dock a.active,
.model-dock .primary {
  background: var(--model-inverse);
  color: var(--model-inverse-text);
}

.model-dock a,
.model-dock button {
  position: relative;
}

.model-dock a.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.model-dock .primary {
  width: 58px;
  height: 58px;
  margin-top: -18px;
}

.theme-toggle {
  cursor: pointer;
}

.model-ui .card,
.model-ui .field input,
.model-ui .field select,
.model-ui .pill,
.model-ui .icon-btn {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 27, 0.78);
  color: #fff;
}

.model-ui .pill.active,
.model-ui .icon-btn.active {
  background: var(--model-inverse);
  color: var(--model-inverse-text);
}

body.model-ui[data-theme="light"] .brand,
body.model-ui[data-theme="light"] .nav-links a,
body.model-ui[data-theme="light"] .section-title,
body.model-ui[data-theme="light"] h1,
body.model-ui[data-theme="light"] h2,
body.model-ui[data-theme="light"] h3,
body.model-ui[data-theme="light"] strong {
  color: var(--model-text);
}

body.model-ui[data-theme="light"] .model-welcome,
body.model-ui[data-theme="light"] .model-phone,
body.model-ui[data-theme="light"] .model-card,
body.model-ui[data-theme="light"] .model-carousel-card,
body.model-ui[data-theme="light"] .model-category-card,
body.model-ui[data-theme="light"] .model-feed-card,
body.model-ui[data-theme="light"] .model-post-card,
body.model-ui[data-theme="light"] .model-drawing-card,
body.model-ui[data-theme="light"] .model-profile-card,
body.model-ui[data-theme="light"] .model-profile-stats > *,
body.model-ui[data-theme="light"] .model-tags span,
body.model-ui[data-theme="light"] .model-mini-gallery a,
body.model-ui[data-theme="light"] .model-comment,
body.model-ui[data-theme="light"] .field input,
body.model-ui[data-theme="light"] .field select,
body.model-ui[data-theme="light"] .pill,
body.model-ui[data-theme="light"] .icon-btn {
  border-color: var(--model-border);
  background: var(--model-card-bg);
  color: var(--model-text);
  box-shadow: var(--model-shadow);
}

body.model-ui[data-theme="light"] .home-feed-surface,
body.model-ui[data-theme="light"] .category-filter-card,
body.model-ui[data-theme="light"] .category-filter-card.model-category-card,
body.model-ui[data-theme="light"] .category-filter-card.pill,
body.model-ui[data-theme="light"] .category-filter-card.active {
  background: transparent;
  box-shadow: none;
}

body.model-ui[data-theme="light"] .model-section-head a,
body.model-ui[data-theme="light"] .model-section-head span,
body.model-ui[data-theme="light"] .model-post-user small,
body.model-ui[data-theme="light"] .model-post-card p,
body.model-ui[data-theme="light"] .model-post-card small,
body.model-ui[data-theme="light"] .model-drawing-card span,
body.model-ui[data-theme="light"] .model-drawing-card small,
body.model-ui[data-theme="light"] .model-profile-stats span,
body.model-ui[data-theme="light"] .model-tags span,
body.model-ui[data-theme="light"] .model-comment p {
  color: var(--model-muted);
}

body.model-ui[data-theme="light"] .model-post-art {
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 0, 0, 0.04), transparent 30%),
    linear-gradient(145deg, #ffffff, #e9e9e5 62%);
}

body.model-ui[data-theme="light"] .model-post-art::before {
  border-color: rgba(8, 8, 10, 0.06);
}

body.model-ui[data-theme="light"] .model-action-pill,
body.model-ui[data-theme="light"] .model-post-tags span {
  border-color: var(--model-border);
  background: rgba(8, 8, 10, 0.045);
  color: var(--model-muted);
}

body.model-ui[data-theme="light"] .model-post-open,
body.model-ui[data-theme="light"] .story-viewer-action {
  background: #09090b;
  color: #fff;
}

body.model-ui[data-theme="light"] .model-search input,
body.model-ui[data-theme="light"] .gallery-tools input,
body.model-ui[data-theme="light"] .gallery-tools select {
  background: #fff;
  color: #09090b;
  box-shadow: 0 12px 34px rgba(15, 15, 17, 0.08);
}

body.model-ui[data-theme="light"] .story-chip,
body.model-ui[data-theme="light"] .user-chip {
  color: var(--model-text);
}

body.model-ui[data-theme="light"] .story-chip img,
body.model-ui[data-theme="light"] .user-chip img {
  border-color: #f7f7f4;
}

body.model-ui[data-theme="light"] .story-chip.viewed::before {
  background: conic-gradient(from 210deg, #d4d4d8, #a1a1aa, #d4d4d8);
}

body.model-ui[data-theme="light"] .category-filter-card .category-outline {
  border-color: rgba(8, 8, 10, 0.72);
  color: #09090b;
}

body.model-ui[data-theme="light"] .category-filter-card strong,
body.model-ui[data-theme="light"] .model-category-card,
body.model-ui[data-theme="light"] .model-feed-card,
body.model-ui[data-theme="light"] .model-drawing-card,
body.model-ui[data-theme="light"] .model-post-card {
  color: var(--model-text);
}

body.model-ui[data-theme="light"] .model-category-card .category-icon,
body.model-ui[data-theme="light"] .palette-chip-icon {
  background: #09090b;
  color: #fff;
}

body.model-ui[data-theme="light"] .story-viewer {
  background: rgba(247, 247, 244, 0.78);
}

body.model-ui[data-theme="light"] .story-viewer-card {
  border-color: rgba(8, 8, 10, 0.14);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.06), transparent 32%),
    #fff;
  color: #09090b;
}

body.model-ui[data-theme="light"] .story-viewer-progress {
  background: transparent;
}

body.model-ui[data-theme="light"] .story-progress-segment {
  background: rgba(8, 8, 10, 0.14);
}

body.model-ui[data-theme="light"] .story-progress-segment span {
  background: #09090b;
}

body.model-ui[data-theme="light"] .story-viewer-close {
  border-color: rgba(8, 8, 10, 0.12);
  background: rgba(8, 8, 10, 0.08);
  color: #09090b;
}

body.model-ui[data-theme="light"] .story-viewer-user img {
  border-color: #09090b;
}

body.model-ui[data-theme="light"] .model-dock {
  box-shadow: 0 20px 60px rgba(15, 15, 17, 0.14);
}

@media (max-width: 860px) {
  .model-hero-grid {
    grid-template-columns: 1fr;
  }

  .model-welcome {
    min-height: 330px;
  }

  .model-phone {
    min-height: auto;
    border-width: 8px;
    border-radius: 42px;
  }

  .model-rail {
    gap: 0.7rem;
  }
}

@media (max-width: 620px) {
  .model-hero {
    padding-top: 0.5rem;
  }

  .model-welcome {
    border-radius: 30px;
  }

  .model-phone {
    border-width: 6px;
    border-radius: 34px;
    padding: 0.85rem;
  }

  .home-feed-surface {
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .model-page {
    padding-bottom: 6.5rem;
  }

  .model-phone-feed {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .model-phone-feed::before {
    display: none;
  }

  .model-post-card {
    border-radius: 30px;
  }

  .model-post-art {
    min-height: 360px;
  }

  .story-chip,
  .user-chip {
    --story-avatar-size: 56px;
    --story-ring-size: 62px;
    flex-basis: 68px;
    width: 68px;
    font-size: 0.78rem;
  }

  .model-section-head {
    align-items: center;
  }

  .model-dock {
    bottom: 0.75rem;
  }
}

.model-ui :where(p, small, span, label, input, select, textarea, li) {
  font-family: var(--font-body);
  font-weight: 200 !important;
}

.model-ui :where(a, button, strong, b, .btn, .badge, .model-action-pill, .model-post-open) {
  font-family: var(--font-body);
  font-weight: 500 !important;
}

.model-ui :where(h1, h2, h3, .section-title, .model-section-head h2, .model-post-card h3) {
  font-family: var(--font-display);
  font-weight: 400 !important;
}
