/* 비서루 첫 화면 25안 — PC는 1안(한 화면), 폰·태블릿은 2안(앱처럼). 2026-11-28 사장님이 고른 조합.
 * home.css 뒤에 읽는다. 틀(index_25.html)은 하나고 여기서 배치만 바꾼다.
 *   1024px 부터  1안: 머리말(이름 · 랭킹/도구 고르기 · 밝기) + 왼쪽 순위표 · 오른쪽 초이스 모니터 (순위표는 칸 안에서 스크롤)
 *                도구 다섯 개는 폰처럼 따로 '도구' 화면에 둔다. 사용법은 두지 않는다 (11-29 사장님 지시)
 *                초이스 공개 기간이 아니면 오른쪽은 안내 한 칸뿐이라 좁히고 순위표를 넓힌다
 *   그 아래      2안: 랭킹 · 초이스 · 도구를 한 번에 하나씩, 아래 붙박이 탭 (순위표는 화면 전체와 함께 스크롤)
 * 어느 화면을 보일지는 home-25.js 가 body 의 data-view 로 알려 준다.
 * 도구 화면의 칸 모양은 맨 아래 '도구 화면' 묶음 — 720px 까지는 줄(오른쪽에 작은 그림), 그 위로는 카드(위에 그림).
 * 색은 이름표(색감 파일)에서 온다 — 여기 직접 적은 색은 도구 아이콘 다섯 개의 제 색뿐이다. */

.c-25 .info-button, .c-25 .history-button { display: none; }
.c-25 .ranking-item:focus-visible { outline-offset: -2px; }

/* 도구 아이콘 — 도구마다 제 색 타일에 흰 그림 (앱 아이콘처럼). 색감이 바뀌어도 이 다섯 색은 그대로다 */
.c-25 { --ic-listen: #2a6bd6; --ic-down: #0f8f6b; --ic-bis: #e2571e; --ic-sbak: #7357d9; --ic-naepun: #d6457c; }
:root[data-theme="dark"] .c-25 { --ic-listen: #4b86e8; --ic-down: #1fa37d; --ic-bis: #ea6a34; --ic-sbak: #8a71e6; --ic-naepun: #e05c8f; }
.c-25 .ic-listen { --ic-bg: var(--ic-listen); }
.c-25 .ic-down { --ic-bg: var(--ic-down); }
.c-25 .ic-bis { --ic-bg: var(--ic-bis); }
.c-25 .ic-sbak { --ic-bg: var(--ic-sbak); }
.c-25 .ic-naepun { --ic-bg: var(--ic-naepun); }
.c-25 .tool-ic, .c-25 .tool:hover .tool-ic, .c-25 .apptool-ic { background: var(--ic-bg); color: #fff; }
.c-25 .tool-ic svg, .c-25 .apptool-ic svg { display: block; width: 25px; height: 25px; }
.c-25 .tool-ic .g1, .c-25 .apptool-ic .g1 { fill: #fff; }
.c-25 .tool-ic :is(.s1, .s2, .cut), .c-25 .apptool-ic :is(.s1, .s2, .cut) { fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.c-25 .tool-ic .s1, .c-25 .apptool-ic .s1 { stroke: #fff; }
.c-25 .tool-ic .s2, .c-25 .apptool-ic .s2 { stroke: rgba(255, 255, 255, 0.62); }
.c-25 .tool-ic .cut, .c-25 .apptool-ic .cut { stroke: var(--ic-bg); }

/* =====================================================================
 * PC — 1안
 * ===================================================================== */
@media (min-width: 1024px) {
  .c-25 .app-nav, .c-25 .view-tools, .c-25 .choice-idle { display: none; }

  /* 화면 둘: 랭킹 + 초이스 모니터(기본) / 도구 */
  .c-25[data-view="tools"] .board { display: block; }
  .c-25[data-view="tools"] .view-rank, .c-25[data-view="tools"] .view-choice { display: none; }
  .c-25[data-view="tools"] .view-tools { display: block; }
  .c-25 .view-top { padding: 8px 4px 14px; }
  .c-25 .view-top .view-title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }

  /* 순위표 · 초이스 모니터 두 칸 (1180px 부터 나란히, 그 아래는 위아래) */
  .c-25 .board { grid-template-areas: "rank" "choice"; }
  .c-25 .view-choice { grid-area: choice; min-width: 0; }

  /* 머리말의 화면 고르기 */
  .c-25 .top-nav { display: flex; align-self: stretch; gap: 4px; margin: 0 auto 0 30px; }
  .c-25 .top-nav .nav-item {
    position: relative; display: inline-flex; align-items: center; padding: 0 12px;
    font-size: 16px; font-weight: 700; color: var(--chrome-text-2); text-decoration: none;
  }
  .c-25 .top-nav .nav-item:hover { color: var(--chrome-text); }
  .c-25 .top-nav .nav-item.on { color: var(--chrome-text); }
  .c-25 .top-nav .nav-item.on::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px;
    border-radius: 3px 3px 0 0; background: var(--chrome-brand, var(--brand));
  }
  .c-25 .top-nav .nav-item:focus-visible { outline-offset: -4px; }

  /* 순위표 머리: 제목 · 시각 · 찾기 · 자물쇠 / 탭 */
  .c-25 .rank-head, .c-25 .rank-sticky { display: contents; }
  .c-25 .rank-top {
    display: grid; align-items: center; gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) minmax(180px, 280px) auto;
    grid-template-areas: "title meta search lock" "tabs tabs tabs tabs";
    padding: 14px 14px 12px 18px;
  }
  .c-25 .rank-top .pane-title { grid-area: title; }
  .c-25 .rank-top .pane-meta { grid-area: meta; }
  .c-25 .rank-top .rank-search { grid-area: search; }
  .c-25 .rank-top .lock-button { grid-area: lock; }
  .c-25 .rank-top .ranking-tabs { grid-area: tabs; margin: 0 0 0 -4px; }
  .c-25 .rank-top .rank-recent { grid-column: 1 / -1; margin-left: -4px; }
  .c-25 .rank-search input { height: 38px; font-size: 15px; }

  .c-25 .ranking-item { padding-right: 16px; }
  .c-25 .ranking-change { min-width: 48px; }

  /* 색감을 골랐을 때 (palettes.css 의 이름표) — 머리말 면, 고른 탭 */
  :root[data-palette] .c-25 header.top { margin-bottom: 14px; background: var(--chrome); color: var(--chrome-text); }
  :root[data-palette] .c-25 header.top .brand { color: var(--chrome-brand, var(--chrome-text)); }
  :root[data-palette] .c-25 header.top .icon-btn { background: transparent; border-color: var(--chrome-line); color: var(--chrome-text); }
  :root[data-palette] .c-25 header.top .icon-btn:hover { background: var(--chrome-2); border-color: var(--chrome-line); color: var(--chrome-text); }
  :root[data-palette] .c-25 header.top :focus-visible { outline-color: var(--chrome-text); }
  :root[data-palette] .c-25 .ranking-tab.active { background: var(--brand-fill, var(--brand)); color: var(--on-brand-fill, var(--on-brand)); box-shadow: none; }
}

/* 넓은 PC — 왼쪽 순위표 · 오른쪽 초이스 모니터 */
@media (min-width: 1180px) {
  .c-25 .board { grid-template-rows: auto; grid-template-areas: "rank choice"; }
  /* 공개 기간이 아니면 오른쪽은 안내 한 칸 — 좁히고 순위표를 넓힌다 */
  .c-25 .board:has(#choiceSection.is-closed) { grid-template-columns: minmax(0, 1fr) 372px; }
  .c-25 #choiceSection.is-closed .ch-wrap { padding: 18px 20px 20px; }
  .c-25 #choiceSection.is-closed .closed { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0; }
  .c-25 #choiceSection.is-closed .closed .msg b { display: block; }
}

/* =====================================================================
 * 폰 · 태블릿 — 2안
 * ===================================================================== */
@media (max-width: 1023.98px) {
  body.c-25 { background: var(--surface); padding-bottom: calc(66px + env(safe-area-inset-bottom)); }

  /* ---------- 틀: 위 한 줄(이름 · 밝기) + 화면 하나 + 아래 탭 ---------- */
  .c-25 .wrap { max-width: none; padding: 0; }
  .c-25 .top { position: static; background: transparent; }
  .c-25 .top-in { height: 52px; padding: 0 12px 0 16px; }
  .c-25 .brand { font-size: 20px; }
  .c-25 #themeToggle { border-color: transparent; background: transparent; font-size: 17px; }
  .c-25 #themeToggle:hover { background: var(--surface-2); }
  .c-25 .board { display: block; padding: 0; }
  .c-25 .pane { background: transparent; border: 0; border-radius: 0; }
  .c-25 .top-nav { display: none; }

  .c-25 .view, .c-25 .foot { display: none; }
  .c-25:not([data-view]) .view-rank,
  .c-25[data-view="rank"] .view-rank,
  .c-25[data-view="choice"] .view-choice,
  .c-25[data-view="tools"] .view-tools,
  .c-25[data-view="tools"] .foot { display: block; }

  .c-25 .app-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line-strong);
  }
  .c-25 .nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    height: 60px; color: var(--text-3); font-size: 14px; font-weight: 700; text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .c-25 .nav-item i { font-size: 19px; }
  .c-25 .nav-item.on { color: var(--text); }
  .c-25 .nav-item.on i { color: var(--accent); }
  .c-25 .nav-item:focus-visible { outline-offset: -3px; }

  /* ---------- 화면 머리 ---------- */
  .c-25 .rank-top { display: contents; }
  .c-25 .rank-head, .c-25 .view-top { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 2px 12px 8px 16px; }
  .c-25 .view-title, .c-25 #choiceSection .section-title, .c-25 #choiceSection .closed .ttl {
    font-size: 27px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25;
  }
  .c-25 .rank-head .pane-meta { align-self: flex-end; padding-bottom: 5px; font-size: 14px; }
  .c-25 .rank-head .lock-button { flex: none; margin-left: auto; }

  /* ---------- 랭킹: 찾기 칸과 탭은 위에 붙는다 ---------- */
  .c-25 .rank-sticky {
    position: sticky; top: 0; z-index: 40;
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "search" "recent" "tabs";
    padding: 6px 16px 0;
    background: var(--surface); border-bottom: 1px solid var(--line-strong);
  }
  .c-25 .rank-search { grid-area: search; }
  .c-25 .rank-search input { height: 44px; }
  .c-25 .rank-recent { grid-area: recent; display: none; margin-top: 8px; }
  .c-25 .rank-sticky.search-open .rank-recent { display: flex; }
  .c-25 .recent-chip { height: 36px; font-size: 15.5px; }
  .c-25 .recent-clear { height: 36px; font-size: 14.5px; }

  .c-25 .ranking-tabs {
    grid-area: tabs;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
    margin: 4px -8px -1px; padding: 0; background: transparent; border-radius: 0;
  }
  .c-25 .ranking-tab {
    position: relative; height: 46px; padding: 0 4px; border-radius: 0;
    background: transparent; box-shadow: none; color: var(--text-3);
    font-size: 15.5px; font-weight: 600;
  }
  .c-25 .ranking-tab:hover { color: var(--text); }
  .c-25 .ranking-tab.active { background: transparent; box-shadow: none; color: var(--text); font-weight: 800; }
  .c-25 .ranking-tab.active::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px;
    background: var(--accent); border-radius: 3px 3px 0 0;
  }
  .c-25 .ranking-tab:focus-visible { outline-offset: -3px; }

  /* ---------- 랭킹 줄: 순위 · 닉네임 · 숫자 · 변동 (줄 전체가 누르는 곳) ---------- */
  .c-25 .ranking-content { display: block; border-top: 0; }
  .c-25 .ranking-scroll-container { height: auto; overflow: visible; border-radius: 0; }
  .c-25 .ranking-item {
    grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 10px;
    min-height: 62px; padding: 8px 14px 8px 8px;
  }
  .c-25 .ranking-item:active { background: var(--surface-2); }
  .c-25 .ranking-rank { font-size: 17px; }
  .c-25 .top-1 .ranking-rank, .c-25 .top-2 .ranking-rank, .c-25 .top-3 .ranking-rank { font-size: 23px; }
  .c-25 .ranking-info { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .c-25 .ranking-nickname-row { flex: 1; flex-direction: column; align-items: flex-start; gap: 1px; }
  .c-25 .ranking-nickname-row.fan-name-row { flex-direction: row; align-items: center; gap: 6px; }
  .c-25 .ranking-nickname { max-width: 100%; font-size: 17px; }
  .c-25 .birthday-message, .c-25 .love-message, .c-25 .special-message { font-size: 14px; }
  .c-25 .ranking-details {
    flex: none; flex-direction: column; align-items: flex-end; gap: 0;
    font-size: 16.5px; font-weight: 700; color: var(--text); line-height: 1.35;
  }
  .c-25 .ranking-details > span { min-width: 0; }
  .c-25 .ranking-details > .ranking-engagement { font-size: 15.5px; font-weight: 500; color: var(--text-2); }
  .c-25 .ranking-change { min-width: 44px; font-size: 14.5px; }

  /* 좁은 줄: 팬 등급 이름표는 닉네임 아래로 내려 닉네임 자리를 넓힌다 */
  @container (max-width: 559.98px) {
    .c-25 .ranking-nickname-row.fan-name-row { flex-direction: column; align-items: flex-start; gap: 3px; }
  }
  @container (min-width: 560px) {
    .c-25 .ranking-item { grid-template-columns: 52px minmax(0, 1fr) auto; min-height: 56px; padding: 7px 20px 7px 12px; }
    .c-25 .ranking-nickname-row { flex-direction: row; align-items: center; gap: 8px; }
    .c-25 .ranking-nickname { font-size: 16px; }
    .c-25 .ranking-details { flex-direction: row; align-items: center; font-size: 15.5px; font-weight: 600; }
    .c-25 .ranking-details > span { min-width: 108px; justify-content: flex-end; text-align: right; }
    .c-25 .ranking-details > .ranking-engagement { font-size: 15px; }
    .c-25 .ranking-change { min-width: 56px; font-size: 14px; }
  }

  /* ---------- 초이스 화면 ---------- */
  .c-25 #choiceSection { background: transparent; border: 0; border-radius: 0; }
  .c-25 #choiceSection .ch-wrap { max-width: 1500px; margin: 0 auto; padding: 2px 12px 24px; }
  .c-25 #choiceSection .ch-headwrap { min-height: 46px; margin: 0 0 10px 4px; }
  .c-25 #choiceSection .closed { flex-direction: column; align-items: flex-start; gap: 6px; padding: 2px 4px 0; }
  .c-25 #choiceSection .closed .what, .c-25 #choiceSection .section-subtitle .what { font-size: 16px; }
  .c-25 #choiceSection .closed .msg { font-size: 16.5px; }
  .c-25 #choiceSection .rw-ctl { top: 8px; }

  /* 공개 기간 밖: 안내 한 줄 아래에 월간 랭킹으로 가는 단추 */
  .c-25 .choice-idle { display: none; }
  .c-25 #choiceSection.is-closed + .choice-idle { display: block; max-width: 1500px; margin: 0 auto; padding: 0 16px 32px; }
  .c-25 .idle-go {
    display: inline-flex; align-items: center; height: 48px; padding: 0 18px;
    border: 1px solid var(--line-strong); border-radius: 12px;
    color: var(--text); font-size: 16px; font-weight: 700; text-decoration: none;
  }
  .c-25 .idle-go:hover { background: var(--surface-2); }

  /* ---------- 도구 화면 (칸 모양은 맨 아래 '도구 화면' 묶음) ---------- */
  .c-25 .foot { padding: 20px 16px 8px; border-top: 0; font-size: 15.5px; }

  /* 아래 탭에 가리지 않게 알림 띠를 올린다 */
  .c-25 #choiceSection .toast, .c-25 .ui-toast { bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* 폰의 초이스: 표를 가장자리까지 넓히고 숫자 글자를 키운다 */
  @media (max-width: 720px) {
    .c-25 #choiceSection .section-subtitle { font-size: 15px; }
    .c-25 #choiceSection .card .t { font-size: 15px; }
    .c-25 #choiceSection .card .t small, .c-25 #choiceSection .card .row.keep > span { font-size: 14px; }
    .c-25 #choiceSection .card .cut { font-size: clamp(15.5px, 4.5vw, 19px); }
    .c-25 #choiceSection .card .row.keep b { font-size: clamp(14px, 4vw, 15.5px); }
    .c-25 #choiceSection .tbl { margin: 0 -12px; border-left: 0; border-right: 0; border-radius: 0; }
    .c-25 #choiceSection .tbl h2 { padding: 12px 14px; font-size: 16px; }
    /* 탑초이스는 '579,131점 필요'처럼 여섯 자리가 나온다 — 마지막 칸은 그 폭에 맞춘다 */
    .c-25 #choiceSection .r { grid-template-columns: 50px minmax(0, 1fr) 88px 124px; }
    .c-25 #choiceSection .r > div { padding: 9px 5px; font-size: 15.5px; }
    .c-25 #choiceSection .r > div:first-child { padding-left: 12px; }
    .c-25 #choiceSection .r > div:last-child { padding-left: 2px; padding-right: 14px; font-size: 14.5px; }
    .c-25 #choiceSection .r.hd > div { font-size: 14px; }
    .c-25 #choiceSection .r .mv, .c-25 #choiceSection .m-only { font-size: 14px; }
    .c-25 #choiceSection .nick { font-size: 15.5px; }
    .c-25 #choiceSection .cutbar { padding: 7px 14px; font-size: 14px; }
    .c-25 #choiceSection .more { min-height: 48px; font-size: 15.5px; }
    .c-25 #choiceSection .note { font-size: 15.5px; }
    .c-25 #choiceSection .me .tr { font-size: 14.5px; }
    .c-25 #choiceSection .me .who, .c-25 #choiceSection .me .meta, .c-25 #choiceSection .lmline { font-size: 14px; }
  }

  /* 좁은 폰: 초이스 머리의 되감기 단추는 그림만 (제목 · 상태 · 단추가 한 줄에 들어가게) */
  @media (max-width: 370px) {
    .c-25 #choiceSection .ch-rw-btn span { display: none; }
    .c-25 #choiceSection .ch-rw-btn { padding: 0; }
  }

  /* ---------- 태블릿: 여백을 조금 넓힌다 ---------- */
  @media (min-width: 721px) {
    .c-25 .top-in { padding: 0 20px 0 24px; }
    .c-25 .rank-head, .c-25 .view-top { padding: 2px 20px 8px 24px; }
    .c-25 .rank-sticky { padding: 6px 24px 0; }
    .c-25 #choiceSection .ch-wrap { padding: 2px 20px 28px; }
    .c-25 #choiceSection.is-closed + .choice-idle { padding: 0 24px 32px; }
    .c-25 .tool-list { padding: 0 24px; }
    .c-25 .foot { padding: 20px 24px 8px; }
  }

  /* 색감을 골랐을 때 — 아래 탭 면, 이름, 고른 탭 */
  :root[data-palette] .c-25 .app-nav { background: var(--chrome); border-top-color: var(--chrome-line); }
  :root[data-palette] .c-25 .nav-item { color: var(--chrome-text-2); }
  :root[data-palette] .c-25 .nav-item.on { color: var(--chrome-text); }
  :root[data-palette] .c-25 .nav-item.on i { color: var(--chrome-accent, var(--accent)); }
  :root[data-palette] .c-25 .nav-item:focus-visible { outline-color: var(--chrome-text); }
  :root[data-palette] .c-25 .brand { color: var(--brand); }
  :root[data-palette] .c-25 .ranking-tab.active { color: var(--brand); }
  :root[data-palette] .c-25 .ranking-tab.active::after { background: var(--brand); }
}

/* =====================================================================
 * 도구 화면 — 도구마다 화면 그림 · 아이콘 · 이름 · 한 줄 · 여는 단추. 그림을 누르면 크게 본다 (pvw.js)
 * ===================================================================== */
.c-25 .apptool-shot { position: relative; grid-area: shot; display: block; max-width: none; cursor: zoom-in; }
/* 폰의 작은 그림은 위쪽 한 조각만 보인다 — 가운데에 내용이 있는 화면은 가운데를 보인다 */
.c-25 .apptool-shot.at-center img { object-position: center top; }
.c-25 .apptool-shot img {
  display: block; width: 100%; max-width: none; object-fit: cover; object-position: left top;
  background: var(--surface-2); box-shadow: none;
}
.c-25 .apptool-shot:hover img { box-shadow: none; opacity: 0.9; }
.c-25 .apptool-shot:focus-visible img { outline: 2px solid var(--brand, var(--accent)); outline-offset: -2px; }
/* 그림 구석의 돋보기(+) — 누르면 크게 본다는 표시. 어두운 그림 · 밝은 그림 어디서나 보이게 면 색 타일에 올린다 */
.c-25 .shot-zoom {
  position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px; pointer-events: none;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong);
}
.c-25 .shot-zoom svg { display: block; width: 18px; height: 18px; }
.c-25 .apptool-shot:hover .shot-zoom,
.c-25 .apptool-shot:focus-visible .shot-zoom { background: var(--brand-fill, var(--brand, var(--accent))); color: var(--on-brand-fill, var(--on-brand, #fff)); border-color: transparent; }
.c-25 .apptool-ic { grid-area: ic; display: grid; place-items: center; }
.c-25 .apptool-head { grid-area: head; min-width: 0; }
.c-25 .apptool-head h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.c-25 .apptool-open {
  grid-area: open; display: flex; align-items: center; justify-content: center;
  background: var(--text); color: var(--surface); font-weight: 700; text-decoration: none;
}
.c-25 .apptool-open:hover { background: var(--text-2); }

/* 폰: 한 줄에 하나 — 오른쪽에 작은 그림 (화면이 길어지지 않게) */
@media (max-width: 720px) {
  .c-25 .tool-list { border-top: 1px solid var(--line-strong); }
  .c-25 .apptool {
    display: grid; grid-template-columns: 50px minmax(0, 1fr) 108px; align-items: center; gap: 0 14px;
    grid-template-areas: "ic head shot" "open open shot";
    padding: 18px 16px 20px; border-bottom: 1px solid var(--line);
  }
  .c-25 .apptool-shot { align-self: stretch; }
  .c-25 .apptool-shot img { height: 100%; min-height: 104px; border: 1px solid var(--line-strong); border-radius: 12px; }
  .c-25 .shot-zoom { right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 9px; }
  .c-25 .apptool-ic { width: 50px; height: 50px; border-radius: 15px; }
  .c-25 .apptool-ic svg { width: 28px; height: 28px; }
  .c-25 .apptool-head h3 { font-size: 20px; }
  .c-25 .apptool-head p { font-size: 15.5px; line-height: 1.4; color: var(--text-2); }
  .c-25 .apptool-open { height: 46px; margin-top: 12px; padding: 0 16px; border-radius: 12px; font-size: 16px; }
}

/* 태블릿 · PC: 카드 — 위에 그림. 세 칸, 넓으면 한 줄에 다섯 칸 (한눈에 다 보이게) */
@media (min-width: 721px) {
  .c-25 .tool-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .c-25 .apptool {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto 1fr; align-items: start; gap: 0 12px;
    grid-template-areas: "shot shot" "ic head" "open open";
    padding: 0 14px 14px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  }
  .c-25 .apptool-shot { margin: 0 -14px 14px; border-bottom: 1px solid var(--line); }
  .c-25 .apptool-shot img { height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
  .c-25 .apptool-ic { width: 44px; height: 44px; border-radius: 13px; }
  .c-25 .apptool-head h3 { font-size: 17px; }
  .c-25 .apptool-head p { font-size: 14.5px; line-height: 1.45; color: var(--text-3); }
  .c-25 .apptool-open { align-self: end; height: 42px; margin-top: 14px; border-radius: 11px; font-size: 15px; }
}
@media (min-width: 1280px) {
  .c-25 .tool-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* =====================================================================
 * 색감 공통 — 폭과 상관없이 같은 것 (초점 테두리 · 고른 줄 · 기록 창 · 찾기 칸)
 * 색 값은 palette.css(운영) / palettes.css(미리보기)의 이름표에서 온다.
 * ===================================================================== */
:root[data-palette] :focus-visible { outline-color: var(--brand); }
:root[data-palette] ::selection { background: var(--brand-soft); }
:root[data-palette] .record-tab.active { background: var(--brand-fill, var(--brand)); color: var(--on-brand-fill, var(--on-brand)); box-shadow: none; }
:root[data-palette] .record-view.active { background: var(--brand-fill, var(--brand)); border-color: var(--brand-fill, var(--brand)); color: var(--on-brand-fill, var(--on-brand)); }
:root[data-palette] .ranking-item.selected { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
:root[data-palette] .rank-search input:focus,
:root[data-palette] #choiceSection .search input:focus,
:root[data-palette] .dlg-box input:focus { outline-color: var(--brand); }
:root[data-palette] .record-profile { color: var(--brand); border-color: transparent; background: var(--brand-soft); }
:root[data-palette] .record-profile i { color: inherit; }
:root[data-palette] .record-profile:hover { border-color: var(--brand); background: var(--brand-soft); }
:root[data-palette] .recent-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
