:root {
  color-scheme: light;
  --bg: #fff;
  --ink: #2B2238;
  --muted: #7A7289;
  --line: #e7e9ee;
  --surface: #f7f8fa;
  --accent: #735795;
  --width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI Variable", "Segoe UI",
    "PingFang SC", "Microsoft YaHei UI",
    "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: var(--accent); }

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

/* SM_FORM_STATES_V1 */

form.composer :is(input, textarea, select):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(72, 85, 184, .12);
}

form.composer :is(input, textarea)::placeholder {
  color: #9299a6;
  opacity: 1;
}

form.composer .errorlist {
  margin: 7px 0 12px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.6;
  color: #586477;
}

form.composer .btn-primary:hover:not(:disabled) {
  filter: brightness(.94);
}

form.composer .btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  form.composer .btn-primary {
    transition: none;
  }
}


.composer button[type="submit"]:disabled {
  opacity: .68;
  cursor: progress;
}


:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-shell {
  max-width: var(--width);
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* 全站导航 */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-top {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 55px;
}

.site-logo {
  font-family: "Trebuchet MS", "Aptos Display", "Segoe UI", sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: #684987;
  white-space: nowrap;
  text-rendering: optimizeLegibility;
  transition: color .18s ease;
}

.site-logo:hover {
  color: #563B78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  font-size: 14px;
  color: #796C89;
  transition: color .18s ease;
}

.site-account a {
  font-size: 14px;
  color: #656b76;
  transition: color .15s ease;
}

.site-nav a:hover {
  color: #684987;
}

.site-account a:hover {
  color: var(--ink);
}

.site-nav a.active {
  color: #684987;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #BBA6D0;
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}

.site-account {
  margin-left: auto;
  white-space: nowrap;
}

.site-main {
  padding-top: 48px;
  min-height: 68vh;
}

.site-footer {
  margin-top: 85px;
  padding-top: 24px;
  padding-bottom: 35px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #9297a1;
  font-size: 12px;
}

/* 首页 */

.home-intro {
  padding-top: 14px;
  padding-bottom: 55px;
}

.home-greeting {
  font-family: "Segoe UI Variable Display",
    -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Microsoft YaHei UI",
    "Noto Sans CJK SC", sans-serif;
  font-size: clamp(34px, 4.1vw, 48px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.035em;
  margin: 0;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 65px;
  align-items: start;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  font-size: 15px;
  font-weight: 650;
  margin: 0;
}

.section-heading a {
  font-size: 12px;
  color: var(--muted);
}

.section-heading a:hover { color: var(--accent); }

.home-record,
.home-side-entry {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.home-record:last-child,
.home-side-entry:last-child {
  border-bottom: none;
}

.home-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.home-author time,
.home-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.home-record-body {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.home-side-title {
  margin: 6px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.home-side-excerpt {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #636a75;
  overflow-wrap: anywhere;
}

.home-secondary { margin-top: 35px; }

.empty-state {
  padding: 23px 0;
  color: var(--muted);
  font-size: 13px;
}

/* 现有内容页共用样式 */

.page-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 10px 0 28px;
  color: #2B2238;
}


/* SM_ARTICLE_PAGINATION_V1 */
.sm-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.sm-pagination-links {
  display: flex;
  gap: 24px;
}

.sm-pagination-links a {
  color: var(--ink);
}

.sm-pagination-links a:hover {
  color: var(--accent);
}

.reading,
.discussion-layout {
  max-width: 760px;
  margin: 0 auto;
}


/* SM_LONG_CONTENT_V1 */

/* 长文本与连续字符 */
.smc-detail .prose,
.smc-detail .content,
.smc-detail .smc-original-body,
.smc-detail .smc-comment-card .entry-body,
.smstream-record-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 代码块在容器内横向滚动 */
.smc-detail .prose pre,
.smc-detail .content pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
}

/* 正文图片自适应宽度 */
.smc-detail .prose img,
.smc-detail .content img {
  max-width: 100%;
  height: auto;
}

.prose,
.content {
  font-size: 15px;
  line-height: 2;
  overflow-wrap: anywhere;
}

.prose pre,
.content pre {
  overflow-x: auto;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.prose code,
.content code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.prose img,
.content img { max-width: 100%; }

.prose blockquote,
.content blockquote {
  border-left: 3px solid #c4c8d1;
  padding-left: 18px;
  margin-left: 0;
  color: #626875;
}

.prose table,
.content table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}

.prose td, .prose th,
.content td, .content th {
  padding: 8px 12px;
  border: 1px solid var(--line);
}

.record,
.entry,
.discussion-entry,
.comment-entry,
.thread-entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.record-date, .meta,
.entry-meta {
  color: var(--muted);
  font-size: 12px;
}

.entry-body,
.thread-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  flex-shrink: 0;
}

.avatar-fallback {
  width: 36px;
  height: 36px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #eff0f3;
  font-size: 20px;
  flex-shrink: 0;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.entry-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.entry-actions a,
.entry-actions button {
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
}

.entry-actions form { margin: 0; }

/* SM_DISCUSSION_FEED_SPACING */
.discussion-entry > .entry-body {
  margin: 12px 0 0;
}

.discussion-entry > .entry-actions {
  margin-top: 12px;
}

.reply-indent { margin-left: 35px; padding-left: 16px; border-left: 2px solid var(--line); }

/* 表单 */

.composer {
  margin: 22px 0 36px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.field {
  width: 100%;
  display: block;
  padding: 11px 13px;
  margin: 6px 0 14px;
  border: 1px solid #d9dce4;
  border-radius: 6px;
  background: white;
  color: var(--ink);
}

textarea.field {
  resize: vertical;
  min-height: 110px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 19px;
  background: #252935;
  color: white;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.btn-primary:hover { background: #3c414e; }

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}


/* SM_GUEST_AVATAR_COLLAPSE_V1 */
.sm-guest-avatar-settings {
  margin: 12px 0 18px;
}

.sm-guest-avatar-settings > summary {
  width: fit-content;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
}

.sm-guest-avatar-settings > summary:hover {
  color: var(--accent);
}

.sm-guest-avatar-settings > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.sm-guest-avatar-controls {
  padding-top: 14px;
}
.avatar-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}

.auth-card { max-width: 440px; margin: 15px auto; }

.auth-card input:not([type="checkbox"]),
.auth-card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.errorlist { color: #586477; }

/* Emoji 面板 */

.emoji-toolbar { position: relative; margin-right: auto; }

.emoji-toggle {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 7px 11px;
  font-size: 12px;
}

.emoji-panel {
  position: absolute;
  bottom: 42px;
  left: 0;
  width: 260px;
  padding: 9px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 12px 35px #00000016;
  z-index: 10;

  max-height: min(360px, 55vh);
  max-width: calc(100vw - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;}

.emoji-panel[hidden] { display: none; }

.emoji-panel button {
  border: 0;
  background: transparent;
  padding: 6px 2px;
  font-size: 21px;
  border-radius: 5px;
}

.emoji-panel button:hover { background: var(--surface); }

/* 手机布局 */

@media (max-width: 760px) {
  .site-shell { padding-left: 19px; padding-right: 19px; }

  .site-top {
    min-height: auto;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 16px;
    padding-bottom: 13px;
  }

  .site-logo { font-size: 22px; }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .site-nav a { font-size: 13px; }

  .site-account { margin-left: auto; }

  .site-main { padding-top: 28px; }

  .home-intro { padding-top: 10px; padding-bottom: 37px; }
  .home-greeting { font-size: 34px; }
  .home-layout { grid-template-columns: 1fr; gap: 35px; }

  .page-title { font-size: 27px; }
  .composer { padding: 15px; }
  .reply-indent { margin-left: 12px; padding-left: 12px; }
  .site-footer { margin-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Greeting refinement */
.home-greeting {
  font-family:
    "PingFang SC",
    "Microsoft YaHei UI",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.home-intro {
  padding-top: 4px;
  padding-bottom: 36px;
}

/* SM_HOME_STREAM_V1 */

.smstream {
  max-width: 820px;
  margin: 0 auto;
  font-family:
    -apple-system, BlinkMacSystemFont,
    "Segoe UI Variable", "Segoe UI",
    "PingFang SC", "Microsoft YaHei UI",
    "Noto Sans CJK SC", sans-serif;
}

.smstream-intro {
  padding: 34px 0 52px;
}

.smstream-greeting {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.45;
  overflow-wrap: anywhere;
  color: #453653;
}

.smstream-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}

.smstream-heading h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.smstream-heading span {
  font-size: 10px;
  letter-spacing: .08em;
  color: #9a9faa;
}

.smstream-item {
  padding: 24px 2px 25px;
  border-bottom: 1px solid var(--line);
}

.smstream-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 11px;
}

.smstream-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.65;
}

.smstream-tag-article {
  color: #59699A;
  background: #EDF0FA;
}

.smstream-tag-record {
  color: #6E59A5;
  background: #EFE9FA;
}

.smstream-tag-discussion {
  color: #8A596F;
  background: #F5ECEF;
}

.smstream-author {
  color: #555c68;
  font-weight: 500;
}

.smstream-title {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  color: #2B2238;
}

.smstream-record-body {
  display: block;
  width: fit-content;
  max-width: 100%;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.85;
  color: #3D354B;
}

.smstream-excerpt {
  margin: 7px 0 0;
  color: #756C82;
  line-height: 1.8;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.smstream-title,
.smstream-record-body {
  transition: color .18s ease;
}

.smstream-title:hover,
.smstream-record-body:hover {
  color: var(--accent);
}

.smstream-empty {
  padding: 35px 0;
  color: var(--muted);
  font-size: 14px;
}

.smstream-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  padding-top: 28px;
}

.smstream-bottom a {
  color: #626b79;
  font-size: 13px;
  transition: color .18s ease;
}

.smstream-bottom a:hover {
  color: var(--accent);
}

/* 内容少时不强制撑出巨大的空白区域 */
.site-main:has(.smstream) {
  min-height: 0;
}

.site-main:has(.smstream) + .site-footer {
  margin-top: 65px;
}

@media (max-width: 760px) {
  .smstream-intro {
    padding: 18px 0 35px;
  }

  .smstream-greeting {
    font-size: clamp(28px, 7vw, 34px);
  }

  .smstream-heading span {
    display: none;
  }

  .smstream-item {
    padding: 20px 0;
  }

  .smstream-title {
    font-size: 17px;
  }

  .smstream-record-body {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smstream-title,
  .smstream-record-body,
  .smstream-bottom a {
    transition: none;
  }
}


/* SM_HOME_INTERACTIONS_V1 */

.sm-home-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.sm-home-toolbar h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #453653;
}

/* SM_PURPLE_ACTIONS_V1 */

.sm-home-publish .sm-publish-primary,
.sm-home-publish .sm-publish-secondary {
  border-radius: 9px;
  font-weight: 600;
  transition: background-color .16s ease,
              border-color .16s ease,
              color .16s ease;
}

.sm-home-publish .sm-publish-primary {
  background: #614A83;
  border: 1px solid #614A83;
  color: #FFFFFF;
}

.sm-home-publish .sm-publish-primary:hover,
.sm-home-publish .sm-publish-primary:focus-visible {
  background: #735995;
  border-color: #735995;
  color: #FFFFFF;
}

.sm-home-publish .sm-publish-primary:active {
  background: #4C386A;
  border-color: #4C386A;
  color: #FFFFFF;
}

.sm-home-publish .sm-publish-secondary {
  background: #F5F1F9;
  border: 1px solid #DDD3E9;
  color: #604A7D;
}

.sm-home-publish .sm-publish-secondary:hover,
.sm-home-publish .sm-publish-secondary:focus-visible {
  background: #ECE5F4;
  border-color: #C5B7D8;
  color: #513B70;
}

.sm-home-publish .sm-publish-secondary:active {
  background: #E1D7ED;
  color: #513B70;
}

@media (prefers-reduced-motion: reduce) {
  .sm-home-publish .sm-publish-primary,
  .sm-home-publish .sm-publish-secondary {
    transition: none;
  }
}


.sm-home-toolbar p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #7A7289;
}

.sm-home-publish {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sm-publish-primary,
.sm-publish-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 15px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 560;
  transition: background .18s ease, transform .18s ease;
}

.sm-publish-primary {
  background: #292e3b;
  color: #fff;
}

.sm-publish-primary:hover {
  background: #4655a5;
  color: #fff;
}

.sm-publish-secondary {
  border: 1px solid var(--line);
  color: #4c5565;
}

.sm-publish-secondary:hover {
  background: #f2f4fa;
  color: #394ba0;
}

.sm-home-item {
  display: block;
  padding: 22px 2px;
  border-bottom: 1px solid var(--line);
}

.sm-home-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}

.sm-home-avatar,
.sm-home-avatar-default {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sm-home-avatar {
  object-fit: cover;
}

.sm-home-avatar-default {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #edf0f5;
  color: #5e6b80;
  font-size: 18px;
}

.sm-home-name {
  font-weight: 600;
  color: var(--ink);
}

.sm-home-reactions {
  margin-top: 13px;
  font-size: 12px;
}

.sm-home-reactions a {
  color: #7b8391;
  transition: color .18s ease;
}

.sm-home-reactions a:hover {
  color: var(--accent);
}

@media (max-width: 760px) {
  .sm-home-toolbar {
    align-items: flex-start;
  }

  .sm-home-publish {
    width: 100%;
  }

  .sm-home-item {
    padding: 20px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-publish-primary,
  .sm-publish-secondary,
  .sm-home-reactions a {
    transition: none;
  }
}

/* SM_RECORD_COMPOSER_COLLAPSE */

.sm-record-compose {
  margin: 20px 0 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.sm-record-compose > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 62px;
  padding: 14px 18px;
  cursor: pointer;
  color: #727987;
  font-size: 14px;
  list-style: none;
}

.sm-record-compose > summary::-webkit-details-marker {
  display: none;
}

.sm-record-compose > summary::marker {
  content: "";
}

.sm-record-compose > summary:hover {
  color: var(--ink);
}

.sm-record-compose[open] > summary {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.sm-compose-action {
  font-size: 12px;
  color: var(--muted);
}

.sm-record-compose[open] .sm-compose-action {
  font-size: 0;
}

.sm-record-compose[open] .sm-compose-action::after {
  content: "收起";
  font-size: 12px;
}

.sm-record-compose > form.composer {
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 18px;
  background: transparent;
}

@media (max-width: 760px) {
  .sm-record-compose > summary {
    min-height: 56px;
    padding: 12px 14px;
  }

  .sm-record-compose > form.composer {
    padding: 14px;
  }
}

/* SM_DETAIL_SPACING_V1 */

/* SM_DETAIL_RHYTHM_V1 */

.smc-detail .smc-comment-section {
  margin-top: 24px;
}

.smc-detail .smc-comment-section > .section-heading {
  margin-bottom: 5px;
}

.smc-detail .smc-comment-card {
  padding-top: 16px;
  padding-bottom: 17px;
}

.smc-detail .smc-reply-form {
  margin-top: 28px;
}

.smc-detail .smc-reply-heading {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 630;
  margin: 0 0 16px;
}

.smc-detail .smc-reply-form > .composer {
  margin-top: 0;
}


.smc-detail .smc-original { margin: 10px 0 30px; }

.smc-detail .entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.smc-detail .smc-original-body,
.smc-detail .smc-comment-card > .entry-body {
  margin: 9px 0 0 44px;
  padding: 0;
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.smc-detail .smc-original-body {
  font-size: 16px;
  margin-top: 4px;
}

.smc-detail .smc-comment-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.smc-detail .smc-comment-card > .entry-actions {
  margin: 9px 0 0 44px;
}

.smc-detail .reply-indent {
  margin-left: 44px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}

@media (max-width: 760px) {
  .smc-detail .reply-indent {
    margin-left: 14px;
    padding-left: 12px;
  }
}

/* SM_REPLY_TARGET_V1 */

.sm-reply-target {
  color: #7b8391;
  font-size: 12px;
  font-weight: 400;
}

.sm-reply-target span {
  color: #5264a7;
  font-weight: 550;
}

/* SM_ACCOUNT_MENU_V1 */

.site-account-menu {
  position: relative;
}

.site-account-menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink);
}

.site-account-menu summary::-webkit-details-marker {
  display: none;
}

.site-account-menu summary span {
  color: var(--muted);
  font-size: 15px;
}

.site-account-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  z-index: 50;
  min-width: 155px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 30px #00000012;
}

.site-account-dropdown a,
.site-account-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.site-account-dropdown form {
  margin: 0;
}

.site-account-dropdown a:hover,
.site-account-dropdown button:hover {
  background: var(--surface);
  color: var(--accent);
}

/* SM_ACCOUNT_CHEVRON_V1 */
.site-account-menu .account-chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #747985;
  border-bottom: 1.5px solid #747985;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .16s ease;
}

.site-account-menu[open] .account-chevron {
  transform: translateY(2px) rotate(225deg);
}

@media (prefers-reduced-motion: reduce) {
  .site-account-menu .account-chevron {
    transition: none;
  }
}

/* SM_FIELD_ERROR_V1 */
form.composer .sm-field-error {
  color: #586477;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  margin: 8px 0 0;
}


/* SM_HOME_WELCOME_ACTIONS_V1 */

.smstream-intro.sm-home-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.sm-home-intro .smstream-greeting {
  margin: 0;
  min-width: 0;
}

.sm-home-intro .sm-home-publish {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .smstream-intro.sm-home-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .sm-home-intro .sm-home-publish {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* SM_AUTH_VISUAL_V1 */

.sm-auth-page {
  max-width: 480px;
  margin: clamp(48px, 9vh, 105px) auto 70px;
  padding: 0 20px;
}

.sm-auth-brand {
  display: inline-block;
  color: #624987;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sm-auth-brand:hover {
  color: #503871;
}

.sm-auth-card {
  margin-top: 25px;
  padding: 30px;
  background: #fff;
  border: 1px solid #e7e1ed;
  border-radius: 14px;
}

.sm-auth-card h1 {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 650;
}

.sm-auth-form p {
  margin: 0 0 19px;
}

.sm-auth-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.sm-auth-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.sm-auth-form select,
.sm-auth-form textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dcd6e5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.sm-auth-form input:focus,
.sm-auth-form select:focus,
.sm-auth-form textarea:focus {
  outline: none;
  border-color: #735795;
  box-shadow: 0 0 0 3px rgba(98,73,135,.13);
}

.sm-auth-form input[type="hidden"] {
  display: none;
}

.sm-auth-form input[type="checkbox"] {
  accent-color: #624987;
}

.sm-auth-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 10px;
  border: 1px solid #dcd6e5;
  border-radius: 6px;
  background: #f7f4fb;
  color: #624987;
  cursor: pointer;
}

.sm-auth-form .helptext,
.sm-auth-form .helptext ul {
  color: #6b6277;
  font-size: 12px;
  line-height: 1.65;
}

.sm-auth-form .errorlist {
  margin: 6px 0 12px;
  padding: 0;
  list-style: none;
  color: #685576;
  font-size: 13px;
  line-height: 1.6;
}

.sm-auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 11px 18px;
  border: 0;
  border-radius: 8px;
  background: #624987;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s ease;
}

.sm-auth-submit:hover {
  background: #503871;
}

.sm-auth-submit:focus-visible {
  outline: 2px solid #735795;
  outline-offset: 3px;
}

.sm-auth-switch {
  margin: 24px 0 0;
  text-align: center;
  color: #6b6277;
  font-size: 13px;
}

.sm-auth-switch a {
  margin-left: 9px;
  color: #624987;
  font-weight: 600;
}

.sm-auth-switch a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .sm-auth-page {
    margin-top: 45px;
  }

  .sm-auth-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-auth-submit {
    transition: none;
  }
}

/* SM_SECONDARY_TEXT_V1 */

.entry-meta,
.smstream-meta,
.sm-home-item-meta,
.home-author time,
.home-meta {
  color: #6b6277;
}

.entry-meta > strong,
.smstream-meta > strong,
.sm-home-name {
  color: var(--ink);
  font-weight: 600;
}

.entry-actions a,
.entry-actions button,
.sm-home-reactions a {
  color: #695878;
}

.entry-actions a:hover,
.entry-actions button:hover,
.sm-home-reactions a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* SM_REGISTER_POLISH_V3 */

.sm-auth-page {
  max-width: 480px;
  margin: clamp(48px, 9vh, 105px) auto 70px;
  padding: 0 20px;
}

.sm-auth-brand {
  display: inline-block;
  color: #624987;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sm-auth-brand:hover {
  color: #503871;
}

.sm-auth-card {
  margin-top: 25px;
  padding: 30px;
  background: #fff;
  border: 1px solid #e7e1ed;
  border-radius: 14px;
}

.sm-auth-card h1 {
  margin: 0 0 25px;
  font-size: 25px;
  font-weight: 650;
  color: var(--ink);
}

.sm-auth-field {
  margin-bottom: 19px;
}

.sm-auth-field > label,
.sm-auth-avatar legend {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.sm-auth-field input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.sm-auth-field select,
.sm-auth-field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dcd6e5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.sm-auth-field input:focus,
.sm-auth-field select:focus,
.sm-auth-field textarea:focus {
  outline: none;
  border-color: #735795;
  box-shadow: 0 0 0 3px rgba(98,73,135,.13);
}

.sm-auth-hint,
.sm-auth-hint ul {
  margin: 6px 0 0;
  color: #6b6277;
  font-size: 12px;
  line-height: 1.65;
}

.sm-auth-hint ul {
  padding-left: 18px;
}

.sm-auth-avatar {
  margin: 22px 0 18px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.sm-auth-avatar-choices {
  display: grid;
  gap: 10px;
}

.sm-auth-avatar-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid #e4dfeb;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
}

.sm-auth-avatar-option:has(input:checked) {
  border-color: #735795;
  background: #f8f5fc;
}

.sm-auth-avatar-option:focus-within {
  outline: 2px solid #735795;
  outline-offset: 2px;
}

.sm-auth-avatar-option input {
  accent-color: #624987;
  flex-shrink: 0;
}

.sm-auth-avatar-option img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sm-auth-upload[hidden] {
  display: none !important;
}

.sm-auth-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 11px;
  background: #f7f4fb;
  border: 1px solid #dcd6e5;
  border-radius: 6px;
  color: #624987;
  cursor: pointer;
}

.sm-auth-checkbox label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.sm-auth-checkbox input {
  accent-color: #624987;
}

.sm-auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 11px 18px;
  background: #624987;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s ease;
}

.sm-auth-submit:hover {
  background: #503871;
}

.sm-auth-submit:focus-visible {
  outline: 2px solid #735795;
  outline-offset: 3px;
}

.sm-auth-switch {
  margin-top: 24px;
  color: #6b6277;
  text-align: center;
  font-size: 13px;
}

.sm-auth-switch a {
  margin-left: 8px;
  color: #624987;
  font-weight: 600;
}

.sm-auth-switch a:hover {
  text-decoration: underline;
}

.sm-auth-form .errorlist {
  margin: 6px 0 12px;
  padding: 0;
  list-style: none;
  color: #685576;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .sm-auth-page {
    margin-top: 45px;
  }

  .sm-auth-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-auth-submit {
    transition: none;
  }
}

/* SM_PROFILE_EDIT_V1 */

.sm-profile-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sm-profile-label-row label {
  margin-bottom: 7px;
}

.sm-profile-edit {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #624987;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sm-profile-edit:hover {
  color: #503871;
  text-decoration: underline;
}

.sm-profile-edit:focus-visible {
  outline: 2px solid #735795;
  outline-offset: 3px;
}

.sm-auth-field input[readonly] {
  background: #f8f7fa;
  color: #52475f;
  cursor: default;
}

.sm-profile-avatar-current {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.sm-profile-avatar-current img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sm-profile-avatar-current strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.sm-profile-avatar-current p {
  margin: 4px 0 0;
  color: #6b6277;
  font-size: 12px;
}

.sm-profile-avatar-field > label {
  display: block;
  margin-bottom: 8px;
}

.sm-profile-avatar-field input[type="file"] {
  width: 100%;
}

.sm-auth-checkbox label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.sm-auth-checkbox input {
  accent-color: #624987;
}

@media (max-width: 600px) {
  .sm-profile-avatar-current {
    gap: 12px;
  }
}
