/* 细节打磨层（最后加载）：只修细节，不改整体布局 */
/* 右侧栏底部留出位置，别让右下角的悬浮小卡片挡住页脚链接 */
.siderail { padding-bottom: 120px; }
/* 文字选中、点按高亮 */
::selection { background: color-mix(in srgb, var(--accent, #5366e8) 22%, transparent); }
button, a, label, summary { -webkit-tap-highlight-color: transparent; }
/* 键盘操作时统一的焦点圈（鼠标点击不显示） */
:where(button, a, summary, [role=tab], [role=radio], select, .qbtn, .tile):focus-visible { outline: 2px solid var(--accent, #5366e8); outline-offset: 2px; border-radius: inherit; }
:where(button, a):focus:not(:focus-visible) { outline: none; }
/* 数字：等宽，倒计时、时间、计数不再左右跳动 */
.atime, .hx-cd, .hx-t small, .tl-ticks i, .ring div, .big, .due-tag, .range, .mini .d, .heat-m { font-variant-numeric: tabular-nums; }
/* 空状态更柔和、有呼吸感 */
.aempty, .wq-it.none { color: var(--sub); }
#wallList > .aempty { text-align: center; padding: 34px 18px; line-height: 1.8; }
/* 对话框按钮行：小屏时按钮别挤成一团 */
.dlg .nd-actions { flex-wrap: wrap; row-gap: 8px; }
/* 长名字（班级、学校、事项）不撑破卡片 */
.cb-main b, .atitle, .hx-t b, .wrow b, .me-main b { overflow-wrap: anywhere; }
/* 降低动态效果偏好：关闭悬浮位移 */
@media (prefers-reduced-motion: reduce) { .tile, .qbtn, .surface { transition: none !important; } }
/* 手机：输入框 16px，避免 iOS 聚焦时整页放大；按钮触控区不小于 40px */
@media (max-width: 720px) {
  .dlg input:not([type=radio]):not([type=checkbox]), .dlg textarea, .dlg select, .org .org-in { font-size: 16px; }
  .vhead .small, .vhead .btn.sm { min-height: 36px; }
  .dlg .nd-actions button { min-height: 40px; }
}
/* 首页时间轴刻度、四象限空格 */
[data-skin] .tl-ticks i { font-size: 11px; }
.wq-it.none { opacity: .55; font-style: normal; }
[data-skin] .cell .chip { font-size: 11px; }
/* 首页「早点睡」标签：原来蓝底蓝字看不清 */
.hx.sleep .hx-k { background: #5b5bd6; color: #fff; }
[data-skin=fresh] .hx.sleep .hx-k { background: #ebeaff; color: #4338ca; font-weight: 700; }
[data-skin=fresh][data-mode=dark] .hx.sleep .hx-k { background: rgba(139,132,255,.2); color: #c7c3ff; }
/* 手机上「我的学习空间」磁贴：「去完成 ▶」别折成两行 */
.tile .go { white-space: nowrap; }
/* 「＋」：在不需要它的页面藏起来；改班级事项时的说明 */
#addBtn.fab-off { display: none !important; }
.ftip { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--note-bg); color: var(--text); font-size: 12.5px; line-height: 1.7; }
/* 工具的快捷打开：不用单独的箭头按钮，提示放在「工具」这一行里 */
.nav-kbd { display: none; }
@media (min-width: 701px) {
  .rail .nav[data-tools-nav] { position: relative; }
  .rail .nav[data-tools-nav] .nav-kbd { display: inline-block; margin-left: auto; padding: 1px 6px; border-radius: 5px; font: 600 10.5px/1.6 -apple-system, "Segoe UI", sans-serif; letter-spacing: .3px;
    color: currentColor; opacity: 0; border: 1px solid currentColor; transition: opacity .15s; }
  .rail .nav[data-tools-nav]:hover .nav-kbd, .rail .nav[data-tools-nav]:focus-visible .nav-kbd { opacity: .55; }
}
@media (max-width: 700px) {
  /* 手机底栏：长按「工具」时有按下的反馈 */
  .rail #tabs .nav[data-tools-nav]:active { transform: scale(.94); }
}
/* 日历选中那天的事项：操作按钮换行显示，「编辑」不会被挤到看不见 */
.day-open .ops, .day-open .aextra .ops { flex-wrap: wrap; overflow: visible; }
/* 记一件事表单里的勾选项：勾选框和文字放一行 */
#modal label.check, .modal2 label.check { display: flex; flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
#modal label.check input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--accent); }
/* 首页时间轴：高度不变，只把课程块里的字调大、调清楚 */
[data-skin] .hero .tl-c { font-size: 12px; font-weight: 650; display: flex; align-items: center; }
[data-skin] .hero .tl-c span { line-height: 1; }
@media (max-width: 700px) { [data-skin] .hero .tl-c { font-size: 11.5px; } }
