@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --tp-bg-0: #141414;
  --tp-bg-1: #1b1b1b;
  --tp-surface: #1b1b1b;
  --tp-surface-2: #202020;
  --tp-surface-soft: #262626;
  --tp-text: #f2f0ef;
  --tp-muted: #d2cecc;
  --tp-blue: #f2f0ef;
  --tp-blue-strong: #dfdbd9;
  --tp-red: #f2f0ef;
  --tp-border: rgba(242, 240, 239, 0.14);
  --tp-border-strong: rgba(242, 240, 239, 0.48);
  --tp-outline: rgba(27, 27, 27, 0.96);
  --tp-radius-sm: 12px;
  --tp-radius-md: 16px;
  --tp-radius-lg: 22px;
  --tp-shadow-sm: 0 12px 24px rgba(0, 0, 0, 0.32);
  --tp-shadow-md: 0 18px 34px rgba(0, 0, 0, 0.38);
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Inter", "Sora", "Helvetica Neue", sans-serif;
  font-weight: 550;
  color: var(--tp-text);
  background:
    radial-gradient(circle at 80% -8%, rgba(242, 240, 239, 0.05), transparent 38%),
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, 0.03), transparent 34%),
    linear-gradient(180deg, var(--tp-bg-0) 0%, var(--tp-bg-1) 100%);
}

.page {
  width: min(1100px, calc(100% - clamp(14px, 2.6vw, 30px)));
  max-width: 1100px;
  padding-top: clamp(10px, 1.4vw, 18px);
  padding-bottom: clamp(18px, 2.8vw, 40px);
  gap: clamp(10px, 1.6vw, 16px);
}

.topbar {
  position: sticky;
  top: 8px;
  z-index: 80;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  background: rgba(20, 20, 20, 0.9);
  box-shadow: var(--tp-shadow-sm);
  backdrop-filter: blur(14px);
}

.topbar-shell {
  gap: 8px 10px;
}

.brand-lockup {
  min-width: 0;
  gap: 9px;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 0.7rem;
  background: linear-gradient(145deg, #343434 0%, #212121 60%, #161616 100%);
  border: 1px solid rgba(242, 240, 239, 0.24);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(242, 240, 239, 0.26);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.24);
  background: #202020;
}

.brand-name {
  color: var(--tp-text);
  font-size: 0.9rem;
}

.brand-sub {
  color: var(--tp-muted);
  font-size: 0.64rem;
}

.top-nav {
  gap: 6px;
}

.nav-link {
  min-height: 33px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(242, 240, 239, 0.2);
  background: linear-gradient(180deg, #272727 0%, #1f1f1f 100%);
  color: var(--tp-text);
  font-size: 0.74rem;
  font-weight: 700;
}

.nav-link:hover {
  border-color: rgba(242, 240, 239, 0.35);
  background: linear-gradient(180deg, #2e2e2e 0%, #252525 100%);
}

.nav-link.active {
  border-color: rgba(242, 240, 239, 0.9);
  background: linear-gradient(180deg, var(--tp-blue) 0%, var(--tp-blue-strong) 100%);
  color: #141414;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.34);
}

.top-utility {
  gap: 6px;
}

.status-pill {
  border: 1px solid rgba(242, 240, 239, 0.42);
  color: var(--tp-text);
  background: rgba(36, 36, 36, 0.8);
}

.status-pill::before {
  background: var(--tp-red);
}

.mobile-tabbar {
  border-color: rgba(242, 240, 239, 0.16);
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

.mobile-tabbar-link {
  border-color: rgba(242, 240, 239, 0.16);
  background: linear-gradient(180deg, #262626 0%, #1f1f1f 100%);
  color: var(--tp-text);
}

.mobile-tabbar-link.active {
  border-color: rgba(242, 240, 239, 0.9);
  background: linear-gradient(180deg, var(--tp-blue) 0%, var(--tp-blue-strong) 100%);
  color: #141414;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.34);
}

.empty-state {
  border-color: rgba(242, 240, 239, 0.14);
  background:
    radial-gradient(circle at 90% 12%, rgba(242, 240, 239, 0.08), transparent 40%),
    linear-gradient(180deg, #212121 0%, #1b1b1b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.empty-state-illustration {
  border-color: rgba(242, 240, 239, 0.2);
  background:
    radial-gradient(circle at 30% 22%, rgba(242, 240, 239, 0.14), transparent 36%),
    linear-gradient(180deg, #2b2b2b 0%, #232323 100%);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.28);
}

.empty-state-title {
  color: var(--tp-text);
}

.empty-state-text {
  color: var(--tp-muted);
}

.skeleton-card::after {
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.12) 48%, transparent 100%);
}

.skeleton-line,
.skeleton-box,
.skeleton-pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

.panel,
.login-card,
.admin-card,
.admin-item,
.feed-card,
.feed-mini-card,
.gallery-card,
.outfit-card,
.trend-card,
.style-card,
.weather-card,
.comment-section,
.notification-item,
.thread-item,
.chat-log,
.analytics-card,
.crop-card,
.feed-mini-mannequin,
.mannequin {
  background: linear-gradient(180deg, var(--tp-surface) 0%, var(--tp-surface-2) 100%);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  box-shadow: var(--tp-shadow-sm);
}

.panel {
  padding: clamp(12px, 1.8vw, 16px);
}

.panel:hover,
.feed-card:hover,
.gallery-card:hover,
.trend-card:hover,
.style-card:hover,
.outfit-card:hover,
.analytics-card:hover {
  box-shadow: var(--tp-shadow-md);
  transform: translateY(-1px);
}

.hero-header {
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 10px;
  padding: clamp(12px, 1.7vw, 16px);
  border-radius: var(--tp-radius-md);
  border: 1px solid var(--tp-border);
  background:
    radial-gradient(circle at 84% 6%, rgba(242, 240, 239, 0.08), transparent 38%),
    radial-gradient(circle at 22% 100%, rgba(255, 255, 255, 0.04), transparent 36%),
    linear-gradient(180deg, #1f1f1f 0%, #1b1b1b 100%);
}

.hero-copy h1,
.title-block h1,
.panel h2,
h2 {
  color: var(--tp-text);
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.hero-copy h1,
.title-block h1 {
  font-size: clamp(1.28rem, 1.9vw, 1.7rem);
  line-height: 1.12;
}

.hero-highlights {
  gap: 8px;
}

.hero-stat {
  border-radius: 12px;
  border: 1px solid rgba(242, 240, 239, 0.16);
  background: linear-gradient(180deg, #272727 0%, #212121 100%);
  padding: 9px 10px;
}

.hero-label,
.lede,
.helper-text,
label,
.meta-line,
.feed-card span,
.feed-mini-card span,
.trend-card p,
.style-card p {
  color: var(--tp-muted);
}

.eyebrow {
  color: rgba(242, 240, 239, 0.72);
}

.layout {
  grid-template-columns: minmax(290px, 0.92fr) minmax(320px, 1fr);
  gap: 12px;
}

.generator-shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.generator-left {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 86px;
}

.generator-right {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.generator-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--tp-radius-sm);
  border: 1px solid rgba(242, 240, 239, 0.14);
  background: rgba(28, 28, 28, 0.76);
}

.generator-preview-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--tp-text);
}

.generator-preview-header .helper-text {
  margin: 0;
  text-align: right;
}

.generator-header,
.flex-split,
.feed-mini-header,
.feed-tabs,
.admin-panel .flex-split {
  gap: 8px;
}

.generator-workflow {
  display: grid;
  gap: 7px;
}

.generator-workflow li {
  font-size: 0.77rem;
  color: var(--tp-muted);
}

.generator-workflow li span {
  background: rgba(242, 240, 239, 0.14);
  border-color: rgba(242, 240, 239, 0.32);
  color: var(--tp-text);
}

.generator-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.generator-actions .primary {
  grid-column: 1 / -1;
}

.generator-shell .generator-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.control-step {
  gap: 9px;
}

.control-title span {
  background: rgba(242, 240, 239, 0.14);
  border-color: rgba(242, 240, 239, 0.3);
  color: var(--tp-text);
}

.control-title strong {
  color: var(--tp-text);
}

.generator-primary-action,
.generator-quick-tools {
  border-radius: var(--tp-radius-sm);
  border: 1px solid rgba(242, 240, 239, 0.12);
  background: rgba(30, 30, 30, 0.76);
}

.generator-primary-action {
  padding: 10px;
}

.generator-quick-tools {
  padding: 10px;
}

.quick-tools-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#generator-selection-hint.warning {
  color: var(--tp-text);
}

.control,
.weather-inline,
.ai-review,
.radio-row {
  border-radius: var(--tp-radius-sm);
  border: 1px solid rgba(242, 240, 239, 0.1);
  background: rgba(28, 28, 28, 0.76);
  padding: 9px 10px;
}

.photo-picker {
  border-radius: var(--tp-radius-sm);
  border: 1px solid rgba(242, 240, 239, 0.1);
  background: rgba(28, 28, 28, 0.76);
}

.control .chips {
  gap: 5px;
}

.chip,
.feed-tags span,
.tag-row span,
.trend-tags span,
.follow-pill {
  border-radius: 999px;
  border: 1px solid rgba(242, 240, 239, 0.22);
  background: rgba(242, 240, 239, 0.08);
  color: var(--tp-text);
}

.chip.active {
  background: linear-gradient(180deg, #f2f0ef 0%, #dfdbd9 100%);
  border-color: rgba(242, 240, 239, 0.88);
  color: #141414;
}

.chip.suggested {
  border-style: solid;
  border-color: rgba(242, 240, 239, 0.42);
  background: rgba(242, 240, 239, 0.14);
  color: var(--tp-text);
}

button,
a.primary,
a.secondary,
a.tertiary {
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 700;
}

.primary,
button.primary,
a.primary {
  border: 1px solid rgba(242, 240, 239, 0.88);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tp-blue) 0%, var(--tp-blue-strong) 100%);
  color: #141414;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.3);
}

.secondary,
a.secondary,
.tertiary,
a.tertiary {
  border: 1px solid var(--tp-border);
  border-radius: 999px;
  background: linear-gradient(180deg, #292929 0%, #222222 100%);
  color: var(--tp-text);
}

.secondary:hover,
.tertiary:hover,
.nav-link:hover,
button:hover {
  transform: translateY(-1px);
}

.danger {
  border-radius: 10px;
  border: 1px solid rgba(242, 240, 239, 0.46);
  background: linear-gradient(180deg, rgba(242, 240, 239, 0.2) 0%, rgba(242, 240, 239, 0.12) 100%);
  color: #141414;
}

.rating-input .star {
  border: 1px solid rgba(242, 240, 239, 0.2);
  background: rgba(35, 35, 35, 0.92);
  color: rgba(242, 240, 239, 0.66);
}

.rating-input .star.active {
  color: var(--tp-text);
  border-color: rgba(242, 240, 239, 0.56);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.22);
}

input[type="text"],
input[type="password"],
input[type="url"],
textarea,
select,
input[type="file"] {
  border: 1px solid rgba(242, 240, 239, 0.2);
  border-radius: var(--tp-radius-sm);
  background: rgba(22, 22, 22, 0.95);
  color: var(--tp-text);
}

input::placeholder,
textarea::placeholder {
  color: rgba(242, 240, 239, 0.54);
}

input:focus,
textarea:focus,
select:focus,
input[type="file"]:focus {
  border-color: rgba(242, 240, 239, 0.56);
  box-shadow: 0 0 0 3px rgba(242, 240, 239, 0.14);
}

.weather-mini-status {
  color: var(--tp-muted);
}

.weather-mini-status:empty {
  display: none;
}

.weather-mini-card {
  border: 1px solid rgba(242, 240, 239, 0.2);
  background: linear-gradient(180deg, rgba(32, 32, 32, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

.weather-mini-card .weather-emoji {
  background: rgba(242, 240, 239, 0.1);
  border: 1px solid rgba(242, 240, 239, 0.2);
  color: var(--tp-text);
}

.weather-mini-card #weather-location {
  color: var(--tp-text);
}

.weather-mini-card #weather-summary {
  color: var(--tp-muted);
}

.weather-mini-refresh {
  background: linear-gradient(180deg, #2d2d2d 0%, #252525 100%);
  border: 1px solid rgba(242, 240, 239, 0.24);
  color: var(--tp-text);
}

.outfit-panel {
  display: grid;
  gap: 12px;
  min-height: clamp(420px, 56vh, 560px);
  padding: 10px;
  border-radius: var(--tp-radius-md);
  border: 1px solid var(--tp-border);
  background: linear-gradient(180deg, #191919 0%, #151515 100%);
}

.outfit-summary,
.outfit-preview-block,
.outfit-pieces-block {
  border-radius: var(--tp-radius-sm);
  border: 1px solid rgba(242, 240, 239, 0.14);
  background: rgba(29, 29, 29, 0.8);
}

.outfit-summary {
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.outfit-summary h3 {
  margin: 0;
  font-size: 0.95rem;
}

.outfit-summary-notes {
  margin: 0;
  color: var(--tp-muted);
  font-size: 0.84rem;
}

.outfit-preview-block {
  padding: 14px 12px;
  display: grid;
  place-items: center;
}

.outfit-pieces-block {
  padding: 10px;
  display: grid;
  gap: 10px;
}

.outfit-pieces-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tp-muted);
}

.outfit-grid {
  margin-top: 0;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.outfit-card {
  gap: 10px;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, #232323 0%, #1f1f1f 100%);
}

.outfit-card h3 {
  margin: 0 0 2px;
  font-size: 0.86rem;
}

.outfit-card p,
.outfit-card span {
  font-size: 0.76rem;
}

.mannequin {
  width: min(520px, 100%);
  min-height: clamp(560px, 64vh, 700px);
  border-radius: 22px;
  border: 1px solid rgba(242, 240, 239, 0.18);
  background:
    radial-gradient(circle at 50% 8%, rgba(242, 240, 239, 0.14) 0%, rgba(242, 240, 239, 0) 42%),
    linear-gradient(180deg, #181818 0%, #121212 100%),
    url("/mannequin.jpg") center 42% / contain no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 30px rgba(0, 0, 0, 0.36);
}

.mannequin::before {
  opacity: 0.22;
  filter: grayscale(0.3) brightness(0.92) contrast(1.03);
}

.mannequin-piece {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mannequin-photo {
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.34)) saturate(1.05);
}

.mannequin-photo.cutout {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38)) saturate(1.1);
}

.mannequin-controls {
  bottom: 8px;
  background: rgba(20, 20, 20, 0.86);
  border: 1px solid rgba(242, 240, 239, 0.18);
}

.mannequin-controls button {
  background: #2a2a2a;
  color: var(--tp-text);
  border: 1px solid rgba(242, 240, 239, 0.34);
}

.outfit-card-controls .tertiary {
  background: #2a2a2a;
  color: var(--tp-text);
  border: 1px solid rgba(242, 240, 239, 0.34);
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
}

.gallery-card {
  border-radius: 14px;
  padding: 9px;
  gap: 5px;
  background: linear-gradient(180deg, #222222 0%, #1d1d1d 100%);
}

.gallery-card img {
  height: clamp(102px, 14vw, 132px);
  border-radius: 12px;
}

.feed-page,
.feed-page .page {
  overflow-x: clip;
}

.feed-list,
.profile-page .feed-list {
  gap: 10px;
}

.feed-card {
  gap: 10px;
  padding: 12px;
}

.feed-grid {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.feed-grid img {
  height: clamp(96px, 12vw, 112px);
  border-radius: 10px;
  border: 1px solid rgba(242, 240, 239, 0.16);
  background: #181818;
}

.feed-mini {
  max-height: clamp(320px, 54vh, 470px);
  gap: 10px;
}

.feed-mini-list {
  height: clamp(230px, 36vh, 330px);
}

.feed-mini-track {
  gap: 10px;
  animation-duration: 26s;
}

.feed-mini-card {
  padding: 9px;
  gap: 6px;
}

.feed-mini-mannequin {
  height: 152px;
  border-radius: 10px;
  background-color: #171717;
}

.trend-panel,
.style-panel,
.analytics-summary,
.analytics-grid,
.admin-kpi-grid,
.admin-list,
.gallery,
.comments-list,
.notifications-list,
.messages-list,
.threads-list {
  gap: 10px;
}

.trend-card,
.style-card,
.analytics-card,
.notification-item,
.thread-item,
.chat-log,
.comment-section {
  border-radius: 14px;
  padding: 10px;
}

.analytics-bar {
  background: rgba(255, 255, 255, 0.12);
}

.analytics-bar span {
  background: linear-gradient(90deg, #f2f0ef 0%, #dcd7d4 100%);
}

.admin-kpi {
  background: linear-gradient(180deg, #222222 0%, #1d1d1d 100%);
  border-color: rgba(242, 240, 239, 0.14);
}

.admin-item,
.admin-detail-item {
  background: rgba(31, 31, 31, 0.8);
  border-color: rgba(242, 240, 239, 0.12);
}

.admin-table {
  border-color: rgba(242, 240, 239, 0.16);
  background: rgba(20, 20, 20, 0.82);
}

.admin-table th {
  background: rgba(34, 34, 34, 0.92);
}

.admin-table th,
.admin-table td {
  border-bottom-color: rgba(242, 240, 239, 0.14);
}

.settings-fab {
  background: linear-gradient(180deg, #2a2a2a 0%, #222222 100%);
  border-color: rgba(242, 240, 239, 0.22);
  color: var(--tp-text);
}

.settings-menu-card {
  background: linear-gradient(180deg, #1f1f1f 0%, #1a1a1a 100%);
  border-color: rgba(242, 240, 239, 0.18);
}

.settings-danger-zone {
  background: linear-gradient(180deg, #2b2b2b 0%, #242424 100%);
  border-color: rgba(242, 240, 239, 0.24);
}

.settings-danger-zone h3 {
  color: var(--tp-text);
}

.crop-modal {
  background: rgba(12, 12, 12, 0.78);
}

.crop-card,
.layout-card,
.publish-card,
.edit-card {
  width: min(760px, 94vw);
  max-height: min(88vh, 740px);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(242, 240, 239, 0.18);
  background: linear-gradient(180deg, #1f1f1f 0%, #1a1a1a 100%);
}

.layout-card,
.edit-card,
.publish-card {
  width: min(640px, 94vw);
}

.layout-editor {
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: 12px;
}

.layout-stage {
  min-height: clamp(360px, 52vh, 520px);
  border-radius: 14px;
  background: #171717;
  border: 1px solid rgba(242, 240, 239, 0.12);
}

.layout-mannequin {
  border-radius: 14px;
  border: 1px solid rgba(242, 240, 239, 0.14);
  background:
    radial-gradient(circle at 50% 8%, rgba(242, 240, 239, 0.14) 0%, rgba(242, 240, 239, 0) 42%),
    linear-gradient(180deg, #171717 0%, #121212 100%),
    url("/mannequin.jpg") center/contain no-repeat;
}

.layout-piece {
  border: 1px dashed rgba(242, 240, 239, 0.58);
  background: rgba(242, 240, 239, 0.16);
  color: var(--tp-text);
}

.layout-piece.active {
  border-color: rgba(242, 240, 239, 0.86);
  background: rgba(242, 240, 239, 0.22);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.24);
}

.login-page .layout {
  max-width: 520px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.auth-shell {
  display: grid;
  gap: 12px;
}

.auth-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(242, 240, 239, 0.14);
  background: rgba(24, 24, 24, 0.9);
}

.auth-mode button {
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 34px;
  background: transparent;
  color: rgba(242, 240, 239, 0.72);
}

.auth-mode button.active {
  background: linear-gradient(180deg, #f2f0ef 0%, #dfdbd9 100%);
  border-color: rgba(242, 240, 239, 0.82);
  color: #141414;
}

.link-minor {
  margin-top: -4px;
  align-self: flex-start;
  border: none;
  background: transparent;
  color: var(--tp-muted);
  padding: 0;
  font-size: 0.8rem;
  min-height: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.forgot-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(242, 240, 239, 0.14);
  background: rgba(29, 29, 29, 0.84);
}

.forgot-panel h3 {
  margin: 0;
  font-size: 0.96rem;
  color: var(--tp-text);
}

.forgot-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.login-panel,
.login-card {
  background:
    radial-gradient(circle at 86% 8%, rgba(242, 240, 239, 0.08), transparent 34%),
    radial-gradient(circle at 18% 100%, rgba(255, 255, 255, 0.03), transparent 36%),
    linear-gradient(180deg, #1f1f1f 0%, #1a1a1a 100%);
}

.login-header h1 {
  color: var(--tp-text);
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 750;
}

.account-link.has-notifications::after {
  background: var(--tp-red);
  box-shadow: 0 0 0 4px rgba(242, 240, 239, 0.2);
}

.panel,
.wardrobe,
.outfit-card,
.gallery-card,
.feed-card,
.feed-mini-card,
.trend-card,
.style-card,
.analytics-card,
.comment-section,
.weather-card,
.notification-item,
.thread-item,
.chat-log,
.admin-card,
.admin-item,
.speech-bubble,
.feed-mini-mannequin,
.mannequin,
.mannequin-piece,
.chip,
.rating-input .star,
.follow-pill,
.tag-row span,
.feed-tags span,
.trend-tags span,
.palette-row span,
.edit-btn,
.drag-handle,
.mannequin-controls,
.mannequin-controls button,
.secondary,
.tertiary,
a.nav-link,
a.secondary,
a.primary,
a.tertiary,
input[type="text"],
textarea,
select,
input[type="file"] {
  border-color: var(--tp-border) !important;
}

.edit-btn,
.drag-handle {
  background: #2b2b2b;
  color: var(--tp-text);
}

.drag-handle::before {
  color: var(--tp-text);
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .generator-shell {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  }

  .hero-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .page {
    width: min(100%, calc(100% - 12px));
    padding-top: 8px;
  }

  .topbar {
    top: 4px;
  }

  .topbar-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "utility";
  }

  .top-nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .top-utility {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .generator-shell {
    grid-template-columns: 1fr;
  }

  .generator-left {
    position: static;
  }

  .quick-tools-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outfit-panel {
    min-height: clamp(390px, 52vh, 520px);
  }

  .mannequin {
    min-height: clamp(520px, 64vh, 700px);
  }

  .layout-editor {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .panel {
    padding: 11px;
  }

  .nav-link,
  .secondary,
  .tertiary,
  .primary {
    min-height: 34px;
    font-size: 0.74rem;
  }

  .top-utility {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .top-utility .status-pill {
    grid-column: 1 / -1;
    justify-content: center;
    max-width: 100%;
  }

  .top-utility > .secondary,
  .top-utility > .tertiary,
  .top-utility > a.secondary,
  .top-utility > a.tertiary,
  .top-utility > .primary {
    width: 100%;
    justify-content: center;
  }

  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-tools-row {
    grid-template-columns: 1fr;
  }

  .feed-grid img {
    height: clamp(90px, 28vw, 118px);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-mode button {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .panel,
  .nav-link,
  .primary,
  .secondary,
  .tertiary,
  .feed-card,
  .gallery-card,
  .trend-card,
  .style-card,
  .outfit-card,
  .analytics-card {
    transition:
      transform 180ms ease,
      box-shadow 220ms ease,
      border-color 220ms ease,
      background-color 220ms ease;
  }
}
