/* frontend/panseo/readability.css — 원본 readability.css 이식본(무변경).
   원본 번들 순서(globals → 뷰별 CSS → readability)를 재현하려고 base.css 에서 분리했다.
   panseo.html 에서 반드시 **마지막 스타일시트**로 링크한다 — community-enhancements 등
   뷰 CSS 와 겹치는 12개 선택자에서 원본처럼 이 파일이 이겨야 하기 때문이다. */

/* Readability pass: stronger hierarchy without turning the editorial layout into a card grid. */

/* 실제 스크롤은 브라우저에 맡긴다. 숨긴 칩/클립의 none·display 선언은 덮지 않는다. */
@media screen and (forced-colors: none) {
  :root {
    --ps-scrollbar-thumb: var(--muted);
    --ps-scrollbar-hover: var(--ink);
  }
  @supports (color: color-mix(in srgb, black, white)) {
    :root {
      --ps-scrollbar-thumb: color-mix(in srgb, color-mix(in srgb, var(--muted) 75%, var(--line-dark)), var(--orange) 6%);
      --ps-scrollbar-hover: color-mix(in srgb, var(--ink) 94%, var(--orange));
    }
  }
  /* 블랙: 같은 웜그레이 결을 먹 바탕 쪽으로 옮긴 값(평소 #6b6560, 올렸을 때 #a39b94). */
  :root[data-theme="black"] {
    --ps-scrollbar-thumb: #6b6560;
    --ps-scrollbar-hover: #a39b94;
  }

  /* Chromium의 표준 non-auto 값은 WebKit thumb 스타일보다 우선한다. */
  @supports selector(::-webkit-scrollbar) {
    :where(html, body *) {
      scrollbar-color: auto;
    }
    .join-modal {
      scrollbar-width: auto;
      scrollbar-color: auto;
    }
    :where(html, body *)::-webkit-scrollbar {
      width: 12px;
      height: 12px;
    }
    :where(html, body *)::-webkit-scrollbar-track,
    :where(html, body *)::-webkit-scrollbar-corner {
      background: transparent;
    }
    :where(html, body *)::-webkit-scrollbar-thumb {
      border: 2px solid transparent;
      border-radius: 999px;
      background: var(--ps-scrollbar-thumb);
      background-clip: padding-box;
    }
    @media (hover: hover) and (pointer: fine) {
      :where(html:not([data-input="touch"]), html:not([data-input="touch"]) body *)::-webkit-scrollbar-thumb:hover {
        background-color: var(--ps-scrollbar-hover);
      }
    }
  }

  /* Firefox는 표준 속성으로 표시한다. 낮은 명시도로 기존 none을 보존한다. */
  @supports not selector(::-webkit-scrollbar) {
    :where(html, body *) {
      scrollbar-width: thin;
      scrollbar-color: var(--ps-scrollbar-thumb) transparent;
    }
    .join-modal { scrollbar-color: var(--ps-scrollbar-thumb) transparent; }
    @media (hover: hover) and (pointer: fine) {
      :where(html:not([data-input="touch"]), html:not([data-input="touch"]) body *):hover {
        scrollbar-color: var(--ps-scrollbar-hover) transparent;
      }
      html:not([data-input="touch"]) .join-modal:hover {
        scrollbar-color: var(--ps-scrollbar-hover) transparent;
      }
    }
  }
}

/* 고대비에서는 커스텀 thumb를 적용하지 않고 기존 가입 창도 시스템 표시로 돌린다. */
@media screen and (forced-colors: active) {
  .join-modal {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
}

:root {
  --muted: #555555;
  --faint: #767676;
  --line: #d6d6d6;
  --line-dark: #a6a6a6;
  --control-line: #8c8c8c;
  --line-strong: #c5c5c5;
  --surface-subtle: #f8f8f8;
  --surface-selected: #fff7f2;
}

/* 블랙 = 먹 종이(2026-10-17, app.css 블랙과 같은 값). 토큰만 다시 정하고 컴포넌트 규칙은 그대로 둔다.
   바탕=면 #1a1a1a 한 장, 괘선 #353535, 글자 #ededed/#a6a6a6, 컨트롤 선 #707070,
   주 버튼은 라이트와 같은 오렌지 채움 + 흰 글자, 오렌지 글자는 #f08a5d. */
:root[data-theme="black"] {
  --paper: #1a1a1a;
  --white: #1a1a1a;
  --ink: #ededed;
  --muted: #a6a6a6;
  --faint: #8c8c8c;
  --line: #353535;
  --line-dark: #707070;
  --control-line: #707070;
  --line-strong: #474747;
  --surface-subtle: #202020;
  --surface-selected: #2a1f1a;
  --orange: #c9471b;
  --orange-dark: #a83a16;
  --orange-soft: #2a1f1a;
  --on-ink: #1a1a1a;
  --on-orange: #ffffff;
  --orange-text: #f08a5d;
  --orange-dark-text: #f08a5d;
  --orange-hot: #d94b1d;
  --orange-hot-text: #f08a5d;
  --orange-tint: #2a1f1a;
  --orange-tint-2: #2a1f1a;
  --orange-tint-line: #5a3424;
  --block: #0f0f0f;
  --on-block: #ededed;
  --topbar-bg: rgba(26, 26, 26, 0.97);
  --hover-veil: rgba(255, 255, 255, 0.03);
  --row-hover: rgba(255, 255, 255, 0.03);
  --wash: #202020;
  --wash-2: #202020;
  --wash-3: #242424;
  --wash-4: #202020;
  --wash-hover: #202020;
  --checker: #242424;
  --rule-band: #0f0f0f;
  --disabled-fill: #2a2a2a;
  --done-fill: #2a2a2a;
  --placeholder: #8c8c8c;
  --text-body: #cfcfcf;
  --text-reply: #cfcfcf;
  --text-summary: #cfcfcf;
  --text-answer: #cfcfcf;
  --text-detail: #cfcfcf;
  --text-about: #cfcfcf;
  --text-caution: #cfcfcf;
  --text-op: #cfcfcf;
  --op-line: #8c8c8c;
  --danger-fill: #b3271e;
  --danger-text: #e06b74;
  --warm-muted: #a6a6a6;
  --warm-faint: #8c8c8c;
  --warm-label: #a6a6a6;
  --warm-line: #353535;
  --warm-control: #707070;
  --warm-control-2: #707070;
}

/* 클립 뷰의 밝은 패널(댓글·설정·올리기) 토큰. clips.css 는 원본 이식본 구조를 지키려고 값만 토큰으로 바꿨고,
   새 토큰과 블랙 값은 여기서 정한다. 플레이어·표지 같은 미디어는 테마와 무관하게 먹색이다. */
.clips-section {
  --clips-frame: #171717;
  --clips-body: #514e49;
  --clips-control: #aaa69d;
  --clips-control-2: #969188;
  --clips-wash: #ece9e2;
  --clips-on-ink: #ffffff;
}

:root[data-theme="black"] .clips-section {
  --clips-paper: #1a1a1a;
  --clips-white: #1a1a1a;
  --clips-ink: #ededed;
  --clips-muted: #a6a6a6;
  --clips-line: #353535;
  --clips-body: #cfcfcf;
  --clips-control: #707070;
  --clips-control-2: #707070;
  --clips-wash: #202020;
  --clips-on-ink: #1a1a1a;
}

body {
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.012em;
}

/* Community feed */

.quick-compose {
  padding-right: 14px;
  padding-left: 14px;
  border: 1px solid var(--control-line);
  background: var(--surface-subtle);
}

.quick-compose:hover {
  border-color: var(--orange);
  background: var(--surface-selected);
}

.feed-toolbar {
  min-height: 66px;
  margin-top: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--white);
}

.rail-title,
.rail-caption,
.author-copy small,
.instructor small {
  font-size: 12px;
}

.subject-list button {
  font-weight: 620;
}

.post-item {
  padding: 26px 16px 18px;
  border-bottom-color: var(--line-strong);
  scroll-margin-top: 86px;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.post-item:hover,
.post-item.is-open {
  padding-right: 16px;
  padding-left: 16px;
  background: var(--surface-subtle);
}

.post-item.is-open {
  box-shadow: inset 3px 0 0 var(--orange);
}

.post-title {
  font-size: 20px;
  line-height: 1.42;
}

.post-content > p {
  color: var(--text-body);
  font-size: 15px;
}

.post-actions button,
.post-follow-button,
.my-post-label {
  font-size: 11px;
}

.attachment-card {
  border-color: var(--control-line);
}

.attachment-card strong,
.draft-attachment-list strong {
  font-size: 12px;
}

.attachment-card small,
.draft-attachment-list small,
.attachment-uploader-head span,
.paste-zone small {
  font-size: 10px;
}

.discussion {
  border-top-color: var(--line-strong);
}

.comment {
  border-bottom-color: var(--line-strong);
}

.comment-author strong {
  font-size: 12px;
}

.comment-author small {
  font-size: 10px;
}

.comment > p,
.reply > p {
  color: var(--text-reply);
  font-size: 13px;
}

.reply {
  border-left: 3px solid var(--orange);
  background: var(--surface-subtle);
}

.reply-control,
.reply-form button,
.comment-form label,
.comment-form button,
.no-comments {
  font-size: 11px;
}

.reply-form,
.comment-form textarea,
.paste-zone {
  border-color: var(--control-line);
}

.draft-attachment-list li {
  border-color: var(--line-strong);
}

.rail-section {
  padding: 0;
  border: 0;
  border-top: 3px solid var(--ink);
}

.section-heading {
  min-height: 49px;
  border-bottom-color: var(--line-strong);
}

.section-heading h2 {
  font-size: 15px;
}

.waiting-list li,
.instructor {
  border-bottom-color: var(--line-strong);
}

.waiting-list button > span {
  font-size: 13px;
}

.waiting-list small,
.question-number,
.instructor > button {
  font-size: 10px;
}

.community-rule {
  border-color: var(--line-strong);
}

.following-note {
  border: 1px solid var(--orange-tint-line);
  font-size: 12px;
}

.admin-ad-panel--compact {
  min-height: 285px;
  aspect-ratio: 6 / 5;
}

/* Jobs */

.jobs-filter-panel {
  margin-top: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface-subtle);
}

.jobs-search-field {
  padding-left: 18px;
}

.jobs-filter-field:last-child {
  padding-right: 18px;
}

.jobs-result-bar {
  border-bottom-color: var(--line-strong);
}

.jobs-list {
  display: block;
  border-top: 2px solid var(--ink);
}

.jobs-card {
  padding: 23px 18px 17px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: var(--white);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.jobs-card:hover {
  background: var(--wash-hover);
}

.jobs-card--open {
  padding-right: 18px;
  padding-left: 18px;
  background: var(--surface-subtle);
  box-shadow: inset 3px 0 0 var(--orange);
}

.jobs-search-field > span,
.jobs-filter-field > span,
.jobs-category-tab span,
.jobs-category-badge,
.jobs-urgent-badge,
.jobs-new-badge,
.jobs-posted-at,
.jobs-meta-list dt,
.jobs-tags span,
.jobs-deadline,
.jobs-detail-facts span,
.jobs-saved-panel li span {
  font-size: 10px;
}

.jobs-meta-list dd,
.jobs-card-actions button,
.jobs-detail-columns li {
  font-size: 12px;
}

.jobs-summary,
.jobs-detail-description {
  color: var(--text-summary);
  font-size: 14px;
}

.jobs-saved-panel {
  border-color: var(--line-strong);
}

/* Studies and seminars */

.events-list {
  display: block;
  border-top: 2px solid var(--ink);
}

.events-card {
  padding: 18px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: var(--white);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.events-card:hover {
  background: var(--wash-hover);
}

.events-date {
  align-self: start;
  min-height: 82px;
  justify-content: center;
  padding: 10px 8px;
  border-top: 3px solid var(--orange);
  background: var(--orange-tint-2);
}

.events-meta,
.events-content dt,
.events-content dd,
.events-host,
.events-join span {
  font-size: 11px;
}

.events-content > p {
  color: var(--text-summary);
  font-size: 14px;
}

.events-join {
  align-self: stretch;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}

.events-date-list li {
  border-bottom-color: var(--line-strong);
}

.events-confirm-summary {
  border-color: var(--line-strong);
  background: var(--surface-subtle);
}

.events-confirm-summary dt,
.events-date-list p,
.events-date-empty p {
  font-size: 11px;
}

.events-days .events-day-button.has-event::after {
  width: 5px;
  height: 5px;
}

/* Public profiles and verification */

.profile-stats {
  background: var(--surface-subtle);
}

.profile-post {
  border-bottom-color: var(--line-strong);
}

.profile-post {
  padding-right: 12px;
  padding-left: 12px;
}

.profile-post:hover {
  background: var(--surface-subtle);
  box-shadow: inset 3px 0 0 var(--orange);
}

.profile-post-category,
.profile-post small,
.profile-side-note > span {
  font-size: 10px;
}

.profile-side-note p {
  font-size: 11px;
}

.profile-verification-proof strong,
.profile-verification-proof p,
.profile-verification-card .profile-verification-unverified,
.profile-verification-apply > p:first-child,
.profile-verification-apply .profile-verification-pending,
.profile-verification-modal-header span,
.profile-verification-field > span,
.profile-verification-dropzone > small,
.profile-verification-dropzone button,
.profile-verification-privacy p,
.profile-verification-submitted dt,
.profile-verification-submitted dd {
  font-size: 14px;
}

/* Ad editor and clip controls */

.admin-ad-panel__sponsor,
.admin-ad-panel__admin > span,
.admin-ad-panel__admin > button,
.ad-editor__header span,
.ad-editor__notice,
.ad-editor__session-note {
  font-size: 10px;
}

.clips-section .clips-sound-button,
.clips-section .clips-settings-button {
  min-height: 34px;
  font-size: 10px;
}

.clips-section .clips-settings-head span,
.clips-section .clips-playback-options legend,
.clips-section .clips-playback-option small,
.clips-section .clips-settings-panel > p,
.clips-section .clips-action b,
.clips-section .clips-action small,
.clips-section .clips-stepper small,
.clips-section .clips-author small,
.clips-section .clips-source-tab > span,
.clips-section .clips-source-tab small,
.clips-section .clips-source-panel > label:not(.clips-file-picker),
.clips-section .clips-source-panel > p,
.clips-section .clips-detected,
.clips-section .clips-file-picker > small,
.clips-section .clips-fields label,
.clips-section .clips-modal-foot p {
  font-size: 10px;
}

.clips-section .clips-action small,
.clips-section .clips-author small {
  color: #b5b5b5;
}

/* 작은 라벨 하한(2026-10-04). 뷰별 CSS 원본에 8~9px 로 박힌 라벨을 덮는다.
   한글이 들어가는 라벨은 11px 이상, 고정폭 글꼴이면 본문 글꼴로 바꾼다.
   9px 고정폭에서는 한글이 대체 글꼴로 그려져 '검색'이 '권색'처럼 뭉개졌다.
   라틴·숫자만 담는 장식 라벨은 10px 로만 올리고 글꼴은 둔다. 원본 시트는 손대지 않는다. */

.admin-ad-panel__sponsor,
.admin-ad-panel__admin > span,
.ad-editor__header span,
.community-rule > span,
.clips-cover-topline,
.clips-platform-label,
.join-student-note-label,
.profile-stats span,
.profile-side-note > span,
.jobs-search-field > span,
.jobs-filter-field > span,
.jobs-posted-at {
  font-family: inherit;
}

.clips-cover-topline,
.join-student-note-label,
.profile-side-note > span,
.jobs-search-field > span,
.jobs-filter-field > span {
  letter-spacing: 0.02em;
}

.admin-ad-panel__sponsor,
.admin-ad-panel__admin > span,
.admin-ad-panel__admin > button,
.ad-editor__header span,
.ad-editor__media-actions > span,
.ad-editor__notice,
.waiting-list small,
.instructor > button,
.community-rule > span,
.events-week span,
.events-calendar-note,
.clips-cover-topline,
.clips-platform-label,
.clips-source-link,
.clips-gesture-toggle,
.clips-section .clips-action b,
.clips-section .clips-stepper small,
.clips-section .clips-author small,
.comment-author > span,
.comment-author small,
.paste-zone small,
.join-progress-item,
.join-required,
.join-optional,
.join-help,
.join-count,
.join-student-note-label,
.profile-verified,
.profile-subject,
.profile-stats span,
.profile-post-category,
.profile-post small,
.profile-side-note > span,
.jobs-category-badge,
.jobs-urgent-badge,
.jobs-new-badge,
.jobs-posted-at,
.jobs-meta-list dt,
.jobs-tags span,
.jobs-deadline,
.jobs-detail-facts span,
.jobs-saved-panel li span,
.jobs-form-note,
.profile-verification-proof small,
.profile-verification-field > span b,
.profile-verification-dropzone label,
.profile-verification-privacy strong {
  font-size: 11px;
}

/* 검색·필터 칸은 높이가 고정(74px, 모바일 66px)이라 라벨 줄 높이를 줄여 입력칸 자리를 지킨다. */
.jobs-search-field > span,
.jobs-filter-field > span {
  font-size: 11px;
  line-height: 1.25;
}

.clips-embed-paused span,
.clips-modal-head span,
.clips-player-title i,
.clips-player-bar .clips-bar-upload-button > span:first-child,
.clips-player-bar .clips-sound-button > span:first-child,
.clips-player-bar .clips-settings-button > span:first-child,
.attachment-card > span,
.file-tile,
.attachment-card small,
.draft-attachment-list small,
.attachment-uploader-head span,
.join-progress-item b,
.join-role-number,
.jobs-category-tab span,
.jobs-side-heading > span,
.jobs-note-index,
.jobs-post-guide li::before,
.jobs-modal-header > div > span {
  font-size: 10px;
}

@media (min-width: 781px) {
  /* 모바일은 events.css 가 이미 11px 로 키운다. 데스크톱 9px 만 올린다. */
  .events-days .events-day-button {
    font-size: 10px;
  }
}

@media (min-width: 1081px) {
  .subject-rail {
    padding-right: 18px;
    border-right: 1px solid var(--line-strong);
  }

  .right-rail {
    padding-left: 24px;
    border-left: 1px solid var(--line-strong);
  }

  .profile-layout {
    gap: 52px;
  }

  .profile-sidebar {
    padding-left: 28px;
    border-left: 1px solid var(--line-strong);
  }
}

@media (min-width: 781px) {
  .events-card {
    grid-template-columns: 72px minmax(0, 1fr) 122px;
  }
}

@media (max-width: 1080px) {
  .right-rail {
    padding-top: 24px;
    border-top: 1px solid var(--line-strong);
  }
}

@media (max-width: 780px) {
  body {
    font-size: 15px;
  }

  .mobile-subjects {
    border-bottom-color: var(--ink);
  }

  .quick-compose {
    border-right: 0;
    border-left: 0;
  }

  .feed-toolbar {
    margin-top: 0;
    border-top: 0;
    border-right: 0;
    border-left: 0;
  }

  .post-item,
  .post-item:hover,
  .post-item.is-open {
    padding: 24px 18px 18px;
  }

  .post-title {
    font-size: 19px;
  }

  .post-content > p {
    font-size: 14px;
  }

  .right-rail {
    margin-top: 42px;
    padding: 32px 0 0;
    border-top: 8px solid var(--rule-band);
  }

  .right-rail .rail-section,
  .right-rail .community-rule,
  .right-rail .community-ad-slot {
    margin-right: 0;
    margin-left: 0;
  }

  .jobs-filter-panel {
    margin-top: 10px;
  }

  .jobs-card,
  .jobs-card--open {
    padding: 21px 15px 16px;
  }

  .events-card {
    padding: 16px;
  }

  .events-join {
    padding-top: 14px;
    padding-left: 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .profile-sidebar {
    padding-left: 0;
    border-left: 0;
  }

  .admin-ad-panel--compact {
    aspect-ratio: auto;
    min-height: 300px;
  }

  /* identity.css 모바일 규칙(8~9px, 활동 요약은 7px)을 같은 미디어쿼리에서 덮는다. */
  .join-progress-item,
  .profile-verified,
  .profile-subject,
  .profile-stats span {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .post-actions button {
    font-size: 10px;
  }

  /* '팔로우'·'내 글'은 한글 라벨이라 좁은 화면에서도 11px 아래로 내리지 않는다. */
  .post-follow-button,
  .my-post-label {
    font-size: 11px;
  }

  .events-card {
    padding: 14px;
  }
}

.ps-post-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.75;
}

/* 원본 profile.css는 보존하고 마지막 시트에서 안내와 조작 글자를 보강한다. */
.profile-side-note p,
.profile-verification-proof small,
.profile-verification-apply > button,
.profile-verification-form > p:first-child,
.profile-verification-field > span b,
.profile-verification-field > input,
.profile-verification-field > select,
.profile-verification-dropzone > strong,
.profile-verification-dropzone label,
.profile-verification-privacy strong,
.profile-verification-modal-actions button,
.profile-verification-submitted > button,
.profile-verification-submitted > p {
  font-size: 14px;
}
.profile-about-copy p { font-size: 16px; }
.profile-identity { min-width: 0; }
#profile-name { overflow-wrap: anywhere; }
#profile-name .verified-dot {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0;
  vertical-align: middle;
  place-items: center;
  font-size: 14px;
}

.ps-compose-fab { display: none; }
@media (max-width: 780px) {
  #ps-mobile-nav:not(:has(.mobile-login)) { grid-template-columns: repeat(4, 1fr); }
  body[data-ps-view="home"] #ps-compose,
  body[data-ps-view="home"] .quick-compose:not([data-ps-key="more"]) { display: none; }
  body[data-ps-view="home"] #ps-view-home { padding-bottom: 80px; }
  body[data-ps-view="home"] .ps-compose-fab {
    position: fixed;
    right: 16px;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 16px);
    z-index: 75;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    background: var(--orange);
    color: var(--on-orange);
    font-size: 16px;
    font-weight: 750;
  }
  body[data-ps-view="home"]:has([aria-modal="true"]) .ps-compose-fab { display: none; }
  .ps-compose-fab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
}

/* ── 움직임 골라 넣기 2차(지석 선택 2026-10-06) ──
   판서에는 --accent 가 없고 --orange 가 강조색이다. hover 는 진짜 hover 장치이면서
   마지막 입력이 터치가 아닐 때만, 키보드는 :focus-visible 이 같은 효과를 받는다. */

/* 15. 상단 메뉴: hover 때 글자만 주황. 현재 탭 밑줄(.active::after)은 그대로다. */
@media (hover: hover) {
  html:not([data-input="touch"]) .primary-nav button:hover {
    color: var(--orange-text);
  }
}

.primary-nav button:focus-visible {
  color: var(--orange-text);
}

/* 14. 글 목록: hover 때 옅은 주황 바탕 + 오른쪽으로 4px. 첫 렌더 때 한 줄씩 아래→위로 떠오른다
   (60ms 간격, 지연은 최대 10줄까지 — community.js 가 --mv-i 를 0~9 로 넣는다). */
.hl-row {
  transition: background-color .15s ease, transform .15s ease;
}

@media (hover: hover) {
  html:not([data-input="touch"]) .hl-row:not(.is-open):hover {
    background: color-mix(in srgb, var(--orange) 7%, transparent);
    transform: translateX(4px);
  }

  html:not([data-input="touch"]) .hl-row:hover .hl-title {
    color: var(--orange-text);
  }
}

.hl-row:not(.is-open):has(.hl-title:focus-visible) {
  background: color-mix(in srgb, var(--orange) 7%, transparent);
  transform: translateX(4px);
}

.hl-title:focus-visible {
  color: var(--orange-text);
}

.hl-list.mv-hl-enter .hl-row {
  animation: mv-hl-up .36s cubic-bezier(.2, .7, .2, 1) backwards;
  animation-delay: calc(var(--mv-i, 9) * 60ms);
}

@keyframes mv-hl-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* 13. 파일 고르는 칸: 풀다 화면의 점선 칸(MVKit.dropZone)과 같은 모양. */
.clips-file-picker,
.profile-verification-dropzone {
  border: 1.5px dashed var(--muted);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

@media (hover: hover) {
  html:not([data-input="touch"]) .clips-file-picker:hover,
  html:not([data-input="touch"]) .profile-verification-dropzone:hover {
    border-color: var(--orange);
    background: color-mix(in srgb, var(--orange) 4%, transparent);
  }
}

.clips-file-picker:focus-within,
.profile-verification-dropzone:focus-within {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--orange) 4%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .hl-row,
  .clips-file-picker,
  .profile-verification-dropzone {
    transition: none;
  }

  .hl-list.mv-hl-enter .hl-row {
    animation: none;
  }

  html:not([data-input="touch"]) .hl-row:not(.is-open):hover,
  .hl-row:not(.is-open):has(.hl-title:focus-visible) {
    transform: none;
  }
}

@media (forced-colors: active) {
  .clips-file-picker,
  .profile-verification-dropzone {
    border-color: CanvasText;
  }
}

/* 확정한 공용 움직임. 모바일에서 실제 하단에 붙는 모달만 시트 효과를 쓴다. */
.modal-backdrop .modal { animation: mv-panseo-modal .22s ease-out; }
.toast { animation: mv-panseo-toast .22s ease-out; }
@keyframes mv-panseo-modal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes mv-panseo-toast {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes mv-panseo-sheet {
  from { transform: translateY(100%); }
  to { transform: none; }
}
@media (max-width: 780px) {
  .modal-backdrop .modal { animation: mv-panseo-sheet .26s ease-out; }
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  animation: mv-panseo-field-shake .28s ease-out, mv-panseo-field-ring .36s ease-out;
}
@supports selector(input:user-invalid) {
  input:user-invalid, textarea:user-invalid, select:user-invalid {
    animation: mv-panseo-field-shake .28s ease-out, mv-panseo-field-ring .36s ease-out;
  }
}
@keyframes mv-panseo-field-shake {
  0%, 100% { transform: none; }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
@keyframes mv-panseo-field-ring {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop .modal, .toast, input, textarea, select { animation: none; }
  input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { animation: none; }
  @supports selector(input:user-invalid) {
    input:user-invalid, textarea:user-invalid, select:user-invalid { animation: none; }
  }
}

/* 승인된 주 행동 버튼 D. 독립 앱의 마지막 스타일에서만 연결한다. */
:is(.primary-button, .preview-login):not(.danger):not([aria-pressed]):not([role="switch"]) {
  transition: background-color .14s ease, border-color .14s ease, transform .2s ease, box-shadow .2s ease;
}
:is(.primary-button, .preview-login):not(.danger):not([aria-pressed]):not([role="switch"]):not(:disabled):not([aria-disabled="true"]):focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--orange) 30%, transparent);
}
@media (hover: hover) {
  html:not([data-input="touch"]) :is(.primary-button, .preview-login):not(.danger):not([aria-pressed]):not([role="switch"]):not(:disabled):not([aria-disabled="true"]):hover:not(:focus-visible) {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--orange) 30%, transparent);
  }
}
:is(.primary-button, .preview-login):is(:disabled, [aria-disabled="true"]) { transition: none; }
@media (prefers-reduced-motion: reduce) {
  :is(.primary-button, .preview-login):not(.danger):not([aria-pressed]):not([role="switch"]) { transition: none; }
  :is(.primary-button, .preview-login):not(.danger):not([aria-pressed]):not([role="switch"]):is(:hover, :focus-visible) { transform: none !important; }
}
@media (forced-colors: active) {
  :is(.primary-button, .preview-login):not(.danger):not([aria-pressed]):not([role="switch"]) { transition: none; }
  :is(.primary-button, .preview-login):not(.danger):not([aria-pressed]):not([role="switch"]):is(:hover, :focus-visible) { transform: none !important; box-shadow: none !important; }
}

/* 특수 창과 명시적인 주 행동에만 승인 모션을 연결한다. 일반 .modal 효과와 겹치지 않는다. */
.jobs-modal-backdrop > .jobs-modal,
.profile-verification-backdrop > .profile-verification-modal,
.join-backdrop > .join-modal,
.clips-modal-backdrop > .clips-modal,
.clips-settings-panel,
.ad-editor > .ad-editor__dialog { animation: mv-panseo-modal .22s ease-out; }
@media (max-width: 780px) {
  .jobs-modal-backdrop > .jobs-modal,
  .profile-verification-backdrop > .profile-verification-modal,
  .join-backdrop > .join-modal,
  .clips-modal-backdrop > .clips-modal { animation: mv-panseo-sheet .26s ease-out; }
}
@media (max-width: 680px) {
  .ad-editor > .ad-editor__dialog { animation: mv-panseo-sheet .26s ease-out; }
}
:is(.jobs-register-button, .jobs-form-submit, .join-submit, .clips-submit-button):not(.danger):not(.danger-button):not(.is-danger):not(.is-delete):not([aria-pressed]):not([role="switch"]) {
  transition: transform .2s ease, box-shadow .2s ease;
}
:is(.jobs-register-button, .jobs-form-submit, .join-submit, .clips-submit-button):not(.danger):not(.danger-button):not(.is-danger):not(.is-delete):not([aria-pressed]):not([role="switch"]):not(:disabled):not([aria-disabled="true"]):focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--orange) 30%, transparent);
}
.ps-submit-arrow { display: inline-block; transition: transform .2s ease; }
.clips-submit-button:not(:disabled):not([aria-disabled="true"]):focus-visible .ps-submit-arrow { transform: translateX(5px); }
@media (hover: hover) and (pointer: fine) {
  html:not([data-input="touch"]) :is(.jobs-register-button, .jobs-form-submit, .join-submit, .clips-submit-button):not(.danger):not(.danger-button):not(.is-danger):not(.is-delete):not([aria-pressed]):not([role="switch"]):not(:disabled):not([aria-disabled="true"]):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--orange) 30%, transparent);
  }
  html:not([data-input="touch"]) .clips-submit-button:not(:disabled):not([aria-disabled="true"]):hover .ps-submit-arrow { transform: translateX(5px); }
}
:is(.jobs-register-button, .jobs-form-submit, .join-submit, .clips-submit-button):is(:disabled, [aria-disabled="true"]) { transform: none; box-shadow: none; transition: none; }
.ps-like-count { display: inline-block; }
.ad-editor__media-zone.ps-drag-over { border: 1.5px dashed var(--orange); background: color-mix(in srgb, var(--orange) 6%, transparent); }
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .jobs-modal-backdrop > .jobs-modal,
  .profile-verification-backdrop > .profile-verification-modal,
  .join-backdrop > .join-modal,
  .clips-modal-backdrop > .clips-modal,
  .clips-settings-panel,
  .ad-editor > .ad-editor__dialog { animation: none; }
  :is(.jobs-register-button, .jobs-form-submit, .join-submit, .clips-submit-button), .ps-submit-arrow { transition: none !important; transform: none !important; box-shadow: none !important; }
  .modal-backdrop .modal, .toast { animation: none; }
}
@media (forced-colors: active) {
  .ad-editor__media-zone.ps-drag-over { border-color: Highlight; background: Canvas; }
}

/* ── 레이아웃 점검 판서 묶음(2026-10-19) ──
   잠금 이식본(jobs·events·clips·profile·identity·ads)은 건드리지 않고 여기서만 덮는다.
   #ps-shell 접두로 이식본·위 규칙의 클래스 선택자보다 확실히 이긴다.
   1) 실제로 읽는 글자는 12px 하한. 장식 번호(01·02)·영문 눈썹·aria-hidden 기호·화면 밖 텍스트는 제외.
   2) 폭 768 이하 터치 대상 44px. 목록 행 안의 제목·작성자 글자 링크는 행 밀도 설계라 제외.
   3) 클립 상단 컨트롤 라벨이 15px 기호 칸(.clips-sound-button span)에 갇혀 접히던 것을 푼다.
      430 이하는 원본 의도대로 라벨을 숨기고 아이콘 단추(이름은 aria-label)로 둔다. */
#ps-shell :is(
  .admin-ad-panel__sponsor,
  .admin-ad-panel__cta,
  .admin-ad-panel__cta > span,
  .hl-line > .hl-kind,
  .teacher-chip,
  .author-copy > small,
  .section-heading > button,
  .waiting-list li button > small,
  .rail-section > .no-comments,
  .discussion > .no-comments,
  .community-rule > span,
  .community-rule > p,
  .community-rule > button,
  .jobs-count-block > span,
  .jobs-category-tab > span,
  .jobs-search-field > span,
  .jobs-filter-field > span,
  .jobs-empty-state > button,
  .jobs-side-heading > span,
  .jobs-saved-panel > p,
  .jobs-profile-note > p,
  .jobs-profile-note > button,
  .jobs-profile-note > button > span,
  .jobs-post-guide li,
  .site-footer p,
  .site-footer nav button,
  .events-empty-state > button,
  .events-calendar-title > span,
  .events-week > span,
  .events-day-button,
  .events-calendar-note,
  .events-calendar > button,
  .clips-player-bar .clips-bar-upload-button,
  .clips-player-bar .clips-sound-button,
  .clips-player-bar .clips-settings-button,
  .clips-player-bar .clips-control-label,
  .clips-cover-topline > span,
  .clips-cover > p,
  .profile-share-top,
  .profile-follow,
  .profile-share,
  .profile-stats span,
  .profile-post:not(.profile-comment) > small,
  .clips-player-title,
  .clips-player-title i,
  .clips-stepper small,
  .profile-post-category,
  .profile-verification-card > span,
  .discussion-head > span,
  .comment-form > label,
  .comment-form > button,
  .post-actions > button,
  .post-actions .ps-like-count,
  .post-actions > .my-post-label,
  .post-actions > .owner-action
) {
  font-size: 12px;
}
/* 이름 h1 의 좁은 자간(-0.09em)을 물려받아 '강사' 두 글자가 겹쳐 보였다. */
#ps-shell #profile-name .teacher-chip { letter-spacing: 0; }
/* 클립 작성자 줄의 강사 딱지가 '.clips-author > span'(29px 흰 원 아바타) 모양을 받아 원 안에서 잘렸다.
   미디어 위라 외곽선 알약으로 되돌린다. */
#ps-shell .clips-author > .teacher-chip {
  display: inline-block;
  justify-self: start;
  width: auto;
  height: auto;
  margin-left: 0;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 20px;
}
@media (max-width: 780px) {
  #ps-shell #ps-mobile-nav button,
  #ps-shell .profile-stats strong { font-size: 12px; }
}
/* 프로필 뒤로가기는 781 이상에서만 글자를 보인다(이하는 화살표 아이콘 단추). */
@media (min-width: 781px) {
  #ps-shell .profile-back { font-size: 12px; }
}

#ps-shell .clips-player-bar .clips-control-label {
  display: inline;
  width: auto;
  min-width: 0;
  height: auto;
  color: inherit;
  font-family: inherit;
  letter-spacing: 0;
  white-space: nowrap;
}
#ps-shell .clips-player-bar :is(.clips-bar-upload-button, .clips-sound-button, .clips-settings-button) {
  width: auto;
  white-space: nowrap;
}

@media (max-width: 768px) {
  #ps-shell :is(
    #ps-wordmark,
    #ps-compose,
    .mobile-kinds > button,
    .hl-feed-select,
    .hl-sort > button,
    .section-heading > button,
    .community-rule > button,
    .jobs-filter-field > select,
    .jobs-empty-state > button,
    .jobs-profile-note > button,
    .site-footer nav button,
    .events-hero > .primary-button,
    .events-kind-tabs > button,
    .events-toolbar > select,
    .events-empty-state > button,
    .events-calendar-nav > button,
    .events-calendar > button,
    .clips-back-button,
    .clips-player-bar .clips-bar-upload-button,
    .clips-player-bar .clips-sound-button,
    .clips-player-bar .clips-settings-button,
    .profile-back,
    .profile-share-top,
    .profile-follow,
    .profile-share,
    .profile-verification-apply > button,
    .comment-form > button
  ) {
    min-width: 44px;
    min-height: 44px;
  }
  /* 글자 링크형 단추는 글자 크기를 그대로 두고 높이만 세로 가운데로 늘린다. */
  #ps-shell :is(
    #ps-wordmark,
    .section-heading > button,
    .community-rule > button,
    .jobs-profile-note > button,
    .site-footer nav button,
    .events-calendar > button,
    .profile-back,
    .profile-share-top
  ) {
    display: inline-flex;
    align-items: center;
  }
  /* 탭이 44로 넓어진 만큼 간격을 줄이고, 좁으면 셀렉트와 겹치지 않고 탭 줄만 가로로 민다. */
  #ps-shell .events-kind-tabs { min-width: 0; gap: 6px; }
  #ps-shell .events-kind-tabs > button { justify-content: center; }
  #ps-shell .events-calendar-nav > button { width: 44px; height: 44px; }
  /* 달력 날짜는 7칸 격자 폭을 따른다(320 폭에서 44 폭은 격자를 넘친다). 높이만 44. */
  #ps-shell .events-day-button { min-height: 44px; }
}
/* 360 폭에서 날짜 칸이 44 폭을 갖도록 달력 좌우 안쪽 여백을 줄인다(320 은 격자상 38 이 한계). */
@media (max-width: 420px) {
  #ps-shell .events-calendar { padding-right: 10px; padding-left: 10px; }
}

@media (max-width: 430px), (max-height: 620px) {
  #ps-shell .clips-player-bar .clips-control-label { display: none; }
  #ps-shell .clips-player-bar :is(.clips-bar-upload-button, .clips-sound-button, .clips-settings-button) {
    width: 44px;
    min-height: 44px;
    padding: 5px;
  }
  #ps-shell .clips-back-button { min-height: 44px; }
}

/* 커버 전용 클립: 전체화면 재정의가 '판서 커버' 딱지를 top 70 에 올려 커버 첫 줄(판서 / SHORT CLIP)을
   덮었다. 딱지가 붙은 커버만 첫 줄을 딱지 아래로 내린다. */
#ps-shell .clips-cover:has(+ .clips-platform-label) {
  padding-top: max(116px, calc(env(safe-area-inset-top) + 104px));
}

/* 채용 필터(모바일): 끝에 붙은 '안정화' 규칙(.jobs-search-field 왼쪽 18px·마지막 칸 오른쪽 18px)이
   780 이하 정렬(왼쪽 0)을 이겨 검색칸만 안으로 들어가고 마지막 셀렉트 화살표가 어긋났다. */
@media (max-width: 780px) {
  #ps-shell .jobs-search-field { padding-left: 0; }
  #ps-shell .jobs-filter-field:last-child { padding-right: 0; }
}
