/* 拾时 · 登录后的设置（两屏：创建你的助手、功能与授权）和面板里的「功能与授权」页（wizard.js）。
   类名都以 su- 开头；只用 app.css 开头的配色和尺寸变量。
   纯白、细线、留白：卡片只用一像素的线分开，状态用小圆点，颜色只在「已开启」这类地方点一下。 */

/* ---------------------------------------------------------------- 整页 */
/* 换屏时淡入。只动透明度：动 transform 会让里面 fixed 的小窗口跟着它定位 */
.su { max-width: 760px; margin: 0 auto; padding: 40px 24px 88px; animation: su-fade .32s ease-out; }
.su-ic { display: block; flex: none; width: 20px; height: 20px; }
.su-head h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.su-head h1:focus { outline: none; }   /* 换屏后焦点落在标题上（给读屏软件），不画框 */
.su-lead { margin: 0; max-width: 34em; font-size: 15px; line-height: 1.65; color: var(--muted); }
.su-lead, .su-sec-lead, .su-help, .su-cap, .su-opt-d, .su-tile-d, .su-steps li { text-wrap: pretty; }
.su-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 顶上一行：进度（1 创建助手 · 2 功能与授权），右边是登录的学号 */
.su-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 52px; }
.su-prog { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--faint); }
.su-prog li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.su-prog li + li::before { content: ""; width: 32px; height: 1px; margin-right: 4px; background: var(--line-2); }
.su-prog .is-done + li::before { background: var(--faint); }
.su-prog-n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px;
  border: 1px solid var(--line-2); border-radius: 50%; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.su-prog-n .su-ic { width: 12px; height: 12px; stroke-width: 2; }
.su-prog .is-done { color: var(--muted); }
.su-prog .is-done .su-prog-n { border-color: color-mix(in srgb, var(--green) 32%, var(--panel)); color: var(--green); }
.su-prog .is-now { font-weight: 500; color: var(--ink); }
.su-prog .is-now .su-prog-n { border-color: var(--accent); background: var(--accent); color: var(--panel); }
.su-who { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 12px 4px 9px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.su-who .su-ic { width: 14px; height: 14px; }

/* 第二屏：使用方式收成一行，后面一句很淡的「以后可以改」 */
.su-mode { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 0; font-size: 13px; line-height: 1.6; }
.su-mode-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; margin-top: 1px;
  border-radius: 50%; color: var(--green); background: color-mix(in srgb, var(--green) 10%, var(--panel)); }
.su-mode-ic .su-ic { width: 12px; height: 12px; stroke-width: 2; }
.su-mode-x { display: flex; flex-wrap: wrap; gap: 0 12px; min-width: 0; }
.su-mode-t { color: var(--text); }
.su-mode-n { color: var(--faint); }

.su-sec { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.su-sec-head { margin-bottom: 22px; }
.su-sec-head h2 { display: flex; align-items: baseline; gap: 12px; margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.su-sec-lead { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

.su-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.su-foot-n { font-size: 13px; color: var(--muted); }

/* 面板里的「功能与授权」页：不要整页的留白，第一块不要顶上的线 */
.su-embed .su-sec { margin-top: 32px; padding-top: 28px; }
.su-embed .su-sec:first-child { margin-top: 10px; padding-top: 0; border-top: 0; }

/* ---------------------------------------------------------------- 文字、按钮、输入框（只管这一页自己的） */
.su-help { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.su-label { font-size: 13px; font-weight: 500; color: var(--text); }
.su-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--soft); font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--text); white-space: nowrap; }

button.su-pri { padding: 9px 18px; border-radius: var(--radius-sm); font-weight: 500; letter-spacing: .01em; transition: opacity .15s; }
button.su-pri:hover:not(:disabled) { opacity: .86; }
button.su-pri.su-lg { padding: 12px 24px; font-size: 15px; }
button.su-btn, a.su-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; padding: 9px 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--panel); color: var(--text); font-size: 14px;
  text-decoration: none; transition: background-color .15s, border-color .15s; }
button.su-btn:hover:not(:disabled), a.su-btn:hover { border-color: var(--faint); background: var(--soft); }
button.su-link { min-height: 0; padding: 0; border: 0; background: none; color: var(--link); font-size: inherit; font-weight: 400; }
a.su-link { display: inline-flex; align-items: center; gap: 2px; color: var(--link); text-decoration: none; }
.su-link:hover { text-decoration: underline; }
a.su-link .su-ic { width: 14px; height: 14px; }
:is(.su, .su-embed) :is(button, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

input.su-input { padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--panel); color: var(--text);
  font-size: 14px; transition: border-color .15s, box-shadow .15s; }
input.su-input::placeholder { color: var(--faint); }
input.su-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.su-input:disabled { background: var(--soft); color: var(--muted); }
.su-time { width: 112px; font-variant-numeric: tabular-nums; }
.su-msg { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.su-msg:empty { display: none; }
.su-msg.ok { color: var(--green); }
.su-msg.bad { color: var(--red); }

/* ---------------------------------------------------------------- 第一屏：使用方式、名字、「创建助手」 */
.su-opts-l { display: block; margin: 0 0 10px; }
.su-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
button.su-opt { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 20px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: var(--panel); color: var(--text); font-weight: 400; line-height: 1.5; text-align: left;
  transition: border-color .15s, box-shadow .15s; }
button.su-opt:hover:not(:disabled) { border-color: var(--faint); }
button.su-opt.on, button.su-opt.on:hover:not(:disabled) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
button.su-opt:disabled { opacity: .55; }
.su-opt-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.su-opt-top b { font-size: 15px; font-weight: 600; color: var(--ink); }
.su-radio { width: 18px; height: 18px; flex: none; border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--panel); transition: border .15s; }
.su-opt.on .su-radio { border: 5.5px solid var(--accent); }
.su-opt-d { padding-left: 28px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.su-opt-m { padding-left: 28px; font-size: 12px; color: var(--faint); }

.su-own { display: grid; gap: 18px; margin-top: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.su-own-r { display: grid; gap: 10px; }
.su-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.su-chip { position: relative; cursor: pointer; }
.su-chip input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.su-chip span { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel);
  font-size: 13px; color: var(--text); transition: background-color .15s, border-color .15s, color .15s; }
.su-chip:hover span { border-color: var(--faint); }
.su-chip input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--panel); }
.su-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.su-chip input:disabled + span { opacity: .5; cursor: default; }
.su-prov { display: grid; gap: 2px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.su-prov p { margin: 0; }
.su-prov .su-link { margin-top: 4px; justify-self: start; }
.su-keyrow { display: flex; gap: 8px; }
.su-keyrow .su-input { flex: 1; min-width: 0; }
.su-budget { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
input.su-budget-in { width: 88px; text-align: center; font-variant-numeric: tabular-nums; }

.su-field { display: grid; gap: 8px; max-width: 320px; margin-top: 24px; }
.su-field label { font-size: 13px; font-weight: 500; color: var(--text); }
.su-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.su-auth .su-actions { margin-top: 14px; }
.su-log { margin: 14px 0 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.75; color: var(--muted); }
.su-log:empty { display: none; }
.su-log .su-err { color: var(--red); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- 功能格子（第二屏、面板那一页） */
.su-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 12px; }
/* 按钮里的内容默认竖着居中：改成从顶上排，同一行的几格图标才对齐 */
.su-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-start; width: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--text); font: inherit; font-weight: 400; line-height: 1.5; text-align: left; }
button.su-tile { cursor: pointer; transition: border-color .15s, box-shadow .2s, transform .2s; }
button.su-tile:hover:not(:disabled) { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.su-tile-in { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic p" "t t" "d d"; align-content: start;
  gap: 6px 10px; min-height: 110px; }
.su-tile-ic { grid-area: ic; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px;
  margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); color: var(--ink); }
.su-tile-in .su-pill { grid-area: p; justify-self: end; align-self: start; }
.su-tile-t { grid-area: t; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.su-tile-d { grid-area: d; padding-right: 22px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.su-tile-go { position: absolute; right: 14px; bottom: 16px; color: var(--faint); transition: color .15s, transform .15s; }
.su-tile-go .su-ic { width: 16px; height: 16px; }
button.su-tile:hover .su-tile-go { color: var(--ink); transform: translateX(2px); }
.su-tile.is-soon .su-tile-ic, .su-tile.is-soon .su-tile-t { color: var(--faint); }
.su-tile.is-soon .su-tile-d { color: var(--faint); }

.su-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.su-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.su-pill-on { color: var(--green); border-color: color-mix(in srgb, var(--green) 26%, var(--panel)); }
.su-pill-off { color: var(--text); }
.su-pill-off::before { background: var(--faint); }
.su-pill-soon { border-style: dashed; color: var(--faint); }
.su-pill-soon::before { display: none; }

/* ---------------------------------------------------------------- 点开一项的小窗口 */
.su-sheet-wrap { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: su-fade .18s ease-out; }
.su-sheet { display: flex; flex-direction: column; width: min(600px, 100%); max-height: min(800px, calc(100vh - 48px)); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); outline: none;
  animation: su-rise .26s cubic-bezier(.2, .8, .2, 1); }
.su-sheet-head { display: flex; align-items: center; gap: 14px; padding: 22px 22px 18px 24px; border-bottom: 1px solid transparent; transition: border-color .15s; }
.su-sheet-head.su-scrolled { border-bottom-color: var(--line); }
.su-sheet-title { display: grid; flex: 1; gap: 6px; justify-items: start; min-width: 0; }
.su-sheet-title h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.su-sheet-head .su-tile-ic { margin: 0; }
button.su-x { display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: flex-start; width: 34px; height: 34px;
  min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
button.su-x:hover:not(:disabled) { background: var(--soft); color: var(--ink); }
.su-x .su-ic { width: 18px; height: 18px; }
.su-sheet-body { flex: 1; min-height: 0; padding: 0 24px 28px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.su-block-h { margin: 24px 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.su-sheet-body > .su-block-h:first-child { margin-top: 2px; }

/* 「它能帮你做什么」：一个具体的小例子 */
.su-stage { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.su-cap { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--muted); }
.su-note { padding: 10px 14px 12px; border-radius: 12px; background: var(--soft); }
.su-note-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 3px; font-size: 11px; color: var(--muted); }
.su-note-top b { font-weight: 600; color: var(--text); }
.su-note-x { font-size: 13px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.su-note-h { display: block; margin-bottom: 2px; font-weight: 600; color: var(--ink); }   /* 系统通知样子的例子：标题一行 */
.su-item { padding: 2px 0 4px; }
.su-item-k { font-size: 11px; letter-spacing: .02em; color: var(--muted); }
.su-item-t { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.su-item-m { margin-top: 4px; font-size: 12px; color: var(--muted); }
.su-chat { display: flex; flex-direction: column; gap: 8px; }
.su-chat-h { padding-bottom: 10px; border-bottom: 1px solid var(--line); text-align: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.su-chat-t { margin: 2px 0; text-align: center; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.su-bub { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.su-bub.in { align-self: flex-start; border-top-left-radius: 6px; background: var(--soft); color: var(--text); }
.su-bub.out { align-self: flex-end; border-top-right-radius: 6px; background: var(--accent); color: var(--panel); }
/* 微信例子里学生发的两张照片（占位的缩略图） */
.su-pics { align-self: flex-end; display: flex; gap: 6px; }
.su-pic { display: block; width: 76px; height: 76px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.su-pic svg { display: block; width: 100%; height: 100%; }
.su-pic-bg { fill: var(--soft); }
.su-pic-hill { fill: var(--line-2); }
.su-pic-sun { fill: var(--faint); }
.su-pic + .su-pic .su-pic-hill { fill: var(--faint); }
.su-pic + .su-pic .su-pic-sun { fill: var(--line-2); }
.su-mail { display: grid; }
.su-mail-r { display: flex; gap: 12px; padding: 0 0 9px; margin-bottom: 9px; border-bottom: 1px solid var(--line); font-size: 12px; }
.su-mail-r span { flex: none; width: 3em; color: var(--muted); }
.su-mail-r b { min-width: 0; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.su-mail-b { padding: 3px 0 4px; font-size: 13px; line-height: 1.6; color: var(--text); }
.su-mail-b p { margin: 0 0 6px; }
.su-mail-b p:last-child { margin: 0; }
.su-mail-n { font-size: 12px; color: var(--muted); }
/* 邮件那一项的例子：收件箱里新来的两封（发件人长一点），下面接微信里的总结 */
.su-mail-in .su-mail-r span { width: 6.5em; }
.su-mail-in + .su-chat { margin-top: 6px; }
.su-todo-h { padding-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.su-todo-r { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.su-todo-r:last-child { padding-bottom: 4px; }
.su-todo-c { flex: none; width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 50%; }
.su-todo-t { flex: 1; min-width: 0; color: var(--text); }
.su-todo-w { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.su-todo-w .su-ic { width: 13px; height: 13px; }

/* 「怎么开启」：编号的几步 */
.su-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: su-step; }
.su-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; counter-increment: su-step; font-size: 14px; line-height: 1.6; color: var(--text); }
.su-steps li::before { content: counter(su-step); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  margin-top: -1px; border: 1px solid var(--line-2); border-radius: 50%; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 授权：尽量自动，一两下就好 */
.su-auth { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.su-auth-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--ink); }
.su-auth > .su-help + .su-actions, .su-auth .su-keyrow + .su-msg { margin-top: 10px; }
.su-auth .su-keyrow + .su-msg + .su-help, .su-auth .su-keyrow + .su-msg:empty + .su-help { margin-top: 10px; }
.su-courses { display: grid; }
.su-course { display: flex; align-items: flex-start; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line); cursor: pointer; }
.su-course:last-child { border-bottom: 1px solid var(--line); }
.su-course input { flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--accent); }
.su-course-t { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.su-course-t b { font-weight: 500; color: var(--ink); }
.su-course-t span { font-size: 12px; color: var(--muted); }
.su-wait { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 0; font-size: 13px; color: var(--muted); }
.su-spin { flex: none; width: 14px; height: 14px; border: 1.5px solid var(--line-2); border-top-color: var(--muted); border-radius: 50%;
  animation: su-spin .9s linear infinite; }
.su-set { display: grid; border-top: 1px solid var(--line); }
.su-set-r { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 0;
  border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text); }
.su-set-v { display: inline-flex; align-items: center; gap: 8px; }
.su-set + .su-help { margin-top: 10px; }
.su-to { font-size: 13px; color: var(--muted); }
.su-sw { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.su-sw input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.su-sw-ui { position: relative; flex: none; width: 36px; height: 22px; border-radius: 999px; background: var(--line-2); transition: background-color .2s; }
.su-sw-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 22%, transparent); transition: transform .2s; }
.su-sw input:checked + .su-sw-ui { background: var(--accent); }
.su-sw input:checked + .su-sw-ui::after { transform: translateX(14px); }
.su-sw input:focus-visible + .su-sw-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.su-saved { font-size: 12px; font-weight: 400; color: var(--green); opacity: 0; transition: opacity .2s; }
.su-saved.show { opacity: 1; }
.su-saved.bad { color: var(--red); }
.su-okline { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; color: var(--green); }
.su-okline .su-ic { width: 16px; height: 16px; }
.su-tips { margin-top: 16px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--green) 30%, var(--panel)); border-radius: var(--radius-sm); }
.su-tips b { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.su-tips ol { display: grid; gap: 4px; margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--text); }
/* 渠道页拿来的扫码、邮箱绑定：窗口顶上已经有标题了，去掉它们自己的框和标题 */
.su-ext .box { padding: 0; border: 0; border-radius: 0; background: none; }
.su-ext .box > h3:first-child { display: none; }

/* 待办清单：推荐滴答（附下载二维码），下面选滴答清单还是手机自带的日历。电脑上扫码，手机上直接点下载 */
.su-rec { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.su-rec > * { margin: 0; }
.su-rec-h { font-size: 15px; font-weight: 700; color: var(--ink); }
.su-rec p { font-size: 13px; line-height: 1.6; color: var(--text); }
.su-dl { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.su-dl-qr { flex: none; width: 104px; height: 104px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.su-dl-x { display: grid; justify-items: start; gap: 8px; }
a.su-dl-go { display: none; }
.su-todo-ways { margin: 18px 0 16px; }
.su-todo-way > .su-steps { margin-bottom: 16px; }
@media (max-width: 640px), (pointer: coarse) {
  .su-dl-qr, .su-dl-scan { display: none; }
  a.su-dl-go { display: inline-flex; }
}

/* 邮件：授权一个邮箱给助手（pages/channels.js 的 emailBox，渠道页和「邮件」窗口共用）。一步一步往下展开 */
.mb .mb-h { display: block; margin: 24px 0 10px; }
.mb > .mb-h:first-child { margin-top: 0; }
.mb .su-opt { padding: 16px 18px; }
.mb-others { margin-top: 10px; }
.mb-how { display: grid; gap: 12px; margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.mb-how > * { margin: 0; }
.mb-note { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--soft); font-size: 13px; line-height: 1.6; color: var(--text); }
.mb-steps { display: grid; gap: 6px; padding-left: 20px; font-size: 13px; line-height: 1.6; color: var(--text); }
.mb-form { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 14px; align-items: center; margin-top: 4px; }
.mb-form label { font-size: 13px; color: var(--muted); }
.mb-form input.su-input { width: 100%; max-width: 360px; }
.mb-how .su-actions { margin-top: 0; }
a.su-btn.mb-go, a.su-btn.mb-go:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
a.su-btn.mb-go:hover { opacity: .86; }
.mb-ok { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }

@keyframes su-fade { from { opacity: 0; } }
@keyframes su-rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes su-up { from { transform: translateY(100%); } }
@keyframes su-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- 手机 */
@media (max-width: 640px) {
  .su { padding: 24px 16px 56px; }
  .su-top { margin-bottom: 36px; }
  .su-head h1 { font-size: 26px; }
  .su-sec { margin-top: 40px; padding-top: 28px; }
  .su-foot { margin-top: 40px; padding-top: 24px; }
  .su-opts { grid-template-columns: minmax(0, 1fr); }
  .su-own { padding: 16px; }
  .su-sheet-wrap { align-items: flex-end; padding: 0; }
  .su-sheet { width: 100%; max-height: 92vh; max-height: 92dvh; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; animation-name: su-up; }
  .su-sheet::before { content: ""; flex: none; align-self: center; width: 36px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--line-2); }
  .su-sheet-head { padding: 12px 12px 14px 16px; }
  .su-sheet-body { padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
  .su-stage { padding: 14px; }
  .su-time { width: 108px; }
  input.su-input { font-size: 16px; }   /* 不小于 16px，iPhone 一点输入框才不放大页面 */
  .mb-how { padding: 14px; }
  .mb-form { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mb-form label:not(:first-child) { margin-top: 6px; }
}
@media (max-width: 480px) {
  /* 一列：图标在左，名字、说明、状态在右 */
  .su-tile { padding: 16px 40px 16px 16px; }
  .su-tile-in { grid-template-columns: 38px minmax(0, 1fr); grid-template-areas: "ic t" "ic d" "ic p"; gap: 3px 14px; min-height: 0; }
  .su-tile-ic { margin: 0; }
  .su-tile-in .su-pill { justify-self: start; margin-top: 6px; }
  .su-tile-d { padding-right: 0; }
  .su-tile-go { top: 50%; bottom: auto; transform: translateY(-50%); }
  button.su-tile:hover .su-tile-go { transform: translate(2px, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .su, .su-sheet-wrap, .su-sheet, .su-spin { animation: none; }
  button.su-tile, .su-tile-go { transition: none; }
  button.su-tile:hover:not(:disabled) { transform: none; }
}

/* 我的日历（mycal.js，docs/specs/home-calendar-sources.md） */
.mc-list { display: grid; }
.mc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line); }
.mc-row:last-child { border-bottom: 1px solid var(--line); }
.mc-row-t { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.mc-row-t b { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.mc-row-t span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.mc-row-t span.mc-bad { color: var(--red); }
.mc-row-a { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; font-size: 13px; }
button.su-link.mc-del { color: var(--red); }
.su-auth-h.mc-h { margin-top: 24px; }
.mc-form { display: grid; gap: 8px; }
.mc-form + .su-msg { margin-top: 10px; }
.su-auth .su-actions.mc-upl { margin-top: 14px; gap: 8px 12px; }
.mc-file { display: none; }
button.su-pri.mc-up { border: 1px solid var(--line-2); background: var(--panel); color: var(--text); }
.su-help.mc-note { margin-top: 14px; }
label.mc-dida { margin-top: 16px; border-bottom: 1px solid var(--line); }
.mc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.mc-dot.src-hub { background: var(--blue); }
.mc-dot.src-cal { background: var(--green); }
.mc-dot.src-dida { background: var(--orange); }
@media (max-width: 480px) {
  .mc-row { flex-direction: column; gap: 6px; }
  .mc-row-a { justify-content: flex-start; }
}
