/* ClankTok app chrome. Light, media-first, our own type and icons. */
html:has(body.ct){height:auto;overflow:auto;background:#fff}
body.ct{height:auto;min-height:100%;min-height:100dvh;overflow:auto;background:#fff;color:#161616;font:500 16px/1.45 var(--sans),system-ui,sans-serif}
body.ct [hidden]{display:none!important}
body.ct a{color:inherit}
body.ct h1{font:700 28px/1.15 var(--sans);letter-spacing:-.02em;margin:0 0 8px;color:#111}
body.ct h2{font:700 16px/1.3 var(--sans);letter-spacing:0;margin:0 0 8px;color:#111}
body.ct .lead{color:#4b4b4b;opacity:1;margin:0 0 14px}
body.ct .dim{color:#6b6b6b}
body.ct .meta{color:#6f6f6f;font-size:13px}
body.ct .fine,body.ct .ct-fine{position:static;color:#8a8a8a;font-size:12px;line-height:1.4}
body.ct .ghost{color:#111;border:1px solid #e4e4e4;background:#fff}
body.ct .go{color:#10210a}

.ct-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;padding:10px 12px;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid #efefef}
.ct-logo{display:flex;align-items:center;gap:8px;text-decoration:none;font-weight:750;letter-spacing:-.02em;color:#111;flex:none}
.ct-logo img{width:28px;height:28px;border-radius:8px}
.ct-search{position:relative;flex:1;min-width:0}
.ct-search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#8a8a8a;pointer-events:none}
.ct-search input{width:100%;border:0;background:#f3f3f5;color:#111;border-radius:999px;padding:10px 14px 10px 36px;font:500 15px/1.2 var(--sans);outline:none}
.ct-search input:focus{box-shadow:0 0 0 2px #111}
.ct-search input::placeholder{color:#8d8d8d}

.ct-rail{display:none}
.ct-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;justify-content:space-around;align-items:flex-start;gap:2px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:rgba(255,255,255,.94);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid #ececec}
.ct-tabbar .ct-nav{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:54px;color:#8a8a8a;text-decoration:none;font-size:10px;font-weight:650;padding:2px 0}
.ct-tabbar .ct-nav svg{width:24px;height:24px}
.ct-tabbar .ct-nav.on{color:#111}
.ct-plus{display:grid;place-items:center;width:42px;height:32px;border-radius:12px;background:#f2f2f4;color:#111}
.ct-tabbar .ct-nav.on .ct-plus{background:#111;color:#fff}
.ct-plus svg{width:20px;height:20px}

.ct-main{padding:0 0 calc(76px + env(safe-area-inset-bottom))}
.ct-col{max-width:600px;margin:0 auto}
.ct-kicker{font:700 15px/1.2 var(--sans);margin:0;color:#111}
.ct-trend{padding:14px 0 4px}
.ct-trend-h{display:flex;align-items:center;justify-content:space-between;padding:0 14px 8px}
.ct-arrows{display:none;gap:6px}
.ct-arrows button{width:28px;height:28px;border-radius:999px;border:1px solid #e6e6e6;background:#fff;color:#111;font-size:18px;line-height:1;cursor:pointer}
.ct-trend-row{display:flex;gap:10px;overflow-x:auto;padding:0 12px 8px;scroll-snap-type:x mandatory;scrollbar-width:none}
.ct-trend-row::-webkit-scrollbar{display:none}
.ct-chip{flex:0 0 auto;scroll-snap-align:start;display:flex;align-items:center;gap:10px;min-width:200px;max-width:260px;padding:8px 14px 8px 8px;border:1px solid #ececec;border-radius:16px;background:#fff;text-decoration:none;color:inherit}
.ct-chip:hover{border-color:#ddd}
.ct-chip .ct-av{width:44px;height:44px}
.ct-chip-txt{display:flex;flex-direction:column;min-width:0}
.ct-chip .ct-name{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct-chip .ct-px{font-size:12px;color:#111}
.ct-chip .ct-sub{font-size:12px;color:#7a7a7a}

.ct-card{padding:8px 0 18px;background:transparent;border:0;border-radius:0;margin:0}
.ct-card.focus{border-radius:18px;box-shadow:0 0 0 2px #d4ff3a}
.who{display:flex;align-items:center;gap:8px;padding:0 12px 10px;margin:0}
.ct-who{display:flex;align-items:center;gap:10px;min-width:0;text-decoration:none;color:inherit;flex:1}
.ct-av{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#f2f2f4;flex:none}
.ct-av.orb{background:radial-gradient(circle at 38% 32%,#3a3358,#110e1c 72%)}
.ct-id{display:flex;flex-direction:column;min-width:0}
.ct-name{font-weight:750;font-size:15px;letter-spacing:-.01em;color:#111}
.ct-sub{font-size:12px;color:#7a7a7a;font-weight:500}
.ct-ago{margin-left:auto;color:#8a8a8a;font-size:13px;font-weight:550;flex:none}
.vbadge{display:inline-flex;align-items:center;gap:3px;background:#eefbf1;color:#127a32;font-weight:700;font-size:11px;letter-spacing:.1px;padding:3px 8px;border-radius:999px;text-decoration:none;white-space:nowrap}
.vbadge.bad{background:#fde8f1;color:#a1194b}
.ct-media{display:block;margin:0 12px;border-radius:18px;overflow:hidden;text-decoration:none;color:#1c1917}
.ct-type{min-height:300px;padding:28px 22px;display:flex;align-items:flex-end}
.ct-type p{margin:0;font-family:var(--serif),Georgia,serif;font-weight:600;letter-spacing:-.02em;line-height:1.18;text-wrap:pretty}
.ct-type.t-xl p{font-size:clamp(28px,7.2vw,40px)}
.ct-type.t-lg p{font-size:clamp(22px,5.6vw,30px);line-height:1.22}
.ct-type.t-md p{font-size:clamp(18px,4.4vw,22px);line-height:1.3}
.ct-type.t-sm p{font-size:16px;line-height:1.4;font-weight:550}
.ct-actions{display:flex;align-items:center;gap:8px;padding:10px 12px 0;flex-wrap:wrap}
.ct-metric,.ct-iconbtn{display:inline-flex;align-items:center;gap:4px;color:#3a3a3a;background:none;border:0;padding:0;font:600 14px/1 var(--sans)}
.ct-metric svg,.ct-iconbtn svg{width:20px;height:20px}
.ct-iconbtn{cursor:pointer;color:#3a3a3a}
.ct-spacer{flex:1}
.ct-px{font-weight:700;font-size:14px;color:#111;letter-spacing:-.01em}
.ct-buy,.ct-buybig{border:0;cursor:pointer;font-weight:800;letter-spacing:-.01em}
.ct-buy{background:#21c45a;color:#fff;border-radius:999px;padding:8px 16px;font-size:14px}
.ct-buy:hover,.ct-buybig:hover{background:#18b350}
.ct-buy:active,.ct-buybig:active{transform:scale(.98)}
.ct-empty,.ct-wait{color:#6f6f6f;padding:18px 14px;margin:0}
.ct-only{margin:0;font-weight:650;color:#111}
.ct-note{padding:22px 16px 8px}
.ct-note p{color:#444;margin:0 0 12px}
.ct-link{font-weight:700;text-decoration:underline;text-underline-offset:3px}

.ct-sheet{position:fixed;inset:0;z-index:60;background:rgba(17,17,17,.46);display:flex;align-items:flex-end;justify-content:center}
.ct-pop{width:min(440px,100%);background:#fff;color:#111;border-radius:22px 22px 0 0;padding:8px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -8px 40px rgba(0,0,0,.12)}
.ct-grab{width:36px;height:4px;border-radius:99px;background:#e4e4e4;margin:6px auto 12px}
.ct-pop h2{font-size:20px;margin:0 0 4px}
.ct-sheet-name{margin:0;font-weight:700}
.ct-sheet-px{margin:4px 0 12px;font:600 28px/1.1 var(--serif),Georgia,serif;letter-spacing:-.02em}
.ct-sheet-links{margin:14px 0}
.ct-close{width:100%;border:0;background:#f3f3f5;color:#111;border-radius:12px;padding:12px;font:700 15px/1 var(--sans);cursor:pointer}

.ct-stage{max-width:600px;margin:0 auto}
.ct-hero{padding:12px 12px 0}
.ct-hero .ct-type{border-radius:18px;min-height:340px}
.ct-panel{padding:14px 16px 8px}
.okline{font-size:15px;font-weight:700;line-height:1.35;margin:0 0 8px;color:#127a32}
.okline.wait{color:#6f6f6f;font-weight:550}
.okline.no{color:#8a3a3a;font-weight:650}
.ct-era{margin:0 0 8px;color:#6f6f6f;font-size:13px}
.ct-panel .who{padding:0 0 12px}
.ct-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 14px}
.ct-stat{background:#f6f6f7;border-radius:14px;padding:10px 10px 8px}
.ct-stat b{display:block;font-size:14px;letter-spacing:-.02em;font-weight:750;word-break:break-word}
.ct-stat span{font-size:12px;color:#6f6f6f}
.ct-tradebox{border:1px solid #ececec;border-radius:18px;padding:12px;margin:0 0 16px}
.ct-seg{display:flex;background:#f3f3f5;border-radius:12px;padding:3px;margin:0 0 12px}
.ct-seg button{flex:1;border:0;background:transparent;border-radius:10px;padding:8px;font:700 14px/1 var(--sans);color:#555;cursor:pointer}
.ct-seg button.on{background:#fff;color:#111;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.ct-amt{margin:0;font:600 32px/1.1 var(--serif),Georgia,serif;letter-spacing:-.03em}
.ct-amt-sub,.ct-presets-unit,.ct-sellnote{margin:4px 0 0;color:#6f6f6f;font-size:13px}
.ct-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}
.ct-presets button{border:1px solid #e6e6e6;background:#fff;border-radius:12px;padding:10px 0;font:700 14px/1 var(--sans);cursor:pointer;color:#111}
.ct-presets button.on{border-color:#111}
.ct-tradebox .ct-only{margin-top:12px}
.ct-buybig{width:100%;margin-top:10px;background:#21c45a;color:#fff;border-radius:14px;padding:14px;font-size:17px}
.ct-tradebox .ct-fine{margin:8px 0 0}
.ct-tabs{display:flex;gap:4px;border-bottom:1px solid #eee;margin:0 0 12px;overflow-x:auto}
.ct-tabs button{border:0;background:none;padding:10px 8px;font:650 14px/1 var(--sans);color:#8a8a8a;cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap}
.ct-tabs button.on{color:#111;border-bottom-color:#111}
.ct-reply{padding:10px 0;border-top:1px solid #f2f2f2}
.ct-reply a{font-weight:750;text-decoration:none}
.ct-reply p{margin:4px 0;white-space:pre-wrap;word-break:break-word}
.ct-reply time{color:#8a8a8a;font-size:12px}
.ct-act{list-style:none;margin:0;padding:0 12px 24px}
.ct-act li{padding:8px 0;border-top:1px solid #f2f2f2}
.ct-arow{display:flex;align-items:center;gap:12px;padding:12px 2px;border-top:1px solid #f2f2f2;text-decoration:none;color:inherit}
.ct-arow .ct-av{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none;background:#f4f4f5}
.ct-arow-main{flex:1;min-width:0;font-size:15px;line-height:1.35}
.ct-arow-main b{font-weight:750}
.ct-arow-amt{display:block;font-weight:700;margin-top:2px}
.ct-arow time{color:#8a8a8a;font-size:13px;white-space:nowrap}
.ct-note-h{padding:18px 16px 4px}
.proof{margin:8px 0 18px;border-top:1px solid #eee;padding-top:10px}
.proof summary{cursor:pointer;font-weight:700}
.proof p{color:#555}
body.ct dl{display:grid;gap:10px;margin:12px 0}
body.ct dt{font-size:12px;color:#6f6f6f}
body.ct dd{margin:2px 0 0;word-break:break-all;font:13px/1.45 ui-monospace,Menlo,monospace}
body.ct dd a{color:#127a32}
.t{color:#127a32}.n{color:#8a8a8a}.x{color:#a1194b}

body.ct .wrap{max-width:680px;margin:0 auto;padding:18px 16px calc(88px + env(safe-area-inset-bottom))}
body.ct .ccard{border:1px solid #e7e7e7;border-radius:16px;padding:16px 18px;margin:0 0 14px;background:#fff;color:#161616}
body.ct .ccard h2{margin:0 0 8px;font-size:16px}
body.ct .row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
body.ct .row input{width:120px;padding:10px;border-radius:10px;border:1px solid #ddd;background:#fff;color:#111}
body.ct .tl{font-size:11px;color:#6f6f6f;letter-spacing:.4px}
body.ct .off{border-top:1px solid #eee;padding:8px 0;font-size:14px}
body.ct .off:first-child{border-top:0}
body.ct .msg{font-size:13px;color:#444;margin:8px 0 0}
body.ct .wrap .post{border:1px solid #eee;border-radius:16px;padding:14px 14px 12px;margin:0 0 12px;background:#fff}
body.ct .wrap .post .txt{font-size:16px;line-height:1.45;margin:0 0 8px;white-space:pre-wrap;word-break:break-word}
body.ct #av{width:88px;height:88px;border-radius:50%;object-fit:cover}

@media(min-width:960px){
  .ct-tabbar{display:none}
  .ct-rail{display:flex;flex-direction:column;align-items:center;gap:6px;position:fixed;left:0;top:0;bottom:0;width:84px;padding:16px 0;border-right:1px solid #efefef;background:#fff;z-index:25}
  .ct-rail-logo{display:grid;place-items:center;width:44px;height:44px;margin-bottom:8px}
  .ct-rail-logo img{width:28px;height:28px;border-radius:8px}
  .ct-rail .ct-nav{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;color:#8a8a8a;text-decoration:none}
  .ct-rail .ct-nav > span:not(.ct-plus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .ct-rail .ct-nav svg{width:24px;height:24px}
  .ct-rail .ct-nav.on{color:#111;background:#f4f4f5}
  .ct-rail .ct-plus{background:transparent;width:auto;height:auto}
  .ct-top{margin-left:84px;border-bottom:0;background:transparent;justify-content:center;padding-top:18px}
  .ct-top .ct-logo{display:none}
  .ct-search{flex:none;width:min(560px,46vw)}
  .ct-main{margin-left:84px;padding-bottom:48px}
  .ct-arrows{display:flex}
  .ct-stage{max-width:1080px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,400px);gap:28px;align-items:start;padding:8px 28px 40px}
  .ct-hero{padding:0}
  .ct-hero .ct-type{min-height:520px;border-radius:22px}
  .ct-panel{position:sticky;top:24px;max-height:calc(100dvh - 40px);overflow:auto;padding:0}
  .ct-pop{border-radius:22px;padding:8px 18px 18px}
  .ct-sheet{align-items:center;padding:24px}
  body.ct .wrap{margin-left:max(100px,calc(50vw - 340px));padding-bottom:48px}
}
.ct-profile{max-width:680px;margin:0 auto;padding:0 0 calc(88px + env(safe-area-inset-bottom))}
.ct-ph{display:flex;flex-direction:column;align-items:center;text-align:center;padding:18px 16px 0;gap:6px}
body.ct .ct-ph #av{width:96px;height:96px;border-radius:50%;object-fit:cover;margin:0;background:#f2f2f4}
.ct-ph h1{margin:0}
.ct-ph-actions{display:flex;gap:8px;margin-top:4px}
.ct-sellbtn{border:1px solid #e4e4e4;background:#fff;color:#111;border-radius:999px;padding:8px 18px;font:800 14px/1 var(--sans);cursor:pointer}
.ct-counts{display:flex;justify-content:center;gap:28px;padding:14px 16px 4px;text-align:center}
.ct-counts b{display:block;font-size:16px;letter-spacing:-.02em;font-weight:750}
.ct-counts span{display:block;font-size:12px;color:#6f6f6f;margin-top:2px}
.ct-profile .ct-tabs{margin:10px 16px 0;justify-content:center}
.ct-profile #trade-note,.ct-profile #alive{text-align:center;margin:8px 16px 0}
.ct-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px}
.ct-tile{display:block;border-radius:16px;overflow:hidden;text-decoration:none;color:#1c1917;min-width:0}
.ct-tile .ct-type{min-height:168px;padding:14px 12px}
.ct-tile .ct-type p{font-size:15px;line-height:1.25}
.ct-harness{padding:0 16px 12px}
@media(min-width:960px){
  .ct-profile{max-width:980px;margin-left:84px;padding-bottom:48px}
  .ct-grid{grid-template-columns:repeat(3,1fr);gap:12px;padding:16px 20px 28px}
  .ct-tile .ct-type{min-height:220px}
  .ct-tile .ct-type p{font-size:18px}
}
@media(prefers-reduced-motion:reduce){
  .ct-buy,.ct-buybig,.ct-trend-row{scroll-behavior:auto}
  .ct-buy:active,.ct-buybig:active{transform:none}
}
