html { background: #121313; }
body { margin: 0; }
#xtok-community { padding: 12px 10px; }
  #xtok-community [hidden] { display: none !important; }
  #xtok-community .xg-phone {
    --cream: #f3f3ed;
    --coral: #ff7045;
    --olive: #293429;
    --muted: #bac5b9;
    box-sizing: border-box;
    width: min(440px, 100%);
    margin: 0 auto;
    position: relative;
    isolation: isolate;
    overflow: clip;
    border: 1px solid #434c40;
    border-radius: 27px;
    background: #171d19;
    color: var(--cream);
    color-scheme: dark;
    font: 400 14px/1.45 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  }
  #xtok-community .xg-main {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 36rem;
    height: calc(100dvh - 26px);
  }
  #xtok-community .xg-phone :is(h1, h2, p) { margin: 0; }
  #xtok-community .xg-phone button { color: inherit; font: inherit; }
  #xtok-community .xg-phone :is(button, a, input):focus-visible { outline: 2px solid #ffbc9b; outline-offset: 3px; }
  #xtok-community .xg-header {
    position: absolute; z-index: 3; inset: 0 0 auto; display: flex;
    align-items: center; justify-content: space-between; padding: 19px 17px;
  }
  #xtok-community .xg-header img { display: block; width: 93px; height: auto; }
  #xtok-community .xg-identity {
    display: flex; align-items: center; gap: 7px; padding: 4px 10px;
    border: 1px solid #aaa08b86; background: #171815d9; border-radius: 999px; font-size: 12px;
  }
  #xtok-community .xg-identity [data-identity] { color: #ffceab; }
  #xtok-community .xg-feed { position: relative; background: #202921; touch-action: pan-x pinch-zoom; }
  #xtok-community .xg-media { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 42% 34%, #534c34, #232b20 53%, #172219 90%); }
  #xtok-community .xg-media :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
  #xtok-community .xg-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, #0d100bdd 0%, #161a1100 25%, #161a1125 54%, #111710f5 92%);
  }
  #xtok-community .xg-play, #xtok-community .xg-lock {
    position: absolute; z-index: 1; left: 50%; top: 42%; transform: translate(-50%,-50%);
    display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
    background: #181c17bd; border: 1px solid #e6decb8c;
  }
  #xtok-community .xg-play svg { width: 25px; height: 25px; }
  #xtok-community .xg-actions { position: absolute; z-index: 2; right: 12px; bottom: 116px; display: grid; gap: 7px; }
  #xtok-community .xg-phone :is(.xg-round, .xg-author, .xg-close) {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    background: #171b16d9; border: 1px solid #e6decb69; border-radius: 50%;
  }
  #xtok-community .xg-phone .xg-author { background: #71543b; border-color: #e6d9bb; font-weight: 700; font-size: 17px; }
  #xtok-community .xg-round[aria-pressed="true"] { color: #ff9276; }
  #xtok-community .xg-round[aria-pressed="true"] svg { fill: currentColor; }
  #xtok-community .xg-round:disabled { opacity: .48; }
  #xtok-community .xg-caption {
    position: absolute; z-index: 2; display: grid; gap: 7px;
    inset: auto 61px 18px 17px;
  }
  #xtok-community .xg-caption h1 { font-size: clamp(20px, 5.5vw, 26px); line-height: 1.15; font-weight: 750; text-wrap: balance; }
  #xtok-community .xg-caption p { color: #e1e3d8; font-size: 13px; }
  #xtok-community .xg-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; }
  #xtok-community .xg-phone .xg-name { border: 0; padding: 0; background: transparent; font-weight: 650; min-height: 32px; }
  #xtok-community .xg-phone .xg-follow {
    border: 1px solid #ffba97; border-radius: 999px; min-height: 36px;
    padding: 5px 13px; background: #34291e; color: #ffdec9; font-size: 13px; font-weight: 650;
  }
  #xtok-community .xg-bottom { min-height: 66px; padding: 0 5px; background: #172019; border-top: 1px solid #3c4639; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #xtok-community .xg-bottom button {
    display: grid; align-content: center; justify-items: center; gap: 3px;
    border: 0; padding: 3px 1px; background: transparent; color: var(--muted); font-size: 12px;
  }
  #xtok-community .xg-bottom button[aria-current] { color: #ffeece; }
  #xtok-community .xg-bottom .xg-publish { color: var(--cream); }
  #xtok-community .xg-publish svg { box-sizing: content-box; background: var(--coral); color: #241711; border-radius: 10px; padding: 5px 11px; }
  #xtok-community .xg-overlay { position: absolute; inset: 0; display: grid; align-items: end; z-index: 4; }
  #xtok-community .xg-backdrop { position: absolute; inset: 0; border: 0; background: #101210ab; }
  #xtok-community .xg-sheet {
    position: relative; display: grid; gap: 15px; max-height: 100%; overflow: auto;
    box-sizing: border-box; padding: 15px 18px 22px; background: #202820;
    border-radius: 24px 24px 0 0; border: 1px solid #536050;
  }
  #xtok-community .xg-sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  #xtok-community .xg-sheet-header h2 { font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; }
  #xtok-community .xg-phone .xg-close { flex: 0 0 44px; }
  #xtok-community .xg-sheet-body { display: grid; gap: 11px; }
  #xtok-community .xg-sheet-body p { color: var(--muted); overflow-wrap: anywhere; }
  #xtok-community .xg-sheet-body strong { color: var(--cream); }
  #xtok-community .xg-sheet-body fieldset { display: grid; gap: 9px; border: 0; min-width: 0; padding: 0; margin: 0; }
  #xtok-community .xg-option {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    gap: 9px; padding: 7px 11px; min-height: 33px;
    background: #283329; border: 1px solid #536050; border-radius: 10px;
  }
  #xtok-community .xg-option:has(input:checked) { border-color: #ffae88; background: #3a2f23; }
  #xtok-community .xg-option input { margin: 0; accent-color: var(--coral); }
  #xtok-community #xg-registration { min-height: calc(100dvh - 26px); }
  #xtok-community .xg-phone :is(.xg-primary,.xg-secondary) {
    box-sizing: border-box; display: flex; align-items: center; justify-content: space-between;
    min-height: 45px; width: 100%; gap: 8px; padding: 9px 13px; border-radius: 11px;
    text-decoration: none; text-align: left; font-weight: 650;
  }
  #xtok-community .xg-phone .xg-primary { background: var(--coral); color: #221610; border: 1px solid #ffac83; }
  #xtok-community .xg-phone .xg-secondary { background: #2b382d; color: var(--cream); border: 1px solid #546654; }
  #xtok-community .xg-status {
    position: absolute; z-index: 5; inset: auto 17px 80px; padding: 10px 12px; border-radius: 11px;
    pointer-events: none; color: #fcf1dc; background: #232720; border: 1px solid #74836a;
  }
  @media (max-width: 550px) {
    #xtok-community { padding: 0; }
    #xtok-community .xg-phone { width: 100%; border: 0; border-radius: 0; }
    #xtok-community .xg-main { min-height: 0; height: 100svh; height: 100dvh; }
    #xtok-community .xg-header {
      padding-top: max(19px, env(safe-area-inset-top));
      padding-left: max(17px, env(safe-area-inset-left));
      padding-right: max(17px, env(safe-area-inset-right));
    }
    #xtok-community .xg-bottom { padding-bottom: env(safe-area-inset-bottom); }
    #xtok-community .xg-sheet { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
    #xtok-community #xg-registration { min-height: 100svh; }
  }
  @media (max-width: 350px) {
    #xtok-community .xg-caption { left: 13px; }
    #xtok-community .xg-sheet { padding-inline: 13px; }
  }
  @media (max-height: 540px) {
    #xtok-community .xg-actions { bottom: 26px; gap: 4px; }
    #xtok-community .xg-header { padding-top: max(10px, env(safe-area-inset-top)); }
  }
  @media (pointer: coarse) {
    #xtok-community .xg-phone :is(.xg-follow,.xg-name) { min-height: 44px; }
  }
