/* 底部面板里的内容：⋯ 面板、头像设置、摘要 */

/* 模型单选 */
.radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #CDBFA6; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.radio.on { border-color: #E39A63; }
.radio.on::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E39A63; }
.model-id { font-family: var(--font-mono); font-size: 12.5px; }
.row-note { margin-left: auto; font-family: var(--font-hand); font-size: 12px; color: var(--ink-soft); }

/* 上下文用量 */
.ctx-bar { position: relative; height: 10px; border-radius: 6px; background: #EDE2CC; overflow: hidden; }
.ctx-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #F2C6A2, #E39A63); border-radius: 6px; }
.ctx-bar b { position: absolute; top: -2px; bottom: -2px; width: 1.5px; background: #8A7B6A; }
.ctx-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); }
.th-row { display: flex; align-items: center; gap: 8px; }
.th-row .th { height: 28px; min-width: 52px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--rule); font-family: var(--font-latin); font-size: 12px; color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; }
.th-row .th.on { border-color: #E39A63; background: var(--accent-wash); color: var(--ink); }
.two-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* 背景缩略图 */
.bg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bg-opt { display: flex; flex-direction: column; align-items: center; gap: 5px; font-family: var(--font-song); font-size: 10.5px; color: var(--ink-soft); }
.bg-opt .thumb { width: 100%; height: 58px; border-radius: 10px; border: 1px solid var(--rule); object-fit: cover; background: #F6EBCF; display: flex; align-items: center; justify-content: center; }
.bg-opt.on .thumb { border: 2px solid #E39A63; }
.bg-opt.on { color: var(--ink); }
.bg-opt .thumb.dashed { border-style: dashed; border-color: var(--rule-dash); }
.fade-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-soft); }
.fade-row input[type="range"] { flex: 1; accent-color: #E39A63; }

/* 底部四个小功能 */
.mini-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mini-actions button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--font-song); font-size: 11px; color: var(--ink-soft); }
.mini-actions svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* 头像设置 */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px 14px; border: 1px solid var(--rule); border-radius: 18px; }
.person.on { border-color: #E39A63; background: rgba(248, 225, 204, .45); }
.person .ava { position: relative; }
.person .ava img, .person .ava .empty { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule); }
.person .ava .empty { display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--rule-dash); color: var(--ink-faint); font-size: 26px; }
.person .ava .cam { position: absolute; right: 0; bottom: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 2px solid var(--paper-card); display: inline-flex; align-items: center; justify-content: center; }
.person .who { font-family: var(--font-song); font-size: 11px; letter-spacing: .3em; color: var(--ink-soft); }
.person input { width: 100%; text-align: center; border: 0; border-bottom: 1px solid var(--rule); background: transparent; outline: none; font-family: var(--font-song); font-size: 15px; letter-spacing: .2em; padding: 4px 0; }
.three-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.three-btns .btn { height: 44px; padding: 0 8px; letter-spacing: .15em; }

/* 裁头像 */
.crop { position: relative; width: 240px; height: 240px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #2E2622; touch-action: none; }
.crop img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.crop::after { content: ""; position: absolute; inset: 20px; border-radius: 50%; box-shadow: 0 0 0 999px rgba(30, 24, 20, .55); border: 1.5px solid rgba(251, 245, 230, .9); pointer-events: none; }

/* 摘要 */
.summary { padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--paper-card); font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
