:root {
  --background: #f7f7f7;
  --surface: #ffffff;
  --card-bg: #ffffff;
  --search-bg: #f1f1f1;
  --search-text: #1f2937;
  --search-placeholder: #6b7280;
  --foreground: #1f2937;
  --text-secondary: #4b5563;
  --border: #d1d5db;
  --accent: #888888;
  --highlight: #f8c539;
  --plan-accent-free: #f87171;
  --plan-accent-silver: #9ca3af;
  --plan-accent-gold: var(--highlight);
  --plan-accent-diamond: #38bdf8;
  --plan-accent-sponsor: #4ade80;
}

[data-theme="dark"] {
  --background: #121212;
  --surface: #1d1d1d;
  --card-bg: #2a2a2a;
  --search-bg: #2a2a2a;
  --search-text: #e0e0e0;
  --search-placeholder: #b0b0b0;
  --foreground: #e0e0e0;
  --text-secondary: #b0b0b0;
  --border: #444444;
  --accent: #888888;
  --plan-accent-silver: #94a3b8;
  --plan-accent-diamond: #7dd3fc;
  --plan-accent-sponsor: #86efac;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

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

button,
input {
  font: inherit;
}

.page-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
}

.site-header {
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
}

.site-footer {
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.header-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.logo-wrap {
  min-width: 200px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.logo-wordmark {
  display: inline-grid;
  justify-items: stretch;
  width: max-content;
}

.logo-line-top {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: center;
}

.logo-line-bottom {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  white-space: nowrap;
  text-align: center;
  margin-top: 3px;
}

.logo-primary {
  color: var(--foreground);
}

.logo-accent {
  color: var(--highlight);
}

.search-wrap {
  min-width: 220px;
  flex: 1;
}

.search-wrap input {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--search-bg);
  color: var(--search-text);
  padding: 0 12px;
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--highlight);
}

.search-wrap input::placeholder {
  color: var(--search-placeholder);
}

.text-primary-btn {
  border: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  font-weight: 500;
}

.header-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px 5px 6px;
  font-size: 13px;
  color: var(--foreground);
  background: var(--card-bg);
}

.header-profile-avatar,
.header-profile-fallback {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

.header-profile-avatar.is-hidden {
  display: none;
}

.header-profile-fallback-icon {
  display: none;
}

.header-profile-fallback-icon.is-visible {
  display: inline-flex;
}

.avatar-image.is-hidden {
  display: none;
}

.avatar-fallback-icon {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.avatar-fallback-icon.is-visible {
  display: inline-flex;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--foreground);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.theme-icon {
  display: none;
  line-height: 1;
}

.theme-icon-dark {
  display: inline;
}

[data-theme="dark"] .theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-light {
  display: inline;
}

.header-tags {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.header-tags-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.header-tags-list > .header-topic-item {
  flex-shrink: 0;
  white-space: nowrap;
}

.header-tags-viewall {
  flex-shrink: 0;
  margin-left: auto;
}

.header-topic-item {
  border: 0;
  border-radius: 5px;
  background: var(--card-bg);
  color: var(--foreground);
  font-size: 13px;
  line-height: 1;
  padding: 7px 10px;
  cursor: pointer;
}

.push-right {
  margin-left: auto;
}

.layout-main {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.left-col,
.right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-header h2,
.section-header h3 {
  margin-bottom: 0;
}

h2,
h3,
h4,
p {
  margin: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 16px;
}

.muted {
  color: var(--text-secondary);
}

.small {
  font-size: 12px;
}

.title-sm {
  font-size: 14px;
  font-weight: 600;
}

.comment-parent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.comment-parent-type {
  border-radius: 999px;
  background: color-mix(in srgb, var(--highlight) 30%, transparent);
  color: var(--foreground);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  white-space: nowrap;
}

.comment-parent-title {
  color: var(--text-secondary);
  font-size: 12px;
}

.stack-3 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.soft-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.soft-card p,
.soft-card .title-sm,
.soft-card .small,
.soft-card .tag-link,
.soft-card .chip {
  font-size: 12px;
}

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

.chip,
.btn-highlight {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: transparent;
  color: var(--foreground);
  font-size: 13px;
  line-height: 1;
  padding: 7px 10px;
  cursor: pointer;
}


.icon-btn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  max-width: 30px;
  max-height: 30px;
  flex: 0 0 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.bookmark-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bookmark-icon-filled {
  display: none;
}

.bookmark-btn.is-bookmarked .bookmark-icon-outline {
  display: none;
}

.bookmark-btn.is-bookmarked .bookmark-icon-filled {
  display: inline-flex;
}

.heart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.heart-icon-filled {
  display: none;
}

.heart-btn.is-liked .heart-icon-outline {
  display: none;
}

.heart-btn.is-liked .heart-icon-filled {
  display: inline-flex;
}

.icon-svg {
  width: 16px;
  height: 16px;
  display: block;
}

.icon-svg-solid {
  fill: currentColor;
}

.btn-highlight {
  border: 0;
  background: transparent;
  color: var(--highlight);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  padding: 0;
}

.hash-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-link {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
}

.tag-link:hover {
  color: var(--highlight);
}

.tag-link:focus-visible {
  outline: 1px solid var(--highlight);
  outline-offset: 2px;
  border-radius: 4px;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-item {
  border: 0;
  border-radius: 5px;
  background: var(--card-bg);
  padding: 6px 10px;
  display: block;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--foreground);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.tab-btn.is-active {
  border-color: transparent;
  background: var(--highlight);
  color: #000000;
}

.with-badge {
  padding-right: 32px;
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--highlight);
  color: #000000;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

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

.mentioned-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mentioned-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mentioned-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 40px;
}

.mentioned-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  font-weight: 700;
}

.mentioned-user {
  min-width: 0;
}

.mentioned-copy {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mentioned-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.mentioned-context {
  min-width: 0;
  flex: 1 1 auto;
}

.mentioned-message-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mentioned-label {
  font-weight: 600;
}

.mentioned-message {
  padding-left: 10px;
  line-height: 1.5;
}

.mentioned-context,
.mentioned-label,
.mentioned-message {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.following-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.empty-text {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 16px;
  color: var(--text-secondary);
}

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

.tool-desc {
  font-size: 12px;
}

.tool-card h4 {
  font-size: 12px;
}

.tool-card .small {
  font-size: 12px;
}

.tool-card .tag-link {
  font-size: 12px;
}

.tool-card .chip {
  font-size: 12px;
}

.tool-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-card-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  display: block;
}

.blog-card-banner-placeholder {
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  font-size: 12px;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.tool-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.tool-id-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tool-id {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.line-clamp-2 {
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  line-clamp: 3;
  -webkit-line-clamp: 3;
}

.footer-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand-block h3,
.footer-col h4 {
  margin: 0;
  font-size: 16px;
}

.footer-newsletter-form {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-newsletter-form h4 {
  margin: 0;
  font-size: 15px;
}

.footer-newsletter-btn {
  align-self: flex-start;
  min-height: 36px;
  background: var(--highlight);
  border-color: var(--highlight);
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a,
.footer-email-link {
  color: var(--text-secondary);
}

.footer-links a:hover,
.footer-email-link:hover {
  color: var(--highlight);
}

.footer-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social-link {
  color: var(--foreground);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.footer-social-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.footer-social-link:hover {
  color: var(--highlight);
}

.footer-email-link {
  font-size: 13px;
}

.footer-app-downloads {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-app-store {
  position: relative;
  display: inline-flex;
  width: fit-content;
}

.footer-app-downloads img {
  width: 168px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-app-store.is-soon {
  pointer-events: none;
}

.footer-app-store.is-soon img {
  filter: blur(1.3px) saturate(0.75);
  opacity: 0.75;
}

.footer-app-soon-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.dialog-open {
  overflow: hidden;
}

.signin-dialog[hidden] {
  display: none;
}

.newsletter-dialog[hidden] {
  display: none;
}

.newsletter-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.newsletter-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.newsletter-dialog-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

#newsletter-dialog-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.newsletter-close-btn {
  align-self: flex-end;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--foreground);
  width: 28px;
  height: 28px;
  cursor: pointer;
  line-height: 1;
}

.newsletter-dialog-card iframe {
  width: 100%;
  max-width: 480px;
  height: 320px;
  border: 0;
  background: transparent;
  display: block;
}

.signin-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.signin-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.signin-dialog-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

#signin-dialog-title {
  font-size: 38px;
  line-height: 1.05;
}

.signin-close-btn {
  align-self: flex-end;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--foreground);
  width: 28px;
  height: 28px;
  cursor: pointer;
  line-height: 1;
}

.signin-provider-btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--foreground);
  min-height: 42px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 12px;
  width: 100%;
}

.signin-provider-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.signin-provider-btn-github .signin-provider-icon {
  color: var(--foreground);
}

.signin-legal a {
  color: var(--highlight);
}

.share-dialog[hidden] {
  display: none;
}

.share-dialog {
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.share-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.share-dialog-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

#share-dialog-title {
  font-size: 24px;
}

.share-close-btn {
  align-self: flex-end;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--foreground);
  width: 28px;
  height: 28px;
  cursor: pointer;
  line-height: 1;
}

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

.share-social-btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--card-bg);
}

.share-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-link-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--foreground);
  padding: 0 10px;
}

.share-copy-btn {
  min-height: 36px;
  font-size: 12px;
}

.share-copy-feedback[hidden] {
  display: none;
}

.profile-panel {
  max-width: 720px;
}

.profile-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.profile-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

.profile-id-block {
  min-width: 0;
}

.profile-id {
  font-size: 12px;
  color: var(--text-secondary);
  word-break: break-all;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.profile-field input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--foreground);
  padding: 0 10px;
}

.profile-field input:focus {
  outline: none;
  border-color: var(--highlight);
}

.profile-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.profile-success {
  color: #16a34a;
  font-size: 13px;
}

.profile-error {
  color: #ef4444;
  font-size: 13px;
}

.product-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.product-main-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-ad-panel {
  padding: 10px;
}

.product-ad-slot {
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: var(--card-bg);
  display: grid;
  place-items: center;
}

.product-ad-slot--desktop {
  box-sizing: border-box;
  width: 280px;
  height: 140px;
  max-width: 100%;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.product-ad-slot--mobile {
  box-sizing: border-box;
  width: 300px;
  height: 60px;
  max-width: 100%;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.ad-view-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ad-view-preview-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.product-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 14px;
  align-items: start;
}

.product-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
}

.product-cover-placeholder {
  display: grid;
  place-items: center;
  color: var(--text-secondary);
}

.product-right-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.product-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.product-title-wrap h1 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}

.product-icon-wrap {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
}

.product-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 0 auto;
  gap: 8px;
}

.product-action-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.website-btn {
  border-color: transparent;
  background: var(--highlight);
  color: #000000;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  white-space: nowrap;
  gap: 6px;
}

.website-btn-icon {
  width: 16px;
  height: 16px;  
  flex: 0 0 16px;
  display: block;
}

.product-category {
  font-size: 14px;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feature-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 84px;
}

.feature-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--foreground);
  padding-bottom: 7px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--border);
}

.feature-value {
  font-size: 14px;
  font-weight: 600;
}

.feature-value.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-value.with-icon img {
  width: 16px;
  height: 16px;
  border-radius: 999px;
}

.tool-features-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-feature-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.tool-feature-key {
  color: var(--text-secondary);
}

.tool-feature-value {
  font-weight: 600;
}

.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-badge {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 4px 10px 4px 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 90px;
}

.status-badge-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  font-size: 12px;
}

.status-badge-verified {
  color: #065f46;
  background: #d1fae5;
  border-color: #34d399;
}

.status-badge-verified .status-badge-icon {
  color: #ecfdf5;
  background: #2563eb;
}

.status-badge-featured {
  color: #713f12;
  background: #fef9c3;
  border-color: #facc15;
}

.status-badge-featured .status-badge-icon {
  color: #713f12;
  background: #fde047;
}

.status-badge-popular {
  color: #7c2d12;
  background: #ffedd5;
  border-color: #fb923c;
}

.status-badge-popular .status-badge-icon {
  color: #fff7ed;
  background: #f97316;
}

.status-badge-hottest {
  color: #7f1d1d;
  background: #fee2e2;
  border-color: #f87171;
}

.status-badge-hottest .status-badge-icon {
  color: #fff1f2;
  background: #dc2626;
}

.description-html p {
  margin: 0;
}

.platform-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-item {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.platform-icon svg {
  width: 14px;
  height: 14px;
}

.chain-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chain-item {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 12px;
}

.product-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-side-card {
  gap: 6px;
}

.comment-compose {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.comment-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-compose textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--foreground);
  padding: 10px;
  resize: vertical;
  font: inherit;
}

.comment-compose textarea:focus {
  outline: none;
  border-color: var(--highlight);
}

.comment-compose .chip {
  width: auto;
  align-self: flex-end;
  background: var(--highlight);
  border-color: var(--highlight);
  color: #111;
}

.comment-compose-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.comment-compose-feedback {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 24px;
}

.comment-char-counter {
  color: var(--text-secondary);
  font-size: 12px;
}

.comment-char-counter.is-limit {
  color: #ef4444;
}

.comment-errors {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #ef4444;
  font-size: 12px;
}

.comment-errors[hidden] {
  display: none;
}

.comment-success {
  margin: 0;
  color: #16a34a;
  font-size: 12px;
}

.comment-success[hidden] {
  display: none;
}

.comment-compose-actions .chip.comment-submit-btn {
  align-self: flex-start;
}

.comment-submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.comment-user-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

.comment-user-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.comment-user-name {
  font-size: 13px;
  font-weight: 600;
}

.comment-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.comment-card-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.comment-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.comment-text-action {
  border: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 12px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comment-text-action:hover {
  color: var(--highlight);
}

.comment-action-count {
  font-size: 11px;
  line-height: 1;
}

.tool-card-footer .comment-card-actions {
  margin-left: 0;
  margin-right: auto;
}

.comment-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  min-width: 30px;
  padding: 0 6px;
  border-radius: 6px;
  color: var(--text-secondary);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.comment-reaction-btn:hover {
  color: var(--highlight);
}

.comment-reaction-btn.is-active {
  background: var(--highlight);
  color: #111;
}

.comment-reaction-btn.is-active:hover {
  color: #111;
  filter: brightness(0.97);
}

.comment-reaction-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.comment-reply-action {
  color: var(--foreground);
}

.comment-compose-reply {
  margin-top: 8px;
}

.comment-compose-reply[hidden] {
  display: none;
}

.comment-reply-mention {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.comment-reply-buttons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.comment-replies-wrap {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-replies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-reply-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tags-page {
  margin-top: 16px;
}

.tags-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tags-alpha-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag-follow-btn {
  min-width: 104px;
  border: 0;
}

.tag-follow-btn-header {
  border: 1px solid var(--border);
}

.tag-follow-btn.is-following {
  background: var(--highlight);
  border-color: var(--highlight);
  color: #111;
}

.tags-list-card-row .tag-follow-btn.is-following {
  background: transparent;
  border-color: transparent;
  color: var(--highlight);
}

.tag-item {
  border: 1px solid var(--border);
  border-radius: 5px;
}

.tags-page-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 10px;
}

.tags-page-item-link {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.tags-page-item .tag-follow-btn {
  min-width: 76px;
  padding: 5px 8px;
  font-size: 11px;
}

.tags-page-item .tag-follow-btn.is-following {
  background: transparent;
  border-color: transparent;
  color: var(--highlight);
}

.tags-list-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tags-list-card-row .chip {
  font-size: 11px;
  padding: 5px 8px;
}

.tags-list-card-row .tag-follow-btn {
  min-width: 76px;
  margin-left: auto;
  text-align: center;
}

.tag-tools-sort-select {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--foreground);
  min-height: 32px;
  padding: 0 8px;
  font-size: 13px;
}

.tag-tools-pagination {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

.tag-tools-page-btn {
  border: 0;
  background: transparent;
  color: var(--foreground);
  min-width: 24px;
  height: 24px;
  border-radius: 6px;
  padding: 0 6px;
  cursor: pointer;
}

.tag-tools-page-btn.is-active {
  background: var(--highlight);
  color: #111;
}

.tag-tools-page-ellipsis {
  color: var(--text-secondary);
  padding: 0 2px;
}

.latest-news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.latest-news-list .soft-card {
  width: 100%;
}

.latest-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.latest-comments-list .soft-card {
  width: 100%;
}

.latest-news-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.latest-news-row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.collection-sort-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filters-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filters-panel-header {
  margin-bottom: 4px;
}

.filters-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filters-panel-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--highlight);
  color: #111;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.filters-clear-btn {
  font-size: 12px;
  padding: 5px 10px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.filter-group-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.filter-group-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--search-bg);
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.4;
}

.filter-group-empty {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.filter-chips {
  gap: 6px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  background: var(--surface);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--highlight);
  color: var(--foreground);
}

.filter-chip.is-active {
  background: var(--highlight);
  border-color: var(--highlight);
  color: #111;
}

.filter-chip.is-active:hover {
  filter: brightness(0.97);
}

.filter-divider {
  height: 1px;
  background: var(--border);
  opacity: 0.6;
}

.submit-layout {
  grid-template-columns: minmax(300px, 1fr) minmax(420px, 1.2fr);
}

.submit-guide-panel,
.submit-form-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.submit-guide-panel h1 {
  font-size: 28px;
  line-height: 1.2;
}

.submit-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.submit-step {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.submit-step h3 {
  font-size: 16px;
}

.submit-step a {
  color: var(--highlight);
}

.submit-form-panel h2 {
  font-size: 24px;
}

.submit-success {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, #22c55e 40%, var(--border));
  background: color-mix(in srgb, #22c55e 12%, var(--card-bg));
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.5;
}

.submit-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, #ef4444 40%, var(--border));
  background: color-mix(in srgb, #ef4444 10%, var(--card-bg));
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.5;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.submit-contact-link {
  color: var(--highlight);
  font-weight: 600;
}

.submit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.submit-field span {
  font-weight: 600;
}

.submit-field input,
.submit-field textarea,
.submit-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--foreground);
  padding: 10px;
  font: inherit;
}

.submit-field input,
.submit-field select {
  min-height: 40px;
}

.submit-field-hint {
  line-height: 1.4;
}

.submit-field-hint a {
  color: var(--highlight);
  font-weight: 600;
}

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

.submit-field input:focus,
.submit-field textarea:focus,
.submit-field select:focus {
  outline: none;
  border-color: var(--highlight);
}

.submit-form-btn {
  align-self: flex-start;
  border-color: var(--highlight);
  background: var(--highlight);
  color: #111;
  font-weight: 700;
  min-height: 36px;
}

.advertise-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.advertise-intro h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.advertise-intro p {
  font-size: 14px;
  line-height: 1.5;
}

.advertise-ads-banner > h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
}

.advertise-ads-banner-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
}

.advertise-ads-previews-col {
  flex: 0 0 auto;
  width: min(100%, 300px);
}

.advertise-ads-previews-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.advertise-ads-detail-col {
  flex: 1;
  min-width: min(100%, 280px);
}

.advertise-ads-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.advertise-ads-banner-main {
  flex: 1;
  min-width: min(100%, 220px);
}

.advertise-ads-banner-lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
}

.advertise-ads-banner-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--foreground);
}

.advertise-ads-banner-list li {
  margin-bottom: 8px;
}

.advertise-ads-banner-list li:last-child {
  margin-bottom: 0;
}

.advertise-ads-banner-aside {
  flex-shrink: 0;
  min-width: 160px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--foreground) 4%, var(--card-bg));
}

.advertise-ads-banner-duration {
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.advertise-ads-banner-duration-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.advertise-ads-banner-duration-value {
  font-size: 16px;
  font-weight: 700;
}

.advertise-ads-banner-price {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1.1;
}

.advertise-ads-banner-note {
  margin: 0 0 12px;
  line-height: 1.4;
}

.advertise-ads-banner-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--foreground) 4%, var(--card-bg));
  color: var(--foreground);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.advertise-ads-banner-submit:hover {
  background: color-mix(in srgb, var(--highlight) 16%, var(--card-bg));
  border-color: color-mix(in srgb, var(--highlight) 35%, var(--border));
}

[data-theme="dark"] .advertise-ads-banner-submit {
  background: color-mix(in srgb, var(--foreground) 7%, var(--card-bg));
}

[data-theme="dark"] .advertise-ads-banner-submit:hover {
  background: color-mix(in srgb, var(--highlight) 14%, var(--card-bg));
  border-color: color-mix(in srgb, var(--highlight) 30%, var(--border));
}

.advertise-ads-previews-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .advertise-ads-banner-layout {
    flex-direction: column;
  }

  .advertise-ads-previews-col {
    width: 100%;
  }

  .product-ad-slot--desktop,
  .product-ad-slot--mobile {
    width: min(280px, 100%);
    height: auto;
    aspect-ratio: 2 / 1;
  }

  .product-ad-slot--mobile {
    width: min(300px, 100%);
    aspect-ratio: 5 / 1;
  }
}

.advertise-ads-banner-contact {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.55;
}

.advertise-plans-panel .section-header {
  margin-bottom: 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.plans-compare-scroll {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px 4px;
  -webkit-overflow-scrolling: touch;
}

.plans-compare {
  display: grid;
  grid-template-columns: minmax(200px, 260px) repeat(5, minmax(118px, 1fr));
  grid-template-rows: auto repeat(10, minmax(64px, auto)) auto;
  column-gap: 12px;
  row-gap: 0;
  min-width: 760px;
}

.plans-label-stack,
.plans-plan-stack {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / -1;
  align-self: stretch;
}

.plans-label-stack {
  grid-column: 1;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--foreground) 5%, transparent);
}

.plans-plan-stack {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--foreground) 6%, transparent);
}

.plans-plan-stack--suggested {
  border-color: color-mix(in srgb, var(--highlight) 42%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--highlight) 22%, transparent),
    0 4px 18px color-mix(in srgb, var(--highlight) 12%, transparent);
}

.plans-plan-stack--free {
  grid-column: 2;
}

.plans-plan-stack--silver {
  grid-column: 3;
}

.plans-plan-stack--gold {
  grid-column: 4;
}

.plans-plan-stack--diamond {
  grid-column: 5;
}

.plans-plan-stack--sponsor {
  grid-column: 6;
}

.plans-corner {
  display: flex;
  align-items: center;
  padding: 18px 16px;
  color: var(--foreground);
}

.plans-corner-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plans-label-cta-spacer {
  border-top: 1px solid var(--border);
  min-height: 52px;
}

.plans-side-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.plans-label-text {
  flex: 1;
  min-width: 0;
}

.plans-hint-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  user-select: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.plans-hint-btn:hover {
  border-color: color-mix(in srgb, var(--highlight) 55%, var(--border));
  background: color-mix(in srgb, var(--highlight) 14%, var(--card-bg));
  color: var(--foreground);
}

.plans-card-head {
  position: relative;
  padding: 22px 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.plans-card-head--suggested {
  padding-top: 36px;
}

.plans-suggested-banner {
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  z-index: 1;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--highlight);
  color: #111;
  white-space: nowrap;
  line-height: 1;
}

[data-theme="dark"] .plans-suggested-banner {
  color: #111;
}

.plans-plan-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.plans-card-head--free .plans-plan-accent {
  background: var(--plan-accent-free);
}

.plans-card-head--silver .plans-plan-accent {
  background: var(--plan-accent-silver);
}

.plans-card-head--gold .plans-plan-accent {
  background: var(--plan-accent-gold);
}

.plans-card-head--diamond .plans-plan-accent {
  background: var(--plan-accent-diamond);
}

.plans-card-head--sponsor .plans-plan-accent {
  background: var(--plan-accent-sponsor);
}

.plans-plan-name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plans-plan-name--sponsor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.plans-sponsor-star {
  flex-shrink: 0;
  color: var(--highlight);
  filter: drop-shadow(0 1px 1px color-mix(in srgb, var(--foreground) 18%, transparent));
}

.plans-plan-tag {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.plans-plan-price {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.plans-plan-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 14px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 4%, var(--card-bg));
  color: var(--foreground);
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.plans-plan-submit:hover {
  background: color-mix(in srgb, var(--highlight) 16%, var(--card-bg));
  border-top-color: color-mix(in srgb, var(--highlight) 35%, var(--border));
}

[data-theme="dark"] .plans-plan-submit {
  background: color-mix(in srgb, var(--foreground) 7%, var(--card-bg));
}

[data-theme="dark"] .plans-plan-submit:hover {
  background: color-mix(in srgb, var(--highlight) 14%, var(--card-bg));
  border-top-color: color-mix(in srgb, var(--highlight) 30%, var(--border));
}

.plans-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.plans-value {
  font-weight: 600;
  line-height: 1.35;
}

.plans-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px;
}

.plans-icon--yes {
  color: #15803d;
  background: color-mix(in srgb, #22c55e 16%, transparent);
}

.plans-icon--no {
  color: #b91c1c;
  background: color-mix(in srgb, #ef4444 14%, transparent);
}

[data-theme="dark"] .plans-icon--yes {
  color: #86efac;
  background: color-mix(in srgb, #22c55e 18%, transparent);
}

[data-theme="dark"] .plans-icon--no {
  color: #fca5a5;
  background: color-mix(in srgb, #ef4444 16%, transparent);
}

.plans-table-footnote {
  margin-top: 12px;
}

@media (max-width: 1200px) {
  .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .product-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .product-top-grid {
    grid-template-columns: 1fr;
  }
}

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

  .mentions-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .following-cards {
    grid-template-columns: 1fr;
  }

  .product-head-row {
    flex-direction: column;
    align-items: stretch;
  }

  .product-features {
    grid-template-columns: 1fr;
  }

}
