/* Liquid Glass v2 · 只作用于高端版
   方向：彩色晨光底 + 真正的玻璃层（强模糊、饱和、白色高光边缘、蓝色液态强调）。
   不改 DOM，不引入 React；完整版 / 极简版完全不受影响。 */

html[data-theme][data-view="high"] {
  color-scheme: light;
  --paper: #eef2fa;
  --surface: rgba(255, 255, 255, .66);
  --quiet: rgba(255, 255, 255, .38);
  --raised: #dfe7f7;
  --ink: #11151c;
  --muted: #5c6573;
  --line: rgba(18, 28, 48, .11);
  --rule-soft: rgba(18, 28, 48, .07);
  --green: #2f66ff;
  --focus: #2f66ff;
  --accent-soft: rgba(47, 102, 255, .12);
  --today-fill: rgba(47, 102, 255, .14);
  --nav-active: rgba(47, 102, 255, .16);
  --danger: #b3433d;
  --credit-rule: #5c6573;
  --schedule-secondary: #5c6573;
  --drop-border: #5c6573;
  --accent-hover: #1748d4;
  --shadow: 0 26px 70px rgba(34, 48, 82, .14);
  --veil: rgba(10, 15, 26, .5);
  --overlay-veil: rgba(10, 15, 26, .38);
  --overlay-shadow: rgba(34, 48, 82, .2);
  --toast-shadow: rgba(34, 48, 82, .18);
}

html[data-theme][data-view="high"] body {
  color: var(--ink);
  background-color: #e9eff9;
  background-image:
    linear-gradient(180deg,
      #f2e9de 0px,
      #f2e9de calc(env(safe-area-inset-top, 0px) + 8px),
      rgba(242, 233, 222, .72) calc(env(safe-area-inset-top, 0px) + 30px),
      rgba(242, 233, 222, 0) calc(env(safe-area-inset-top, 0px) + 136px)),
    radial-gradient(46% 38% at 4% 0%, rgba(255, 190, 138, .78), transparent 66%),
    radial-gradient(44% 36% at 100% 2%, rgba(116, 158, 255, .86), transparent 64%),
    radial-gradient(52% 42% at 84% 100%, rgba(138, 232, 202, .66), transparent 68%),
    radial-gradient(48% 36% at 6% 100%, rgba(199, 168, 255, .62), transparent 68%),
    linear-gradient(150deg, #fdf8f1 0%, #edf2fc 48%, #e9f3f1 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[data-theme][data-view="high"] body::before { display: none !important; }
html[data-theme][data-view="high"] body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background:
    radial-gradient(30vw 22vw at 18% 16%, rgba(255, 214, 166, .42), transparent 70%),
    radial-gradient(32vw 30vw at 88% 24%, rgba(142, 179, 255, .46), transparent 72%),
    radial-gradient(34vw 24vw at 56% 100%, rgba(158, 239, 210, .36), transparent 70%);
}

/* 页面骨架：标题更像展示型，而不是表单页 */
html[data-theme][data-view="high"] header {
  padding-bottom: 14px;
  border-bottom: 0;
}
html[data-theme][data-view="high"] header h1 {
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.08;
}
html[data-theme][data-view="high"] footer {
  border-top-color: rgba(18, 28, 48, .08);
  color: var(--muted);
}

/* 玻璃卡片：真正的半透明 + 背景模糊，但内容区保持足够不透明度 */
html[data-theme][data-view="high"] .panel,
html[data-theme][data-view="high"] .set-card,
html[data-theme][data-view="high"] .settings-menu,
html[data-theme][data-view="high"] .course-manager,
html[data-theme][data-view="high"] .minimal-agenda,
html[data-theme][data-view="high"] .tool-directory,
html[data-theme][data-view="high"] .admin-center,
html[data-theme][data-view="high"] #stats-dashboard,
html[data-theme][data-view="high"] .agenda-section,
html[data-theme][data-view="high"] .day-side .tomorrow-section,
html[data-theme][data-view="high"] .tools-intro,
html[data-theme][data-view="high"] .week-wrap,
html[data-theme][data-view="high"] .schedule-scroll,
html[data-theme][data-view="high"] .settings-overview,
html[data-theme][data-view="high"] .settings-detail,
html[data-theme][data-view="high"] .room-page,
html[data-theme][data-view="high"] .day-feature {
  background:
    radial-gradient(120% 90% at 8% -10%, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .36) 42%, transparent 72%),
    linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .48));
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 28px;
  box-shadow:
    0 26px 64px rgba(34, 48, 82, .13),
    0 2px 8px rgba(34, 48, 82, .04),
    inset 0 1px 0 rgba(255, 255, 255, .92),
    inset 0 -1px 0 rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(28px) saturate(1.75);
  backdrop-filter: blur(28px) saturate(1.75);
}
html[data-theme][data-view="high"] .day-feature { border-radius: 30px; overflow: hidden; }

/* 玻璃感的边缘：一道细白高光 + 一道冷色反光 */
html[data-theme][data-view="high"] .panel::after,
html[data-theme][data-view="high"] .set-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .5), transparent 26%, transparent 74%, rgba(255, 255, 255, .3));
  opacity: .55;
  mix-blend-mode: screen;
}

/* 桌面浮动玻璃侧栏：更像一块厚玻璃，而不是一张米色卡片 */
@media (min-width: 1101px) {
  html[data-theme][data-view="high"] aside {
    left: 18px;
    top: 18px;
    width: 232px;
    height: calc(100vh - 36px);
    padding: 30px 22px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 26px;
    background:
      radial-gradient(110% 70% at 18% 0%, rgba(255, 255, 255, .82), transparent 60%),
      linear-gradient(165deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .34));
    -webkit-backdrop-filter: blur(34px) saturate(1.95);
    backdrop-filter: blur(34px) saturate(1.95);
    box-shadow:
      0 34px 76px rgba(34, 48, 82, .17),
      inset 0 1px 0 rgba(255, 255, 255, .94),
      inset 0 -1px 0 rgba(255, 255, 255, .38);
  }
  html[data-theme][data-view="high"] main {
    margin-left: 268px;
    width: calc(100% - 268px);
    max-width: 1120px;
  }
  html[data-theme][data-view="high"] .logo {
    width: 42px;
    height: 42px;
    color: #fff;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(145deg, #4f83ff, #2557ee 58%, #1539b9);
    font-size: 21px;
    box-shadow: 0 14px 30px rgba(37, 87, 238, .32), inset 0 1px 0 rgba(255, 255, 255, .42);
  }
  html[data-theme][data-view="high"] aside nav button {
    border-radius: 15px;
    color: var(--muted);
    transition: background .18s ease, color .18s ease, transform .18s ease;
  }
  html[data-theme][data-view="high"] aside nav button.active {
    background: linear-gradient(135deg, rgba(79, 131, 255, .96), rgba(37, 87, 238, .9));
    color: #fff;
    box-shadow: 0 14px 30px rgba(37, 87, 238, .3), inset 0 1px 0 rgba(255, 255, 255, .38);
  }
  html[data-theme][data-view="high"] aside nav button.active span,
  html[data-theme][data-view="high"] aside nav button.active svg { color: #fff; }
}

/* 中间尺寸 */
@media (min-width: 651px) and (max-width: 1100px) {
  html[data-theme][data-view="high"] aside {
    background: linear-gradient(165deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .42));
    border-right-color: rgba(255, 255, 255, .74);
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
    backdrop-filter: blur(28px) saturate(1.8);
    box-shadow: 0 22px 54px rgba(34, 48, 82, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
  }
  html[data-theme][data-view="high"] aside nav button.active {
    background: linear-gradient(135deg, #4f83ff, #2557ee);
    color: #fff;
    box-shadow: 0 12px 26px rgba(37, 87, 238, .24);
  }
}

/* 移动端底栏：悬浮玻璃胶囊，强调色只落在当前项 */
@media (max-width: 650px) {
  html[data-theme][data-view="high"] aside {
    border: 1px solid rgba(255, 255, 255, .82) !important;
    background:
      radial-gradient(100% 120% at 12% 0%, rgba(255, 255, 255, .9), transparent 58%),
      linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .5)) !important;
    -webkit-backdrop-filter: blur(30px) saturate(1.95) !important;
    backdrop-filter: blur(30px) saturate(1.95) !important;
    box-shadow:
      0 22px 54px rgba(34, 48, 82, .18),
      inset 0 1px 0 rgba(255, 255, 255, .96),
      inset 0 -1px 0 rgba(255, 255, 255, .4) !important;
  }
  html[data-theme][data-view="high"] aside nav button span {
    color: rgba(17, 21, 28, .74) !important;
  }
  html[data-theme][data-view="high"] aside nav button.active {
    background: linear-gradient(135deg, rgba(79, 131, 255, .94), rgba(37, 87, 238, .9)) !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(37, 87, 238, .28), inset 0 1px 0 rgba(255, 255, 255, .36);
  }
  html[data-theme][data-view="high"] aside nav button.active span,
  html[data-theme][data-view="high"] aside nav button.active svg { color: #fff !important; }
  html[data-theme][data-view="high"] main { padding-top: calc(env(safe-area-inset-top, 0px) + 8px); }
  html[data-theme][data-view="high"] header { margin-bottom: 10px; padding-bottom: 0; border-bottom: 0; }
  html[data-theme][data-view="high"] header h1 { font-size: 30px; }
}

/* 文字层级：更黑、更干净 */
html[data-theme][data-view="high"] .set-h,
html[data-theme][data-view="high"] .set-h-main { color: var(--ink); }
html[data-theme][data-view="high"] .set-h { font-size: 26px; font-weight: 760; letter-spacing: -.045em; }
html[data-theme][data-view="high"] .set-h-main { font-size: 32px; }
html[data-theme][data-view="high"] .set-sub,
html[data-theme][data-view="high"] .settings-overview-intro { color: var(--muted); line-height: 1.7; }
html[data-theme][data-view="high"] .set-gtitle { color: var(--muted); letter-spacing: .1em; }
html[data-theme][data-view="high"] .set-row strong { color: var(--ink); }
html[data-theme][data-view="high"] .set-val { color: var(--muted); }
html[data-theme][data-view="high"] .section-title h2 { font-weight: 700; letter-spacing: -.025em; }

/* 按钮：液态蓝色，带镜面高光 */
html[data-theme][data-view="high"] .primary,
html[data-theme][data-view="high"] #add,
html[data-theme][data-view="high"] .set-primary,
html[data-theme][data-view="high"] .actions .primary,
html[data-theme][data-view="high"] .stage-actions .primary,
html[data-theme][data-view="high"] .tool-tabs button.primary,
html[data-theme][data-view="high"] #import-pdf,
html[data-theme][data-view="high"] #week-share {
  color: #fff;
  border-color: transparent;
  border-radius: 16px;
  background:
    radial-gradient(120% 100% at 18% 0%, rgba(255, 255, 255, .34), transparent 46%),
    linear-gradient(135deg, #4f83ff 0%, #2557ee 52%, #1539b9 100%);
  box-shadow: 0 16px 34px rgba(37, 87, 238, .3), inset 0 1px 0 rgba(255, 255, 255, .42);
}
html[data-theme][data-view="high"] .primary:hover,
html[data-theme][data-view="high"] #add:hover,
html[data-theme][data-view="high"] .set-primary:hover,
html[data-theme][data-view="high"] #import-pdf:hover,
html[data-theme][data-view="high"] #week-share:hover { filter: brightness(1.03); }

/* 悬浮菜单 / 弹窗：玻璃而不是米色纸 */
html[data-theme][data-view="high"] dialog[open],
html[data-theme][data-view="high"] .menu-panel,
html[data-theme][data-view="high"] .sheet {
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, .94), transparent 58%),
    linear-gradient(160deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .56));
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 34px 90px rgba(24, 34, 58, .24), inset 0 1px 0 rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(34px) saturate(1.8);
  backdrop-filter: blur(34px) saturate(1.8);
}
html[data-theme][data-view="high"] dialog[open]::backdrop {
  background: rgba(14, 20, 34, .34);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* 输入框：薄玻璃，不再像白纸 */
html[data-theme][data-view="high"] input,
html[data-theme][data-view="high"] select,
html[data-theme][data-view="high"] textarea {
  background-color: rgba(255, 255, 255, .62);
  border-color: rgba(255, 255, 255, .74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
html[data-theme][data-view="high"] input:focus,
html[data-theme][data-view="high"] select:focus,
html[data-theme][data-view="high"] textarea:focus {
  background-color: rgba(255, 255, 255, .8);
  border-color: rgba(47, 102, 255, .42);
  box-shadow: 0 0 0 4px rgba(47, 102, 255, .1);
}

/* 今日页：让山水图退到玻璃后面，颜色降到暖灰蓝 */
html[data-theme][data-view="high"] .daily-figure img,
html[data-theme][data-view="high"] .day-feature .daily-figure img {
  filter: saturate(.52) contrast(.92) brightness(1.06) hue-rotate(-6deg);
  opacity: .86;
}
html[data-theme][data-view="high"] .day-feature .next-lesson {
  background: linear-gradient(160deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .54));
  border-radius: 30px 0 0 30px;
}
html[data-theme][data-view="high"] .day-feature.no-daily .next-lesson {
  border-radius: 30px;
}

/* 同校论坛：列表卡片本身要有玻璃感，操作区仍保持隐藏 */
html[data-theme][data-view="high"] .room-swipe-wrap,
html[data-theme][data-view="high"] .room-thread {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(255, 255, 255, .72);
}
html[data-theme][data-view="high"] .room-swipe-wrap[data-self] .room-thread {
  background: linear-gradient(112deg, rgba(79, 131, 255, .16), rgba(255, 255, 255, .8) 58%);
}

/* 聊天详情：不再用暖纸平铺，改成晨光玻璃 */
html[data-theme][data-view="high"] .room-detail {
  background-color: #e9eff9;
  background-image:
    radial-gradient(46% 36% at 4% 0%, rgba(255, 190, 138, .6), transparent 64%),
    radial-gradient(44% 36% at 100% 0%, rgba(116, 158, 255, .65), transparent 62%),
    radial-gradient(52% 42% at 84% 100%, rgba(138, 232, 202, .46), transparent 68%),
    linear-gradient(150deg, #fdf8f1 0%, #edf2fc 50%, #e9f3f1 100%);
}
html[data-theme][data-view="high"] .room-detail-nav {
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 12px 30px rgba(34, 48, 82, .08);
}
html[data-theme][data-view="high"] .room-detail-hero,
html[data-theme][data-view="high"] .room-detail .set-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .56));
  border-color: rgba(255, 255, 255, .76);
  box-shadow: 0 22px 56px rgba(34, 48, 82, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
}
html[data-theme][data-view="high"] .room-detail-back {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(255, 255, 255, .8);
  box-shadow: 0 8px 20px rgba(34, 48, 82, .1), inset 0 1px 0 rgba(255, 255, 255, .9);
}

/* 显示模式：把高端版做成液态高光卡片，另外两项仍是安静的玻璃行 */
html[data-theme][data-view="high"] .view-mode-options {
  padding: 10px;
  gap: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .26));
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  backdrop-filter: blur(24px) saturate(1.7);
}
.view-mode-high {
  background:
    radial-gradient(120% 110% at 10% 0%, rgba(255, 255, 255, .94), transparent 54%),
    linear-gradient(135deg, rgba(79, 131, 255, .16), rgba(255, 255, 255, .72)) !important;
  border: 1px solid rgba(79, 131, 255, .34) !important;
  box-shadow: 0 14px 30px rgba(37, 87, 238, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
}
html[data-theme][data-view="high"] .view-mode-choice:not(.view-mode-high) {
  background: rgba(255, 255, 255, .44);
  border-color: rgba(255, 255, 255, .68);
}

/* 整周课表：玻璃表盘 + 蓝色液态今日列 */
html[data-theme][data-view="high"] .schedule-board {
  background: rgba(255, 255, 255, .34);
  border-color: rgba(255, 255, 255, .5);
}
html[data-theme][data-view="high"] .schedule-head.is-today {
  background: linear-gradient(180deg, rgba(79, 131, 255, .16), rgba(255, 255, 255, .36));
}
html[data-theme][data-view="high"] .schedule-cell.is-today {
  background: rgba(47, 102, 255, .07);
}
html[data-theme][data-view="high"] .course-block {
  background-color: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 8px 18px rgba(34, 48, 82, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
}

/* 工具箱目录：图标蓝色玻璃小方片 */
html[data-theme][data-view="high"] .directory-icon {
  color: var(--green);
  background: rgba(47, 102, 255, .08);
  border-radius: 12px;
}
html[data-theme][data-view="high"] .directory-item {
  border-color: rgba(18, 28, 48, .07);
}

/* 高端版外观：跟随系统 / 固定浅色 / 固定深色 */
html[data-theme][data-view="high"] .high-appearance {
  margin: 0;
  padding: 0;
  border: 0;
}
html[data-theme][data-view="high"] .high-appearance legend {
  padding: 0;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .04em;
}
html[data-theme][data-view="high"] .high-appearance-options {
  display: grid;
  gap: 8px;
}
html[data-theme][data-view="high"] .high-appearance-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 16px;
  background: rgba(255, 255, 255, .48);
}
html[data-theme][data-view="high"] .high-appearance-choice input {
  margin: 4px 0 0;
  accent-color: var(--green);
}
html[data-theme][data-view="high"] .high-appearance-choice input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 3px 0 0;
  padding: 0;
  border: 1px solid rgba(18, 28, 48, .22);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
html[data-theme][data-view="high"] .high-appearance-choice input[type="radio"]:checked {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 5px var(--paper);
}
html[data-theme][data-view="high"] .high-appearance-choice input + span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
html[data-theme][data-view="high"] .high-appearance-choice b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
html[data-theme][data-view="high"] .high-appearance-choice small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
html[data-theme][data-view="high"] .high-appearance-choice:has(input:checked) {
  border-color: rgba(47, 102, 255, .34);
  background:
    radial-gradient(120% 110% at 8% 0%, rgba(255, 255, 255, .8), transparent 55%),
    linear-gradient(135deg, rgba(47, 102, 255, .12), rgba(255, 255, 255, .5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

/* 更新日志：标题更深 */
html[data-theme][data-view="high"] .release-entry h3 { color: var(--ink); font-weight: 700; }

/* 高端版根背景：给 iOS 回弹 / 下拉露出的画布一个与页面顶部一致的颜色 */
html[data-theme][data-view="high"] {
  background-color: #f2e9de;
  color-scheme: light;
}
html[data-theme][data-view="high"][data-scheme="dark"] {
  background-color: #090d14;
  color-scheme: dark;
}

/* 普通版 → 高端版：约 2s 的整页淡入淡出 */
@keyframes kejian-view-out {
  from { opacity: 1; filter: blur(0); }
  to { opacity: 0; filter: blur(7px); }
}
@keyframes kejian-view-in {
  from { opacity: 0; filter: blur(7px); }
  to { opacity: 1; filter: blur(0); }
}
html.view-mode-transition::view-transition-old(root) {
  animation: kejian-view-out 2s cubic-bezier(.4, 0, .2, 1) both;
}
html.view-mode-transition::view-transition-new(root) {
  animation: kejian-view-in 2s cubic-bezier(.4, 0, .2, 1) both;
}
.view-mode-veil {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  pointer-events: none;
  opacity: 1;
  transition: opacity 2s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity;
}
.view-mode-veil.is-gone { opacity: 0; }

/* ===== 高端版确认：长按玻璃按钮 ===== */
.view-mode-confirm-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(360px, calc(100vw - 32px));
  max-width: 360px;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink, #1d1b18);
  overflow: visible;
}
.view-mode-confirm-dialog::backdrop {
  background: rgba(8, 12, 20, .26);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  backdrop-filter: blur(14px) saturate(1.12);
}
.view-confirm-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 24px 20px 18px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 30px;
  background:
    radial-gradient(110% 76% at 8% -18%, rgba(255, 255, 255, .78), transparent 58%),
    linear-gradient(152deg, color-mix(in srgb, var(--surface, #fff) 78%, transparent), color-mix(in srgb, var(--surface, #fff) 48%, transparent));
  box-shadow:
    0 34px 86px rgba(18, 28, 48, .28),
    0 6px 18px rgba(18, 28, 48, .10),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(255, 255, 255, .30);
  -webkit-backdrop-filter: blur(46px) saturate(1.9);
  backdrop-filter: blur(46px) saturate(1.9);
  transform: translateY(10px) scale(.965);
  opacity: 0;
  transition: transform .36s cubic-bezier(.2, .9, .22, 1), opacity .24s ease;
}
.view-mode-confirm-dialog.is-open .view-confirm-card { transform: none; opacity: 1; }
.view-mode-confirm-dialog.is-closing .view-confirm-card { transform: translateY(8px) scale(.985); opacity: 0; transition-duration: .2s; }
.view-confirm-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(50% 60% at 50% 50%, rgba(120, 160, 255, .20), transparent 70%);
}
.view-confirm-kicker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .10em;
  color: var(--muted, #777);
}
.view-confirm-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4f83ff;
  box-shadow: 0 0 0 3px rgba(79, 131, 255, .13), 0 0 10px rgba(79, 131, 255, .5);
}
.view-confirm-card h2 {
  position: relative;
  z-index: 1;
  margin: 12px 0 8px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 650;
}
.view-confirm-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 30em;
  color: var(--muted, #686868);
  font-size: 13px;
  line-height: 1.8;
}
.view-confirm-hint {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 2px 9px;
  font-size: 11px;
  color: var(--muted, #777);
}
.view-confirm-hint span { color: var(--ink, #1d1b18); font-weight: 600; letter-spacing: .02em; }
.view-confirm-hint small { font-size: 10px; }
.view-mode-hold {
  --hold-x: 28%;
  --hold-y: 22%;
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 70px;
  padding: 0;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .40);
  background: transparent;
  color: var(--ink, #1d1b18);
  isolation: isolate;
  overflow: visible;
  touch-action: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 12px 30px rgba(24, 34, 56, .10),
    0 2px 6px rgba(24, 34, 56, .05),
    inset 0 1px 0 rgba(255, 255, 255, .88);
  transition: transform .16s cubic-bezier(.2, .9, .22, 1), box-shadow .2s ease;
}
.view-mode-hold:focus-visible { outline: 2px solid rgba(79, 131, 255, .52); outline-offset: 4px; }
.hold-ring {
  position: absolute;
  inset: -1px;
  z-index: 3;
  padding: 2px;
  border-radius: 23px;
  pointer-events: none;
  background: conic-gradient(from 0deg, #9bc2ff 0deg, #4f83ff var(--hold-angle, 0deg), rgba(255, 255, 255, .22) var(--hold-angle, 0deg) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 calc(var(--hold-p, 0) * 12px) rgba(79, 131, 255, .48));
  opacity: .9;
}
.hold-surface {
  position: absolute;
  inset: 2px;
  z-index: 1;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .17) 0%, rgba(255, 255, 255, .02) 42%, rgba(79, 131, 255, .07) 100%),
    rgba(255, 255, 255, .015);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .84),
    inset 0 -1px 0 rgba(255, 255, 255, .26),
    inset 0 -14px 28px rgba(28, 42, 70, .045);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  backdrop-filter: blur(26px) saturate(1.7);
}
.hold-surface::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
}
.hold-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(180px 120px at var(--hold-x) var(--hold-y), rgba(255, 255, 255, .34), transparent 68%),
    radial-gradient(80% 120% at 15% 0%, rgba(255, 255, 255, .20), transparent 58%),
    linear-gradient(112deg, transparent 18%, rgba(255, 255, 255, .17) 42%, transparent 58%);
  opacity: .92;
  transition: opacity .16s ease;
}
.view-mode-hold.is-holding .hold-surface::after {
  background:
    radial-gradient(220px 150px at var(--hold-x) var(--hold-y), rgba(255, 255, 255, .52), transparent 70%),
    radial-gradient(80% 120% at 15% 0%, rgba(255, 255, 255, .24), transparent 58%),
    linear-gradient(112deg, transparent 18%, rgba(255, 255, 255, .22) 42%, transparent 58%);
  opacity: 1;
}
.hold-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  text-align: left;
}
.hold-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  color: #4f83ff;
  background: rgba(79, 131, 255, .09);
  border: 1px solid rgba(79, 131, 255, .20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}
.hold-mark svg { width: 18px; height: 18px; }
.hold-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hold-text b { font-size: 15px; line-height: 1.25; font-weight: 650; letter-spacing: .01em; }
.hold-text small { font-size: 10px; line-height: 1.3; color: var(--muted, #777); letter-spacing: .01em; }
.view-mode-hold.is-holding .hold-surface { background: linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(79, 131, 255, .10)); }
.view-mode-hold.is-holding .hold-mark { background: rgba(79, 131, 255, .16); }
.view-mode-hold.is-holding { transform: scale(.993); box-shadow: 0 18px 42px rgba(24, 34, 56, .16), 0 4px 10px rgba(24, 34, 56, .06), inset 0 1px 0 rgba(255, 255, 255, .9); }
.view-mode-hold.is-returning { animation: vc-hold-return .4s cubic-bezier(.2, .8, .2, 1); }
.view-mode-hold.is-confirmed { animation: vc-hold-confirm .32s cubic-bezier(.2, .9, .2, 1); }
.view-mode-hold.is-confirmed .hold-surface {
  background: linear-gradient(160deg, rgba(79, 131, 255, .22), rgba(255, 255, 255, .08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 26px rgba(79, 131, 255, .20);
}
.view-mode-hold.is-confirmed .hold-ring {
  background: conic-gradient(from 0deg, #74a3ff 0deg, #4f83ff 360deg);
  filter: drop-shadow(0 0 14px rgba(79, 131, 255, .62));
}
.view-mode-hold.is-confirmed .hold-mark {
  color: #fff;
  background: linear-gradient(145deg, #6a9dff, #3d73ff);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 4px 14px rgba(79, 131, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.view-mode-hold.is-confirmed .hold-text b { color: #2d5fd6; }
.view-confirm-cancel {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--muted, #777);
  font-size: 11px;
  letter-spacing: .03em;
  cursor: pointer;
}
.view-confirm-cancel:focus-visible { outline: 2px solid rgba(79, 131, 255, .38); outline-offset: 2px; border-radius: 10px; }
@keyframes vc-hold-return {
  0% { transform: scale(.985); }
  55% { transform: scale(1.006); }
  100% { transform: scale(1); }
}
@keyframes vc-hold-confirm {
  0%, 100% { transform: translateX(0) scale(1); }
  22% { transform: translateX(-2px) scale(1.004); }
  48% { transform: translateX(2px); }
  72% { transform: translateX(-1px); }
}
@media (max-width: 650px) {
  .view-mode-confirm-dialog { width: calc(100vw - 28px); }
  .view-confirm-card { padding: 22px 18px 16px; border-radius: 26px; }
  .view-confirm-card h2 { font-size: 24px; }
  .view-confirm-card p { font-size: 12.5px; }
  .view-mode-hold { height: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .view-confirm-card { transition-duration: .01s; }
  .view-mode-hold.is-returning, .view-mode-hold.is-confirmed { animation: none; }
}
