.sv-panel {
  min-width: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.sv-panelhead, .sv-dialoghead, .sv-dfooter, .sv-goalhead, .sv-postfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sv-panelhead { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sv-panelhead h2 { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; }
.sv-panelhead h2 .icon { color: var(--blue); }
.sv-inner, .sv-dbody { padding: 19px 20px; }
.sv-note, .sv-intro { font-size: 13px; line-height: 1.75; color: var(--muted); }
.sv-note + .sv-note { margin-top: 10px; }
.sv-sub { color: var(--muted); font-size: 12px; line-height: 1.7; }
.sv-big { font: 700 clamp(24px, 2.2vw, 33px)/1.45 var(--mono); letter-spacing: -1px; }
.sv-big small { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.sv-tag, .sv-btn, .sv-link, .sv-socialbtn, .sv-cost, .sv-checks span, .sv-inset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sv-tag {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  background: #eff3f4;
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 8px;
}
.sv-blue { color: #1664c6; background: #ebf3ff; }
.sv-green { color: #177658; background: #e7f8ef; }
.sv-orange { color: #a55f12; background: #fff2d9; }
.sv-btn {
  justify-content: center;
  min-height: 37px;
  padding: 9px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.sv-btn:hover:enabled { border-color: #adc8ee; background: #f4f8ff; }
.sv-primary, .sv-primary:hover:enabled { color: white; background: #0f1419; border-color: #0f1419; }
.sv-primary:hover:enabled { background: #272c30; }
.sv-full { width: 100%; margin-top: 10px; }
.sv-link {
  color: #1e71d3;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 4px 0;
}
.sv-link:hover { text-decoration: underline; }
.sv-composetabs, .sv-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-composetabs button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  background: transparent;
  border-radius: 5px;
}
.sv-composetabs button.is-active { background: #eaf6ff; color: #147abc; font-weight: 650; }
.sv-composetabs button:hover { background: #f0f4fa; }
.sv-feeditem { padding: 14px 16px 6px; border-bottom: 1px solid var(--line); }
.sv-who { display: flex; align-items: center; gap: 10px; }
.sv-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; image-rendering: pixelated; }
.sv-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13px; }
.sv-badge { display: inline-flex; align-items: center; color: #1d9bf0; flex: none; }
.sv-badge svg path:first-child { fill: currentColor; stroke: currentColor; }
.sv-badge svg path:last-child { stroke: #fff; stroke-width: 2.7; }
.sv-handle, .x-date { color: var(--muted); }
.sv-body { min-width: 0; }
.sv-copy, .sv-excerpt, .sv-fulltext, .sv-quote p { overflow-wrap: anywhere; white-space: pre-wrap; }
.sv-copy, .sv-excerpt, .sv-fulltext { font-size: 15px; line-height: 1.62; }
.sv-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sv-metrics { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; }
.sv-metrics span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.sv-post-actions {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr)) auto;
  align-items: center;
  margin-top: 5px;
  gap: 4px;
}
.sv-post-actions .sv-socialbtn, .sv-views-counter {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  padding: 6px 4px;
  min-height: 32px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  background: transparent;
}
.sv-stream-end { padding: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.sv-socialbtn { background: transparent; color: var(--muted); border-radius: 999px; padding: 5px 8px; font-size: 13px; }
.sv-socialbtn:enabled:hover { color: var(--blue); background: #e8f2ff; }
.sv-statline { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #edf0f4; font-size: 12px; }
.sv-statline:last-child { border: none; }
.sv-statline span { color: var(--muted); }
.sv-statline strong { font-size: 13px; }
.sv-big + .sv-statline { margin-top: 10px; }
.sv-checks { gap: 12px; }
.sv-checks span { font-size: 12px; color: #176849; padding: 5px 8px; background: #edf8f1; border-radius: 5px; }
.sv-goal { margin: 22px 0; }
.sv-goalhead { flex-wrap: wrap; font-size: 13px; }
.sv-goalhead span { font: 12px var(--mono); color: var(--muted); }
.sv-goalhead span b { color: var(--ink); }
.sv-meter { height: 7px; border-radius: 5px; overflow: hidden; background: #eef2f7; margin: 10px 0 5px; }
.sv-meter i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.sv-meter.sv-purple i { background: #9269e0; }
.sv-goal small { font-size: 11px; color: var(--muted); }
.sv-inset { width: 100%; color: #4d647e; background: #f1f6fd; padding: 11px; border-radius: 7px; line-height: 1.6; font-size: 12px; }
.sv-ok { color: #176c4a; background: #eaf8ee; }
.sv-ledger { overflow-x: auto; }
.sv-ledger table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
.sv-ledger th, .sv-ledger td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sv-ledger th { color: var(--muted); font-size: 12px; background: #f8fafc; }
.sv-empty { display: grid; justify-items: center; gap: 6px; padding: 29px 18px; text-align: center; }
.sv-empty i, .sv-dialogicon, .sv-actionlist i, .sv-guide>i, .sv-recaptitle>span { display: grid; place-items: center; flex: none; border-radius: 8px; color: var(--blue); background: #edf4ff; }
.sv-empty i { width: 40px; height: 40px; margin-bottom: 3px; }
.sv-empty strong { font-size: 13px; }
.sv-empty p { color: var(--muted); font-size: 12px; }
.sv-more { padding: 14px; text-align: center; }
.sv-dialoghead { padding: 16px 20px; border-bottom: 1px solid var(--line); justify-content: flex-start; }
.sv-dialogicon { width: 31px; height: 31px; }
.sv-dialoghead h2 { font-size: 18px; }
.sv-close { display: grid; place-items: center; margin-left: auto; padding: 6px; color: #657487; border-radius: 6px; background: #f4f6f9; }
.sv-close:hover { background: #e8edf4; }
.sv-dialog h3 { font-size: 16px; margin-bottom: 6px; }
.sv-dialog .sv-sub { margin: 5px 0; }
.sv-dfooter { padding: 13px 20px; background: #fafbfd; border-top: 1px solid var(--line); }
.sv-actionlist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sv-actionlist button { display: flex; align-items: center; gap: 9px; text-align: left; border: 1px solid var(--line); padding: 9px; border-radius: 8px; background: white; }
.sv-actionlist button:enabled:hover { border-color: #9cbee9; }
.sv-actionlist i { width: 30px; height: 30px; }
.sv-actionlist strong, .sv-actionlist small { display: block; }
.sv-actionlist strong { font-size: 12px; }
.sv-actionlist small { margin-top: 2px; font-size: 10px; color: var(--muted); }
.sv-actionlist button>.icon { margin-left: auto; color: #77899e; }
.sv-ideahead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.sv-ideahead { margin-bottom: 10px; }
.sv-ideahead small { color: var(--muted); font-size: 12px; }
.sv-ideas { display: grid; gap: 8px; }
.sv-idea { position: relative; display: grid; gap: 5px; text-align: left; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.sv-idea:hover, .sv-idea:focus-visible { border-color: #91b8eb; background: #f6faff; }
.sv-idea-topic, .sv-idea-publish { color: #2165ae; font-size: 11px; font-weight: 600; }
.sv-idea-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.sv-quality { color: #50706b; font-size: 11px; font-variant-numeric: tabular-nums; }
.sv-rest-prompt { margin-top: 8px; color: var(--muted); font-size: 12px; }
.sv-idea strong { font-size: 14px; line-height: 1.5; color: var(--ink); }
.sv-idea-preview { font-size: 12px; line-height: 1.65; color: var(--muted); }
.sv-idea-publish { display: inline-flex; align-items: center; gap: 4px; justify-self: end; }
.sv-spread { margin-left: auto; }
.sv-metrics b, [data-live-count], [data-live-balance] { font-weight: inherit; }
.sv-socialbtn[aria-pressed="true"] { color: #00855d; }
.sv-socialbtn[data-type="like"][aria-pressed="true"] { color: #f91880; }
.sv-socialbtn[data-type="like"][aria-pressed="true"] svg { fill: currentColor; stroke: currentColor; }
.sv-socialbtn[aria-pressed="true"]:hover { color: #167549; background: #e8f7ef; }
.sv-socialbtn[data-type="like"]:hover, .sv-socialbtn[data-type="like"][aria-pressed="true"]:hover { color: #f91880; background: #fff0f6; }
.sv-composetabs { border-bottom: 1px solid var(--line); margin-bottom: 15px; padding-bottom: 10px; }
.sv-editfoot { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font: 11px var(--mono); }
.sv-cost { font-size: 12px; color: #334c70; font-weight: 600; }
.sv-cost span { font-weight: 400; color: var(--muted); }
.sv-cost .icon { color: var(--blue); }
.sv-quote { padding: 10px 13px; margin: 8px 0 15px; background: #f5f8fc; border-left: 3px solid #a9c7ea; border-radius: 0 7px 7px 0; }
.sv-quote strong { font-size: 12px; }
.sv-quote p { margin-top: 2px; font-size: 13px; color: #52647b; line-height: 1.7; }
.sv-fulltext { margin: 15px 0; }
.sv-fulltext + .sv-metrics { margin-bottom: 12px; }
.sv-error { display: block; color: #b14c35; font-size: 12px; margin-top: 8px; }
.sv-error:empty { display: none; }
.sv-recaptitle { display: flex; align-items: center; gap: 12px; }
.sv-recaptitle>span { width: 48px; height: 48px; background: #fff2d8; color: #ac7719; }
.sv-recaptitle h3 { margin: 0; }
.sv-recapgrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 16px 0 5px; }
.sv-recapgrid div { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.sv-recapgrid small { font-size: 11px; color: var(--muted); }
.sv-recapgrid strong { font: 700 21px/1.4 var(--mono); }
.sv-guide { display: flex; gap: 12px; margin: 0 0 15px; }
.sv-guide>i { width: 32px; height: 32px; }
.sv-guide h3 { font-size: 14px; margin-bottom: 2px; }
.sv-guide p { font-size: 12px; line-height: 1.75; color: var(--muted); }
.x-profile, .x-timeline, .x-discover, .x-rewards { min-width: 0; background: #fff; }
.x-tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.x-home-tabs { position: sticky; top: 54px; z-index: 4; background: rgb(255 255 255 / 96%); }
@media (max-width: 700px) { .x-home-tabs { top: 50px; } }
.x-tabs > button { flex: 1 0 auto; display: grid; place-items: center; background: transparent; padding: 0 10px; color: var(--muted); font-size: 15px; }
.x-tabs > button:hover { background: #f5f7f8; }
.x-tabs > button > span { position: relative; display: inline-flex; align-items: center; min-height: 49px; }
.x-tabs > .is-active { color: var(--ink); font-weight: 700; }
.x-tabs > .is-active > span::after { position: absolute; content: ""; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 4px; background: #1d9bf0; }
.x-composer { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 12px; padding: 16px 17px 10px; border-bottom: 1px solid var(--line); }
.x-self-link, .x-compose-prompt { align-self: start; padding: 0; text-align: left; background: transparent; }
.x-self-link { border-radius: 50%; }
.x-self-link img { display: block; }
.x-compose-prompt { display: block; width: 100%; min-height: 40px; color: #536471; font-size: 19px; font-weight: 400; }
.x-compose-tools { display: flex; align-items: center; gap: 4px; padding-top: 6px; }
.x-compose-tools button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #1686d2; background: transparent; }
.x-compose-tools button:hover { background: #eaf6ff; }
.x-compose-tools .x-compose-submit { width: auto; height: 34px; padding: 0 18px; color: white; background: #0f1419; border-radius: 999px; margin-left: auto; font-size: 14px; font-weight: 700; }
.x-compose-tools .x-compose-submit:hover { background: #272c30; }
.x-empty-action { display: flex; margin: 0 auto 24px; }
.x-post { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: start; gap: 10px; }
.x-repost-note { display: flex; grid-column: 1 / -1; align-items: center; gap: 6px; padding-left: 30px; margin-bottom: -4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.x-reply-note { display: block; color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.x-quoted { margin: 8px 0; border: 1px solid var(--line); padding: 10px 12px; border-radius: 14px; }
.x-quoted p { font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 3px; }
.x-quoted > strong, .x-quoted > span { font-size: 13px; }
.x-posthead { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; min-height: 22px; }
.x-post-options { display: flex; flex: none; align-items: center; gap: 2px; }
.x-post-options > .sv-socialbtn { color: #167fc6; font-size: 12px; padding: 3px 6px; font-weight: 650; }
.x-post-options > .sv-socialbtn[aria-pressed="true"] { color: var(--muted); font-weight: 400; }
.x-post-options > .sv-socialbtn svg { display: none; }
.x-byline { display: flex; align-items: center; gap: 4px; min-width: 0; line-height: 1.4; }
.x-byline > strong, .x-author-link, .x-byline > .sv-handle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-byline > strong, .x-author-link { font-size: 15px; }
.x-author-link { background: transparent; color: var(--ink); font-weight: 700; padding: 0; }
.x-author-link:hover { text-decoration: underline; }
.x-byline > .sv-handle, .x-date { font-size: 13px; }
.x-date { flex: none; }
.x-postlinks { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.x-topic { display: inline-block; color: #1686d2; font-size: 14px; line-height: 1.5; padding: 0; background: transparent; margin-top: 2px; }
.x-topic:hover { text-decoration: underline; }
.x-post-media { display: block; width: 100%; height: auto; margin: 8px 0 0; border: 1px solid #dbe0e3; border-radius: 13px; }
.x-more { position: relative; flex: none; }
.x-more summary, .x-profile-stats summary { list-style: none; cursor: pointer; }
.x-more summary::-webkit-details-marker, .x-profile-stats summary::-webkit-details-marker { display: none; }
.x-more summary { display: grid; place-items: center; min-width: 29px; min-height: 25px; border-radius: 999px; color: var(--muted); font: 700 12px/1 sans-serif; letter-spacing: .7px; }
.x-more[open] summary, .x-more summary:hover { background: #eaf6ff; color: #1686d2; }
.x-more > div { position: absolute; z-index: 3; right: 0; top: 100%; width: 145px; padding: 4px 0; background: white; border: 1px solid #e5eaed; border-radius: 13px; box-shadow: 0 4px 18px #0f141925; }
.x-more .sv-socialbtn { display: flex; width: 100%; border-radius: 0; padding: 11px 15px; font-size: 14px; font-weight: 600; color: var(--ink); }
.x-search { display: flex; align-items: center; gap: 8px; padding: 13px 16px 8px; }
.x-search label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 999px; background: #eff3f4; color: var(--muted); }
.x-search label:focus-within { box-shadow: inset 0 0 0 1px #1d9bf0; background: #fff; }
.x-search input { width: 100%; background: none; border: 0; outline: 0; color: var(--ink); }
.x-search input:focus-visible { outline: 0; }
.x-search > button { padding: 8px 13px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--ink); color: white; }
.x-topics { display: flex; gap: 6px; padding: 9px 16px 12px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line); }
.x-topics button { white-space: nowrap; background: white; border: 1px solid #cfd9de; color: var(--ink); font-size: 13px; border-radius: 999px; padding: 7px 12px; }
.x-topics button[aria-pressed="true"] { color: white; background: var(--ink); border-color: var(--ink); }
.x-search-title { font-size: 17px; padding: 16px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.x-profile-cover { height: clamp(128px,14vw,185px); background: #728fe5 url('../assets/studio.svg') right center / auto 100% no-repeat; }
.x-profile-info { padding: 0 16px 10px; }
.x-profile-line { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.x-profile-line > img { width: 88px; height: 88px; margin-top: -38px; border: 4px solid #fff; }
.x-profile-line .sv-btn { margin-top: 10px; }
.x-profile-info h2 { display: flex; align-items: center; gap: 4px; font-size: 21px; }
.x-profile-info > p { margin: 13px 0 8px; font-size: 14px; }
.x-profile-info > .sv-handle, .x-profile-info > small { color: var(--muted); font-size: 14px; }
.x-profile-info > small { display: flex; align-items: center; gap: 5px; }
.x-profile-counts { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 13px; color: var(--muted); font-size: 13px; }
.x-profile-counts b { color: var(--ink); }
.x-profile-stats { padding: 11px 0 3px; }
.x-profile-stats summary { display: inline-flex; align-items: center; gap: 5px; color: #167fc6; font-size: 13px; }
.x-profile-stats > .sv-inner { padding: 0; }
.x-rewards .x-profile-stats { padding: 16px; }
.x-wallet { padding: 20px 16px 12px; border-bottom: 1px solid var(--line); }
.x-wallet-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.x-wallet .sv-big { margin: 7px 0 15px; font-family: inherit; font-variant-numeric: tabular-nums; font-size: 36px; }
@media (max-width: 640px) {
  .sv-feeditem { padding: 12px 12px 5px; }
  .sv-panelhead h2 { font-size: 15px; }
  .sv-dialoghead, .sv-dfooter { padding: 12px 15px; }
  .sv-dbody { padding: 15px; }
  .sv-post-actions .sv-socialbtn, .sv-views-counter { gap: 4px; font-size: 11px; }
  .sv-post-actions .sv-socialbtn[data-type="quote"] span { display: none; }
  .x-byline { gap: 3px; }
  .x-byline > .sv-handle, .x-date { font-size: 12px; }
  .sv-tag { font-size: 10px; }
  .sv-btn { font-size: 12px; padding: 8px 10px; }
  .sv-actionlist button>.icon { display: none; }
}
