/* 人物卡（docs/roadmap/specs/CHARACTERS.md §9）。全站深色那一套变量；主题色只给主按钮与选中态。 */

.ch-page { max-width: 1180px; margin: 0 auto; padding: 0 0 3rem; }
.ch-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .5rem 0 .25rem; }
.ch-h1 { margin: 0; font-size: 1.35rem; font-weight: 700; text-wrap: balance; }
.ch-intro { margin: 0 0 1rem; color: var(--text-muted); font-size: .88rem; }
.ch-flash { margin: 0 0 1rem; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 8px; background: var(--content-bg); font-size: .85rem; }
.ch-back { display: inline-block; margin: .25rem 0 .9rem; color: var(--text-muted); font-size: .85rem; text-decoration: none; }
.ch-back:hover { color: var(--text); }

/* 按钮 */
.ch-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 40px; padding: 0 1rem; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: .88rem; text-decoration: none; white-space: nowrap; cursor: pointer; }
.ch-btn:hover { background: var(--bg-hover); }
.ch-btn:focus-visible, .ch-chip:focus-visible, .ch-pill:focus-visible, .ch-linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ch-btn--primary { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 600; }
.ch-btn--primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.ch-btn--danger { color: var(--danger, #ff6b81); }
.ch-btn--danger:hover { border-color: var(--danger, #ff6b81); background: transparent; }
.ch-btn--sm { min-height: 32px; padding: 0 .75rem; font-size: .78rem; }
.ch-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ch-linkbtn { min-height: 32px; padding: 0 .2rem; border: 0; background: transparent; color: var(--accent-hover); font: inherit; font-size: .8rem; cursor: pointer; }
.ch-linkbtn:hover { text-decoration: underline; }
.ch-icon-btn { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }
.ch-icon-btn:hover { background: var(--bg-hover); color: var(--text); }
.ch-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* 筛选药丸 */
.ch-pills { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1rem; }
.ch-pill { display: inline-flex; align-items: center; gap: .3rem; min-height: 32px; padding: 0 .8rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: .8rem; text-decoration: none; }
.ch-pill:hover { background: var(--bg-hover); color: var(--text); }
.ch-pill[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 600; }
.ch-pill-n { font-variant-numeric: tabular-nums; opacity: .8; }

/* 网格与卡片（§9.2 / §9.4） */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.ch-card { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.ch-card-link { position: relative; display: block; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; }
.ch-cover { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: var(--search-bg); }
.ch-cover img { position: absolute; max-width: none; height: auto; display: block; }
.ch-cover--empty { border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; }
.ch-cover-empty { color: var(--text-muted); font-size: .8rem; }
.ch-card-shade { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: .1rem; padding: 2.2rem .7rem .6rem; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0)); color: #fff; }
.ch-card-name { font-weight: 700; font-size: .95rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ch-card-facts { font-size: .74rem; opacity: .85; }
.ch-card-link:hover .ch-cover { outline: 2px solid var(--accent); outline-offset: -2px; }
.ch-card-foot { display: flex; flex-direction: column; gap: .2rem; padding: 0 .1rem; }
.ch-card-row { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.ch-card-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .85rem; font-weight: 600; }
.ch-card-quote { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-muted); font-size: .76rem; font-style: italic; }
.ch-card-actions { display: flex; gap: .35rem; margin: 0; font-size: .76rem; color: var(--text-muted); }
.ch-card-actions a { color: var(--accent-hover); text-decoration: none; }
.ch-card-actions a:hover { text-decoration: underline; }
.ch-badge { flex: 0 0 auto; padding: 0 .4rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: .68rem; line-height: 1.5; }
.ch-badge--public { border-color: var(--accent); color: var(--accent-hover); }
.ch-badge--draft { border-style: dashed; }
.ch-more { margin: 1.25rem 0 0; text-align: center; }

.ch-empty { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 3.5rem 1rem; border: 1px dashed var(--border); border-radius: 16px; text-align: center; }
.ch-empty-title { margin: 0; font-size: 1.1rem; font-weight: 700; }
.ch-empty-hint { margin: 0 0 .4rem; max-width: 30em; color: var(--text-muted); font-size: .85rem; }

/* 详情（§9.3） */
.ch-show { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }
.ch-sheet { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--search-bg); cursor: zoom-in; }
.ch-sheet img { display: block; width: 100%; height: auto; }
.ch-sheet--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; aspect-ratio: 16 / 9; border-style: dashed; color: var(--text-muted); cursor: default; }
.ch-sheet--empty p { margin: 0; }
.ch-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--content-bg); }
.ch-name { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.ch-facts { margin: 0; color: var(--text-muted); font-size: .85rem; }
.ch-quote { margin: 0; color: var(--accent-hover); font-style: italic; font-size: .92rem; }
.ch-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.ch-tag { padding: .1rem .5rem; border-radius: 999px; background: var(--bg-hover); color: var(--text); font-size: .74rem; text-decoration: none; }
a.ch-tag:hover { background: var(--bg-active); }
.ch-side-sec { padding-top: .6rem; border-top: 1px solid var(--border); }
.ch-sec { margin: 0 0 .3rem; font-size: .78rem; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; }
.ch-text { margin: 0; font-size: .88rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-side-actions { display: flex; flex-direction: column; gap: .5rem; padding-top: .7rem; border-top: 1px solid var(--border); }
.ch-side-actions form { margin: 0; }
.ch-note { margin: 0; color: var(--text-muted); font-size: .8rem; }
.ch-note--warn { padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 8px; background: var(--content-bg); color: var(--text); }
.ch-note--warn a { color: var(--accent-hover); }

.ch-lightbox { position: fixed; inset: 0; z-index: 450; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, .9); }
.ch-lightbox[hidden] { display: none; }
.ch-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ch-lightbox-close { position: absolute; top: .75rem; right: .75rem; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.2rem; cursor: pointer; }

/* 向导（§9.5） */
.ch-wiz { max-width: 640px; margin: 0 auto; padding: 0 0 6rem; }
.ch-wiz--wide { max-width: 960px; }
.ch-wiz-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .5rem 0 1rem; }
.ch-wiz-exit { color: var(--text-muted); font-size: .85rem; text-decoration: none; }
.ch-wiz-exit:hover { color: var(--text); }
.ch-wiz-title { font-weight: 700; }
.ch-steps { display: flex; gap: .4rem; margin: 0 0 1.5rem; padding: 0; list-style: none; counter-reset: none; }
.ch-step { flex: 1; min-width: 0; }
.ch-step > a, .ch-step > span { display: flex; flex-direction: column; gap: .35rem; padding-top: .55rem; border-top: 3px solid var(--border); color: var(--text-muted); font-size: .78rem; text-decoration: none; }
.ch-step i { font-style: normal; font-variant-numeric: tabular-nums; font-size: .7rem; }
.ch-step--done > a, .ch-step--done > span { border-top-color: var(--accent); color: var(--text); }
.ch-step--current > span { border-top-color: var(--accent); color: var(--text); font-weight: 700; }
.ch-step > a:hover { color: var(--accent-hover); }
.ch-steps-compact { display: none; margin: 0 0 1rem; color: var(--text-muted); font-size: .82rem; }

.ch-wiz-form { display: flex; flex-direction: column; gap: 1.3rem; }
.ch-field { display: flex; flex-direction: column; gap: .4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.ch-label { margin: 0; padding: 0; font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.ch-label--inline { align-self: center; margin-right: .2rem; }
.ch-req { color: var(--danger, #ff6b81); font-weight: 600; }
.ch-hint, .ch-hint-inline { margin: 0; color: var(--text-muted); font-size: .75rem; font-weight: 400; }
.ch-error { margin: 0; color: var(--danger, #ff6b81); font-size: .8rem; }
.ch-error-top { margin: 0; padding: .6rem .8rem; border: 1px solid var(--danger, #ff6b81); border-radius: 8px; color: var(--danger, #ff6b81); font-size: .85rem; }
.ch-input, .ch-select { width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 8px; background: var(--search-bg); color: var(--text); font: inherit; font-size: 1rem; }
.ch-input:focus, .ch-select:focus { outline: none; border-color: var(--accent); }
textarea.ch-input { resize: vertical; line-height: 1.6; }
.ch-input--short { max-width: 14rem; }
.ch-select--sm { width: auto; min-height: 36px; padding: 0 .6rem; font-size: .85rem; }
.ch-count { align-self: flex-end; margin-top: -.2rem; color: var(--text-muted); font-size: .72rem; font-variant-numeric: tabular-nums; }

.ch-seg { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; border: 0; }
.ch-seg-item, .ch-chip-radio { position: relative; }
.ch-seg-item input, .ch-chip-radio input, .ch-style input { position: absolute; opacity: 0; pointer-events: none; }
.ch-seg-item span, .ch-chip-radio > span { display: inline-flex; align-items: center; gap: .25rem; min-height: 40px; padding: 0 1rem; border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); font-size: .88rem; cursor: pointer; }
.ch-seg--sm .ch-seg-item span { min-height: 36px; padding: 0 .85rem; }
.ch-seg-item input:checked + span, .ch-chip-radio input:checked + span { border-color: var(--accent); background: var(--bg-active); color: var(--text); font-weight: 600; }
.ch-seg-item input:focus-visible + span, .ch-chip-radio input:focus-visible + span, .ch-style input:focus-visible + .ch-style-cover { outline: 2px solid var(--accent); outline-offset: 2px; }
.ch-seg-item.is-disabled span { opacity: .45; cursor: not-allowed; }
.ch-zodiac { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.ch-zodiac .ch-chip-radio > span { width: 100%; justify-content: center; padding: 0 .4rem; border-radius: 999px; font-size: .82rem; }

.ch-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0; }
.ch-chips-label { color: var(--text-muted); font-size: .75rem; margin-right: .15rem; }
.ch-chip { min-height: 32px; padding: 0 .7rem; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text-muted); font: inherit; font-size: .8rem; cursor: pointer; }
.ch-chip:hover { background: var(--bg-hover); color: var(--text); }
.ch-chip.is-on { border-color: var(--accent); background: var(--bg-active); color: var(--text); }
.ch-chip-groups { display: flex; flex-direction: column; gap: .5rem; }
.ch-chip-group { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: start; gap: .4rem; }
.ch-chip-group > .ch-chips-label { padding-top: .45rem; }

.ch-preview { padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 8px; background: var(--content-bg); }
.ch-preview-label { margin: 0 0 .3rem; color: var(--text-muted); font-size: .75rem; font-weight: 600; }
.ch-preview-text { margin: 0; font-size: .92rem; line-height: 1.6; overflow-wrap: anywhere; }

.ch-wiz-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem max(16px, calc((100vw - 960px) / 2)); border-top: 1px solid var(--border); background: var(--content-bg); }
.ch-wiz-bar-end { display: flex; gap: .5rem; }

/* 第 ④ 步 */
.ch-sheet-step { display: flex; flex-direction: column; gap: 1rem; }
.ch-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .7rem; }
.ch-style { position: relative; display: flex; flex-direction: column; gap: .35rem; cursor: pointer; }
.ch-style-cover { display: block; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--search-bg); outline: 2px solid transparent; outline-offset: -2px; }
.ch-style-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-style input:checked + .ch-style-cover { outline-color: var(--accent); }
.ch-style input:checked ~ .ch-style-name { color: var(--text); font-weight: 600; }
.ch-style-name { color: var(--text-muted); font-size: .8rem; }
.ch-style-name em { margin-left: .25rem; padding: 0 .3rem; border-radius: 4px; background: var(--bg-active); font-style: normal; font-size: .68rem; }
.ch-style.is-locked { opacity: .55; cursor: not-allowed; }
.ch-gen-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; }
.ch-gen-row [data-ch-generate] { margin-left: auto; min-width: 9rem; }
.ch-price { display: inline-flex; align-items: center; gap: .3rem; color: var(--text-muted); font-size: .85rem; }
.ch-price .coin-num { font-variant-numeric: tabular-nums; }
.ch-prompt-line { margin: 0; color: var(--text-muted); font-size: .78rem; overflow-wrap: anywhere; }
.ch-prompt-line span { font-weight: 600; }
.ch-sec-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.ch-sec-row .ch-sec { margin: 0; }
.ch-results { display: flex; flex-direction: column; gap: .8rem; }
.ch-job { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.ch-out { position: relative; display: flex; flex-direction: column; gap: .4rem; }
.ch-out img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border: 1px solid var(--border); border-radius: 10px; background: var(--search-bg); }
.ch-out.is-current img { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -2px; }
.ch-out .ch-btn { align-self: flex-start; }
.ch-out.is-current .ch-btn { border-color: var(--accent); color: var(--accent-hover); cursor: default; }
.ch-out--pending { justify-content: center; align-items: center; gap: .7rem; aspect-ratio: 16 / 9; border: 1px dashed var(--border); border-radius: 10px; }
.ch-out-status { color: var(--text-muted); font-size: .85rem; text-align: center; padding: 0 1rem; }
.ch-progress { display: block; width: 50%; height: 4px; border-radius: 999px; background: var(--border); overflow: hidden; }
.ch-progress span { display: block; width: 35%; height: 100%; background: var(--accent); animation: ch-indet 1.4s ease-in-out infinite; }
@keyframes ch-indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.ch-need-sheet { text-align: right; }

/* 弹层 */
.ch-dialog { position: fixed; inset: 0; z-index: 430; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ch-dialog[hidden] { display: none; }
.ch-dialog-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); }
.ch-dialog-panel { position: relative; display: flex; flex-direction: column; gap: .8rem; width: min(980px, 100%); max-height: 92vh; padding: 0 1.1rem 1.1rem; overflow-y: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--content-bg); }
.ch-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: .7rem 0 .6rem; border-bottom: 1px solid var(--border); background: var(--content-bg); }
.ch-dialog-title { margin: 0; font-size: .95rem; font-weight: 700; }
.ch-dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; }
.ch-crop { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 1rem; align-items: start; }
.ch-crop-stage { position: relative; user-select: none; touch-action: none; line-height: 0; }
.ch-crop-stage img { display: block; width: 100%; height: auto; border-radius: 8px; }
.ch-crop-box { position: absolute; border: 2px solid #fff; border-radius: 4px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); cursor: move; }
.ch-crop-handle { position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; background: var(--accent); cursor: nwse-resize; }
.ch-crop-stage { overflow: hidden; border-radius: 8px; }
.ch-crop-side { display: flex; flex-direction: column; gap: .4rem; }
.ch-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: max-content; gap: .7rem; }
.ch-pick-grid .cd-img { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--search-bg); overflow: hidden; cursor: pointer; color: inherit; font: inherit; }
.ch-pick-grid .cd-img:hover { border-color: var(--accent); }
.ch-pick-grid .cd-img-media { position: relative; display: block; width: 100%; aspect-ratio: 7 / 9; overflow: hidden; }
.ch-pick-grid .cd-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ch-pick-grid .cd-img-name { display: block; padding: .35rem .5rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-muted); font-size: .74rem; text-align: left; }
.ch-pick-grid .cd-img-badge { position: absolute; top: 6px; left: 6px; padding: .05rem .4rem; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .68rem; }

/* 第 ⑤ 步 */
.ch-done { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.ch-done-info { display: flex; flex-direction: column; gap: .5rem; }

/* 作者主页上那一排：一行横滑，不把作品墙往下推太多。 */
.ch-grid--row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 180px; overflow-x: auto; padding-bottom: .4rem; }
.profile-characters { margin-bottom: 1rem; }

/* 第二期：广场、相册、点赞收藏 */
.ch-filters { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 1rem; }
.ch-filters .ch-pills { margin: 0; }
.ch-pills--tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ch-pills--tags::-webkit-scrollbar { display: none; }
.ch-pill--tag { flex: 0 0 auto; }
.ch-pill--tag[aria-current="page"] { border-color: var(--accent); background: var(--bg-active); color: var(--text); }
.ch-cover-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0a0a10; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
@media (hover: hover) { .ch-card-link:hover .ch-cover-full { opacity: 1; } .ch-card-link:hover .ch-card-shade { opacity: 0; } }
.ch-card-shade { transition: opacity .2s ease; }
.ch-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0; font-size: .74rem; color: var(--text-muted); }
.ch-card-tags { display: flex; gap: .35rem; min-width: 0; overflow: hidden; white-space: nowrap; }
.ch-card-likes { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.ch-card-author { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-muted); font-size: .72rem; }

.ch-album { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.2rem; }
.ch-album .ch-sec-row { border-top: 0; padding-top: 0; }
.ch-album-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.ch-photo { position: relative; }
.ch-photo-open { display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--search-bg); cursor: zoom-in; }
.ch-photo-open img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.ch-photo-tools { position: absolute; inset: auto 4px 4px 4px; display: none; justify-content: space-between; gap: 4px; }
.ch-album.is-managing .ch-photo-tools { display: flex; }
.ch-album.is-managing .ch-photo { cursor: grab; }
.ch-album.is-managing .ch-photo.is-dragging { opacity: .4; }
.ch-album.is-managing .ch-photo-open { pointer-events: none; outline: 1px dashed var(--border); }
.ch-photo-btn { width: 30px; height: 30px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .9rem; cursor: pointer; }
.ch-photo-btn:hover { background: var(--accent); }
.ch-photo-btn--danger:hover { background: var(--danger, #ff6b81); }

.ch-react { display: flex; flex-direction: column; gap: .5rem; }
.ch-author { color: var(--text); font-size: .85rem; text-decoration: none; }
.ch-author:hover { color: var(--accent-hover); }
.ch-react-btn b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ch-react-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--bg-active); color: var(--text); }
.ch-check { display: flex; align-items: center; gap: .5rem; font-size: .88rem; cursor: pointer; }
.ch-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.ch-dialog-actions--sticky { position: sticky; bottom: -1.1rem; align-items: center; justify-content: space-between; margin: 0 -1.1rem -1.1rem; padding: .7rem 1.1rem; border-top: 1px solid var(--border); background: var(--content-bg); }
.ch-pick-grid .cd-img.is-picked { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -2px; }
.ch-pick-grid .cd-img.is-picked::after { content: '✓'; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; line-height: 22px; text-align: center; }

@media (max-width: 640px) {
    .ch-album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ch-album .ch-photo-tools { display: flex; }
    .ch-album:not(.is-managing) .ch-photo-tools { display: none; }
}

@media (max-width: 991px) {
    .ch-show { grid-template-columns: minmax(0, 1fr); }
    .ch-side { position: static; }
}

@media (max-width: 640px) {
    .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .ch-steps { display: none; }
    .ch-steps-compact { display: block; padding-bottom: .5rem; border-bottom: 2px solid var(--accent); }
    .ch-zodiac { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ch-wiz-bar { padding: .6rem 16px; }
    .ch-wiz-bar > .ch-btn, .ch-wiz-bar-end { flex: 1; }
    .ch-wiz-bar-end .ch-btn { flex: 1; }
    .ch-job { grid-template-columns: minmax(0, 1fr); }
    .ch-gen-row [data-ch-generate] { width: 100%; margin-left: 0; }
    .ch-crop { grid-template-columns: minmax(0, 1fr); }
    .ch-crop-side { flex-direction: row; align-items: center; }
    .ch-crop-side .ch-cover { width: 90px; }
    .ch-dialog { padding: 0; align-items: flex-end; }
    .ch-dialog-panel { max-height: 92vh; border-radius: 16px 16px 0 0; }
    .ch-done { grid-template-columns: 120px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .ch-progress span { animation: none; width: 100%; opacity: .5; }
}
