@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap");
:root {
  --orange: #e95416;
  --orange-dark: #b93b08;
  --ink: #202937;
  --muted: #627083;
  --line: #e0e5ec;
  --bg: #f4f6fa;
  --panel: #fff;
  --nav: 228px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.65 "Be Vietnam Pro",
    system-ui,
    sans-serif;
}
a {
  color: var(--orange-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--orange);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.45;
  text-align: center;
}
button:hover,
.button:hover {
  background: var(--orange-dark);
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.outline,
.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.outline:hover,
.secondary:hover {
  background: #f1f4f8;
  color: var(--ink);
}
.subtle {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 6px 10px;
}
.subtle:hover {
  background: #eef1f5;
  color: var(--ink);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #2373bf;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.4;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.1rem;
  line-height: 1.5;
}
small {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}
code {
  overflow-wrap: anywhere;
}
strong,
b {
  font-weight: 700;
}
.topbar {
  min-height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 30px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.brand > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  border-radius: 11px;
  font-size: 1.6rem;
}
.brand small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  font-weight: 500;
  margin-top: 4px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.top-actions form {
  margin: 0;
}
.user-pill {
  background: #232d3a;
  color: #fff;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.875rem;
}
.wallet-link {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.875rem;
}
.wallet-link span {
  color: var(--orange);
  margin-left: 10px;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 81px;
  bottom: 0;
  width: var(--nav);
  padding: 25px 16px;
  background: #fff;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.nav-label {
  display: block;
  margin: 14px 12px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #788391;
  letter-spacing: 0.09em;
}
.sidebar > a {
  display: block;
  color: #536071;
  padding: 11px 13px;
  font-size: 0.875rem;
  border-radius: 7px;
  margin: 3px 0;
}
.sidebar > a:hover {
  background: #f5f6f8;
  text-decoration: none;
}
.sidebar > a.selected {
  background: #fff0e8;
  color: #b83c0e;
  font-weight: 700;
  border-left: 3px solid var(--orange);
}
.server-mini {
  margin: 27px 0 0;
  padding: 16px;
  background: #f5f7fa;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.875rem;
}
.server-mini > * {
  display: block;
  margin-bottom: 7px;
}
.server-mini strong {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.workspace {
  margin-left: var(--nav);
  padding: 30px 36px;
  min-height: calc(100vh - 140px);
  max-width: 1900px;
}
.footer {
  margin-left: var(--nav);
  padding: 18px 36px;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
}
.eyebrow {
  color: var(--orange);
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  font-weight: 800;
  margin-bottom: 10px;
}
.network-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  background: #202d3b;
  color: #fff;
  border-radius: 14px;
  padding: 30px 36px;
  margin-bottom: 32px;
  border-top: 3px solid var(--orange);
}
.network-banner h1 {
  font-size: clamp(1.75rem, 2.7vw, 2.6rem);
  margin-bottom: 12px;
}
.network-banner p {
  color: #bfccd9;
  margin-bottom: 16px;
}
.network-banner button {
  background: var(--orange);
}
.network-banner button span {
  font-size: 0.875rem;
}
.network-note {
  border-left: 1px solid #526171;
  padding: 10px 0 10px 30px;
  min-width: 220px;
}
.network-note > * {
  display: block;
  margin-bottom: 12px;
}
.network-note b {
  letter-spacing: 0.09em;
  font-size: 0.875rem;
}
.network-note a {
  color: #ffac81;
  font-size: 0.875rem;
}
.network-note .badge {
  background: #354657;
  color: #d9e4f0;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-title h2 {
  margin: 0;
}
.section-title .eyebrow {
  margin-bottom: 4px;
}
.page-heading {
  margin-bottom: 26px;
}
.page-heading p {
  color: var(--muted);
  max-width: 900px;
}
.searchbar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.searchbar input {
  flex: 1;
  min-width: 120px;
}
.searchbar select {
  width: auto;
  max-width: 260px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.resource-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.resource-card:hover {
  box-shadow: 0 10px 28px #26334410;
  transform: translateY(-2px);
}
.resource-cover {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #27384d;
}
.resource-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resource-placeholder {
  height: 100%;
  padding: 20px 24px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(120deg, #283d55, #1a2534);
  border-bottom: 4px solid var(--orange);
}
.resource-placeholder strong {
  font-size: clamp(1.2rem, 1.6vw, 1.8rem);
  line-height: 1.3;
}
.resource-placeholder small {
  color: #ffac81;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.resource-placeholder span {
  font-size: 0.875rem;
  color: #c5d0de;
}
.resource-body {
  padding: 18px 20px;
}
.resource-body h3 {
  margin: 6px 0 10px;
  color: var(--ink);
}
.resource-body p {
  font-size: 0.875rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.6em;
}
.category {
  font-size: 0.75rem;
  color: var(--orange-dark);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.resource-bottom {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.resource-bottom span {
  font-size: 0.875rem;
  color: var(--muted);
}
.resource-bottom strong {
  font-size: 1.15rem;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 24px;
  min-width: 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}
.detail-grid aside.panel {
  position: sticky;
  top: 105px;
}
.detail-cover {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: #f0f3f7;
  border-radius: 9px;
  margin: 10px 0 24px;
}
.lead {
  color: var(--muted);
  font-size: 1.05rem;
}
.prose {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.9;
  margin-bottom: 28px;
}
.feature-list {
  padding-left: 22px;
  margin-bottom: 25px;
}
.video {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 10px;
  margin-bottom: 24px;
}
.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  margin: 10px 0 22px;
  line-height: 1.3;
}
.small-price {
  font-size: 1.5rem;
  margin: 0;
}
.purchase-panel > * {
  margin-bottom: 18px;
}
.purchase-panel .button {
  display: flex;
}
.purchase-panel small {
  display: block;
}
.purchase-panel dl {
  font-size: 0.875rem;
}
.purchase-panel dt {
  color: var(--muted);
  margin-top: 13px;
}
.purchase-panel dd {
  margin: 3px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
form > button {
  align-self: flex-start;
}
form.searchbar {
  flex-direction: row;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 600;
}
input,
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #ccd5df;
  background: #fff;
  color: var(--ink);
  border-radius: 7px;
  min-height: 45px;
  line-height: 1.5;
}
textarea {
  resize: vertical;
}
input[type="file"] {
  font-size: 0.875rem;
  background: #f8fafc;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 3px 0;
  flex-shrink: 0;
  accent-color: var(--orange);
}
.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.notice {
  background: #fff4e2;
  border: 1px solid #f1d39b;
  border-radius: 9px;
  padding: 15px 18px;
  margin-bottom: 22px;
  color: #6c4b13;
  font-size: 0.875rem;
}
.notice.danger {
  background: #fff0eb;
  color: #9a2e13;
  border-color: #f2c0b4;
}
.empty {
  padding: 40px 25px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #cdd6e0;
  border-radius: 12px;
  margin-bottom: 24px;
}
.badge {
  display: inline-block;
  background: #eef2f6;
  color: #536071;
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 0.75rem;
  font-weight: 600;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px;
}
.stat > * {
  display: block;
}
.stat small {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.stat b {
  font-size: 1.7rem;
  margin: 6px 0;
}
.stat a {
  font-size: 0.875rem;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow: auto;
  white-space: nowrap;
}
.tabs a {
  padding: 12px 15px;
  color: var(--muted);
  font-size: 0.875rem;
}
.tabs a.active {
  color: var(--orange-dark);
  border-bottom: 3px solid var(--orange);
  font-weight: 700;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}
th {
  font-weight: 600;
  color: var(--muted);
  background: #f7f9fb;
}
th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td small {
  display: block;
  font-size: 0.75rem;
}
td code {
  font-size: 0.75rem;
}
td:first-child,
th:first-child {
  padding-left: 8px;
}
.small {
  padding: 7px 12px;
  font-size: 0.875rem;
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-size: 0.875rem;
}
.ledger-row small {
  display: block;
  font-size: 0.75rem;
  margin-top: 5px;
}
.ledger-row > b,
.ledger-row > strong {
  white-space: nowrap;
}
.positive {
  color: #147348;
}
.negative {
  color: #b94325;
}
.pagination {
  display: flex;
  gap: 9px;
  margin: 22px 0;
}
.pagination a {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.pagination a.active {
  background: var(--orange);
  color: #fff;
}
.back-link {
  display: inline-block;
  margin: 0 0 18px;
}
.rank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.rank-card {
  border-top: 4px solid #94a3b8;
}
.rank-gold {
  border-top-color: #bf8b18;
}
.rank-pro {
  border-top-color: var(--orange);
}
.rank-ultra {
  border-top-color: #664ca3;
}
.rank-card h2 {
  font-size: 1.9rem;
}
.rank-number {
  font-size: 2.5rem;
  font-weight: 800;
}
.rank-number span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}
.rank-card ul {
  padding-left: 17px;
  font-size: 0.875rem;
  line-height: 2.1;
}
.rank-card .button {
  width: 100%;
}
.job-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.job-card {
  color: var(--ink);
  margin: 0 0 20px;
}
.job-card:hover {
  text-decoration: none;
  border-color: var(--orange);
}
.job-card h2 {
  margin: 10px 0;
}
.job-card p {
  color: var(--muted);
  font-size: 0.875rem;
}
.job-card > strong {
  font-size: 1.5rem;
  color: var(--orange);
}
details {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 22px;
}
summary {
  cursor: pointer;
  color: var(--orange-dark);
  font-weight: 600;
  margin-bottom: 18px;
}
.auth-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  max-width: 980px;
  margin: 35px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.auth-story {
  background: #202d3b;
  color: #fff;
  padding: 38px;
}
.auth-story p,
.auth-story li {
  color: #c5d0de;
}
.auth-story ul {
  padding-left: 20px;
  line-height: 2;
  font-size: 0.875rem;
}
.auth-story .notice {
  background: #334354;
  border-color: #4b5b6b;
  color: #d9e3ef;
  margin-top: 35px;
}
.auth-form {
  padding: 32px;
}
.auth-form .tabs {
  gap: 0;
}
.auth-form .tabs a {
  padding: 9px 11px;
}
.auth-form button {
  width: 100%;
}
.qr-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: center;
}
.qr-layout > img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.orange {
  color: var(--orange-dark);
}
.aim-toolbar {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
#aim-arena {
  position: relative;
  height: 440px;
  background: #202d3b;
  border-radius: 10px;
  overflow: hidden;
  color: #cbd5e1;
  display: grid;
  place-items: center;
  touch-action: manipulation;
}
#aim-target {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--orange);
  border: 4px solid #fff;
  color: #fff;
  font-size: 1.8rem;
  padding: 0;
}
#aim-intro {
  padding: 24px;
}
@media (min-width: 1600px) {
  .resource-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  :root {
    --nav: 200px;
  }
  .workspace {
    padding: 26px 24px;
  }
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rank-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .network-note {
    display: none;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 275px;
  }
  .qr-layout {
    grid-template-columns: 230px 1fr;
  }
}
@media (max-width: 900px) {
  .topbar {
    position: relative;
    padding: 14px 18px;
  }
  .sidebar {
    position: relative;
    width: auto;
    top: auto;
    bottom: auto;
    display: flex;
    overflow: auto;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
  }
  .sidebar > a {
    margin: 0;
    padding: 8px 12px;
  }
  .sidebar .nav-label,
  .server-mini {
    display: none;
  }
  .workspace,
  .footer {
    margin-left: 0;
  }
  .top-actions {
    gap: 12px;
  }
  .wallet-link span {
    display: none;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid aside.panel {
    position: static;
  }
  .purchase-panel {
    position: static;
  }
  .auth-card {
    margin: 10px auto;
  }
  .qr-layout {
    grid-template-columns: 250px 1fr;
  }
}
@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .workspace {
    padding: 20px 16px;
  }
  .topbar {
    flex-wrap: wrap;
    gap: 14px;
  }
  .top-actions {
    margin-left: auto;
    gap: 10px;
  }
  .top-actions .button {
    padding: 8px 12px;
    font-size: 0.875rem;
  }
  .brand small {
    display: none;
  }
  .brand > span {
    width: 35px;
    height: 35px;
  }
  .brand {
    font-size: 0.95rem;
  }
  .user-pill {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .resource-grid,
  .two-col,
  .job-grid,
  .form-grid,
  .auth-card,
  .qr-layout {
    grid-template-columns: 1fr;
  }
  .network-banner {
    padding: 24px;
  }
  .network-banner button {
    font-size: 0.875rem;
    flex-wrap: wrap;
  }
  .searchbar {
    flex-wrap: wrap;
  }
  .searchbar input {
    flex-basis: 100%;
  }
  .searchbar select {
    flex: 1;
    max-width: none;
  }
  .panel {
    padding: 20px;
  }
  .rank-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .stat b {
    font-size: 1.3rem;
  }
  .auth-story {
    padding: 26px;
  }
  .auth-story h1 {
    font-size: 1.75rem;
  }
  .auth-story ul,
  .auth-story .notice {
    display: none;
  }
  .auth-form {
    padding: 22px;
  }
  .qr-layout img {
    max-width: 300px;
    margin: auto;
  }
  .section-title {
    align-items: flex-start;
  }
  #aim-arena {
    height: 360px;
  }
  .footer {
    padding: 18px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Marketplace extensions */
.global-ticker {
  position: sticky;
  top: 80px;
  z-index: 19;
  height: 38px;
  display: flex;
  align-items: center;
  background: #1f2936;
  color: #eef3f8;
  border-bottom: 1px solid #344252;
  overflow: hidden;
}
.ticker-label,
.ticker-send {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 18px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--orange);
}
.ticker-label:hover,
.ticker-send:hover {
  text-decoration: none;
  background: var(--orange-dark);
}
.ticker-send {
  background: #2e3b4b;
  letter-spacing: 0;
}
.ticker-window {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 46px;
  padding-left: 100%;
  animation: smpvn-ticker 38s linear infinite;
  will-change: transform;
}
.ticker-track span {
  font-size: 0.82rem;
  color: #e4ebf2;
}
.ticker-track span::after {
  content: "◆";
  margin-left: 46px;
  color: #ff8951;
  font-size: 0.6rem;
}
.global-ticker:hover .ticker-track {
  animation-play-state: paused;
}
@keyframes smpvn-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.sidebar {
  top: 119px;
}
.studio-tabs {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  margin: 0 0 22px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.studio-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 8px;
  color: #536071;
  font-size: 0.875rem;
  font-weight: 700;
}
.studio-tabs a:hover {
  background: #f4f6f9;
  text-decoration: none;
}
.studio-tabs a.active {
  background: #fff0e8;
  color: var(--orange-dark);
  box-shadow: inset 0 0 0 1px #ffd4c0;
}
.long-image-help {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  padding: 18px;
  margin: 18px 0;
  border: 1px solid #f1cdbd;
  border-radius: 11px;
  background: #fff8f4;
}
.long-image-help p {
  margin: 6px 0 8px;
  color: var(--muted);
}
.long-description {
  overflow: hidden;
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101216;
}
.long-description img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.moderation-long-preview {
  display: block;
  max-width: 180px;
  max-height: 260px;
  width: auto;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.distribution-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.distribution-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.distribution-card:first-child {
  padding-top: 0;
}
.distribution-card > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.distribution-card h3 {
  margin: 0;
}
.distribution-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.distribution-terms span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f9fb;
  color: var(--muted);
  font-size: 0.78rem;
}
.distribution-terms strong {
  color: var(--ink);
  font-size: 0.94rem;
}
.distribution-public {
  border-left: 4px solid var(--orange);
  padding-left: 14px;
}
.security-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 18px;
}
.totp-qr {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin: 16px 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.setup-secret {
  display: inline-block;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f5f7fa;
}
.chat-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.25fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.chat-row:last-child { border-bottom: 0; }
.chat-row p { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .global-ticker {
    position: relative;
    top: auto;
  }
  .sidebar { top: auto; }
  .long-image-help { grid-template-columns: 1fr; }
  .distribution-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .ticker-label { padding: 0 11px; font-size: 0.68rem; }
  .ticker-send { padding: 0 11px; }
  .ticker-track { gap: 28px; animation-duration: 30s; }
  .ticker-track span::after { margin-left: 28px; }
  .studio-tabs a { padding: 8px 12px; }
  .distribution-terms { grid-template-columns: 1fr; }
  .chat-row { grid-template-columns: 1fr; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none !important;
    padding-left: 16px;
  }
}
