/* Googlepad: a search results page, phone first (390x844), desktop second, ?stream=1 for the livestream. */
:root {
  --b: #4285f4; --r: #ea4335; --y: #fbbc05; --g: #34a853;
  --link: #1a0dab; --link2: #1a73e8; --url: #188038; --visited: #681da8;
  --ink: #202124; --ink2: #4d5156; --ink3: #70757a;
  --line: #dadce0; --soft: #f1f3f4; --bg: #fff; --bg2: #f8f9fa;
  --red-dk: #c5221f; --hl: #fef7e0;
  --sans: Roboto, Arial, system-ui, sans-serif; --brand: Outfit, Roboto, Arial, sans-serif;
  --shadow: 0 1px 6px rgba(32,33,36,.28);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--sans); padding-bottom: 72px; overflow-x: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
code { font: 12px ui-monospace, Consolas, monospace; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #fff; }
.ico { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink3); flex: none; }
.ico:hover { background: var(--soft); }
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#menuBtn svg circle { fill: currentColor; stroke: none; }
#soundBtn .on { display: none; } #soundBtn[aria-pressed="true"] .on { display: inline; } #soundBtn[aria-pressed="true"] .off { display: none; }
.brand { flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; text-decoration: none !important; position: relative; }
.mark { font: 600 26px/1 var(--brand); letter-spacing: -.5px; display: inline-flex; }
.mark b, .hero-mark b { font-weight: inherit; display: inline-block; }
.b { color: var(--b); } .r { color: var(--r); } .y { color: var(--y); } .g { color: var(--g); }
.doodle { font-size: 20px; line-height: 1; }
.pill { font-size: 11px; font-weight: 500; color: var(--ink3); border: 1px solid var(--line); border-radius: 12px; padding: 2px 8px; white-space: nowrap; }
.pill.live { color: #fff; background: var(--g); border-color: var(--g); }
.menu { position: fixed; top: 56px; left: 8px; z-index: 40; background: #fff; box-shadow: var(--shadow); border-radius: 8px; padding: 6px 0; min-width: 210px; }
.menu a { display: flex; align-items: center; min-height: 44px; padding: 0 18px; color: var(--ink); }
.menu a:hover { background: var(--soft); text-decoration: none; }

/* ---------- the hero (desktop and stream; on a phone the header carries the mark) ---------- */
.hero { display: none; text-align: center; padding: 22px 16px 4px; }
.hero-mark { font: 600 78px/1 var(--brand); letter-spacing: -2px; display: inline-flex; user-select: none; }
.hero-doodle { margin: 6px 0 0; color: var(--ink2); font-size: 14px; }
.hero-btns, .offered { display: none; }
.gbtn { min-height: 40px; padding: 0 16px; background: var(--bg2); border: 1px solid var(--bg2); border-radius: 4px; color: var(--ink); font-size: 14px; cursor: pointer; }
.gbtn:hover { border-color: var(--line); box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.offered { text-align: center; font-size: 13px; color: var(--ink2); margin: 10px 0 0; }
.offered b { color: var(--link2); font-weight: 400; }

/* doodles: the mark celebrates $GOOGLEPAD's market-cap highs */
.jump b { animation: hop .6s cubic-bezier(.3,1.6,.5,1) both; }
.jump b:nth-child(2) { animation-delay: .05s; } .jump b:nth-child(3) { animation-delay: .1s; } .jump b:nth-child(4) { animation-delay: .15s; }
.jump b:nth-child(5) { animation-delay: .2s; } .jump b:nth-child(6) { animation-delay: .25s; } .jump b:nth-child(7) { animation-delay: .3s; }
.jump b:nth-child(8) { animation-delay: .35s; } .jump b:nth-child(9) { animation-delay: .4s; }
@keyframes hop { 0%, 100% { transform: none; } 40% { transform: translateY(-14px) rotate(-6deg); } }

/* ---------- the search box ---------- */
.search { position: relative; display: flex; align-items: center; gap: 6px; margin: 2px 12px 0; height: 48px; padding: 0 4px 0 14px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.search:focus-within { box-shadow: 0 1px 8px rgba(32,33,36,.38); }
.search .mag { width: 18px; height: 18px; fill: none; stroke: var(--ink3); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font: 16px var(--sans); color: var(--ink); -webkit-appearance: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search.typing input { caret-color: transparent; }
.search.typing::after { content: ''; position: absolute; top: 14px; width: 1px; height: 20px; background: var(--ink); left: var(--caret, 40px); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.search .go { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; }
.search .go svg { width: 20px; height: 20px; fill: none; stroke: var(--link2); stroke-width: 2.2; stroke-linecap: round; }
.hits { position: absolute; top: 52px; left: 0; right: 0; z-index: 35; list-style: none; margin: 0; padding: 6px 0; background: #fff; box-shadow: var(--shadow); border-radius: 0 0 16px 16px; }
.hits a { display: flex; gap: 8px; align-items: baseline; min-height: 44px; padding: 10px 16px; color: var(--ink); }
.hits a:hover { background: var(--soft); text-decoration: none; }
.hits small { margin-left: auto; color: var(--ink3); }
.hits .none { padding: 10px 16px; color: var(--ink2); }

/* Google's four-colour loading bar while a trend is "searched" */
.loadbar { height: 3px; margin: 8px 12px 0; overflow: hidden; border-radius: 2px; opacity: 0; transition: opacity .2s; }
.loadbar.on { opacity: 1; }
.loadbar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--b) 0 25%, var(--r) 0 50%, var(--y) 0 75%, var(--g) 0); animation: slide 1s linear infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* ---------- tabs ---------- */
.tabs { display: flex; justify-content: space-between; gap: 2px; margin: 6px 4px 0; border-bottom: 1px solid var(--line); }
.tabs a { flex: 1; text-align: center; min-height: 44px; display: grid; place-items: center; color: var(--ink3); font-size: 13px; font-weight: 500; border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--link2); border-bottom-color: var(--link2); }
.tabs a:hover { text-decoration: none; color: var(--ink); }

.sitenotice { margin: 10px 12px 0; padding: 10px 40px 10px 12px; border-radius: 8px; background: var(--hl); font-size: 13px; position: relative; }
.sitenotice .x { position: absolute; top: 2px; right: 2px; width: 40px; height: 40px; border: 0; background: none; font-size: 22px; color: var(--ink3); cursor: pointer; }

/* ---------- layout ---------- */
main#home { padding: 0 12px; }
/* on a phone: the trend's results, then $GOOGLEPAD's panel, then the live feed */
@media (max-width: 979px) {
  main#home { display: flex; flex-direction: column; }
  .col-main, .col-side { display: contents; }
  #strip { order: 0; } #spot { order: 1; } #serp { order: 2; } #self { order: 3; } #live { order: 4; } #trends { order: 5; } .col-wide { order: 6; }
}
.strip { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; margin: 10px 0 0; padding: 8px 12px; min-height: 44px; border-radius: 22px; background: #f8fbff; border: 1px solid #d2e3fc; color: var(--ink2); font-size: 13px; }
.strip b { color: var(--ink); font-weight: 500; }
.strip:hover { text-decoration: none; }
@media (min-width: 980px) { .strip { display: none !important; } }
.col-main, .col-side, .col-wide { min-width: 0; }
.box { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--soft); }
.box h2, .serp h2 { margin: 0 0 4px; font: 400 20px/1.3 var(--sans); color: var(--ink); }
.box h2 small { font-size: 12px; color: var(--ink3); margin-left: 6px; font-weight: 400; }
.sub { margin: 0 0 8px; color: var(--ink2); font-size: 13px; }
.empty-note { color: var(--ink3); font-size: 13px; }
.fine { font-size: 12px; color: var(--ink3); }
.livetag { color: var(--g) !important; font-weight: 500 !important; }
.livetag::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; animation: blink 1.6s step-end infinite; }
.livetag.off { color: var(--ink3) !important; }

/* ---------- a search result ---------- */
.results { list-style: none; margin: 0; padding: 0; }
.res { padding: 10px 0; }
.res + .res { border-top: 1px solid var(--soft); }
.res .site { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.res .fav { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); flex: none; overflow: hidden; display: grid; place-items: center; font-size: 12px; color: var(--ink3); border: 1px solid #ecedef; }
.res .fav img { width: 100%; height: 100%; object-fit: cover; }
.res .site b { display: block; font-size: 14px; font-weight: 400; color: var(--ink); line-height: 1.2; }
.res .site cite { display: block; font-style: normal; font-size: 12px; color: var(--ink2); line-height: 1.3; overflow-wrap: anywhere; }
.res h3 { margin: 4px 0 2px; font: 400 18px/1.3 var(--sans); }
.res h3 a { color: var(--link); }
.res h3 a:visited { color: var(--visited); }
.res p { margin: 0; color: var(--ink2); font-size: 14px; overflow-wrap: anywhere; }
.res .tag { display: inline-block; font-size: 11px; font-weight: 500; padding: 0 6px; border-radius: 10px; margin-right: 4px; vertical-align: 1px; }
.tag.new { background: #e8f0fe; color: var(--link2); } .tag.up { background: #e6f4ea; color: var(--url); } .tag.dead { background: #fce8e6; color: var(--red-dk); }
.tag.bond { background: #fef7e0; color: #b06000; } .tag.self { background: var(--b); color: #fff; }
.res.fresh { animation: drop .45s cubic-bezier(.2,1.3,.4,1); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.d.up { color: var(--url); } .d.dn { color: var(--red-dk); }

/* ---------- the trend results page ---------- */
.serp { margin-top: 10px; min-height: 260px; }
.stats { margin: 0 0 6px; color: var(--ink3); font-size: 13px; }
.stats b { color: var(--ink); font-weight: 500; }
.tq { font: 400 20px/1.3 var(--sans); margin: 0 0 8px; }
.stories { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 10px; }
.story { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 92px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.story:hover { text-decoration: none; box-shadow: var(--shadow); }
.story small { color: var(--ink3); font-size: 12px; }
.story span { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nomatch { padding: 4px 0 8px; font-size: 15px; }
.nomatch p { margin: 0 0 6px; }
.suggest { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; margin: 8px 0 4px; }
.suggest .pic { width: 64px; height: 64px; border-radius: 8px; flex: none; overflow: hidden; background: var(--soft); }
.suggest .pic img { width: 100%; height: 100%; object-fit: cover; }
.suggest h3 { margin: 0; font: 400 18px/1.3 var(--sans); color: var(--link); }
.suggest p { margin: 2px 0 8px; color: var(--ink2); font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--link2); font-weight: 500; cursor: pointer; }
.btn:hover { background: #f6fafe; text-decoration: none; }
.btn.prog { background: var(--link2); border-color: var(--link2); color: #fff; }
.btn.prog:hover { background: #1b66c9; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ---------- the featured snippet (spotlight) ---------- */
.spot { margin-top: 12px; }
.snip { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; animation: drop .45s cubic-bezier(.2,1.3,.4,1); }
.snip .pic { width: 64px; height: 64px; flex: none; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--soft); font-size: 34px; }
.snip .pic img { width: 100%; height: 100%; object-fit: cover; }
.snip .lbl { margin: 0 0 2px; font-size: 12px; color: var(--ink3); }
.snip h3 { margin: 0 0 2px; font: 400 20px/1.25 var(--sans); }
.snip p { margin: 2px 0; font-size: 14px; color: var(--ink2); }
.snip.rank { border-color: #d2e3fc; background: #f8fbff; }
.snip.rank h3 b { color: var(--link2); }
.snip.e404 h3 { font-family: Arial, sans-serif; }
.snip.e404 h3 b { color: var(--r); }
.snip.good { border-color: #ceead6; background: #f6fbf7; }
.place { font: 500 34px/1 var(--brand); color: var(--link2); }

/* ---------- the knowledge panel ($GOOGLEPAD) ---------- */
.kp { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.kp-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.kp h2 { margin: 0; font: 400 24px/1.2 var(--sans); }
.kp-head p { margin: 2px 0 0; color: var(--ink3); font-size: 13px; }
.kp-logo { width: 48px; height: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; border-radius: 8px; border: 1px solid var(--soft); flex: none; }
.kp-logo i { border-radius: 50%; } .kp-logo .b { background: var(--b); } .kp-logo .r { background: var(--r); } .kp-logo .y { background: var(--y); } .kp-logo .g { background: var(--g); }
.kp-desc { margin: 8px 0; font-size: 14px; color: var(--ink2); }
.kp-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; border-top: 1px solid var(--soft); padding-top: 8px; }
.kp-facts div { min-width: 0; }
.kp-facts dt { font-size: 12px; color: var(--ink3); }
.kp-facts dd { margin: 0; font: 500 18px/1.3 var(--sans); overflow-wrap: anywhere; }
.kp-facts dd small { font-size: 12px; color: var(--ink3); font-weight: 400; }
.kp h3 { margin: 12px 0 4px; font: 500 16px var(--sans); border-top: 1px solid var(--soft); padding-top: 10px; }
.ranklist { list-style: none; margin: 0; padding: 0; }
.ranklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 6px 0; font-size: 14px; }
.ranklist li + li { border-top: 1px solid var(--soft); }
.ranklist .n { color: var(--ink3); text-align: right; }
.ranklist .w { color: var(--link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranklist .v { color: var(--ink2); }
.ranklist .bar { grid-column: 2 / -1; height: 4px; border-radius: 2px; background: var(--soft); overflow: hidden; }
.ranklist .bar i { display: block; height: 100%; background: var(--g); border-radius: 2px; }
.ranklist li.lucky .w::after { content: "I'm Feeling Lucky"; margin-left: 6px; font-size: 11px; color: #fff; background: var(--b); border-radius: 10px; padding: 0 6px; }
.ranklist li.fresh { animation: drop .45s ease; background: #f8fbff; }

/* ---------- other boxes ---------- */
.trendlist { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.trendlist li button { width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 44px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--soft); background: none; text-align: left; cursor: pointer; color: var(--ink); }
.trendlist li button::before { counter-increment: t; content: counter(t); color: var(--ink3); text-align: right; }
.trendlist li button:hover span { text-decoration: underline; }
.trendlist li.on button { color: var(--link2); font-weight: 500; }
.trendlist small { color: var(--ink3); white-space: nowrap; }
.newslist, .afdlist { list-style: none; margin: 0; padding: 0; }
.newslist li, .afdlist li { padding: 7px 0; border-bottom: 1px solid var(--soft); font-size: 14px; }
.newslist small, .afdlist small { color: var(--ink3); }
.afdlist .c { color: var(--red-dk); }
.featcard { display: flex; gap: 12px; align-items: flex-start; }
.featcard .pic { width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--soft); flex: none; }
.featcard .pic img { width: 100%; height: 100%; object-fit: cover; }
.featcard p { margin: 0; font-size: 14px; }
.otdgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.otdgrid div { border: 1px solid var(--line); border-radius: 8px; padding: 8px; text-align: center; }
.otdgrid b { display: block; font: 500 20px var(--sans); }
.otdgrid span { font-size: 12px; color: var(--ink3); }
#otdBody ul { margin: 0; padding-left: 18px; }
.bornlist { display: flex; flex-wrap: wrap; gap: 8px; }
.bornlist a { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; font-size: 12px; text-align: center; }
.bornlist img, .bornlist span { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.about p { font-size: 14px; color: var(--ink2); }

/* ---------- a coin's results page ---------- */
.coin { padding: 0 12px; }
.coin .back { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.kp-coin { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 10px 0; }
.kp-coin .top2 { display: flex; gap: 12px; align-items: center; }
.kp-coin .top2 .pic { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--soft); flex: none; }
.kp-coin .top2 .pic img { width: 100%; height: 100%; object-fit: cover; }
.kp-coin h1 { margin: 0; font: 400 24px/1.2 var(--sans); overflow-wrap: anywhere; }
.kp-coin .kind { margin: 2px 0 0; color: var(--ink3); font-size: 13px; }
.kp-coin dl { margin: 10px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; font-size: 14px; border-top: 1px solid var(--soft); padding-top: 8px; }
.kp-coin dt { font-weight: 500; }
.kp-coin dd { margin: 0; color: var(--ink2); overflow-wrap: anywhere; }
.copyca { margin-left: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--link2); cursor: pointer; font-size: 12px; }
.paa { margin: 14px 0; }
.paa h2 { font: 400 20px var(--sans); margin: 0 0 6px; }
.paa details { border-bottom: 1px solid var(--line); }
.paa details:first-of-type { border-top: 1px solid var(--line); }
.paa summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; font-size: 15px; list-style: none; }
.paa summary::-webkit-details-marker { display: none; }
.paa summary::after { content: '⌄'; color: var(--ink3); font-size: 18px; }
.paa details[open] summary::after { content: '⌃'; }
.paa details > div { padding: 0 0 12px; color: var(--ink2); font-size: 14px; }
.paa .cn { font-size: 11px; color: var(--red-dk); margin-left: 4px; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 10px 18px; font-size: 14px; }
.tl li::before { content: ''; position: absolute; left: 3px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--link2); }
.tl li::after { content: ''; position: absolute; left: 6.5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl time { color: var(--ink3); font-size: 12px; display: block; }
.big404 { border: 1px solid #f6c6c2; background: #fff8f7; border-radius: 8px; padding: 14px; margin: 10px 0; }
.big404 h2 { margin: 0; font: 700 22px Arial, sans-serif; } .big404 h2 span { font-weight: 400; color: var(--ink3); }
.big404 p { margin: 6px 0 0; font-size: 14px; color: var(--ink2); }
.selfnote { border: 1px solid #d2e3fc; background: #f8fbff; border-radius: 8px; padding: 12px 14px; margin: 10px 0; font-size: 14px; }
.histtbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.histtbl td { padding: 6px 4px; border-bottom: 1px solid var(--soft); }
.histtbl tr.dev td { background: var(--hl); }
.loading { color: var(--ink3); }

/* ---------- footer, CA bar, toast ---------- */
.foot { margin: 24px 0 0; padding: 14px 16px; background: var(--bg2); border-top: 1px solid var(--line); font-size: 12px; color: var(--ink3); }
.foot p { margin: 4px 0; }
.cabar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 6px rgba(32,33,36,.18); }
.cabar .ca-label { font: 600 13px var(--brand); color: var(--link2); flex: none; }
.cabar code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.cabar button, .cabar .buy { min-height: 44px; min-width: 56px; padding: 0 14px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--link2); font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cabar .buy { background: var(--link2); border-color: var(--link2); color: #fff; }
.cabar .buy:hover { text-decoration: none; }
.cabar .buy[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.cabar button[disabled] { opacity: .5; }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 50; background: #202124; color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 14px; max-width: calc(100vw - 24px); }

/* ---------- the launch sheet ---------- */
.ls-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.ls-scrim { position: absolute; inset: 0; background: rgba(32,33,36,.5); }
.ls { position: relative; width: 100%; max-width: 600px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 16px 16px 0 0; padding: 0 16px 20px; }
.ls-head { position: sticky; top: 0; background: #fff; display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--soft); z-index: 1; }
.ls-head h2 { flex: 1; margin: 0; font: 400 22px var(--sans); }
.ls-head .ico svg { stroke-width: 2.2; }
.ls-intro { font-size: 14px; color: var(--ink2); }
.ls-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ls-f { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 500; }
.ls-f.full { grid-column: 1 / -1; }
.ls-f i { font-weight: 400; color: var(--ink3); font-style: normal; }
.ls-f input, .ls-f textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; min-height: 44px; width: 100%; }
.ls-f input:focus, .ls-f textarea:focus { outline: 0; border-color: var(--link2); box-shadow: inset 0 0 0 1px var(--link2); }
.ls-f [aria-invalid="true"] { border-color: var(--r); }
.ls-pic { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; }
.ls-pic .prev { width: 84px; height: 84px; border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--ink3); font-size: 12px; text-align: center; flex: none; overflow: hidden; background: var(--bg2); }
.ls-pic .prev img { width: 100%; height: 100%; object-fit: cover; }
.ls-pic label.btn { position: relative; overflow: hidden; }
.ls-pic input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ls-site { grid-column: 1 / -1; font-size: 13px; background: var(--bg2); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.ls-honest { grid-column: 1 / -1; font-size: 13px; color: var(--ink2); border-top: 1px solid var(--soft); padding-top: 8px; }
.ls-honest p { margin: 4px 0; }
.ls-msg { grid-column: 1 / -1; font-size: 14px; min-height: 1em; }
.ls-msg.err { color: var(--red-dk); font-weight: 500; }
.ls-steps { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.ls-steps li { display: flex; gap: 8px; align-items: center; padding: 3px 0; color: var(--ink3); }
.ls-steps li i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.ls-steps li[data-s="on"] { color: var(--ink); } .ls-steps li[data-s="on"] i { border-color: var(--link2); border-top-color: transparent; animation: spin .8s linear infinite; }
.ls-steps li[data-s="done"] { color: var(--url); } .ls-steps li[data-s="done"] i { background: var(--g); border-color: var(--g); }
.ls-steps li[data-s="err"] { color: var(--red-dk); } .ls-steps li[data-s="err"] i { background: var(--r); border-color: var(--r); }
.ls-steps small { margin-left: auto; color: var(--ink3); }
@keyframes spin { to { transform: rotate(360deg); } }
.ls-go { grid-column: 1 / -1; }
.ls-done { padding: 14px 0; }
.ls-links { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ambox { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid #ceead6; border-radius: 8px; background: #f6fbf7; }
.ambox .pic.icon { font-size: 30px; line-height: 1; }
.ambox h3 { margin: 0 0 2px; font: 500 16px var(--sans); }
.ambox p { margin: 2px 0; font-size: 14px; }
html.ls-open { overflow: hidden; }

/* ---------- desktop: Google's results page, results left, knowledge panel right ---------- */
@media (min-width: 980px) {
  body { font-size: 14px; }
  .top { padding: 8px 20px; }
  .top .brand { justify-content: flex-start; }
  .hero { display: block; }
  .top .mark { visibility: hidden; }
  .search { max-width: 640px; margin: 18px auto 0; height: 50px; }
  .hero-btns { display: flex; justify-content: center; gap: 12px; margin: 22px 0 0; }
  .offered { display: block; }
  .loadbar { max-width: 640px; margin: 10px auto 0; }
  .tabs { justify-content: flex-start; max-width: 1180px; margin: 10px auto 0; padding: 0 20px 0 32px; }
  .tabs a { flex: none; padding: 0 14px; }
  .sitenotice { max-width: 1140px; margin: 10px auto 0; }
  main#home { display: grid; grid-template-columns: minmax(0, 650px) 372px; justify-content: center; gap: 0 56px; padding: 0 20px; align-items: start; }
  .col-main { grid-column: 1; }
  .col-side { grid-column: 2; position: sticky; top: 70px; }
  .col-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
  .col-wide .about { grid-column: 1 / -1; }
  .stories { grid-template-columns: repeat(3, 1fr); }
  .coin { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 650px) 372px; gap: 0 56px; padding: 0 20px; }
  .coin > * { grid-column: 1; }
  .coin > .kp-coin { grid-column: 2; grid-row: 1 / span 12; align-self: start; position: sticky; top: 70px; }
  .ls-wrap { align-items: center; }
  .ls { border-radius: 16px; }
}

/* ---------- livestream: ?stream=1 (16:9, nothing to tap) ---------- */
body.stream { padding-bottom: 64px; font-size: 17px; overflow: hidden; }
body.stream .top, body.stream .tabs, body.stream .sitenotice, body.stream .col-wide, body.stream .foot, body.stream .hero-btns, body.stream #trends, body.stream .menu { display: none !important; }
body.stream .hero { display: block; padding: 14px 0 0; }
body.stream .hero-mark { font-size: 64px; }
body.stream .search { max-width: 760px; margin: 12px auto 0; height: 58px; }
body.stream .search input { font-size: 22px; }
body.stream .offered { display: block; font-size: 15px; }
body.stream .loadbar { max-width: 760px; margin: 8px auto 0; }
body.stream main#home { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 0 32px; padding: 0 32px; max-width: none; }
body.stream .col-main { grid-column: 1; }
body.stream .col-side { grid-column: 2; }
body.stream .res h3 { font-size: 22px; } body.stream .res p { font-size: 16px; }
body.stream .snip h3 { font-size: 24px; } body.stream .snip p { font-size: 17px; } body.stream .snip .pic { width: 84px; height: 84px; }
body.stream .live .sub, body.stream .kp-desc { display: none; }
body.stream .ranklist li { font-size: 16px; padding: 5px 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
