:root {
  --ss-bg: #f5f7fb;
  --ss-surface: #ffffff;
  --ss-text: #111827;
  --ss-muted: #6b7280;
  --ss-soft: #eef2f7;
  --ss-border: #e5e7eb;
  --ss-blue: #2f72ff;
  --ss-violet: #6d5dfc;
  --ss-green: #10b981;
  --ss-red: #dc2626;
  --ss-shadow: 0 18px 60px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.signshi-body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(47, 114, 255, 0.08), transparent 28%),
    linear-gradient(225deg, rgba(109, 93, 252, 0.08), transparent 32%),
    linear-gradient(180deg, #fbfdff 0%, #f4f7fb 42%, #eef3f9 100%);
  color: var(--ss-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body.ss-modal-open {
  overflow: hidden;
}

body.signshi-body a {
  color: inherit;
  text-decoration: none;
}

body.signshi-body button,
body.signshi-body input,
body.signshi-body textarea {
  font: inherit;
}

body.signshi-body img {
  display: block;
  max-width: 100%;
}

.site {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

.ss-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 10px 34px rgba(17, 24, 39, 0.04);
}

.ss-nav {
  width: min(1760px, calc(100% - 44px));
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.ss-brand,
.ss-user,
.ss-user-menu a,
.ss-user-menu button,
.ss-login-btn,
.ss-publish-btn,
.ss-primary,
.ss-outline,
.ss-search,
.ss-search__submit {
  display: inline-flex;
  align-items: center;
}

.ss-brand {
  flex: 0 0 auto;
  color: var(--ss-blue);
}

.ss-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ss-blue);
  font-weight: 900;
}

.ss-brand__name {
  background: linear-gradient(90deg, #1f6fff, #7c5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 20px;
  font-weight: 950;
}

.ss-nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.ss-nav__links a:hover {
  color: var(--ss-blue);
}

.ss-search {
  margin-left: auto;
  height: 38px;
  min-width: 330px;
  border-radius: 999px;
  padding: 0 5px 0 14px;
  gap: 10px;
  background: #edf2f8;
  color: #667085;
}

.ss-search:focus-within {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 114, 255, 0.12);
}

.ss-search__scope {
  padding-right: 10px;
  border-right: 1px solid #d9e0ea;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.ss-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ss-text);
  font-size: 13px;
}

.ss-search input::placeholder {
  color: #98a2b3;
}

.ss-search__submit {
  width: 30px;
  height: 30px;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #667085;
  background: transparent;
  cursor: pointer;
}

.ss-search__submit:hover {
  color: var(--ss-blue);
  background: #dbe7ff;
}

.ss-auth {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.ss-login-btn,
.ss-publish-btn,
.ss-primary,
.ss-outline {
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  white-space: nowrap;
}

.ss-login-btn,
.ss-primary {
  color: #fff;
  background: var(--ss-blue);
  box-shadow: 0 10px 24px rgba(47, 114, 255, 0.2);
}

.ss-login-btn {
  min-width: 76px;
  padding: 10px 18px;
  font-size: 13px;
}

.ss-publish-btn,
.ss-outline {
  color: var(--ss-blue);
  background: #eff5ff;
}

.ss-publish-btn {
  padding: 9px 14px;
  font-size: 13px;
}

.ss-primary {
  min-height: 44px;
  padding: 12px 22px;
}

.ss-outline {
  min-height: 42px;
  padding: 11px 20px;
}

.ss-login-btn:hover,
.ss-primary:hover,
.ss-publish-btn:hover,
.ss-outline:hover {
  transform: translateY(-1px);
}

.ss-publish-btn svg,
.ss-primary svg,
.ss-outline svg {
  width: 17px;
  height: 17px;
}

.ss-user {
  height: 38px;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 4px 9px 4px 4px;
  color: var(--ss-text);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.ss-user:hover {
  background: #edf2f8;
}

.ss-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #2f72ff, #a855f7);
  background-size: cover;
  background-position: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ss-user-avatar.has-image {
  color: transparent;
}

.ss-user svg {
  width: 15px;
  height: 15px;
  color: #667085;
}

.ss-user-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 190px;
  display: none;
  padding: 7px;
  border: 1px solid var(--ss-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ss-shadow);
}

.ss-user-menu.is-open {
  display: block;
}

.ss-user-menu a,
.ss-user-menu button {
  width: 100%;
  gap: 8px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #475467;
  cursor: pointer;
  text-align: left;
}

.ss-user-menu a:hover,
.ss-user-menu button:hover {
  color: var(--ss-blue);
  background: #f5f8ff;
}

.ss-user-menu svg {
  width: 16px;
  height: 16px;
}

.ss-inspiration-shell {
  width: min(1680px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 84px;
}

.ss-screen-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ss-discovery-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: 20px;
  margin-bottom: 22px;
  min-width: 0;
}

.ss-discovery-hero__copy,
.ss-studio-panel,
.ss-gallery-rail__panel {
  border: 1px solid rgba(215, 226, 242, 0.86);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.9)),
    linear-gradient(90deg, rgba(47, 114, 255, 0.08), rgba(16, 185, 129, 0.07));
  box-shadow: 0 24px 70px rgba(22, 35, 58, 0.09);
}

.ss-discovery-hero__copy {
  min-height: 280px;
  min-width: 0;
  padding: clamp(24px, 3.2vw, 46px);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ss-discovery-hero__copy h2 {
  max-width: 760px;
  margin: 0;
  color: #0b1220;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 0.95;
  font-weight: 950;
}

.ss-discovery-hero__copy p {
  max-width: 690px;
  margin: 18px 0 24px;
  color: #526071;
  font-size: 16px;
  line-height: 1.7;
}

.ss-discovery-search {
  width: min(760px, 100%);
  max-width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 19px;
  border: 1px solid rgba(193, 207, 228, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(47, 114, 255, 0.1);
}

.ss-discovery-search svg {
  width: 20px;
  height: 20px;
  color: var(--ss-blue);
}

.ss-discovery-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ss-text);
  background: transparent;
  font-size: 15px;
}

.ss-discovery-search button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #111827;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.18);
}

.ss-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.ss-chip-row a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(205, 217, 235, 0.9);
  border-radius: 999px;
  color: #526071;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
}

.ss-chip-row a:hover,
.ss-chip-row a.is-active {
  color: #fff;
  border-color: #111827;
  background: #111827;
}

.ss-studio-panel {
  min-height: 280px;
  min-width: 0;
  padding: 24px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ss-studio-panel__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.ss-studio-panel__top span {
  color: #0b1220;
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
}

.ss-studio-panel__top small {
  color: #7b8796;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ss-studio-panel h3 {
  margin: 26px 0 8px;
  color: #0b1220;
  font-size: 24px;
}

.ss-studio-panel p {
  margin: 0 0 18px;
  color: #526071;
  line-height: 1.65;
}

.ss-studio-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-bottom: 18px;
}

.ss-studio-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(205, 217, 235, 0.95);
  border-radius: 14px;
  color: #172033;
  background: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 900;
}

.ss-studio-actions a:first-child {
  color: #fff;
  border-color: #2f72ff;
  background: linear-gradient(135deg, #2f72ff, #10b981);
}

.ss-studio-actions svg {
  width: 16px;
  height: 16px;
}

.ss-studio-stats {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ss-studio-stats li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #6b7280;
  font-size: 12px;
}

.ss-studio-stats strong {
  color: #111827;
  font-size: 13px;
}

.ss-gallery-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-width: 0;
}

.ss-gallery-rail {
  position: sticky;
  top: 76px;
}

.ss-gallery-rail__panel {
  padding: 18px;
  border-radius: 22px;
}

.ss-gallery-rail__panel h2 {
  margin: 0 0 8px;
  color: #0b1220;
  font-size: 19px;
}

.ss-gallery-rail__panel p {
  margin: 0 0 16px;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.ss-trend-list {
  display: grid;
  gap: 10px;
}

.ss-trend-card {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(229, 233, 241, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  text-align: left;
}

.ss-trend-card:hover {
  border-color: rgba(47, 114, 255, 0.38);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1);
}

.ss-trend-card span {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 950;
}

.ss-trend-card img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.ss-trend-card strong {
  min-width: 0;
  color: #172033;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 900;
}

.ss-gallery-main {
  min-width: 0;
  max-width: 100%;
}

.ss-search-result {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(221, 228, 239, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ss-muted);
  font-size: 14px;
}

.ss-search-result strong {
  color: var(--ss-text);
}

.ss-search-result a {
  color: var(--ss-blue);
  font-weight: 800;
}

.ss-masonry {
  columns: 5 220px;
  column-gap: 16px;
}

.ss-masonry-card {
  position: relative;
  width: 100%;
  display: inline-block;
  overflow: hidden;
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  background: #dfe7f2;
  break-inside: avoid;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.1);
  transform: translateZ(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ss-masonry-card img {
  width: 100%;
  filter: saturate(1.06) contrast(1.02);
  transition: transform 0.28s ease, filter 0.28s ease;
}

.ss-masonry-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.ss-masonry-card:hover {
  border-color: rgba(47, 114, 255, 0.28);
  box-shadow: 0 26px 58px rgba(47, 114, 255, 0.18);
  transform: translateY(-2px);
}

.ss-masonry-card__shade {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 54px 13px 12px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(11, 18, 32, 0.86));
  opacity: 1;
  transition: opacity 0.2s ease;
}

.ss-masonry-card:hover .ss-masonry-card__shade {
  opacity: 1;
}

.ss-masonry-card__shade strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.ss-masonry-card__shade em {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-style: normal;
  opacity: 0.82;
}

.ss-card-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.ss-card-action svg {
  width: 12px;
  height: 12px;
}

.ss-prompt-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 16px 24px 56px;
}

.ss-prompt-modal.is-open {
  display: flex;
}

.ss-prompt-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(12px);
}

.ss-prompt-sheet {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100vw - 48px));
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(520px, 1.72fr) minmax(320px, 0.9fr);
  gap: 30px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.98));
  box-shadow: 0 36px 100px rgba(17, 24, 39, 0.3);
}

.ss-prompt-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.ss-round-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #edf0f5;
  border-radius: 999px;
  color: #667085;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.ss-round-btn:hover {
  color: var(--ss-blue);
  background: #f5f8ff;
}

.ss-round-btn svg {
  width: 17px;
  height: 17px;
}

.ss-prompt-visual {
  margin: 0;
}

.ss-prompt-visual img {
  width: 100%;
  max-height: 500px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.12);
}

.ss-prompt-visual figcaption {
  margin-top: 10px;
  color: #98a2b3;
  font-size: 12px;
  text-align: right;
}

.ss-prompt-info {
  padding-top: 8px;
}

.ss-author-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.ss-author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--ss-blue), var(--ss-violet));
  font-size: 12px;
  font-weight: 900;
  background-size: cover;
  background-position: center;
}

.ss-author-avatar.has-image {
  color: transparent;
  background-color: #eef2f7;
}

.ss-author-line strong {
  display: block;
  font-size: 13px;
}

.ss-author-line small {
  color: #98a2b3;
  font-size: 11px;
}

.ss-prompt-info h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.35;
}

.ss-prompt-tag {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ss-blue);
  background: #eff5ff;
  font-size: 12px;
  font-weight: 800;
}

.ss-copy-row {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #475467;
  font-size: 12px;
  font-weight: 850;
}

.ss-copy-row button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(47, 114, 255, 0.2);
  border-radius: 999px;
  color: var(--ss-blue);
  background: #eff5ff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.ss-copy-row svg {
  width: 14px;
  height: 14px;
}

.ss-prompt-box {
  min-height: 148px;
  padding: 18px;
  border: 1px solid #e4eaf4;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f6f9ff);
}

.ss-prompt-box p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.75;
}

.ss-related {
  grid-column: 1 / -1;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid #edf0f5;
}

.ss-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ss-related__head h3 {
  margin: 0;
  font-size: 16px;
}

.ss-related__head a {
  color: #667085;
  font-size: 12px;
}

.ss-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ss-related-card {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f2f4f7;
  cursor: pointer;
  text-align: left;
}

.ss-related-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ss-related-card span {
  display: block;
  padding: 9px 10px 10px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-dashboard {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.ss-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 22px;
  margin-bottom: 22px;
}

.ss-profile-card,
.ss-level-card,
.ss-usage-card {
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 42px rgba(17, 24, 39, 0.06);
}

.ss-profile-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px;
}

.ss-profile-card__avatar {
  width: 118px;
  height: 118px;
  border-radius: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.42), transparent 32%),
    linear-gradient(135deg, #111827, #2f72ff 52%, #a855f7);
  background-size: cover;
  background-position: center;
  color: #fff;
  font-size: 42px;
  font-weight: 950;
  box-shadow: 0 18px 36px rgba(47, 114, 255, 0.16);
}

.ss-profile-card__avatar.has-image {
  color: transparent;
}

.ss-profile-card h2,
.ss-level-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.ss-profile-card label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}

.ss-profile-card input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--ss-border);
  border-radius: 12px;
  padding: 0 12px;
}

.ss-profile-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--ss-muted);
  font-size: 13px;
}

.ss-profile-message.is-error {
  color: var(--ss-red);
}

.ss-profile-message.is-success {
  color: var(--ss-green);
}

.ss-level-card {
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(47, 114, 255, 0.84)),
    #111827;
  color: #fff;
}

.ss-level-card span,
.ss-level-card small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 850;
}

.ss-level-card p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
}

.ss-level-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 14px;
}

.ss-level-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.ss-level-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #62e6ff, #b9ff7a);
}

.ss-usage-card {
  margin: 14px 0;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(47, 114, 255, 0.09), rgba(124, 92, 255, 0.07)),
    #fff;
}

.ss-usage-card strong {
  display: block;
  font-size: 16px;
}

.ss-usage-card span,
.ss-usage-card small {
  color: var(--ss-muted);
  font-size: 12px;
  line-height: 1.6;
}

.ss-admin-fields,
.ss-user-limit-note {
  border: 1px solid #dbe7ff;
  border-radius: 16px;
  padding: 14px;
  background: #f7faff;
}

.ss-admin-fields > span,
.ss-user-limit-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ss-blue);
  font-size: 12px;
  font-weight: 900;
}

.ss-admin-fields > span {
  margin-bottom: 12px;
}

.ss-admin-fields svg,
.ss-user-limit-note svg {
  width: 16px;
  height: 16px;
}

.ss-tool-shell {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 42px 0 82px;
}

.ss-tool-hero {
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(12, 18, 36, 0.82), rgba(47, 114, 255, 0.72) 48%, rgba(124, 92, 255, 0.7)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 24px),
    url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1600&h=700&q=85") center/cover;
  box-shadow: var(--ss-shadow);
}

.ss-tool-hero span {
  font-size: 13px;
  font-weight: 900;
  opacity: 0.9;
}

.ss-tool-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

.ss-tool-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.ss-tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  white-space: nowrap;
}

.ss-tool-badge svg {
  width: 18px;
  height: 18px;
}

.ss-image-tool {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 22px;
}

.ss-upload-panel,
.ss-generate-panel {
  border: 1px solid var(--ss-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.05);
}

.ss-upload-panel {
  padding: 18px;
}

.ss-upload-zone {
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  border: 1.5px dashed #c7d7fe;
  border-radius: 20px;
  color: #475467;
  background:
    radial-gradient(circle at 20% 18%, rgba(47, 114, 255, 0.1), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(109, 93, 252, 0.1), transparent 30%),
    #f8fbff;
  text-align: center;
  cursor: pointer;
}

.ss-upload-zone input {
  display: none;
}

.ss-upload-zone span {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: var(--ss-blue);
  background: #eaf1ff;
}

.ss-upload-zone span svg {
  width: 30px;
  height: 30px;
}

.ss-upload-zone strong {
  color: var(--ss-text);
  font-size: 22px;
}

.ss-upload-zone em {
  max-width: 340px;
  color: var(--ss-muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
}

.ss-preview-card {
  margin-top: 16px;
}

.ss-preview-card[hidden] {
  display: none;
}

.ss-preview-card img {
  width: 100%;
  max-height: 360px;
  border-radius: 14px;
  object-fit: cover;
}

.ss-preview-card .ss-outline {
  margin-top: 12px;
}

.ss-generate-panel {
  padding: 24px;
}

.ss-tool-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.ss-tool-options label,
.ss-output-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}

.ss-tool-options select,
.ss-output-label textarea {
  width: 100%;
  border: 1px solid var(--ss-border);
  border-radius: 12px;
  outline: 0;
  color: var(--ss-text);
  background: #fff;
}

.ss-tool-options select {
  height: 44px;
  padding: 0 12px;
}

.ss-output-label textarea {
  resize: vertical;
  padding: 14px;
  line-height: 1.7;
}

.ss-tool-options select:focus,
.ss-output-label textarea:focus {
  border-color: #a4c2ff;
  box-shadow: 0 0 0 3px rgba(47, 114, 255, 0.12);
}

.ss-generate-btn {
  width: 100%;
}

.ss-generate-btn:disabled,
.ss-tool-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.ss-tool-status {
  min-height: 22px;
  margin: 14px 0;
  color: var(--ss-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ss-tool-status.is-error {
  color: var(--ss-red);
}

.ss-tool-status.is-success {
  color: var(--ss-green);
}

.ss-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ss-dashboard-head,
.ss-dashboard-gate,
.ss-dashboard-grid,
.ss-publish-panel,
.ss-my-posts,
.ss-empty {
  border: 1px solid var(--ss-border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.05);
}

.ss-dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 30px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(47, 114, 255, 0.12), rgba(124, 92, 255, 0.08)),
    rgba(255, 255, 255, 0.92);
}

.ss-dashboard-head span {
  color: var(--ss-blue);
  font-size: 13px;
  font-weight: 900;
}

.ss-dashboard-head h1,
.ss-dashboard-gate h1 {
  margin: 6px 0 8px;
  font-size: 34px;
  line-height: 1.15;
}

.ss-dashboard-head p,
.ss-dashboard-gate p,
.ss-muted {
  margin: 0;
  color: var(--ss-muted);
  line-height: 1.7;
}

.ss-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 22px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ss-publish-panel,
.ss-my-posts,
.ss-dashboard-gate,
.ss-empty {
  border-radius: 16px;
  padding: 26px;
}

.ss-dashboard-gate {
  max-width: 560px;
  margin: 70px auto;
  text-align: center;
}

.ss-dashboard-gate .ss-brand__mark {
  margin: 0 auto 12px;
}

.ss-dashboard-gate .ss-primary {
  margin-top: 22px;
}

.ss-publish-panel {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ss-publish-panel label,
.ss-auth-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}

.ss-publish-panel input,
.ss-publish-panel textarea,
.ss-auth-form input:not([type="checkbox"]) {
  width: 100%;
  border: 1px solid var(--ss-border);
  border-radius: 12px;
  outline: 0;
  color: var(--ss-text);
  background: #fff;
}

.ss-publish-panel input,
.ss-auth-form input:not([type="checkbox"]) {
  height: 44px;
  padding: 0 13px;
}

.ss-publish-panel textarea {
  resize: vertical;
  padding: 13px;
}

.ss-publish-panel input:focus,
.ss-publish-panel textarea:focus,
.ss-auth-form input:focus {
  border-color: #a4c2ff;
  box-shadow: 0 0 0 3px rgba(47, 114, 255, 0.12);
}

.ss-publish-message,
.ss-auth-message {
  min-height: 20px;
  margin: 0;
  color: var(--ss-muted);
  font-size: 13px;
}

.ss-publish-message.is-error,
.ss-auth-message.is-error {
  color: var(--ss-red);
}

.ss-publish-message.is-success,
.ss-auth-message.is-success {
  color: var(--ss-green);
}

.ss-my-posts__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ss-my-posts__head h2 {
  margin: 0;
  font-size: 20px;
}

.ss-my-posts__head span {
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}

.ss-my-post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ss-my-post-list article {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
}

.ss-my-post-list img {
  width: 82px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.ss-my-post-list strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.ss-my-post-list small {
  color: var(--ss-muted);
  font-size: 12px;
}

.ss-floating {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
}

.ss-float-btn {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ss-border);
  border-radius: 999px;
  color: #667085;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.1);
  cursor: pointer;
}

.ss-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.ss-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ss-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.ss-auth-modal.is-open {
  display: flex;
}

.ss-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 55, 0.48);
  backdrop-filter: blur(8px);
}

.ss-auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 26px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ss-shadow);
}

.ss-icon-btn,
.ss-auth-card__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ss-auth-card__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #667085;
}

.ss-auth-card__close:hover {
  background: #f2f4f7;
}

.ss-auth-card__head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-right: 30px;
}

.ss-auth-card__head h2 {
  margin: 0;
  font-size: 23px;
}

.ss-auth-card__head p {
  margin: 4px 0 0;
  color: var(--ss-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ss-auth-tabs {
  margin: 23px 0 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  border-radius: 999px;
  background: #f2f4f7;
}

.ss-auth-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font-weight: 850;
}

.ss-auth-tabs button.active {
  color: var(--ss-text);
  background: #fff;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
}

.ss-auth-form {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.ss-auth-form.active {
  display: flex;
}

.ss-check {
  flex-direction: row !important;
  align-items: center;
  font-weight: 700 !important;
}

.ss-empty--gallery {
  max-width: 520px;
  margin: 80px auto;
  text-align: center;
}

@media (max-width: 1180px) {
  .ss-nav {
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px 0;
  }

  .ss-search {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .ss-discovery-hero,
  .ss-gallery-layout {
    grid-template-columns: 1fr;
  }

  .ss-gallery-rail {
    position: static;
  }

  .ss-trend-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ss-trend-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ss-trend-card span {
    display: none;
  }

  .ss-trend-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .ss-prompt-sheet,
  .ss-dashboard-grid,
  .ss-profile-grid,
  .ss-image-tool {
    grid-template-columns: 1fr;
  }

  .ss-prompt-visual img {
    max-height: 520px;
  }
}

@media (max-width: 760px) {
  .ss-nav,
  .ss-inspiration-shell,
  .ss-dashboard {
    width: calc(100% - 24px);
    max-width: 366px;
    margin-left: 12px;
    margin-right: auto;
  }

  .ss-tool-shell {
    width: calc(100% - 24px);
    max-width: 366px;
    margin-left: 12px;
    margin-right: auto;
    padding-top: 24px;
  }

  .ss-tool-hero {
    display: block;
    min-height: 260px;
    padding: 24px;
  }

  .ss-tool-badge {
    margin-top: 18px;
    white-space: normal;
  }

  .ss-tool-options {
    grid-template-columns: 1fr;
  }

  .ss-upload-zone {
    min-height: 300px;
  }

  .ss-nav__links {
    order: 2;
    width: 100%;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 2px;
  }

  .ss-auth {
    margin-left: auto;
  }

  .ss-inspiration-shell {
    padding-top: 14px;
  }

  .ss-discovery-hero {
    gap: 12px;
  }

  .ss-discovery-hero__copy,
  .ss-studio-panel,
  .ss-gallery-rail__panel {
    border-radius: 18px;
  }

  .ss-discovery-hero__copy {
    min-height: auto;
    padding: 24px;
  }

  .ss-discovery-hero__copy h2 {
    font-size: 31px;
    line-height: 1.02;
  }

  .ss-discovery-hero__copy p {
    margin: 14px 0 18px;
    font-size: 14px;
  }

  .ss-discovery-search {
    min-height: 0;
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 13px 14px;
    border-radius: 18px;
  }

  .ss-discovery-search button {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }

  .ss-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .ss-chip-row a {
    flex: 0 0 auto;
  }

  .ss-studio-panel {
    min-height: auto;
    padding: 20px;
  }

  .ss-studio-panel__top {
    display: block;
  }

  .ss-studio-panel__top small {
    display: block;
    margin-top: 6px;
  }

  .ss-studio-stats li {
    display: block;
  }

  .ss-studio-stats span {
    display: block;
    margin-top: 2px;
  }

  .ss-gallery-rail {
    display: none;
  }

  .ss-publish-btn {
    display: none;
  }

  .ss-masonry {
    columns: 1 100%;
    column-gap: 10px;
  }

  .ss-masonry-card {
    margin-bottom: 10px;
    border-radius: 9px;
  }

  .ss-masonry-card__shade {
    align-items: flex-start;
    padding: 44px 10px 10px;
  }

  .ss-card-action {
    display: none;
  }

  .ss-prompt-modal {
    padding: 10px 10px 44px;
  }

  .ss-prompt-sheet {
    width: 100%;
    min-height: 0;
    padding: 14px;
    gap: 18px;
  }

  .ss-prompt-visual img {
    max-height: 360px;
  }

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

  .ss-dashboard-head {
    display: block;
    padding: 22px;
  }

  .ss-dashboard-head .ss-outline {
    margin-top: 18px;
  }

  .ss-profile-card {
    grid-template-columns: 1fr;
  }

  .ss-profile-card__avatar {
    width: 96px;
    height: 96px;
    border-radius: 24px;
  }

  .ss-dashboard-head h1,
  .ss-dashboard-gate h1 {
    font-size: 28px;
  }
}
