@font-face {
  font-family: Inter;
  src: url('/assets/dmsans.ttf') format('truetype');
  font-display: swap;
  font-weight: 100 900;
}
:root {
  --bg: #fbfcff;
  --surface: #fff;
  --text: #11162b;
  --muted: #667085;
  --line: #e7e9f1;
  --primary: #7048f6;
  --pink: #ed6bae;
  --soft: #f1edff;
  --shadow: 0 7px 28px #242b5910;
  --radius: 18px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0f1221;
  --surface: #191d31;
  --text: #f4f5ff;
  --muted: #adb5cb;
  --line: #30374e;
  --soft: #2c2447;
  --shadow: 0 7px 28px #0002;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Microsoft YaHei',
    sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--primary);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #aa83ff;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  font-weight: 820;
}
h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
}
h3 {
  font-size: 1.18rem;
}
p + p {
  margin-top: 16px;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
img {
  max-width: 100%;
  display: block;
}
button {
  border: 0;
}
header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px max(24px, calc((100vw - 1440px) / 2));
  min-height: 86px;
}
header .brand {
  font-size: 17px;
  white-space: nowrap;
  letter-spacing: -0.7px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 9px;
}
.topnav {
  display: flex;
  gap: 25px;
  font-size: 14px;
  font-weight: 600;
}
.topnav a[aria-current='page'] {
  color: var(--primary);
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}
.header-search {
  width: 210px;
  position: relative;
}
.header-search input {
  padding: 9px 34px 9px 13px;
  font-size: 14px;
  background: var(--bg);
}
.header-search svg {
  position: absolute;
  right: 10px;
  top: 11px;
  width: 18px;
}
.language {
  font-size: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-align: center;
  line-height: 1.45;
}
.button.primary {
  color: white;
  background: linear-gradient(110deg, #5260f5, #9c42ef);
  border-color: transparent;
  box-shadow: 0 4px 14px #7048f622;
}
.button.primary:hover {
  filter: brightness(1.06);
  color: #fff;
}
.button.small {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 14px;
}
.button.danger {
  color: #c52e54;
  border-color: #f3bdca;
}
.button.active {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--soft);
}
.text-button {
  background: none;
  color: var(--primary);
  padding: 6px 0;
  font-weight: 600;
}
.container {
  max-width: 1440px;
  margin: auto;
  padding: 40px 32px 72px;
}
.hero {
  padding: 60px 32px;
  background:
    radial-gradient(ellipse at 95% 25%, #dfe8ff88, transparent 55%),
    linear-gradient(100deg, #f5efff, var(--bg) 55%, #faedf8);
  border-bottom: 1px solid var(--line);
}
[data-theme='dark'] .hero {
  background: linear-gradient(110deg, #241b3f, var(--bg), #1e2543);
}
.hero-inner {
  max-width: 1376px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  align-items: center;
  gap: 64px;
}
.eyebrow {
  color: var(--primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 750;
  margin-bottom: 16px;
}
.hero h1 {
  max-width: 880px;
  font-size: clamp(2.6rem, 4.1vw, 4.5rem);
}
.gradient-text {
  background: linear-gradient(95deg, #6254f6, #c44ce8);
  background-clip: text;
  color: transparent;
}
.hero .subtitle {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin-top: 20px;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 29px;
}
.stat strong {
  font-size: 22px;
  display: block;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}
.cta-card {
  background: linear-gradient(120deg, #ebe2ff, #e3edff);
  padding: 31px;
  border: 1px solid #fff9;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
[data-theme='dark'] .cta-card {
  background: linear-gradient(120deg, #312343, #263253);
}
.cta-card h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
}
.cta-card p {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 15px;
}
.cta-card .button {
  width: 100%;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-head p {
  color: var(--muted);
  margin-top: 8px;
}
.count-label {
  font-size: 14px;
  color: var(--muted);
}
.chips {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 4px 0 14px;
  scrollbar-width: thin;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 30px;
  padding: 9px 14px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  flex-shrink: 0;
}
.chip svg {
  width: 16px;
  height: 16px;
}
.chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin: 18px 0 28px;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tabs .chip {
  font-size: 14px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.project-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s;
}
.project-card:hover {
  transform: translateY(-3px);
}
.project-cover {
  aspect-ratio: 16/10;
  background: var(--soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-cover svg {
  width: 46px;
  height: 46px;
  color: var(--primary);
}
.card-body {
  padding: 17px;
}
.card-body h3 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.45px;
  overflow-wrap: anywhere;
}
.card-summary {
  font-size: 14px;
  color: var(--muted);
  margin: 7px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}
.tool-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tool-badge {
  font-size: 12px;
  background: var(--soft);
  color: var(--primary);
  border-radius: 20px;
  padding: 3px 8px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.card-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  min-width: 0;
}
.card-author span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.large {
  width: 88px;
  height: 88px;
  font-size: 35px;
}
.metric {
  display: flex;
  gap: 4px;
  align-items: center;
}
.metric svg {
  width: 14px;
  height: 14px;
}
.rank {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--surface);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
}
.empty-state {
  padding: 66px 24px;
  text-align: center;
  border: 1px dashed #d4c9f1;
  border-radius: 24px;
  background: linear-gradient(110deg, var(--surface), var(--soft));
  margin: 12px 0;
}
.empty-mark {
  width: 78px;
  height: 78px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: var(--shadow);
}
.empty-mark img {
  width: 48px;
  height: 48px;
}
.empty-state h2 {
  font-size: 28px;
}
.empty-state p {
  color: var(--muted);
  max-width: 480px;
  margin: 14px auto 24px;
}
.empty-topics {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.empty-topics span {
  border-radius: 9px;
  background: var(--surface);
  padding: 8px 15px;
  font-size: 13px;
  color: var(--muted);
}
.intro-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  margin: 58px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.intro-band p {
  color: var(--muted);
  margin: 14px 0;
}
.steps-mini {
  display: grid;
  gap: 20px;
}
.steps-mini > div {
  display: flex;
  gap: 16px;
}
.number {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.steps-mini p {
  margin: 4px 0 0;
  font-size: 14px;
}
.page-head {
  margin-bottom: 36px;
}
.page-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.page-head p {
  color: var(--muted);
  max-width: 750px;
  margin-top: 12px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.category-card {
  padding: 28px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.category-icon svg {
  width: 24px;
  height: 24px;
}
.category-card h3 {
  font-size: 17px;
  line-height: 1.4;
}
.category-card p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.search-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 28px;
}
.search-row {
  display: flex;
  gap: 12px;
  align-items: end;
}
.search-row label {
  flex: 1;
}
.filter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 18px;
}
.suggestions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.panel {
  background: var(--surface);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.auth-wrap {
  max-width: 480px;
  margin: 58px auto 86px;
  padding: 0 20px;
}
.auth-wrap .panel {
  padding: 36px;
}
.auth-wrap h1 {
  font-size: 32px;
  margin-bottom: 12px;
}
.auth-wrap .intro {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 26px;
}
.form-stack {
  display: grid;
  gap: 19px;
}
.field {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  margin-top: 7px;
}
.hint {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  display: block;
  margin-top: 6px;
}
.field-error {
  color: #c52e54;
  font-size: 14px;
}
.error-box {
  background: #fff0f3;
  color: #ae254b;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin: 12px 0;
}
.success-box {
  background: var(--soft);
  color: var(--primary);
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
}
.notice {
  background: var(--soft);
  border: 1px solid #9378e655;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 14px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 11px 13px;
  font-size: 15px;
  min-height: 44px;
}
textarea {
  resize: vertical;
  min-height: 130px;
}
input[type='checkbox'] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}
input[type='file'] {
  padding: 10px;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}
.checkbox input {
  margin-top: 2px;
  flex-shrink: 0;
}
.checkbox a,
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.divider {
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.full {
  width: 100%;
}
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.wizard-wrap {
  max-width: 920px;
  margin: auto;
}
.wizard-header {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 26px;
}
.wizard-header h1 {
  font-size: 30px;
}
.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 30px 0;
}
.progress-step {
  font-size: 13px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 3px solid var(--line);
}
.progress-step.current {
  border-color: var(--primary);
  color: var(--primary);
}
.progress-step.complete {
  border-color: #ad96ff;
}
.progress-step b {
  margin-right: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.span-2 {
  grid-column: 1/-1;
}
.wizard-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  align-items: center;
}
.upload-zone {
  border: 2px dashed #beacf1;
  border-radius: 16px;
  background: var(--soft);
  padding: 28px;
  text-align: center;
}
.upload-zone svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}
.upload-zone p {
  color: var(--muted);
  margin: 10px 0 18px;
}
.upload-zone input {
  max-width: 450px;
  margin: auto;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.media-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.media-item img,
.media-item video {
  aspect-ratio: 16/10;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.media-item .field {
  margin-top: 12px;
}
.media-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.media-item.cover {
  border: 2px solid var(--primary);
}
progress {
  width: 100%;
  height: 10px;
  accent-color: var(--primary);
}
.preview-card {
  max-width: 330px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
}
.detail-main {
  min-width: 0;
}
.detail-cover {
  border-radius: 22px;
  background: var(--soft);
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}
.gallery {
  display: flex;
  gap: 10px;
  overflow: auto;
  margin: 12px 0 30px;
}
.gallery button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  width: 98px;
  height: 66px;
  padding: 0;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-main h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  overflow-wrap: anywhere;
}
.detail-summary {
  color: var(--muted);
  font-size: 19px;
  margin-top: 15px;
}
.detail-main .tool-badges {
  margin: 20px 0 30px;
}
.detail-section {
  margin: 35px 0;
}
.detail-section h2 {
  font-size: 23px;
  margin-bottom: 15px;
}
.user-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-side .panel {
  position: sticky;
  top: 112px;
  padding: 25px;
}
.author-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.side-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.sidebar-bio {
  margin-top: 15px;
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.detail-links {
  display: grid;
  gap: 9px;
}
.detail-links a {
  overflow-wrap: anywhere;
}
.embed {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 16px;
}
.detail-video {
  width: 100%;
  border-radius: 16px;
}
.comments {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: 38px;
}
.comment {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.comment.reply {
  margin-left: 42px;
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}
.comment-head time {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.comment-actions {
  display: flex;
  gap: 16px;
  font-size: 13px;
  margin-top: 10px;
}
.profile-banner {
  height: 130px;
  background: linear-gradient(120deg, #7355f5, #849cec, #e487c6);
  border-radius: 24px 24px 0 0;
}
.profile-info {
  padding: 0 34px 30px;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background: var(--surface);
}
.profile-info .avatar.large {
  margin-top: -45px;
  border: 5px solid var(--surface);
  position: relative;
}
.profile-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}
.profile-heading h1 {
  font-size: 32px;
}
.profile-bio {
  max-width: 750px;
  margin-top: 15px;
}
.profile-stats {
  display: flex;
  gap: 30px;
  margin-top: 22px;
}
.profile-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 15px;
  font-size: 14px;
  color: var(--primary);
}
.dashboard-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
}
.side-menu {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.side-menu a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 11px;
  font-size: 14px;
}
.side-menu a.active {
  background: var(--soft);
  color: var(--primary);
  font-weight: 650;
}
.dashboard-item {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
  background: var(--surface);
  margin-bottom: 14px;
}
.dashboard-item h3 {
  font-size: 17px;
}
.dashboard-item .thumb {
  width: 104px;
  height: 72px;
  object-fit: cover;
  border-radius: 9px;
}
.dashboard-item .item-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.state {
  display: inline-block;
  background: var(--soft);
  color: var(--primary);
  font-size: 12px;
  border-radius: 30px;
  padding: 4px 10px;
  margin-top: 8px;
}
.notification {
  display: flex;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 13px;
  margin-bottom: 12px;
}
.notification.unread {
  border-left: 3px solid var(--primary);
}
.notification p {
  font-size: 15px;
}
.notification time {
  font-size: 12px;
  color: var(--muted);
}
.settings-section + .settings-section {
  margin-top: 24px;
}
.settings-section h2 {
  font-size: 22px;
  margin-bottom: 22px;
}
.prose {
  max-width: 860px;
  margin: auto;
  padding: 60px 28px 85px;
}
.prose .eyebrow {
  margin-bottom: 20px;
}
.prose h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 28px;
}
.prose h2 {
  font-size: 25px;
  margin-top: 36px;
  margin-bottom: 15px;
}
.prose p {
  color: var(--muted);
  line-height: 1.8;
}
.prose .lead {
  font-size: 21px;
  color: var(--text);
}
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}
.benefit {
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
}
.benefit h3 {
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.benefit p {
  font-size: 15px;
}
.about-cta {
  background: linear-gradient(125deg, #6553ea, #a143ec);
  color: #fff;
  padding: 35px;
  border-radius: 22px;
  margin-top: 40px;
}
.about-cta p {
  color: #f0e9ff;
}
.about-cta .button {
  margin-top: 20px;
}
.contact-wrap {
  max-width: 800px;
  margin: auto;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 23px;
  margin-bottom: 12px;
  background: var(--surface);
}
.faq summary {
  font-weight: 650;
  cursor: pointer;
}
.faq p {
  margin-top: 14px;
  color: var(--muted);
}
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.admin-list {
  display: grid;
  gap: 16px;
}
.admin-row {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.admin-row h3 {
  margin-bottom: 12px;
}
.admin-row p {
  font-size: 14px;
  margin: 7px 0;
}
.admin-row .form-actions {
  margin-top: 15px;
}
.admin-reason {
  margin: 15px 0;
}
.admin-statbar {
  display: flex;
  gap: 30px;
  margin: 24px 0;
  flex-wrap: wrap;
}
footer {
  background: #11192b;
  color: #c7cddd;
  margin-top: 20px;
  padding: 48px max(32px, calc((100vw - 1376px) / 2)) 25px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 45px;
}
.footer-brand {
  font-size: 19px;
  font-weight: 750;
  color: #fff;
  display: flex;
  gap: 10px;
  align-items: center;
}
.footer-brand img {
  width: 30px;
}
.footer-note {
  font-size: 14px;
  color: #9ea8bb;
  margin-top: 15px;
  max-width: 320px;
}
.footer-col h3 {
  font-size: 14px;
  color: white;
  margin: 6px 0 17px;
  letter-spacing: 0;
}
.footer-col a {
  display: block;
  font-size: 14px;
  margin: 8px 0;
}
.footer-bottom {
  font-size: 12px;
  color: #9ba6bd;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #ffffff1a;
  padding-top: 23px;
  margin-top: 35px;
}
#mobile-nav {
  display: none;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--text);
  color: var(--surface);
  padding: 14px 23px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 14px;
  max-width: calc(100vw - 40px);
  display: none;
}
#toast.visible {
  display: block;
}
.loading {
  text-align: center;
  padding: 100px 20px;
  color: var(--muted);
}
.loader {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  z-index: 150;
  padding: 10px 20px;
  background: var(--surface);
  color: var(--primary);
}
.skip-link:focus {
  top: 12px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
dialog {
  width: 540px;
  max-width: calc(100vw - 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  padding: 27px;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #10152966;
  backdrop-filter: blur(4px);
}
.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.share-grid a {
  font-size: 13px;
}
.personal-links {
  display: grid;
  gap: 10px;
}
.mobile-submit {
  display: none;
}
.hidden {
  display: none !important;
}
.honeypot {
  position: absolute;
  left: -10000px;
}
.loading-error {
  text-align: center;
  padding: 80px 24px;
}
.loading-error h1 {
  font-size: 34px;
  margin-bottom: 20px;
}
.loading-error .button {
  margin-top: 25px;
}
.save-status {
  font-size: 13px;
  color: var(--muted);
}
.small-title {
  font-size: 24px;
  margin-bottom: 20px;
}
.inline-form {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.inline-form input {
  flex: 1;
}
.wizard-preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-top: 24px;
}
.wizard-preview h2 {
  font-size: 23px;
  margin-top: 25px;
}
.wizard-preview p {
  margin: 12px 0;
  color: var(--muted);
}
.counter {
  float: right;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}
.subtle-link {
  font-size: 14px;
  color: var(--primary);
}
.back-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
@media (min-width: 1550px) {
  .projects-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1250px) {
  header {
    gap: 18px;
    padding: 15px 24px;
  }
  .header-search {
    display: none;
  }
  .topnav {
    gap: 20px;
  }
  .hero-inner {
    gap: 35px;
    grid-template-columns: 1.8fr 1fr;
  }
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .submit-top {
    padding: 10px 13px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 25px;
  }
}
@media (max-width: 950px) {
  .topnav a:nth-last-child(-n + 2) {
    display: none;
  }
  .header-actions .submit-top {
    display: none;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .cta-card {
    display: none;
  }
  .mobile-submit {
    display: inline-flex;
    margin-top: 23px;
  }
  .hero {
    padding: 45px 28px;
  }
  .hero h1 {
    max-width: 660px;
    font-size: clamp(2.5rem, 6vw, 3.8rem);
  }
  .hero-stats {
    gap: 36px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-side .panel {
    position: static;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .side-menu {
    flex-direction: row;
    overflow: auto;
    padding-bottom: 10px;
  }
  .side-menu a {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
  .footer-grid .footer-col:last-child {
    grid-column: 2;
  }
  .intro-band {
    gap: 30px;
  }
  .dashboard-item {
    flex-wrap: wrap;
  }
  .dashboard-item .form-actions {
    width: 100%;
    margin-left: 122px;
  }
}
@media (max-width: 650px) {
  body {
    font-size: 16px;
  }
  header {
    min-height: 70px;
    padding: 13px 17px;
    gap: 10px;
  }
  header .brand {
    font-size: 14px;
    letter-spacing: -0.6px;
    gap: 5px;
  }
  header .brand img {
    width: 25px;
    height: 25px;
  }
  .topnav {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .theme-toggle,
  .header-actions .signin-text {
    display: none;
  }
  .icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .language {
    font-size: 12px;
    width: 33px;
  }
  .hero {
    padding: 34px 20px 30px;
  }
  .hero h1 {
    font-size: 39px;
    line-height: 1.1;
    max-width: 420px;
  }
  .hero .subtitle {
    font-size: 16px;
    line-height: 1.5;
  }
  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.13em;
  }
  .hero-stats {
    gap: 25px;
    margin-top: 25px;
  }
  .stat strong {
    font-size: 20px;
  }
  .stat span {
    font-size: 12px;
  }
  .mobile-submit {
    width: 100%;
  }
  .container {
    padding: 26px 17px 38px;
  }
  .section-head {
    gap: 10px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .section-head p {
    font-size: 14px;
  }
  .toolbar {
    margin: 10px 0 20px;
    flex-wrap: wrap;
  }
  .chip {
    font-size: 12px;
    padding: 8px 12px;
  }
  .chips {
    margin-right: -17px;
    padding-right: 17px;
  }
  .projects-grid {
    gap: 12px;
  }
  .card-body {
    padding: 12px;
  }
  .card-body h3 {
    font-size: 15px;
  }
  .card-summary {
    font-size: 13px;
    line-height: 1.5;
    min-height: 39px;
  }
  .tool-badges {
    gap: 4px;
  }
  .tool-badge {
    font-size: 12px;
    padding: 2px 6px;
  }
  .card-meta {
    flex-wrap: wrap;
    gap: 7px;
    font-size: 12px;
  }
  .card-meta .card-author {
    width: 100%;
    margin: 0;
  }
  .card-meta .avatar {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
  .card-meta .card-share {
    margin-left: auto;
  }
  .empty-state {
    padding: 40px 20px;
    margin-top: 8px;
  }
  .empty-state h2 {
    font-size: 24px;
  }
  .empty-state p {
    font-size: 15px;
  }
  .empty-topics {
    gap: 7px;
  }
  .empty-topics span {
    font-size: 12px;
    padding: 6px 10px;
  }
  .intro-band {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 32px;
    padding-top: 28px;
  }
  .intro-band h2 {
    font-size: 23px;
  }
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .category-card {
    padding: 22px 16px;
  }
  .category-card h3 {
    font-size: 15px;
  }
  .category-icon {
    margin-bottom: 16px;
  }
  .page-head {
    margin-bottom: 26px;
  }
  .page-head h1 {
    font-size: 30px;
  }
  .page-head p {
    font-size: 15px;
  }
  .search-panel {
    padding: 17px;
  }
  .search-row {
    gap: 8px;
    flex-wrap: wrap;
  }
  .search-row label {
    flex-basis: 100%;
  }
  .filter-row {
    gap: 12px;
  }
  .filter-row label {
    font-size: 13px;
  }
  .panel {
    padding: 21px;
  }
  .auth-wrap {
    margin-top: 34px;
  }
  .auth-wrap .panel {
    padding: 26px;
  }
  .auth-wrap h1 {
    font-size: 28px;
  }
  .wizard-header {
    align-items: flex-start;
    gap: 10px;
  }
  .wizard-header h1 {
    font-size: 25px;
  }
  .wizard-header .button {
    padding: 9px 12px;
    font-size: 12px;
  }
  .progress {
    gap: 7px;
    margin: 24px 0;
  }
  .progress-step {
    font-size: 12px;
  }
  .progress-step b {
    display: block;
    margin-bottom: 5px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .span-2 {
    grid-column: auto;
  }
  .wizard-footer {
    flex-wrap: wrap;
  }
  .wizard-footer .button {
    font-size: 13px;
    padding: 11px 16px;
  }
  .save-status {
    width: 100%;
    order: 3;
  }
  .media-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .media-buttons .button {
    font-size: 12px;
    padding: 7px 9px;
  }
  .upload-zone {
    padding: 23px 15px;
  }
  .detail-cover {
    border-radius: 15px;
  }
  .gallery {
    margin-bottom: 22px;
  }
  .detail-main h1 {
    font-size: 31px;
  }
  .detail-summary {
    font-size: 17px;
  }
  .detail-section {
    margin: 28px 0;
  }
  .detail-section h2 {
    font-size: 21px;
  }
  .detail-side .panel {
    padding: 21px;
  }
  .profile-info {
    padding: 0 22px 24px;
  }
  .profile-heading h1 {
    font-size: 27px;
  }
  .profile-heading {
    flex-wrap: wrap;
  }
  .profile-stats {
    gap: 22px;
  }
  .profile-stats .stat strong {
    font-size: 19px;
  }
  .dashboard-item {
    padding: 15px;
    gap: 12px;
  }
  .dashboard-item .thumb {
    width: 77px;
    height: 60px;
  }
  .dashboard-item .form-actions {
    margin-left: 0;
  }
  .side-menu a {
    padding: 10px 13px;
  }
  .prose {
    padding: 38px 22px 55px;
  }
  .prose h1 {
    font-size: 35px;
  }
  .prose .lead {
    font-size: 19px;
  }
  .prose h2 {
    font-size: 23px;
  }
  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .benefit {
    padding: 22px;
  }
  .about-cta {
    padding: 26px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .footer-about {
    grid-column: 1/-1;
  }
  .footer-grid .footer-col:last-child {
    grid-column: auto;
  }
  footer {
    padding: 34px 22px 115px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
  .footer-bottom span:last-child {
    font-size: 12px;
  }
  #mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 9px 10px max(11px, env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  #mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 11px;
    min-width: 50px;
    padding: 2px 4px;
  }
  #mobile-nav a svg {
    width: 22px;
    height: 22px;
  }
  #mobile-nav a.active {
    color: var(--primary);
  }
  #mobile-nav .bottom-submit span {
    display: none;
  }
  #mobile-nav .bottom-submit {
    background: linear-gradient(120deg, #6255f5, #a043f4);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    min-width: 44px;
    justify-content: center;
    box-shadow: 0 4px 12px #7048f62a;
  }
  #toast {
    bottom: 88px;
  }
  dialog {
    padding: 22px;
  }
  .share-grid {
    grid-template-columns: 1fr 1fr;
  }
  .comment.reply {
    margin-left: 24px;
  }
  .comment-head {
    flex-wrap: wrap;
  }
  .comment-head time {
    margin-left: 0;
  }
  .breadcrumb {
    font-size: 13px;
  }
  .admin-statbar {
    gap: 20px;
  }
  .admin-row {
    padding: 18px;
  }
  .header-actions .profile-top {
    width: 32px;
  }
  .hero .subtitle {
    max-width: 370px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
