/* 屏里的内容。面板 246×438，对应真屏 684×1216。位置按官方正面渲染图量。 */
.panel { font-family: "PingFang SC", "Avenir Next", sans-serif; }
.panel .note { margin: 0; font-size: 11px; line-height: 1.45; color: #555; }

.bar { height: 26px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; padding: 0 8px; font-size: 11px; border-bottom: 1px solid #111; }
.bar .c { text-align: center; }
.bar .right { display: flex; align-items: center; gap: 4px; }
.sig { width: 15px; height: 12px; display: inline-flex; align-items: flex-end; gap: 1px; cursor: pointer; }
.sig b { width: 2px; background: #111; }
.sig b:nth-child(1) { height: 3px; }
.sig b:nth-child(2) { height: 6px; }
.sig b:nth-child(3) { height: 9px; }
.sig b:nth-child(4) { height: 12px; }
i.wifi { width: 14px; height: 11px; cursor: pointer; background:
  radial-gradient(circle at 50% 100%, transparent 2px, #111 2.5px, #111 3.5px, transparent 4px),
  radial-gradient(circle at 50% 120%, transparent 5px, #111 5.5px, #111 6.5px, transparent 7px),
  radial-gradient(circle at 50% 140%, transparent 8px, #111 8.5px, #111 9.5px, transparent 10px);
}
.batt { width: 16px; height: 9px; border: 1px solid #111; border-radius: 1px; position: relative; box-sizing: border-box; }
.batt::before { content: ""; position: absolute; right: -3px; top: 2px; width: 2px; height: 3px; background: #111; }
.batt::after { content: ""; position: absolute; left: 1px; top: 1px; bottom: 1px; background: #111; width: calc(var(--fill, 70%) ); }
.batt[data-fill="0"]::after { width: 0; }
.batt[data-fill="1"]::after { width: 3px; }
.batt[data-fill="2"]::after { width: 6px; }
.batt[data-fill="3"]::after { width: 9px; }
.batt[data-fill="4"]::after { width: 12px; }
.batt.bolt::after { width: 0; }
.batt.bolt { background: linear-gradient(#111, #111) center/2px 7px no-repeat, linear-gradient(#111, #111) center/6px 2px no-repeat; }
.mute { width: 11px; height: 9px; border: 1.5px solid #111; border-right: 0; border-radius: 6px 0 0 6px; position: relative; }
.mute::after { content: ""; position: absolute; left: 9px; top: -2px; width: 8px; border-top: 1.5px solid #111; transform: rotate(40deg); }

/* 首页时钟 */
.hero { position: relative; height: 204px; }
.hero .hh, .hero .mm { position: absolute; font: 200 88px/1 "Avenir Next", "Helvetica Neue", sans-serif; letter-spacing: -3px; }
.hero .hh { left: 10px; top: 12px; }
.hero .mm { left: 19px; top: 95px; }
.hero .slash { position: absolute; left: 22px; top: 105px; width: 93px; border-top: 1.3px solid #111; transform: rotate(-11.2deg); transform-origin: left center; }
.hero .date { position: absolute; right: 13px; top: 96px; text-align: right; font: 300 17px/23px "Avenir Next", "PingFang SC", sans-serif; }
.hero .date i { display: block; width: 36px; margin: 0 0 7px auto; border-top: 1px solid #111; }
.hero .date b { display: block; font: 600 19px/23px "PingFang SC", sans-serif; }
.hero .date span { display: block; font: 300 17px/23px "PingFang SC", sans-serif; letter-spacing: 2px; margin-right: -2px; }

.tiles { display: block; }
.dots { display: flex; justify-content: center; gap: 6px; height: 14px; align-items: center; }
.dots i { width: 5px; height: 5px; border: 1px solid #111; border-radius: 50%; }
.dots i.on { background: #111; }
.tile { cursor: pointer; }
.tile polygon { fill: transparent; stroke: #111; stroke-width: 1.1; stroke-linejoin: round; }
.tile text { font: 13px "PingFang SC", "Avenir Next", sans-serif; fill: #111; }
.tile.dark polygon { fill: #111; }
.tile.dark text { fill: #f2f2f1; }
.tile:hover polygon { stroke-width: 2; }

/* 阅读首页：继续阅读黑卡 + 本周 + 统计 + 最近阅读 + 我的书架 */
.bookhome { height: calc(100% - 24px); padding: 10px 10px 8px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.dash { display: flex; gap: 8px; height: 118px; flex: none; }
.cont { flex: 1; background: #111; color: #f2f2f1; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; justify-content: space-between; }
.cont p { margin: 0 0 6px; font-size: 12px; }
.track { position: relative; height: 8px; border-radius: 8px; background: #f2f2f1; }
.track b { display: block; height: 4px; margin: 2px; border-radius: 4px; background: #111; }
.track i { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border: 1.5px solid #111; border-radius: 50%; background: #f2f2f1; }
.cont button { border: 0; border-radius: 6px; background: #f2f2f1; color: #111; font-size: 12px; padding: 4px 0; }
.week { flex: 1; position: relative; display: flex; flex-direction: column; }
.week p { margin: 0; font-size: 12px; }
.week > b { font-size: 11px; font-weight: 500; }
.chart { flex: 1; display: flex; align-items: flex-end; gap: 3px; padding: 4px 0 0; }
.chart i { flex: 1; background: #111; min-height: 4px; }
.days { display: flex; font-size: 9px; }
.days span { flex: 1; text-align: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; }
.stats div { border-left: 1px solid #111; }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-size: 14px; }
.stats span { font-size: 9px; }
.recent-h { margin: 0; font-size: 12px; }
.recent { display: flex; gap: 8px; flex: 1; min-height: 96px; }
.cover { flex: 1; border: 1px solid #111; background: #f2f2f1; display: flex; align-items: center; justify-content: center; font: 600 16px/1.3 "Songti SC", serif; }
.cover.empty { font: 11px "PingFang SC", sans-serif; color: #666; background: #e6e6e6; }
.shelf-btn { border: 0; border-radius: 6px; background: #111; color: #f2f2f1; font-size: 13px; padding: 8px 0; }

.shelf, .book, .walls, .wallview, .tasks, .xfer, .store { height: calc(100% - 26px); padding: 8px 10px; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; }
.shelf-head, .thead { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.shelf-grid, .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mini { border: 0; background: transparent; padding: 0; font-size: 10px; }
.mini i { display: flex; align-items: center; justify-content: center; height: 62px; border: 1px solid #111; font-style: normal; font: 600 13px "Songti SC", serif; }
.mini span { display: block; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shelf-row { width: 100%; display: flex; gap: 8px; align-items: center; margin-bottom: 6px; padding: 6px; border: 0; border-bottom: 1px solid #111; background: transparent; text-align: left; }
.shelf-row i { width: 28px; height: 40px; border: 1px solid #111; flex: none; }
.shelf-row b { display: block; font-size: 13px; }
.shelf-row em { font-style: normal; font-size: 10px; color: #555; }

.wall { position: relative; border: 0; background: transparent; padding: 0; font-size: 10px; }
.wall i { display: block; height: 68px; border: 1px solid #111; background: repeating-linear-gradient(45deg, #ddd, #ddd 3px, transparent 3px, transparent 6px); }
.wall em { position: absolute; left: 2px; top: 2px; font-style: normal; background: #111; color: #f2f2f1; font-size: 9px; padding: 0 3px; }
.wall:disabled { opacity: 0.35; }
.preview { flex: 1; min-height: 140px; border: 1px solid #111; background: repeating-linear-gradient(45deg, #ddd, #ddd 4px, transparent 4px, transparent 8px); }
.panel [data-wall-image] { background: #f2f2f1 var(--wall-image) center / cover no-repeat; }
.panel .preview[data-wall-image], .panel .v-wimg.big[data-wall-image] { background-size: contain; }
[data-wall-image="mist"] { --wall-image: url("assets/wallpapers/mist.webp"); }
[data-wall-image="paper"] { --wall-image: url("assets/wallpapers/paper.webp"); }
[data-wall-image="pine"] { --wall-image: url("assets/wallpapers/pine.webp"); }
[data-wall-image="boat"] { --wall-image: url("assets/wallpapers/boat.webp"); }
[data-wall-image="letter"] { --wall-image: url("assets/wallpapers/letter.webp"); }
[data-wall-image="border"] { --wall-image: url("assets/wallpapers/border.webp"); }
[data-wall-image="river"] { --wall-image: url("assets/wallpapers/river.webp"); }
[data-wall-image="moon"] { --wall-image: url("assets/wallpapers/moon.webp"); }
[data-wall-image="wave"] { --wall-image: url("assets/wallpapers/wave.webp"); }
.wallview { text-align: center; }
.wallview p { margin: 0; }
.book { align-items: center; text-align: center; }
.book .cover.tall { width: 92px; height: 124px; flex: none; font-size: 16px; }
.book h3, .book p { margin: 0; }
.meta { width: 100%; display: flex; justify-content: space-between; font-size: 11px; border-bottom: 4px solid #111; box-shadow: 0 7px 0 -5px #111; padding-bottom: 4px; }
.stats.two { width: 100%; }
.pill { align-self: center; border-radius: 14px; overflow: hidden; }
.thead i { width: 16px; height: 16px; border-radius: 50%; background: #111; color: #f2f2f1; font-style: normal; text-align: center; line-height: 16px; font-size: 10px; }
.frame { flex: 1; border: 1px solid #111; border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; min-height: 0; }
.frame-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 11px; }
.todo { display: flex; gap: 8px; align-items: center; width: 100%; padding: 7px 0; border: 0; border-bottom: 1px solid #ccc; background: transparent; text-align: left; font-size: 13px; }
.todo i { width: 12px; height: 12px; border: 1px solid #111; border-radius: 50%; flex: none; }
.todo i.on { background: #111; }
.mask { position: absolute; inset: 0; background: repeating-radial-gradient(circle, #111 0 1px, transparent 1.5px 7px); display: flex; align-items: center; justify-content: center; }
.dialog { width: 70%; background: #f2f2f1; border: 1.5px solid #111; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.dialog button { border: 1px solid #111; background: transparent; padding: 4px; }
.seg.wrap { flex-wrap: wrap; }
.seg.tiny button { padding: 2px 6px; font-size: 10px; }
.step { border-top: 1px solid #111; padding-top: 6px; text-align: center; }
.step b, .step p { margin: 0 0 4px; font-size: 12px; }
.buddy { text-align: center; position: relative; }
.buddy .qr { margin: 12px auto; }
.buddy.chat { text-align: left; }
.wb-top { display: flex; justify-content: space-between; align-items: center; }
.wb-top button { border: 0; background: transparent; font-size: 18px; }
.wb-menu { position: absolute; right: 8px; top: 36px; border: 1px solid #111; background: #f2f2f1; display: flex; flex-direction: column; }
.wb-menu button { border: 0; border-bottom: 1px solid #111; background: transparent; padding: 8px 14px; text-align: left; }
.hold { margin-top: auto; }
.pixel { padding: 8px 12px; display: flex; flex-direction: column; gap: 8px; height: calc(100% - 26px); box-sizing: border-box; }
.px-time { margin: 4px 0 0; text-align: center; font: 200 42px/1 "Avenir Next", sans-serif; }
.px-date { margin: 0; text-align: center; font-size: 11px; }
.px-card { border: 1px solid #111; background: transparent; text-align: left; padding: 6px 8px; position: relative; }
.px-card b { display: block; background: #111; color: #f2f2f1; font-size: 11px; padding: 1px 6px; width: fit-content; }
.px-card span { font-size: 12px; margin-right: 10px; }
.px-card em { position: absolute; right: 8px; top: 22px; font-style: normal; }
.px-card i { display: block; height: 3px; margin-top: 6px; background: linear-gradient(90deg, #111 33%, #ddd 33%); }
.classic { height: calc(100% - 26px); padding: 8px 10px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; }
.big-time { margin: 8px 0 0; font: 200 56px/1 "Avenir Next", sans-serif; letter-spacing: -2px; }
.meta { margin: 4px 0 10px; font-size: 12px; }
.cells { width: 100%; }
.cell { border: 0; background: #fff; border-radius: 8px; padding: 8px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; }
.cell img { width: 28px; height: 28px; }
.cell.border { border: 1.5px solid #111; }
.cell.gray { background: repeating-conic-gradient(#111 0% 25%, #f2f2f1 0% 50%) 0 0 / 4px 4px; }
.cell.white { background: #fff; }
.px-apps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: auto; }
.px { border: 1px solid #111; background: transparent; padding: 6px 2px; font-size: 11px; }
.px i { display: block; height: 22px; }
div.wifi, .pager-page { height: calc(100% - 26px); padding: 8px 10px; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; }
.pager-page h3 { margin: 4px 0 0; font-size: 13px; }
.pager { text-align: center; font-size: 11px; margin-top: auto; }
.empty { font-size: 13px; color: #666; }
.qr { width: 120px; height: 120px; margin: 8px auto; border: 1px solid #111; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; }
.qr b { font-size: 11px; }
.xfer p, .store p { margin: 0 0 6px; font-size: 12px; line-height: 1.5; }
.local-service-card { border: 1px solid #111; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.local-service-card.on { background: #111; color: #f2f2f1; }
.local-service-head { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.service-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; }
.local-service-card.on .service-dot { background: #f2f2f1; }
.local-service-card code { font: 600 14px/1.3 monospace; }
.local-service-card .choice { border-color: currentColor; color: inherit; }
.local-service-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.app-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #ccc; }
.app-row i { width: 28px; height: 28px; border: 1px solid #111; flex: none; }
.app-row span { flex: 1; }
.app-row b { display: block; font-size: 13px; }
.app-row em { font-style: normal; font-size: 10px; color: #555; }
.app-row button { border: 1px solid #111; background: transparent; font-size: 11px; padding: 3px 8px; }

/* 正文：默认点屏左边上一页、中间开卡片、右边下一页，和固件的点按分区一样 */
.read { position: relative; height: 100%; display: flex; flex-direction: column; }
.read-head, .read-foot { display: flex; justify-content: space-between; padding: 7px 14px; font-size: 10px; color: #444; }
.read-body { flex: 1; padding: 4px 16px; cursor: pointer; font-family: "Songti SC", "Source Han Serif SC", serif; }
.read-body p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.75; text-indent: 2em; text-align: justify; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px 12px; background: #f2f2f1; border-top: 1.5px solid #111; }
.tabs { display: flex; border: 1px solid #111; margin-bottom: 8px; }
.tabs span { flex: 1; padding: 4px 0; text-align: center; font-size: 12px; cursor: pointer; }
.tabs .on { background: #111; color: #f2f2f1; }
.row, .row-btns button { padding: 5px 8px; border: 1px solid #111; background: transparent; font-size: 12px; text-align: left; }
.row { display: block; width: 100%; margin-bottom: 4px; }
.row.on { background: #111; color: #f2f2f1; }
.row-btns { display: flex; gap: 8px; }
.row-btns button { flex: 1; text-align: center; }
.opt { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #ccc; font-size: 12px; }

/* 百问欢迎页，照 assistant_idle.cc：标题、问候、右侧「长按对话」、功能列表 */
.welcome { position: relative; flex: 1; padding: 14px 12px 0; display: flex; flex-direction: column; }
.welcome h2 { margin: 8px 0 16px; font-size: 18px; }
.hello { margin: 0; font: 600 20px/1.25 "PingFang SC", sans-serif; }
.ask { margin: 8px 0 18px; font-size: 13px; }
.welcome .feats { margin-top: auto; }
.talk { position: absolute; right: 22px; top: 52px; font-size: 11px; line-height: 1.15; text-align: center; }
.talk::before, .talk::after { content: ""; position: absolute; top: 8px; width: 1px; background: #111; }
.talk::before { right: -8px; height: 36px; }
.talk::after { right: -12px; top: 14px; height: 22px; }
.feat { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid #111; }
.feat i { width: 22px; height: 22px; border: 1.5px solid #111; border-radius: 50%; flex: none; }
.feat b { display: block; font-size: 12px; }
.feat em { font-style: normal; font-size: 10px; color: #444; }

.holdbar { height: 32px; margin: 4px 10px 6px; border: 1.5px solid #111; border-radius: 16px; display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; font-size: 12px; position: relative; }
.holdbar span { text-align: center; }
.cam { width: 16px; height: 12px; margin: 0 auto; border: 1.5px solid #111; border-radius: 2px; background: transparent; padding: 0; display: block; }
.cam::after { content: ""; display: block; width: 5px; height: 5px; margin: 2px auto 0; border: 1px solid #111; border-radius: 50%; }
.paw { width: 16px; height: 14px; margin: 0 auto; background: #111; border-radius: 8px 8px 3px 3px; display: block; }
.send { border: 0; background: #111; color: #f2f2f1; font-size: 10px; border-radius: 8px; padding: 3px 0; }
.thumb { position: absolute; left: 12px; bottom: 44px; width: 36px; height: 36px; border: 1px solid #111; background: #f2f2f1; font-size: 16px; }
.thumb i { position: absolute; right: -6px; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: #111; color: #f2f2f1; font-style: normal; font-size: 10px; line-height: 14px; }
.shot { width: 48px; height: 36px; border: 1px solid #111; }
.shot.big { width: 100%; height: 80px; }
.pager { text-align: center; font-size: 11px; }

/* 百问 */
.ai { height: calc(100% - 24px); display: flex; flex-direction: column; }
.chip { margin: 8px 10px 0; padding: 5px 8px; border: 1px solid #111; font-size: 11px; line-height: 1.4; }
.chip.dim { border-style: dashed; color: #555; }
.ai-main { flex: 1; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.big { font-size: 22px; text-align: center; margin-bottom: 6px; }
.ai-main > .note { text-align: center; }
.idle p { margin: 0 0 6px; text-align: center; font-size: 14px; }
.qa p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; }
.live .caption { margin: 12px 0; font-size: 17px; line-height: 1.55; text-align: center; }
.live .note { text-align: center; }
.wave { height: 34px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.wave i { width: 3px; height: 5px; background: #111; }
.wave.on i:nth-child(odd) { height: 24px; }
.wave.on i:nth-child(3n) { height: 14px; }
.wave.on i:nth-child(4n) { height: 30px; }
.foot { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-top: 1px solid #111; font-size: 12px; }
.seg { display: inline-flex; border: 1px solid #111; }
.seg button { padding: 4px 12px; border: 0; background: transparent; font-size: 12px; }
.seg button.on { background: #111; color: #f2f2f1; }
.foot > button { padding: 3px 9px; border: 1px solid #111; background: transparent; font-size: 12px; }

/* 设置：左侧页签，关于在最后。固件里这些页签不滚动，这里缩到一列。 */
.settings { height: calc(100% - 24px); display: flex; font-size: 12px; }
.stabs { width: 58px; flex: none; display: flex; flex-direction: column; border-right: 1px solid #111; overflow: auto; }
.stabs button { border: 0; border-bottom: 1px solid #ddd; background: transparent; font-size: 11px; padding: 5px 0; }
.stabs button.on { background: #111; color: #f2f2f1; }
.spane { flex: 1; padding: 8px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.spane h3 { margin: 2px 0 0; font-size: 13px; }
.choices { display: flex; flex-wrap: wrap; gap: 5px; }
.choice { padding: 3px 8px; border: 1px solid #111; border-radius: 2px; background: transparent; font-size: 12px; }
.choice.on { background: #111; color: #f2f2f1; }
.choice.block { display: block; width: 100%; text-align: left; margin-bottom: 4px; }
.cur { margin: 0; font-size: 11px; }
.about { display: flex; flex-direction: column; width: 100%; margin-bottom: 6px; padding: 4px 0; border: 0; border-bottom: 1px solid #ccc; background: transparent; text-align: left; }
.about b { font-size: 12px; }
.about span { font-size: 10px; color: #555; }
.settings label { display: flex; flex-direction: column; gap: 2px; font-size: 11px; }
.settings input, .settings select { padding: 3px 5px; border: 1px solid #111; border-radius: 0; background: transparent; font-size: 11px; }
.settings .wide { margin-top: 4px; }

.simple { padding: 14px 16px; }
.simple h3 { margin: 0 0 10px; font-size: 17px; }
.simple p { margin: 0 0 8px; font-size: 13px; line-height: 1.6; }
.simple code { font-size: 10.5px; word-break: break-all; }

.standby { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 18px; box-sizing: border-box; }
.standby .hm { margin: 0; font: 200 72px/0.9 "Avenir Next", sans-serif; letter-spacing: -2px; }
.standby .date { margin: 0; font-size: 13px; }
.standby .wx { display: flex; justify-content: space-between; border-top: 1px solid #111; padding-top: 8px; font-size: 14px; }
.todo-line { border: 1px solid #111; background: transparent; text-align: left; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.todo-line b { font-size: 11px; }
.standby.wallbg { background: repeating-linear-gradient(45deg, #ddd, #ddd 6px, #f2f2f1 6px, #f2f2f1 12px); align-items: flex-end; }
.standby.wallbg p { margin: 0; font: 200 28px "Avenir Next", sans-serif; }
.boot { height: 100%; display: flex; align-items: center; justify-content: center; font: 600 24px "Avenir Next", sans-serif; }
.full { display: block; width: 100%; height: 100%; }
.toast { position: absolute; left: 50%; top: 34px; transform: translateX(-50%); padding: 5px 12px; border-radius: 2px; background: #111; color: #f2f2f1; font-size: 12px; white-space: nowrap; }

/* ── 官方设计 · 官方 2.0.85 设置（settings_screen.cc / settings_common.cc）──
   标题居中、左上角返回；内容整屏翻，不滚动；圆角分组，行右边是值和箭头，单选是圆圈实心点。 */
.u-set { position: relative; height: calc(100% - 26px); display: flex; flex-direction: column; font-size: 11px; }
.u-head { position: relative; flex: none; height: 28px; display: flex; align-items: center; justify-content: center; }
.u-head b { font-size: 12.5px; font-weight: 700; max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.u-back, .u-kehead i, .rs-back { border: 0; background: none; padding: 0; }
.u-back { position: absolute; left: 4px; top: 4px; width: 22px; height: 20px; }
.u-back i, .u-kehead i, .rs-back i { display: block; width: 7px; height: 7px; margin: 0 auto; border-left: 1.6px solid #111; border-bottom: 1.6px solid #111; transform: rotate(45deg); }
.u-pane { flex: 1; min-height: 0; margin: 0 4px 9px; padding: 6px 6px 0; overflow: hidden; display: flex; flex-direction: column; gap: 5px; }
.u-pane > * { flex: none; }
.u-cap { margin: 3px 0 0; padding-left: 3px; font-size: 11px; font-weight: 400; }
.u-sec { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.u-sec h4 { margin: 0; padding-left: 3px; font-size: 11px; font-weight: 400; }
.u-hint, .u-body { margin: 0; padding: 0 3px; font-size: 9.5px; line-height: 1.4; }
.u-body { font-size: 11px; }
.u-group { border: 1px solid #111; border-radius: 7px; overflow: hidden; }
.u-row { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 28px; padding: 3px 6px; border: 0; border-bottom: 1px solid #111; background: transparent; text-align: left; font-size: 11px; color: #111; }
.u-group > .u-row:last-child, .u-group > :last-child { border-bottom: 0; }
.u-t { flex: 1; min-width: 0; }
.u-v { max-width: 52%; font-size: 9.5px; text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.u-chev { flex: none; width: 5px; height: 5px; margin: 0 1px 0 2px; border-top: 1.4px solid #111; border-right: 1.4px solid #111; transform: rotate(45deg); }
.u-ic { flex: none; width: 13px; height: 13px; margin-right: 2px; fill: none; stroke: #111; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.u-ic circle[r=".6"], .u-ic circle[r=".5"] { fill: #111; }
.u-ic-t { font: 700 12px/13px Georgia, "Songti SC", serif; text-align: center; }
.u-radio .u-dot { flex: none; position: relative; width: 9px; height: 9px; border: 1px solid #111; border-radius: 50%; }
.u-radio.on .u-t { font-weight: 700; }
.u-radio.on .u-dot::after { content: ""; position: absolute; left: 1.5px; top: 1.5px; width: 4px; height: 4px; border-radius: 50%; background: #111; }
.u-toggle .u-sw { flex: none; position: relative; width: 24px; height: 13px; border: 1px solid #111; border-radius: 7px; background: #f2f2f1; }
.u-toggle .u-sw::after { content: ""; position: absolute; left: 1.5px; top: 1.5px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid #111; background: #f2f2f1; box-sizing: border-box; }
.u-toggle.on .u-sw { background: #111; }
.u-toggle.on .u-sw::after { left: 12.5px; border-color: #f2f2f1; }
.u-sbar { position: absolute; right: 3px; width: 2.5px; border-radius: 2px; background: #111; }
.u-sbar[hidden] { display: none; }
.u-mini { flex: none; border: 1px solid #111; border-radius: 3px; background: transparent; padding: 1px 5px; font-size: 9.5px; }
.u-listhead { display: flex; justify-content: space-between; align-items: center; padding: 2px 3px 0; font-size: 11px; }
.u-btn { width: 100%; min-height: 24px; border: 1px solid #111; border-radius: 5px; background: transparent; font-size: 11px; }
.u-btn.on { background: #111; color: #f2f2f1; }
.u-field { display: flex; flex-direction: column; gap: 2px; padding: 0 3px; font-size: 9.5px; }
.u-field input { padding: 3px 5px; border: 1px solid #111; border-radius: 3px; background: transparent; font-size: 10px; }
.u-slider { display: flex; align-items: center; gap: 5px; }
.u-slider button { flex: none; width: 18px; height: 17px; border: 1px solid #111; border-radius: 3px; background: transparent; font-size: 11px; padding: 0; }
.u-slider i { position: relative; flex: 1; height: 5px; border: 1px solid #111; border-radius: 3px; }
.u-slider i b { display: block; height: 100%; background: #111; }
.u-slider i em { position: absolute; top: -4px; width: 9px; height: 9px; margin-left: -5px; border: 1px solid #111; border-radius: 50%; background: #f2f2f1; }
.u-pv { flex: 1 !important; display: flex; flex-direction: column; }
.u-pv .u-btn { margin-top: auto; min-height: 22px; }
.u-preview { border-top: 1px solid #111; border-bottom: 1px solid #111; padding: 8px 3px; }
.u-preview p { margin: 0; font-size: 13px; line-height: 1.7; }
.u-proto { font-size: 9px; }
.u-mask { position: absolute; inset: 0; z-index: 30; background: repeating-radial-gradient(circle, #111 0 1px, transparent 1.5px 7px); display: flex; align-items: center; justify-content: center; }
.u-dialog { width: 80%; background: #f2f2f1; border: 1.5px solid #111; border-radius: 7px; padding: 12px 10px 10px; text-align: center; }
.u-dialog p { margin: 0 0 10px; font-size: 11px; line-height: 1.45; }
.u-dialog div { display: flex; gap: 8px; }
.u-dialog button { flex: 1; height: 22px; border: 1px solid #111; border-radius: 4px; background: transparent; font-size: 11px; }
.u-dialog button:last-child { background: #111; color: #f2f2f1; }
/* 功能说明：整屏白底，圆角卡片里分页看（settings_keys.cc Help）。 */
.u-help { position: absolute; inset: 0; z-index: 30; background: #f2f2f1; display: flex; align-items: center; justify-content: center; }
.u-help-card { width: 94%; height: 92%; border: 1px solid #111; border-radius: 3px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.u-help-head { flex: none; height: 16px; display: flex; align-items: center; }
.u-help-head b { flex: 1; font-size: 11px; }
.u-help-head button { width: 15px; height: 15px; border: 1px solid #111; border-radius: 50%; background: transparent; padding: 0; font-size: 11px; line-height: 12px; }
.u-help-body { flex: 1; min-height: 0; overflow: hidden; padding-right: 4px; }
.u-help-title { margin: 0 0 3px; font-size: 11px; }
.u-help-note { margin: 0; font-size: 9px; line-height: 1.55; }
.u-help-sec { margin: 8px 0 0; font-size: 11px; font-weight: 700; }
.u-help-item { display: flex; flex-direction: column; gap: 1px; padding: 4px 0; border-bottom: 1px solid #111; font-size: 9px; }
.u-help-item b { font-size: 9px; }
/* 按键编辑页（SettingsKeysCreate）：短按 / 长按，全局功能、局部功能两组，两列等宽方块。 */
.u-keyedit { position: relative; height: calc(100% - 26px); padding: 3px 6px 4px; display: flex; flex-direction: column; gap: 4px; font-size: 11px; }
.u-kehead { flex: none; width: 100%; height: 18px; display: flex; align-items: center; gap: 9px; border: 0; background: none; padding: 0 0 0 5px; text-align: left; }
.u-kehead i { margin: 0; flex: none; }
.u-kehead b { font-size: 11px; }
.u-card { border: 1px solid #111; border-radius: 3px; padding: 3px; box-shadow: 0 0.5px 0 #111; background: #f2f2f1; }
.u-card > p { margin: 0 0 3px; text-align: center; font-size: 11px; }
.u-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5px 4px; }
.u-press { gap: 4px; }
.u-opt { height: 18px; border: 1px solid #111; border-radius: 3px; background: transparent; font-size: 9px; padding: 0 2px; color: #111; white-space: nowrap; overflow: hidden; }
.u-press .u-opt { height: 16px; font-size: 10px; }
.u-opt.on { background: #111; color: #f2f2f1; }
.u-opt.off { border-style: dashed; color: rgba(17, 17, 17, 0.5); }

/* ── 书架搜索框和官方拼音键盘（book_bookshelf.cc / screen_keyboard.cc / screen_pinyin_input.cc）── */
.u-search { position: relative; z-index: 21; flex: none; height: 25px; display: flex; align-items: center; gap: 4px; padding: 0 4px; border: 1px solid #111; border-radius: 2px; background: #f2f2f1; cursor: text; }
.u-lens { flex: none; width: 9px; height: 9px; fill: none; stroke: #111; stroke-width: 2.2; }
.u-search-text { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden; white-space: nowrap; font-size: 10.8px; }
.u-search-text em { font-style: normal; opacity: 0.55; }
.u-caret { display: inline-block; width: 0; height: 12px; border-left: 1px solid #111; margin: 0 0.5px; }
.u-clear { flex: none; position: relative; width: 11px; height: 11px; border: 1px solid #111; border-radius: 50%; background: transparent; padding: 0; }
.u-clear::before, .u-clear::after { content: ""; position: absolute; left: 2px; top: 4.2px; width: 5px; border-top: 1px solid #111; transform: rotate(45deg); }
.u-clear::after { transform: rotate(-45deg); }
.u-dismiss { position: absolute; inset: 0; z-index: 20; }
.shelf .shelf-row i.dir, .mini.dir i { border-style: solid; background: repeating-linear-gradient(0deg, transparent 0 3px, #111 3px 4px); }
.mini.dir i { font-size: 0; }
.uk-root { position: absolute; left: 0; right: 0; bottom: 0; z-index: 22; padding: 4.3px 6.1px 6.5px; background: #f2f2f1; display: flex; flex-direction: column; }
.uk-cands { display: flex; align-items: center; gap: 5px; min-height: 21px; border-top: 1px solid #111; }
.uk-pg { flex: none; width: 14.4px; align-self: stretch; border: 0; background: transparent; padding: 0; font-size: 10.8px; color: #111; }
.uk-words { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.45em; font-size: 10.8px; white-space: nowrap; overflow: hidden; }
.uk-words button { border: 0; background: transparent; padding: 3px 0; color: #111; white-space: nowrap; }
.uk-board { border-top: 1px solid #111; padding-top: 4.3px; box-sizing: border-box; }
.uk-keys { position: relative; }
.uk-key { position: absolute; display: flex; align-items: center; justify-content: center; border: 1px solid #111; border-radius: 2.5px; background: #f2f2f1; padding: 0; font-size: 10.8px; color: #111; touch-action: none; }
.uk-key.on { border-width: 1.6px; }
.uk-key svg { height: 7.5px; fill: none; stroke: #111; stroke-width: 2.2; }
/* 按下：黑白像素拼的 25% 灰（PressedImage），不用灰阶。 */
.uk-key:active, .uk-key.down { background: conic-gradient(#111 0 25%, #f2f2f1 0) 0 0 / 2px 2px; }

/* ── 正文和阅读卡片（官方 2.0.85）── */
.read-info { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; font-size: 9px; color: #111; white-space: nowrap; }
.read-info span { overflow: hidden; text-overflow: ellipsis; }
.read-info.top { padding-bottom: 2px; }
.read-info.one { padding-top: 4px; }
.read:not(.split) .read-body { padding-top: 14px; }
.read-fig { margin: 4px 0 10px; }
.read-fig svg { display: block; width: 100%; height: 72px; }
.read-body .read-fig-off { margin: 4px 0 10px; text-align: center; text-indent: 0; font-size: 13px; }
.rs-sheet { padding: 0; display: flex; flex-direction: column; }
.rs-head { position: relative; flex: none; height: 26px; display: flex; align-items: center; justify-content: center; }
.rs-head b { font-size: 11.5px; }
.rs-back { position: absolute; left: 6px; top: 4px; width: 20px; height: 18px; }
.rs-reset { position: absolute; right: 8px; top: 5px; border: 0; background: none; padding: 0; font-size: 10px; text-decoration: underline; }
.rs-body { padding: 4px 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.rs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.3px 3.6px; }
.rs-card { position: relative; height: 38px; border: 1px solid #111; border-radius: 3.6px; background: transparent; padding: 4px 4px 3px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; color: #111; }
.rs-card span { font-size: 9px; white-space: nowrap; overflow: hidden; }
.rs-card b { font-size: 10.5px; white-space: nowrap; overflow: hidden; padding-right: 8px; }
.rs-card i { position: absolute; right: 3px; bottom: 3px; font-style: normal; font-size: 9px; }
.rs-row { display: flex; align-items: center; gap: 6px; min-height: 22px; }
.rs-cap { flex: none; width: 46px; font-size: 9.5px; }
.rs-cap:empty { width: 0; display: none; }
.rs-opts { flex: 1; display: flex; gap: 3px; }
.rs-opt { flex: 1; height: 20px; border: 1px solid #111; border-radius: 3px; background: transparent; font-size: 9.5px; padding: 0; white-space: nowrap; color: #111; }
.rs-opt.on { background: #111; color: #f2f2f1; }
.rs-sw { position: relative; width: 26px; height: 14px; border: 1px solid #111; border-radius: 8px; background: transparent; padding: 0; margin-left: auto; }
.rs-sw i { position: absolute; left: 1.5px; top: 1.5px; width: 9px; height: 9px; border: 1px solid #111; border-radius: 50%; background: #f2f2f1; box-sizing: border-box; }
.rs-sw.on { background: #111; }
.rs-sw.on i { left: 13px; border-color: #f2f2f1; }
.rs-num { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.rs-num button { width: 22px; height: 18px; border: 1px solid #111; border-radius: 3px; background: transparent; padding: 0; font-size: 11px; }
.rs-num button:disabled { border-style: dashed; color: rgba(17, 17, 17, 0.45); }
.rs-num b { min-width: 22px; text-align: center; font-size: 10.5px; }
.rs-tap { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 80px; border: 1px solid #111; }
.rs-tap span { display: flex; align-items: center; justify-content: center; border-left: 1px dashed #111; font-size: 9.5px; }
.rs-tap span:first-child { border-left: 0; }
.rs-size { align-self: center; font-size: 11px; }
.rs-nav { flex: none; display: flex; border-top: 1.5px solid #111; padding: 4px 4px 5px; }
.rs-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; border: 0; background: none; padding: 2px 0; font-size: 9px; color: #111; }
.rs-nav button.on { font-weight: 700; }
.rs-ic { display: block; width: 12px; height: 11px; border: 1.2px solid #111; border-radius: 1.5px; }
.rs-nav button.on .rs-ic { background: #111; }
.rs-ic-0 { background: repeating-linear-gradient(180deg, transparent 0 2px, #111 2px 3px) 2px 1px / 6px 8px no-repeat; }
.rs-ic-1 { border-radius: 50%; }
.rs-ic-2 { width: 9px; border-bottom-width: 3px; }
.rs-ic-3 { border-radius: 50%; border-style: dotted; }
.toast { z-index: 40; }
