/* PC 3-column screen (owner 2026-11-29, logs/shots/ref/client-pc-3col.md): /predict on a WIDE PC screen only.
   A (left: country flags + stock boxes) | B (middle: chart, 글입력 · 시가·고가·종가 · 예측하기) | C (right: tabs + comment list) | icon rail,
   index strip at the bottom. Every rule is inside the media query and under body:has(.es-pd3) (the /predict page; pc3.js needs the same :has() support):
   the phone (< 600px), tablets, narrower PCs and every other page (home included) keep their own layout untouched.
   The parts of C / rail / strip are added by static/js/pc3.js from templates/partials/pc3.html. */
@media (min-width: 1280px) {
  body:has(.es-pd3) { --pc3-tk: 40px; --pc3-gap: 8px; --pc3-h: calc(100vh - 52px - var(--pc3-tk)); }   /* pc3.js fit() measures the real height */
  /* the screen itself does not scroll: only B (middle) does; A and C scroll their own lists */
  html.pc3, html.pc3 body:has(.es-pd3) { overflow: hidden; height: 100%; }
  html.pc3 { scrollbar-gutter: auto; }   /* css/align.css keeps room for the page scrollbar: this screen has none */
  body:has(.es-pd3) .hd-pc .hd-in { max-width: none; padding: 0 16px; }
  body:has(.es-pd3) .fab-share { display: none; }          /* the share button moves into the top menu line */

  /* the top menu line (1 예측 · 커뮤니티 · 2 이벤트 예측 · 3 증시 맞추기 | 구독 · 공유 추천 하고 현금 보상 · 로그인) is the same on every PC screen: templates/base.html */

  /* the line of recently seen stocks (todo 8): names only, newest first */
  .pc3-recent { display: flex; align-items: center; gap: 2px; height: 36px; box-sizing: border-box; margin: var(--pc3-gap) var(--pc3-gap) 0; padding: 0 10px; overflow: hidden; white-space: nowrap;
    background: var(--es-surface, #fff); border: 1px solid var(--es-border, #E4E6EB); border-radius: 4px; }
  .pc3-recent[hidden] { display: none; }
  .pc3-recent button { flex: 0 0 auto; height: 28px; padding: 0 8px; border: 0; border-radius: 4px; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--sub); cursor: pointer; }
  .pc3-recent button:hover { background: var(--hover); color: var(--text); }
  .pc3-recent button.on { color: var(--text); font-weight: 700; }
  .pc3-recent i { flex: 0 0 auto; font-style: normal; color: var(--muted); }

  /* the frame */
  body:has(.es-pd3) .es-pd.es-pd3 { max-width: none; margin: 0; padding: var(--pc3-gap) var(--pc3-gap) 0; box-sizing: border-box; height: var(--pc3-h);
    display: grid; grid-template-columns: clamp(218px, calc(218px + (100vw - 1280px) * .22), 292px) minmax(0, 1fr) clamp(300px, calc(300px + (100vw - 1280px) * .28), 392px) minmax(88px, max-content);
    grid-template-areas: "a b c r"; gap: var(--pc3-gap); }   /* 1280: 218 | 626 | 300 | 96 - the chart itself stays 600px wide or more (under 600 static/js/chart.js draws its phone look) */
  body:has(.es-pd3) .es-pd3 > .es-pl { grid-area: a; min-height: 0; display: flex; flex-direction: column; margin: 0; padding: 8px 8px 0; overflow: hidden;
    background: var(--es-surface, #fff); border: 1px solid var(--es-border, #E4E6EB); border-radius: 4px; }
  body:has(.es-pd3) .es-pd3 > .es-pd-side { grid-area: b; min-height: 0; min-width: 0; display: block; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; }
  html.pc3 .es-pd3 > .es-pd-side > .ft { display: block; margin-top: var(--pc3-gap); border: 1px solid var(--es-border, #E4E6EB); border-radius: 4px; }
  html.pc3 .es-pd3 > .es-pd-side > .ft .wrap { max-width: none; }
  body:has(.es-pd3) .es-pd3 > .pc3-c { grid-area: c; min-height: 0; }
  body:has(.es-pd3) .es-pd3 > .pc3-rail { grid-area: r; min-height: 0; }

  /* A: flags on top, one box per line, its own scroll */
  /* owner 2026-11-30: the stock search box right under the flag line (the page's own box #es-pd-q: typing filters the list at once,
     static/js/predict.js apply(); Enter = the first match, static/js/pc3.js). The title beside it is not shown here. */
  body:has(.es-pd3) .es-pd3 .es-pl-top { order: 1; flex: 0 0 auto; display: block; margin: 0; padding: 0 2px 8px; }
  /* 2026-12-05 탭5 (대표님): the square '종목 찾기 (이름·코드)' box is gone on the PC - searching is the one icon beside the logo
     (static/js/search.js: every market, coins, stocks). The phone page keeps its box. */
  body:has(.es-pd3) .es-pd3 .es-pl-top { display: none; }
  body:has(.es-pd3) .es-pd3 .es-pl-top .es-pl-h { display: none; }
  body:has(.es-pd3) .es-pd3 .es-pl-top .es-pl-q { width: 100%; height: 44px; padding: 0 10px; gap: 8px; border: 1px solid var(--es-border, #E4E6EB); border-radius: 4px; background: var(--es-surface, #fff); color: var(--es-ink, #111); }
  body:has(.es-pd3) .es-pd3 .es-pl-top .es-pl-q:focus-within { border-color: var(--ink, #1C2532); box-shadow: inset 0 0 0 1px var(--ink, #1C2532); }
  body:has(.es-pd3) .es-pd3 .es-pl-top .es-pl-q svg { flex: 0 0 auto; }
  body:has(.es-pd3) .es-pd3 .es-pl-top .es-pl-q input { font-size: 17px; font-weight: 600; text-overflow: ellipsis; }
  body:has(.es-pd3) .es-pd3 .es-pl-tabs { order: 0; }
  body:has(.es-pd3) .es-pd3 #es-pd-list { order: 2; }
  body:has(.es-pd3) .es-pd3 #es-pd-none { order: 3; }
  body:has(.es-pd3) .es-pd3 .es-pl-tabs { flex: 0 0 auto; margin: 0; padding: 2px 2px 8px; gap: 6px; }
  body:has(.es-pd3) .es-pd3 .es-pl-tabs .es-tab-dot { flex: 0 0 auto; }
  body:has(.es-pd3) .es-pd3 #es-pd-list { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; grid-template-columns: minmax(0, 1fr) !important; grid-auto-rows: max-content; gap: 8px; padding: 2px 2px 8px; align-content: start;
    scrollbar-width: thin; }
  body:has(.es-pd3) .es-pd3 #es-pd-list .es-card { flex: 0 0 auto; }
  body:has(.es-pd3) .es-pd3 #es-pd-list .es-card.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
  body:has(.es-pd3) .es-pd3 #es-pd-list .es-card-a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding: 12px 14px 10px; }   /* name left, price + change right (owner's picture) */
  body:has(.es-pd3) .es-pd3 #es-pd-list .es-card-h { align-self: start; }
  body:has(.es-pd3) .es-pd3 #es-pd-list .es-card-p { align-items: flex-end; margin-top: 0; }
  body:has(.es-pd3) .es-pd3 #es-pd-list .es-card-c, body:has(.es-pd3) .es-pd3 #es-pd-list .es-card-crowd { grid-column: 1 / -1; }
  body:has(.es-pd3) .es-pd3 #es-pd-list .es-card-c { margin: 8px 0 6px; }

  /* A: three letter avatars (28px, a little overlapped) in front of "42명 ▲64% 예측" */
  html.pc3 .es-pd3 #es-pd-list .es-card-crowd.pc3-cw { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 28px; }
  .pc3-cav { flex: 0 0 auto; display: inline-flex; }
  .pc3-cav .es-av { --s: 28px !important; width: 28px !important; height: 28px !important; }
  .pc3-cav .es-av + .es-av { margin-left: -8px !important; }
  .pc3-cav .es-av-l { font-size: 14px !important; box-shadow: 0 0 0 2px var(--es-surface, #fff); }
  .pc3-cav .es-av-f { display: none; }

  /* B, guests only: two low lines above the name line (the home page's words) */
  .pc3-hero { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--pc3-gap); padding: 10px 16px; background: var(--es-surface, #fff); border: 1px solid var(--es-border, #E4E6EB); border-radius: 4px; }
  .pc3-hero b { font-size: 18px; font-weight: 800; line-height: 1.35; color: var(--text); }
  .pc3-hero span { font-size: 15px; line-height: 1.4; color: var(--sub); }

  /* B, the name line: [ name price change ] ...... [ avatars + people ] [ 회원 예측 보기 ]
     When that line cannot hold three avatars and the number of people (1280 / 1366, long names, other languages), the block goes to the
     right end of the line below (pc3.js .pc3-h2): at least three avatars and the number are always seen. */
  html.pc3 .es-pd3 .es-pd-h.pc3-h2 { align-items: center; flex-wrap: wrap; column-gap: 12px; }
  html.pc3 .es-pd3 .es-pd-h.pc3-h2 > .es-sub { flex: 1 1 0; min-width: 0; margin-top: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.pc3 .es-pd3 .es-pd-h.pc3-h2 > .pc3-people { flex: 0 0 auto; }
  html.pc3 .es-pd3 .es-pd-h > .es-pd-top { flex: 1 1 100%; display: flex; align-items: center; flex-wrap: nowrap; gap: 4px 10px; min-height: 40px; }
  html.pc3 .es-pd3 .es-pd-top > * { flex: 0 0 auto; }
  html.pc3 .es-pd3 .es-pd-top > .es-pd-name { flex: 0 0 auto; min-width: 0; }
  html.pc3 .es-pd3 .es-pd-top.pc3-tight > .es-pd-name { flex: 0 1 auto; }   /* still too narrow with no avatars left: the name gives way last */
  .pc3-hr { flex: 0 0 auto !important; display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; padding-left: 8px; }
  .pc3-people { flex: 0 0 auto; display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center; min-width: 0; margin: 0 !important; position: static !important; }
  .pc3-people .es-stack { flex: 0 0 auto; }
  .pc3-people .es-feat-cnt, .pc3-people .es-feat-cn, .pc3-people .es-feat-cr { display: inline !important; white-space: nowrap; }
  .pc3-people .es-feat-cnt { font-size: 16px; }
  .pc3-fan { flex: 0 0 auto; height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--es-surface, #fff); color: var(--sub);
    font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; }
  .pc3-fan:hover { background: var(--hover); }
  .pc3-fan.on { border-color: var(--ink); background: var(--ink); color: #fff; }
  .pc3-fanrow { display: flex; justify-content: flex-end; padding: 6px 0 2px; }   /* 2026-12-05 탭5: right under the volume pane (pc3.js fanBtn) */

  /* B: pc3.js sets --pc3-dc so the chart + the input row fill B's first screen; what comes after is reached by scrolling B */
  body:has(.es-pd3) .es-pd3 .es-pd-side .es-pd-card { padding: 10px clamp(8px, calc(8px + (100vw - 1280px) * .07), 16px) 12px; margin: 0; }
  body:has(.es-pd3) .es-pd3 .es-pd-card .es-pd-chart .es-dc { --dc-h: var(--pc3-dc, max(220px, calc(100vh - 640px))); }
  body:has(.es-pd3) .es-pd3 .es-pd-blankchart { height: var(--pc3-dc, max(220px, calc(100vh - 640px))); }
  /* input row (owner, client-pc-input-layout.png): [ 글입력 - one big box ] [ narrow column: 시가 / 고가 / 종가 / 저장 ]. The big box starts and
     ends exactly where the column does (same grid rows). No date tabs, no -2% ~ +2% buttons on this screen. pc3.js adds .pc3-vals. */
  html.pc3 .es-pd3 .es-pd-row { grid-template-columns: minmax(0, 1fr) clamp(148px, 25%, 196px); grid-template-rows: 44px 44px 44px 56px auto;
    grid-template-areas: "reason o" "reason h" "reason c" "reason save" "err err"; gap: 6px 10px; margin-top: 8px; }
  html.pc3 .es-pd3 .es-pd-row .es-pd-vals, html.pc3 .es-pd3 .es-pd-row .es-pd-share, html.pc3 .es-pd3 .es-pd-row [data-next-stock], html.pc3 .es-pd3 .es-pd-row a.es-pd-save { display: none; }
  html.pc3 .es-pd3 .es-pd-row .es-err { grid-area: err; }
  html.pc3 .es-pd3 .es-pd-row .es-err[hidden] { display: none; }
  /* the big box = 글입력: pressing it opens the 글쓰기 popup (todo 5); the page's own reason box / notice are not on this screen */
  html.pc3 .es-pd3 .es-pd-row textarea, html.pc3 .es-pd3 .es-pd-row .es-done { display: none; }
  .pc3-write { grid-area: reason; align-self: stretch; display: flex; align-items: flex-start; width: 100%; height: 100%; min-height: 0; box-sizing: border-box; margin: 0; padding: 12px 14px; text-align: left; vertical-align: top;
    border: 1px solid var(--es-border, #E4E6EB); border-radius: 4px; background: var(--es-surface, #fff); font: inherit; font-size: 16px; color: var(--muted); cursor: text; }
  .pc3-write:hover { border-color: var(--ink); }
  .pc3-write:disabled { cursor: default; opacity: .6; }
  html.pc3 .es-pd3 .es-pd-row .es-pd-save { grid-area: save; min-height: 0; height: 100%; font-size: 18px; border-radius: 4px; }
  .pc3-vals { display: contents; }
  .pc3-v { width: 100%; height: 100%; min-width: 0; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--es-border, #E4E6EB); border-radius: 4px; background: var(--es-surface, #fff);
    font: inherit; font-size: 17px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
  .pc3-v0 { grid-area: o; } .pc3-v1 { grid-area: h; } .pc3-v2 { grid-area: c; }
  .pc3-v::placeholder { font-weight: 500; color: var(--muted); opacity: 1; }
  .pc3-v:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
  .pc3-v.on:not(:focus) { border-color: var(--up, #E0474C); }
  .pc3-v.bad { border-color: var(--up, #E0474C); background: #FDECEC; }
  .pc3-v:disabled { background: var(--es-subtle, #F0F2F5); color: var(--text); opacity: 1; -webkit-text-fill-color: var(--text); }
  /* already predicted / just saved: no button - the three values fill the column, top and bottom still on the big box's lines */
  html.pc3 .es-pd3 .es-pd-row.pc3-ro { grid-template-rows: 1fr 1fr 1fr auto; grid-template-areas: "reason o" "reason h" "reason c" "err err"; min-height: 206px; }
  html.pc3 .es-pd3 .es-pd-row.pc3-ro .es-pd-save { display: none; }

  /* B, under the input row: the chosen stock's figures (first: daily prices) */
  .pc3-info { margin-top: var(--pc3-gap); padding: 14px 16px 8px; background: var(--es-surface, #fff); border: 1px solid var(--es-border, #E4E6EB); border-radius: 4px; overflow-x: auto; scrollbar-width: thin; }
  .pc3-info[hidden] { display: none; }
  .pc3-info-h { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 18px; font-weight: 700; }
  .pc3-info-h span { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
  .pc3-tbl { width: 100%; border-collapse: collapse; font-size: clamp(14px, calc(14px + (100vw - 1280px) * .01), 15px); font-variant-numeric: tabular-nums; }
  .pc3-tbl th { height: 40px; padding: 0 6px; font-size: 14px; font-weight: 500; color: var(--sub); text-align: right; white-space: nowrap; border-bottom: 1px solid var(--es-border, #E4E6EB); background: var(--es-subtle, #F0F2F5); }
  .pc3-tbl td { height: 40px; padding: 0 6px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--divider, #E4E6EB); }
  .pc3-tbl th:first-child, .pc3-tbl td:first-child { text-align: left; }
  .pc3-tbl td:first-child { color: var(--sub); }
  .pc3-tbl td b { font-weight: 700; }
  .pc3-tbl .up { color: var(--up, #E0474C); }
  .pc3-tbl .dn { color: var(--down, #3870D8); }
  .pc3-tbl [hidden] { display: none; }
  .pc3-tbl tbody tr:hover { background: var(--hover); }

  /* a low screen (1366 x 768 and the like): the guest's words on one line, less empty room between the parts - the input row comes
     up into the first screen. No letter gets smaller. pc3.js fit() lets the chart go down to 200px here. */
  @media (max-height: 800px) {
    .pc3-hero { flex-direction: row; align-items: baseline; gap: 12px; padding: 7px 16px; white-space: nowrap; overflow: hidden; }
    .pc3-hero b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .pc3-hero span { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .pc3-hero span[hidden] { display: none; }
    html.pc3 .es-pd3 .es-pd-h { margin-bottom: 4px; }
    html.pc3 .es-pd3 .es-pd-chart { margin-top: 4px; }
    html.pc3 .es-pd3 .es-pd-chart .es-ch-tools { margin-bottom: 2px; }
    html.pc3 .es-pd3 .es-pd-chart .es-acc-note { margin: 4px 0 4px; }
    html.pc3 .es-pd3 .es-pd-row { margin-top: 4px; }
  }

  /* popups: comment detail and 글쓰기 - in the middle of the screen, the screen behind stays as it is */
  .pc3-pop { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, .45); }
  .pc3-pop[hidden] { display: none; }
  .pc3-d, .pc3-w { position: relative; width: min(760px, 100%); max-height: min(860px, calc(100vh - 48px)); box-sizing: border-box; background: var(--es-surface, #fff); border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28); }
  .pc3-d { overflow-y: auto; padding: 20px 28px 28px; scrollbar-width: thin; }
  .pc3-x { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: var(--text); cursor: pointer; }
  .pc3-x:hover { background: var(--hover); }
  .pc3-w { display: flex; flex-direction: column; gap: 12px; height: min(720px, calc(100vh - 48px)); padding: 16px 20px 20px; }
  .pc3-w-h { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 44px; }
  .pc3-w-h b { font-size: 18px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pc3-w textarea { flex: 1 1 auto; min-height: 0; width: 100%; box-sizing: border-box; resize: none; padding: 16px; border: 1px solid var(--es-border, #E4E6EB); border-radius: 8px; background: var(--es-surface, #fff);
    font: inherit; font-size: 17px; line-height: 1.6; color: var(--text); }
  .pc3-w textarea:focus { outline: none; border-color: var(--ink); }
  .pc3-w .es-err { margin: 0; }
  .pc3-w-go { flex: 0 0 auto; width: 100%; height: 52px; font-size: 17px; border-radius: 8px; }
  .pc3-d-post { margin-top: 4px; padding-right: 36px; }
  .pc3-d-post .es-pr { padding: 4px 0 0; border: 0; }
  .pc3-d-post .es-pr-t, .pc3-d-post .es-cm-t { font-size: 17px; line-height: 1.55; margin-top: 12px; }
  .pc3-d-post .es-pr-focus, .pc3-d-post .es-rep, .pc3-d-post [data-reply], .pc3-d-post .es-thread, .pc3-d-post [data-allth], .pc3-d-post .es-kids-tg, .pc3-d-post .es-kids { display: none; }
  /* big 좋아요 · 나빠요 in the middle */
  .pc3-d-post .es-pr > .es-cm-a, .pc3-d-post .es-cm .es-cm-a { justify-content: center; gap: 10px; margin: 20px 0 8px; }
  .pc3-d-post .es-cm-a .es-rx { height: 46px; min-width: 104px; justify-content: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; color: var(--text); }
  .pc3-d-post .es-cm-a .es-rx .ic { width: 22px; height: 22px; }
  .pc3-d-post .es-cm-a .es-rx span:empty { display: inline; }
  .pc3-d-post .es-cm-a .es-rx span:empty::before { content: "0"; }
  .pc3-d-nav { margin-top: 16px; border-bottom: 1px solid var(--divider, #E4E6EB); }
  .pc3-d-nav[hidden] { display: none; }
  .pc3-d-nav button:first-child { border-top: 0; }
  .pc3-d-nav button em b { font-weight: 700; }
  .pc3-d-nav button { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 44px; padding: 0 8px; border: 0; border-top: 1px solid var(--divider, #E4E6EB);
    background: none; font: inherit; font-size: 15px; text-align: left; color: var(--text); cursor: pointer; }
  .pc3-d-nav button:hover { background: var(--hover); }
  .pc3-d-nav button[hidden] { display: none; }
  .pc3-d-nav button span { flex: 0 0 auto; color: var(--sub); }
  .pc3-d-nav button em { font-style: normal; font-weight: 400; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pc3-d-h { margin: 20px 0 8px; font-size: 17px; font-weight: 700; }
  .pc3-d-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
  .pc3-d-form .es-muted, .pc3-d-form .es-err { grid-column: 1 / -1; margin: 0; }
  .pc3-d-form textarea { min-height: 44px; font-size: 16px; border: 1px solid var(--es-border, #E4E6EB); border-radius: 4px; background: var(--es-surface, #fff); padding: 10px 12px; }
  .pc3-d-form .es-btn { height: 44px; padding: 0 18px; font-size: 15px; }
  .pc3-d-th { margin: 12px 0 0; }
  .pc3-d-th .es-kids[hidden] { display: block; }
  .pc3-d-th .es-kids-tg, .pc3-d-th .es-rep { display: none; }
  .pc3-d-th .es-x { display: block; }
  .pc3-d-th > .es-th { padding: 8px 0; border-top: 1px solid var(--divider, #E4E6EB); }
  .pc3-d-th > .es-th:first-child { border-top: 0; }

  /* C: tabs + list, its own scroll */
  .pc3-c { display: flex; flex-direction: column; background: var(--es-surface, #fff); border: 1px solid var(--es-border, #E4E6EB); border-radius: 4px; overflow: hidden; }
  .pc3-tabs { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--es-border, #E4E6EB); }
  .pc3-tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 700;
    color: var(--sub); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
  .pc3-tabs button + button { border-left: 1px solid var(--es-border, #E4E6EB); }
  .pc3-tabs button.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--ink); }
  .pc3-tabs button:disabled { color: var(--muted); cursor: default; }
  .pc3-tabs b { font-variant-numeric: tabular-nums; }
  .pc3-list, .pc3-d-post { list-style: none; margin: 0; }
  .pc3-d-post { padding: 0; }
  .pc3-list { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px; scrollbar-width: thin; }
  .pc3-list > li { cursor: pointer; }
  .pc3-list > li:hover { background: var(--hover); box-shadow: 0 0 0 14px var(--hover); clip-path: inset(0 -14px); }
  .pc3-list > li.on { background: var(--es-subtle, #F0F2F5); box-shadow: 0 0 0 14px var(--es-subtle, #F0F2F5); clip-path: inset(0 -14px); }
  .pc3-list .es-pr-focus, .pc3-list .es-rep, .pc3-list .es-thread, .pc3-list [data-allth], .pc3-list .es-kids-tg, .pc3-list .es-kids { display: none; }
  .pc3-list .es-pr.es-x { display: block; }
  .pc3-list .es-pr-t, .pc3-list .es-cm-t { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pc3-list .es-chips { gap: 2px 12px; }
  .pc3-list > li.pc3-f { padding: 12px 0; border-top: 1px solid var(--divider, #E4E6EB); list-style: none; }
  .pc3-list > li.pc3-f > ul { list-style: none; margin: 0; padding: 0; }
  .pc3-list .es-cm { display: flex; gap: 12px; }
  .pc3-none { padding: 24px 14px; }
  .pc3-c.loading .pc3-list { opacity: .5; }

  /* right edge icons */
  .pc3-rail { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 4px; background: var(--es-surface, #fff); border: 1px solid var(--es-border, #E4E6EB); border-radius: 4px; }
  .pc3-rail button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; padding: 6px 0; border: 0; border-radius: 8px; background: none;
    font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--text); cursor: pointer; }
  .pc3-rail button:hover { background: var(--hover); }
  .pc3-rail .ic { width: 22px; height: 22px; flex: 0 0 auto; }
  /* 좋아요 · 나빠요: one line, the icon and its number side by side */
  .pc3-rail-rx { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 12px; }
  .pc3-rail-rx button { flex-direction: row; gap: 3px; min-height: 44px; padding: 6px 4px; font-variant-numeric: tabular-nums; }
  /* the list behind an icon */
  .pc3-r { position: relative; display: flex; flex-direction: column; width: min(640px, 100%); max-height: min(760px, calc(100vh - 48px)); box-sizing: border-box; padding: 16px 20px 12px;
    background: var(--es-surface, #fff); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .28); }
  .pc3-r-list { flex: 1 1 auto; min-height: 120px; list-style: none; margin: 8px 0 0; padding: 0; overflow-y: auto; scrollbar-width: thin; }
  .pc3-pop.loading .pc3-r-list { opacity: .5; }
  .pc3-r-list li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--divider, #E4E6EB); }
  .pc3-r-list li:first-child { border-top: 0; }
  .pc3-r-list a { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; color: var(--text); }
  .pc3-r-h { display: flex; align-items: baseline; gap: 8px; }
  .pc3-r-h b { font-size: 16px; font-weight: 700; }
  .pc3-r-h small { font-size: 14px; color: var(--sub); }
  .pc3-r-v { font-size: 15px; color: var(--sub); font-variant-numeric: tabular-nums; }
  .pc3-r-v b { color: var(--text); font-weight: 700; margin-right: 6px; }
  .pc3-r-t { font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pc3-r-n { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .pc3-r-n .ic + .ic, .pc3-r-n .ic ~ .ic { margin-left: 8px; }
  .pc3-r-list li.pc3-sig-note { justify-content: center; font-size: 14px; color: var(--sub); }   /* 2026-12-04 신호 목록 아래 한 줄 */

  /* bottom strip */
  .pc3-tk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: var(--pc3-tk, 40px); overflow: hidden; background: var(--es-subtle, #F0F2F5); border-top: 1px solid var(--es-border, #E4E6EB); }
  .pc3-tk-in { display: inline-flex; height: 100%; white-space: nowrap; animation: pc3-tk 70s linear infinite; will-change: transform; }
  .pc3-tk:hover .pc3-tk-in { animation-play-state: paused; }
  .pc3-tk-set { display: inline-flex; align-items: center; }
  .pc3-tk-i { display: inline-flex; align-items: baseline; gap: 8px; padding: 0 22px; font-size: 15px; font-variant-numeric: tabular-nums; }
  .pc3-tk-i b { font-weight: 600; color: var(--sub); }
  .pc3-tk-i em { font-style: normal; font-weight: 700; color: var(--text); }
  @keyframes pc3-tk { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .pc3-tk-in { animation: none; } }
}
/* 2026-12-04 요구사항 A-5: 잠긴 신호를 포인트로 열기 */
.pc3-sig-lock .pc3-r-v { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pc3-sig-open { min-height: 32px; padding: 0 10px; border: 1px solid var(--line, #dadde1); border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pc3-sig-open:disabled { opacity: .5; cursor: default; }
