/* 微联 · 极简视觉系统
 * 只用三样东西构建层次：留白、1px 细线、单一强调色。
 * 不用阴影、不用渐变、不用彩色图标。
 */

:root {
  --bg: #ffffff;
  --side: #fbfbfb;
  --surface: #f4f4f5;
  --line: #ececec;
  --line-strong: #e0e0e0;
  --text: #101113;
  --text-2: #6b6f76;
  --text-3: #a1a5ab;
  --ink: #1a1b1d;
  --accent: #10a05a;
  --danger: #c0392b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans CN", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input, textarea { font-family: inherit; color: inherit; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #dcdcdc; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #c8c8c8; }
::selection { background: #d7f0e2; }

/* ---------------- 启动 ---------------- */
.boot {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.boot-mark { font-size: 15px; font-weight: 600; letter-spacing: 8px; color: var(--text); }
.boot-text { font-size: 12px; color: var(--text-3); }

/* ---------------- 框架 ---------------- */
.app {
  height: 100%;
  display: grid;
  grid-template-columns: 288px 1fr;
  background: var(--bg);
}

.side {
  display: flex; flex-direction: column; min-height: 0;
  min-width: 0; /* 窄屏 1fr 轨道不许被内容撑开（D62） */
  background: var(--side);
  border-right: 1px solid var(--line);
}

/* 顶栏：头像 + 名字 + ID */
.me-bar { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; }
.me-info { min-width: 0; flex: 1; }
.me-name { font-size: 14px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-id {
  margin-top: 4px; font-size: 10.5px; color: var(--text-3); letter-spacing: .5px;
  font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 5px;
}
.me-id:hover { color: var(--text-2); }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #d5d5d5; flex: none;
  transition: background .25s;
}
.status-dot.on { background: var(--accent); }
.status-dot.warn { background: #e0a63a; }

.search-wrap { padding: 0 14px 12px; }
.search {
  width: 100%; height: 30px; padding: 0 10px;
  border: 1px solid transparent; border-radius: 7px; background: var(--surface);
  font-size: 12.5px; outline: none; transition: .15s;
}
.search::placeholder { color: var(--text-3); }
.search:focus { background: #fff; border-color: var(--line-strong); }

.tabs { display: flex; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.tab { padding: 9px 0 10px; font-size: 12.5px; color: var(--text-3); position: relative; transition: color .15s; }
.tab:hover { color: var(--text-2); }
.tab.on { color: var(--text); font-weight: 600; }
.tab.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--text);
}

.panels { flex: 1; min-height: 0; position: relative; }
.panel { display: none; height: 100%; flex-direction: column; min-height: 0; }
.panel.on { display: flex; }

.list { flex: 1; overflow-y: auto; padding: 4px 8px 20px; }
.panel-actions { display: flex; gap: 6px; padding: 10px 14px 8px; flex-wrap: wrap; }
.act {
  padding: 6px 11px; border-radius: 7px; border: 1px solid var(--line-strong);
  font-size: 12px; color: var(--text-2); background: #fff; transition: .15s;
}
.act:hover { border-color: #c9c9c9; color: var(--text); }
.hint { padding: 4px 16px 10px; font-size: 11px; color: var(--text-3); line-height: 1.8; }
.placeholder { padding: 40px 26px; font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.9; }

/* 列表行 */
.row {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 8px; border-radius: 8px; cursor: pointer;
  transition: background .12s;
}
.row:hover { background: #f2f2f3; }
.row.on { background: #f0f0f1; }
.row-main { flex: 1; min-width: 0; }
.row-top { display: flex; align-items: baseline; gap: 6px; }
.row-name { font-size: 13.5px; color: var(--text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-time { font-size: 10px; color: var(--text-3); flex: none; font-variant-numeric: tabular-nums; }
.row-sub {
  font-size: 11.5px; color: var(--text-3); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 有草稿的那一行比别的深一点：一眼能看出「我有半句话还没发」 */
.row-sub.has-draft { color: var(--text-2); }
.badge {
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--text); color: #fff; font-size: 10px; line-height: 16px; text-align: center; flex: none;
}
.dot-live { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; align-self: center; }

/* ---------------- 聊天区 ---------------- */
.stage { min-width: 0; min-height: 0; display: flex; flex-direction: column; }

.empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--text-3); text-align: center; padding: 40px;
}
.empty h2 { font-size: 13px; color: var(--text-2); font-weight: 500; margin: 16px 0 2px; letter-spacing: .3px; }
.empty p { font-size: 11.5px; line-height: 1.9; margin: 0; color: var(--text-3); }
.empty-art { opacity: .55; }

.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #fff; }

.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px; height: 56px; border-bottom: 1px solid var(--line); flex: none;
}
.back { display: none; }
.chat-title { flex: 1; min-width: 0; }
#chatName { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-sub { font-size: 10.5px; color: var(--text-3); margin-top: 2px; letter-spacing: .2px; }
.chat-sub .ok { color: var(--accent); }
.chat-sub .bad { color: #c08a2e; }

.icon-btn {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-3); transition: .14s;
}
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }

.msgs {
  flex: 1; overflow-y: auto; padding: 22px 24px 10px;
  display: flex; flex-direction: column;
  background: #fff;
}

.time-sep { text-align: center; margin: 18px 0 10px; }
.time-sep span { font-size: 10px; color: var(--text-3); letter-spacing: .3px; }

/* 加载更早的消息 */
.load-more {
  display: block; margin: 10px auto 4px; padding: 6px 14px;
  font: inherit; font-size: 12px; color: var(--text-2);
  background: transparent; border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer;
}
.load-more:hover { color: var(--text); border-color: var(--text-3); }

.msg { display: flex; gap: 9px; margin: 7px 0; align-items: flex-start; }
.msg.me { flex-direction: row-reverse; }
.msg-col { display: flex; flex-direction: column; max-width: min(540px, 70%); min-width: 0; }
.msg.me .msg-col { align-items: flex-end; }
.msg-from { font-size: 10px; color: var(--text-3); margin: 0 2px 4px; }

.bubble {
  padding: 8px 13px; border-radius: 12px;
  background: var(--surface); color: var(--text);
  font-size: 13.5px; line-height: 1.62;
  word-break: break-word; white-space: pre-wrap;
  max-width: 100%;
}
.msg.me .bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg:not(.me) .bubble { border-bottom-left-radius: 4px; }
.bubble a { color: inherit; }

.msg-meta {
  display: flex; align-items: center; gap: 5px;
  font-size: 9.5px; color: var(--text-3); margin: 5px 2px 0; letter-spacing: .2px;
}
.msg-meta .fail { color: var(--danger); }
.msg-meta .retry {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--text-2);
  font: inherit; font-size: 9.5px; padding: 1px 8px; border-radius: 999px; cursor: pointer;
}
.msg-meta .retry:hover { color: var(--text); border-color: var(--text-3); }
.msg-meta .sending { color: #b08d3c; }

/* 语音 */
.bubble.voice {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  min-width: 86px; user-select: none; padding: 9px 13px;
}
.bubble.voice .wave { display: inline-flex; align-items: center; gap: 2px; height: 12px; }
.bubble.voice .wave i { display: block; width: 2px; height: 100%; border-radius: 2px; background: currentColor; opacity: .35; }
.bubble.voice.playing .wave i { animation: wv .9s infinite ease-in-out; opacity: .85; }
.bubble.voice .wave i:nth-child(1) { height: 45%; }
.bubble.voice .wave i:nth-child(2) { height: 100%; animation-delay: .1s; }
.bubble.voice .wave i:nth-child(3) { height: 70%; animation-delay: .2s; }
.bubble.voice .wave i:nth-child(4) { height: 90%; animation-delay: .3s; }
@keyframes wv { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.bubble.voice .dur { font-size: 10.5px; opacity: .6; font-variant-numeric: tabular-nums; }
.bubble.voice.pending { opacity: .45; }

/* 文件 */
.bubble.file { display: flex; align-items: center; gap: 11px; min-width: 190px; max-width: 300px; }
.file-ico {
  width: 30px; height: 36px; border-radius: 4px; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--text-3); font-size: 8.5px; font-weight: 600;
  flex: none; letter-spacing: .5px; background: #fff;
}
.msg.me .file-ico { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.65); }
.file-body { min-width: 0; flex: 1; }
.file-name { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.file-size { font-size: 10px; opacity: .5; margin-top: 3px; }
.progress { height: 2px; border-radius: 2px; background: rgba(127,127,127,.18); margin-top: 7px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: currentColor; width: 0; transition: width .2s; opacity: .7; }

/* 输入 */
.composer {
  display: flex; align-items: flex-end; gap: 6px;
  padding: 12px 18px 16px; border-top: 1px solid var(--line); flex: none;
}
.comp-tools { display: flex; gap: 0; padding-bottom: 2px; }
#input {
  flex: 1; resize: none; max-height: 132px; min-height: 36px;
  padding: 8px 4px; border: 0; background: transparent;
  font-size: 13.5px; line-height: 1.6; outline: none;
}
#input::placeholder { color: var(--text-3); }
.send {
  height: 32px; padding: 0 15px; border-radius: 8px; margin-bottom: 2px;
  background: var(--ink); color: #fff; font-size: 12.5px; transition: .15s;
}
.send:hover { background: #000; }
.send:disabled { background: #f0f0f1; color: var(--text-3); cursor: default; }

.rec-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12.5px;
}
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: blink 1.1s infinite; }
@keyframes blink { 50% { opacity: .15; } }
.rec-tip { font-size: 10.5px; color: var(--text-3); flex: 1; }
.rec-act { padding: 5px 12px; border-radius: 7px; border: 1px solid var(--line-strong); font-size: 12px; background: #fff; }
.rec-act.primary { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------- 头像 ---------------- */
.avatar {
  border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 500; flex: none; user-select: none;
  overflow: hidden; letter-spacing: .3px;
}

/* ---------------- 弹窗 ---------------- */
/* z-index 96：必须压过通话遮罩（90）——通话中收到大文件要能点「收下/拒绝」，
   否则弹窗被通话界面盖住，用户怎么点都没反应 */
.overlay {
  position: fixed; inset: 0; z-index: 96; background: rgba(16, 17, 19, .28);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; transition: opacity .16s;
}
.overlay.in { opacity: 1; }
.modal {
  width: min(420px, 100%); max-height: 88vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 14px;
  transform: translateY(6px); transition: transform .16s;
  border: 1px solid var(--line);
}
.overlay.in .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 4px 20px; }
.modal-head h3 { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: .2px; }
.modal-body { padding: 8px 20px 4px; overflow-y: auto; font-size: 12.5px; line-height: 1.8; color: var(--text-2); }
.modal-foot { display: flex; justify-content: flex-end; gap: 6px; padding: 14px 14px 16px; }
.btn {
  height: 32px; padding: 0 14px; border-radius: 7px; font-size: 12.5px;
  background: var(--surface); color: var(--text); transition: .15s;
}
.btn:hover { background: #ebebec; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #000; }
.btn.danger { background: #fdf2f1; color: var(--danger); }
.btn.danger:hover { background: #fbe7e5; }
.btn:disabled { opacity: .4; cursor: default; }

.field { margin: 12px 0 4px; }
.field label { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 6px; letter-spacing: .2px; }
.input {
  width: 100%; height: 34px; padding: 0 10px; border-radius: 7px;
  border: 1px solid var(--line-strong); background: #fff; font-size: 12.5px; outline: none;
  transition: .14s;
}
.input:focus { border-color: #b8b8b8; }
textarea.input { height: 96px; padding: 9px 10px; resize: vertical; line-height: 1.7; }

.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.kv:last-child { border-bottom: 0; }
.kv b { font-weight: 400; color: var(--text-3); flex: none; }
.kv span { color: var(--text); text-align: right; word-break: break-all; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .4px; }

/* ---------------- Toast ---------------- */
.toast-root {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  z-index: 80; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none;
}
.toast {
  background: var(--ink); color: #fff; font-size: 11.5px;
  padding: 8px 15px; border-radius: 8px; max-width: 76vw; line-height: 1.6;
  opacity: 0; transform: translateY(5px); transition: .2s;
}
.toast.in { opacity: 1; transform: none; }

/* ---------------- 朋友圈 ---------------- */
.sheet { position: fixed; inset: 0; z-index: 50; background: #fff; display: flex; flex-direction: column; }
.sheet-head {
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
  height: 56px; border-bottom: 1px solid var(--line); flex: none;
}
.sheet-head h2 { font-size: 13.5px; margin: 0; flex: 1; font-weight: 600; letter-spacing: .2px; }
.sheet-body { flex: 1; overflow-y: auto; padding: 24px 20px 60px; }
.feed { max-width: 560px; margin: 0 auto; }

.post { padding: 22px 0; border-bottom: 1px solid var(--line); }
.post:first-child { padding-top: 4px; }
.post-head { display: flex; gap: 10px; align-items: center; }
.post-name { font-size: 12.5px; font-weight: 600; }
.post-time { font-size: 10px; color: var(--text-3); margin-top: 3px; }
.post-text { font-size: 13.5px; line-height: 1.8; margin: 12px 0 0; white-space: pre-wrap; word-break: break-word; }
.post-imgs { display: grid; gap: 3px; margin-top: 12px; }
.post-imgs.n1 { grid-template-columns: 1fr; }
.post-imgs.n2, .post-imgs.n4 { grid-template-columns: 1fr 1fr; }
.post-imgs.n3, .post-imgs.n5, .post-imgs.n6, .post-imgs.n9 { grid-template-columns: repeat(3, 1fr); }
.post-imgs img { width: 100%; border-radius: 4px; display: block; object-fit: cover; aspect-ratio: 1; cursor: zoom-in; }
.post-imgs.n1 img { aspect-ratio: auto; max-height: 320px; object-fit: contain; background: var(--surface); }

/* 点开大图 */
.photo-layer {
  position: fixed; inset: 0; z-index: 90; background: rgba(12, 13, 14, .94);
  display: grid; place-items: center; cursor: zoom-out;
}
.photo-layer .photo-img { max-width: 96vw; max-height: 90vh; object-fit: contain; border-radius: 2px; }
.photo-layer .photo-count {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  color: rgba(255, 255, 255, .72); font-size: 12px; letter-spacing: .5px;
}
.photo-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1;
  color: #fff; background: rgba(255, 255, 255, .12); display: grid; place-items: center;
  transition: background .14s;
}
.photo-nav:hover { background: rgba(255, 255, 255, .22); }
.photo-nav.prev { left: 14px; }
.photo-nav.next { right: 14px; }
.post-foot { display: flex; gap: 16px; margin-top: 12px; }
.post-btn { font-size: 11px; color: var(--text-3); display: inline-flex; gap: 3px; align-items: center; transition: .14s; }
.post-btn:hover { color: var(--text); }
.post-btn.on { color: var(--accent); }
.post-social { margin-top: 10px; font-size: 11.5px; line-height: 1.9; color: var(--text-2); }
.post-social .who { color: var(--text); font-weight: 500; }
.post-social .cmt { display: block; }
.post-social .cmt .who::after { content: "："; }
.empty-feed { text-align: center; color: var(--text-3); font-size: 12px; padding: 90px 20px; line-height: 2; }

/* ---------------- 通话 ---------------- */
.call-root { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.call-root > * { pointer-events: auto; }
.call-mask {
  position: fixed; inset: 0; background: #111214;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: #fff;
}
.call-name { font-size: 17px; font-weight: 500; margin-top: 14px; letter-spacing: .4px; }
.call-state { font-size: 11.5px; color: rgba(255,255,255,.45); letter-spacing: .5px; }
.call-actions { display: flex; gap: 28px; margin-top: 44px; }
.call-btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff; transition: .14s;
}
.call-btn:hover { background: rgba(255,255,255,.18); }
.call-btn.end { background: #d24b45; }
.call-btn.end:hover { background: #c0403a; }
.call-btn.accept { background: var(--accent); }
.call-btn.small { width: 46px; height: 46px; }
.call-msg { font-size: 10.5px; color: rgba(255,255,255,.3); margin-top: 6px; }

/* ---------------- 我 ---------------- */
.me-card {
  margin: 16px 14px; padding: 16px 4px; display: flex; gap: 12px; align-items: center;
}
.me-card .n { font-size: 15px; font-weight: 600; }
.me-card .i { font-size: 10.5px; color: var(--text-3); margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: .4px; }
.me-list { margin: 4px 6px 12px; }
.me-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 10px;
  font-size: 12.5px; border-bottom: 1px solid var(--line); width: 100%; text-align: left;
  border-radius: 0; transition: .12s;
}
.me-item:hover { background: #fafafa; }
.me-item:last-child { border-bottom: 0; }
.me-item .v { margin-left: auto; color: var(--text-3); font-size: 11px; }
.me-item.danger { color: var(--danger); }

.switch {
  margin-left: auto; width: 34px; height: 20px; border-radius: 999px; background: #e3e3e4;
  position: relative; transition: .18s; flex: none;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: .18s; box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.switch.on { background: var(--ink); }
.switch.on::after { transform: translateX(14px); }

/* ---------------- 首次身份创建 ---------------- */
.onboard {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px;
  background: var(--bg);
}
.onboard-card { width: min(400px, 100%); }
.onboard-mark { font-size: 14px; font-weight: 600; letter-spacing: 8px; color: var(--text); }
.onboard-lead { font-size: 19px; font-weight: 600; margin: 26px 0 12px; letter-spacing: -.2px; line-height: 1.45; }
.onboard-sub { font-size: 12px; color: var(--text-3); line-height: 2; margin: 0; }
.onboard-go { width: 100%; height: 38px; margin-top: 28px; font-size: 13px; }
.onboard-note {
  font-size: 10.5px; color: var(--text-3); line-height: 1.9; margin: 16px 0 0;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.onboard .field { margin-top: 22px; }

/* 本机已存账号：一键带出用户名 */
.gate-users { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 -6px; }
.gate-user {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--text-2);
  font: inherit; font-size: 12px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gate-user:hover { border-color: var(--text-3); color: var(--text); }

/* ---------------- 窄屏 ---------------- */
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { border-right: 0; }
  body.chat-open .side { display: none; }
  body:not(.chat-open) .stage { display: none; }
  .back { display: inline-flex; }
  .msg-col { max-width: 78%; }
  .msgs { padding: 14px 14px 8px; }
  .composer { padding: 10px 14px 14px; }
  .sheet-body { padding: 16px 14px 40px; }
  .call-btn { width: 60px; height: 60px; }
}

/* ---------------- 同一个号在另一个窗口里 ---------------- */
/* 常驻在最上面一条，说清楚为什么这个窗口收不到新消息，并给一个切回来的按钮。
   用中性底色而不是红色：这不是出错，是两个窗口在抢同一份连接。 */
.win-note {
  position: fixed; top: 0; left: 0; right: 0; z-index: 95;
  min-height: 40px; display: flex; align-items: center; gap: 12px;
  padding: 8px 14px; background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
  font-size: 12.5px; color: var(--text-2); line-height: 1.45;
}
.win-note span { flex: 1; min-width: 0; }
.win-note button {
  flex: none; font-size: 12.5px; color: var(--accent);
  border: 1px solid currentColor; border-radius: 999px; padding: 4px 12px;
  background: #fff; white-space: nowrap;
}
body.win-note-on .app { height: calc(100% - 41px); margin-top: 41px; }
