/* 守信 IM · v1.0.2（QQ 风格三段式布局） */
:root {
  --blue: #12b7f5;
  --blue-dark: #0e9fd8;
  --blue-soft: #e8f6fe;
  --green: #12b7f5;
  --green-dark: #0e9fd8;
  --bg: #f5f6f8;
  --panel: #ffffff;
  --rail: #eef2f7;
  --line: #e6e9ef;
  --text: #1f2329;
  --text-2: #6b7480;
  --text-3: #9aa3af;
  --danger: #f0564a;
  --shadow: 0 8px 28px rgba(24, 39, 75, .12);
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  overflow: hidden;
}
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--blue); cursor: pointer; }

/* ================= 登录页 ================= */
.login {
  height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 20% 0%, #d9f0ff 0%, #eef6ff 45%, #f6f8fb 100%);
  position: relative;
}
.login-card {
  width: 400px; background: #fff; border-radius: 16px; padding: 34px 38px 26px;
  box-shadow: 0 18px 50px rgba(30, 90, 140, .16);
  border: 1px solid #edf1f6;
}
.brand { text-align: center; margin-bottom: 22px; }
.logo {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 14px;
  background: linear-gradient(135deg, #35c6ff, #0e9fd8);
  color: #fff; font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(18, 183, 245, .35);
}
.brand h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: 1px; }
.brand p { margin: 0; color: var(--text-3); font-size: 12.5px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.field input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid #dfe4ec; border-radius: 8px;
  font-size: 14px; outline: none; background: #fbfcfe; transition: .15s;
}
.field input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(18, 183, 245, .14); }
.btn-primary {
  width: 100%; height: 42px; border-radius: 8px; border: none;
  background: linear-gradient(135deg, #35c6ff, #0e9fd8);
  color: #fff; font-size: 15px; letter-spacing: 2px;
  box-shadow: 0 6px 16px rgba(18, 183, 245, .3);
  transition: .15s;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary.small { width: auto; height: 34px; padding: 0 16px; font-size: 13px; letter-spacing: 0; box-shadow: none; }
.login-switch { text-align: center; margin-top: 14px; font-size: 12.5px; }
.login-msg { margin-top: 12px; text-align: center; font-size: 12px; color: var(--text-3); }
.login-msg.error { color: var(--danger); }
.login-foot { position: absolute; bottom: 22px; font-size: 12px; color: #7c8a99; }

/* ================= 主框架 ================= */
.main { height: 100vh; display: flex; }
.rail {
  width: 66px; background: var(--rail); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; padding: 16px 0 12px;
  gap: 10px; flex: 0 0 66px;
}
.rail-me { position: relative; margin-bottom: 8px; cursor: pointer; }
.rail-me .avatar { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
.rail-me .dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #c9d1da; border: 2px solid var(--rail); }
.rail-me .dot.on { background: #2ecc71; }
.rail-nav { display: flex; flex-direction: column; gap: 6px; width: 100%; align-items: center; }
.rail-btn {
  position: relative; width: 46px; height: 46px; border-radius: 12px; border: none; background: transparent;
  color: #5d6875; display: flex; align-items: center; justify-content: center; transition: .15s;
}
.rail-btn:hover { background: #e2eaf3; color: #26313d; }
.rail-btn.on { background: linear-gradient(135deg, #35c6ff, #0e9fd8); color: #fff; box-shadow: 0 6px 14px rgba(18, 183, 245, .3); }
.rail-btn svg { width: 21px; height: 21px; }
.rail-badge {
  position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #f0564a; color: #fff; font-size: 10px; line-height: 16px; text-align: center;
}
.rail-bottom { margin-top: auto; }

/* ================= 侧边栏 ================= */
.sidebar {
  width: 252px; flex: 0 0 252px; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-width: 0;
}
.side-head { display: flex; align-items: center; gap: 8px; padding: 14px 12px 8px; }
.search {
  flex: 1; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
  background: #f2f4f7; border-radius: 16px; color: #9aa3af;
}
.search svg { width: 15px; height: 15px; }
.search input { flex: 1; border: none; outline: none; background: transparent; font-size: 12.5px; color: var(--text); min-width: 0; }
.add-btn {
  width: 32px; height: 32px; border-radius: 8px; border: none; background: #f2f4f7; color: #5d6875;
  display: flex; align-items: center; justify-content: center;
}
.add-btn:hover { background: var(--blue-soft); color: var(--blue-dark); }
.side-title {
  display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 4px;
  font-size: 12px; color: var(--text-3);
}
.side-title .mini { border: none; background: transparent; color: var(--blue); font-size: 12px; padding: 0; }
.session-list { flex: 1; overflow-y: auto; padding: 4px 8px 8px; }
.session-list::-webkit-scrollbar { width: 6px; }
.session-list::-webkit-scrollbar-thumb { background: #dfe4ea; border-radius: 3px; }
.session {
  display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; cursor: pointer;
  transition: .12s;
}
.session:hover { background: #f5f7fa; }
.session.active { background: var(--blue-soft); }
.session .avatar { width: 38px; height: 38px; border-radius: 9px; font-size: 15px; flex: 0 0 38px; }
.session-body { flex: 1; min-width: 0; }
.session-body .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.session-body .name { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-body .time { font-size: 11px; color: var(--text-3); flex: 0 0 auto; }
.session-body .preview { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-body .sub { margin-top: 3px; }
.session-body .badge {
  flex: 0 0 auto; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: #f0564a; color: #fff; font-size: 10.5px; line-height: 17px; text-align: center;
}
.session .pin { font-size: 10px; color: #fff; background: #12b7f5; border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.group-row { padding: 8px 10px; border-radius: 9px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.group-row:hover { background: #f5f7fa; }
.group-row.active { background: var(--blue-soft); }
.empty-tip { padding: 30px 16px; text-align: center; font-size: 12.5px; color: var(--text-3); line-height: 1.9; }
.empty-tip.small { padding: 16px; }
.side-actions { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.side-actions button {
  flex: 1; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12.5px; color: var(--text-2);
}
.side-actions button:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-soft); }
.side-actions svg { width: 14px; height: 14px; }

/* ================= 聊天区 ================= */
.chat { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); position: relative; }
.chat-head {
  height: 64px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid var(--line); flex: 0 0 64px;
}
.head-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.head-title .avatar.tiny { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; }
.head-title h2 { margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; }
.head-title .sub { font-size: 12px; color: var(--text-3); }
.head-actions { display: flex; gap: 4px; align-items: center; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px; border: none; background: transparent; color: #5d6875;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: #f2f4f7; color: var(--blue-dark); }
.icon-btn svg { width: 19px; height: 19px; }
.helper-tag { font-size: 11px; color: #12b7f5; background: var(--blue-soft); border-radius: 4px; padding: 2px 6px; }

.msg-scroll { flex: 1; overflow-y: auto; padding: 16px 22px 8px; }
.msg-scroll::-webkit-scrollbar { width: 7px; }
.msg-scroll::-webkit-scrollbar-thumb { background: #dfe4ea; border-radius: 4px; }
.load-more { text-align: center; font-size: 12px; color: var(--text-3); padding: 6px; cursor: pointer; }
.time-divider { text-align: center; font-size: 11px; color: var(--text-3); margin: 10px 0 12px; }
.system-line { text-align: center; font-size: 12px; color: #96a0ac; margin: 8px 0; }
.msg { display: flex; gap: 9px; margin-bottom: 12px; align-items: flex-start; }
.msg.mine { flex-direction: row; justify-content: flex-end; }
.msg .avatar.sm { width: 34px; height: 34px; border-radius: 9px; font-size: 13px; flex: 0 0 34px; }
.msg-main { max-width: 66%; min-width: 0; }
.msg.mine .msg-main { display: flex; flex-direction: column; align-items: flex-end; }
.sender { font-size: 11.5px; color: var(--text-3); margin: 0 2px 4px; }
.bubble {
  display: inline-block; padding: 9px 12px; border-radius: 10px; background: #fff;
  border: 1px solid #eceff4; box-shadow: 0 1px 2px rgba(24, 39, 75, .04);
  font-size: 14px; line-height: 1.6; word-break: break-word; max-width: 100%;
}
.msg.mine .bubble { background: linear-gradient(135deg, #35c6ff, #0ea5e9); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(18, 183, 245, .22); }
.bubble.pending { opacity: .75; }
.bubble .text { white-space: pre-wrap; }
.bubble.image { padding: 4px; background: #fff; }
.bubble.image .img { display: block; max-width: 240px; max-height: 240px; border-radius: 7px; cursor: zoom-in; }
.bubble.card { padding: 0; background: transparent; border: none; box-shadow: none; }
.card-msg {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-width: 230px;
  background: #fff; border: 1px solid #e9edf3; border-radius: 9px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(24, 39, 75, .06);
}
.card-msg .avatar.sm { width: 36px; height: 36px; border-radius: 9px; }
.card-info { flex: 1; min-width: 0; }
.card-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.card-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-tag { font-size: 10.5px; color: var(--text-3); border-left: 1px solid var(--line); padding-left: 9px; }
.bubble.file { padding: 0; background: transparent; border: none; box-shadow: none; }
.file-card {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; min-width: 220px; max-width: 320px;
  background: #fff; border: 1px solid #e9edf3; border-radius: 9px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(24, 39, 75, .06);
}
.file-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-dark); display: flex; align-items: center; justify-content: center; }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.msg-state { font-size: 10.5px; color: var(--text-3); margin: 3px 2px 0; }
.typing { font-size: 12px; color: var(--text-3); margin: 6px 4px 10px; }

/* ================= 输入区 ================= */
.composer { flex: 0 0 auto; background: #fff; border-top: 1px solid var(--line); padding: 8px 16px 10px; position: relative; }
.tools { display: flex; align-items: center; gap: 2px; }
.uploading { font-size: 11.5px; color: var(--text-3); margin-left: 8px; }
.input {
  width: 100%; min-height: 84px; max-height: 360px; border: none; outline: none;
  resize: none; overflow-y: auto; padding: 6px 2px;
  font-size: 14px; line-height: 1.7; background: transparent; color: var(--text);
}
.composer-resize { height: 8px; margin: -1px 2px 0; cursor: ns-resize; display: flex; align-items: center; justify-content: center; border-radius: 4px; touch-action: none; }
.composer-resize span { width: 42px; height: 4px; border-radius: 99px; background: #d9e3ee; transition: background .15s ease, width .15s ease; }
.composer-resize:hover span { width: 64px; background: #12b7f5; }
body.resizing-input, body.resizing-input * { cursor: ns-resize !important; user-select: none !important; }
body.theme-dark .composer-resize span { background: #3a4b60; }
body.theme-dark .composer-resize:hover span { background: #35bdf0; }
.emoji-panel {
  position: absolute; left: 16px; bottom: 104px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); padding: 8px; width: 356px;
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; z-index: 20;
}
.emoji-panel span { text-align: center; padding: 5px 0; border-radius: 6px; cursor: pointer; font-size: 18px; }
.emoji-panel span:hover { background: #f2f4f7; }
.send-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.count { font-size: 11px; color: var(--text-3); }
.btn-send {
  height: 32px; padding: 0 22px; border-radius: 7px; border: none; color: #fff; font-size: 13px;
  background: linear-gradient(135deg, #35c6ff, #0e9fd8); box-shadow: 0 4px 12px rgba(18, 183, 245, .28);
}
.btn-send:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; }

/* ================= 空状态 ================= */
.empty-chat { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.empty-art { text-align: center; color: var(--text-3); }
.empty-logo {
  width: 66px; height: 66px; border-radius: 16px; margin: 0 auto 14px;
  background: linear-gradient(135deg, #35c6ff, #0e9fd8); color: #fff; font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(18, 183, 245, .3);
}
.empty-art p { margin: 0; font-size: 13px; }

/* ================= 通用组件 ================= */
.avatar {
  display: flex; align-items: center; justify-content: center; border-radius: 9px;
  color: #fff; font-weight: 600; width: 40px; height: 40px; font-size: 16px; flex: 0 0 auto;
}
.avatar.tiny { width: 32px; height: 32px; font-size: 13px; border-radius: 8px; }
.avatar.xs { width: 24px; height: 24px; font-size: 11px; border-radius: 6px; }
.avatar.sm { width: 36px; height: 36px; font-size: 14px; border-radius: 9px; }
.modal-mask {
  position: fixed; inset: 0; background: rgba(20, 30, 45, .38); z-index: 60;
  display: flex; align-items: center; justify-content: center;
}
.modal {
  width: 520px; max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 12px;
  padding: 22px 24px; box-shadow: 0 24px 60px rgba(20, 35, 60, .28);
}
.modal h3 { margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.modal-label { display: block; font-size: 12px; color: var(--text-3); margin: 12px 0 6px; }
.modal-input {
  width: 100%; height: 36px; border: 1px solid #dfe4ec; border-radius: 8px; padding: 0 10px;
  font-size: 13.5px; outline: none; background: #fbfcfe;
}
.modal-input:focus { border-color: var(--blue); background: #fff; }
.modal-search { display: flex; gap: 8px; }
.modal-search input {
  flex: 1; height: 36px; border: 1px solid #dfe4ec; border-radius: 8px; padding: 0 10px;
  font-size: 13.5px; outline: none; background: #fbfcfe;
}
.modal-search input:focus { border-color: var(--blue); background: #fff; }
.modal-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.modal-actions button { white-space: nowrap; flex: 0 0 auto; }
.modal-actions .btn-primary { width: auto; margin-left: auto; min-width: 92px; letter-spacing: 0; font-size: 13px; height: 34px; }
.btn-ghost { height: 34px; padding: 0 16px; border-radius: 7px; border: 1px solid #dfe4ec; background: #fff; color: var(--text-2); font-size: 13px; }
.btn-ghost:hover { background: #f5f7fa; }
.btn-ghost.danger { color: var(--danger); border-color: #f6c9c4; }
.btn-ghost.danger:hover { background: #fff2f0; }
.btn-ghost.tiny { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.user-list { margin-top: 12px; max-height: 300px; overflow-y: auto; }
.user-list.short { max-height: 220px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 7px; }
.user-row:hover { background: #f7f9fb; }
.user-meta { flex: 1; min-width: 0; }
.user-name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.user-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.already { font-size: 12px; color: var(--text-3); }
.owner-tag { font-size: 10.5px; color: #fff; background: var(--blue); border-radius: 4px; padding: 1px 5px; }
.pick-card { cursor: pointer; }
.pick-row { display: flex; align-items: center; gap: 9px; padding: 7px 4px; font-size: 13.5px; cursor: pointer; }
.color-dot { display: inline-block; width: 22px; height: 22px; border-radius: 50%; margin: 4px 6px 0 0; cursor: pointer; border: 2px solid transparent; }
.color-dot.sel { border-color: #1f2329; }

/* 右键菜单 */
.msg-menu {
  position: fixed; z-index: 80; min-width: 132px; background: #fff; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(20, 35, 60, .2); padding: 5px; border: 1px solid #eef1f5;
}
.menu-item { padding: 7px 12px; border-radius: 6px; font-size: 13px; cursor: pointer; color: var(--text); }
.menu-item:hover { background: var(--blue-soft); color: var(--blue-dark); }

/* 图片查看 */
.viewer { position: fixed; inset: 0; background: rgba(8, 12, 18, .82); z-index: 90; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.viewer img { max-width: 92vw; max-height: 92vh; border-radius: 6px; }

/* 截图裁剪 */
.shot-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 140; display: flex; align-items: center; justify-content: center; cursor: crosshair; }
.shot-img { max-width: 92vw; max-height: 84vh; border-radius: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); user-select: none; }
.shot-rect { position: fixed; border: 2px solid var(--blue); background: rgba(18, 183, 245, .12); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .3); pointer-events: none; z-index: 141; }
.shot-bar {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 142;
  display: flex; align-items: center; gap: 14px; background: rgba(20, 20, 20, .92);
  padding: 10px 16px; border-radius: 8px; color: #ddd; font-size: 12.5px; cursor: default;
}
.shot-bar .btn-primary { width: auto; min-width: 92px; height: 32px; font-size: 13px; letter-spacing: 0; box-shadow: none; }
.shot-bar .btn-ghost:hover { background: #333; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 160;
  background: rgba(28, 36, 46, .9); color: #fff; padding: 9px 18px; border-radius: 20px;
  font-size: 12.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

/* ================= 密码取件 ================= */
.pickup-page { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.pickup-head { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 20px; gap: 10px; }
.pickup-head h2 { margin: 0; font-size: 16px; }
.pickup-head span { font-size: 12px; color: var(--text-3); }
.pickup-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; gap: 16px; align-items: flex-start; }
.pickup-card { flex: 1; background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 18px 20px; box-shadow: 0 2px 10px rgba(24, 39, 75, .04); }
.pickup-card h3 { margin: 0 0 4px; font-size: 15px; }
.pickup-card p.tip { margin: 0 0 14px; font-size: 12px; color: var(--text-3); line-height: 1.7; }
.pickup-file {
  display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed #cfd8e3;
  border-radius: 9px; background: #fafbfd;
}
.pickup-file .file-icon { width: 40px; height: 40px; }
.pickup-file .file-name { font-weight: 600; }
.pickup-file .btn-ghost { margin-left: auto; }
.pickup-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.pickup-form label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 5px; }
.pickup-form input, .pickup-form select {
  width: 100%; height: 34px; border: 1px solid #dfe4ec; border-radius: 8px; padding: 0 9px;
  font-size: 13px; outline: none; background: #fbfcfe;
}
.pickup-form input:focus, .pickup-form select:focus { border-color: var(--blue); background: #fff; }
.pickup-result {
  margin-top: 14px; border-radius: 10px; background: var(--blue-soft); padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
}
.pickup-code { font-size: 26px; font-weight: 700; letter-spacing: 2px; color: var(--blue-dark); font-family: Consolas, "Courier New", monospace; }
.pickup-result .meta { flex: 1; font-size: 12px; color: var(--text-2); line-height: 1.8; }
.pickup-list { margin-top: 8px; }
.pickup-row { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px solid #f1f3f7; }
.pickup-row:last-child { border-bottom: none; }
.pickup-row .code { font-family: Consolas, monospace; font-weight: 700; color: var(--blue-dark); font-size: 14px; letter-spacing: 1px; }
.pickup-row .nm { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pickup-row .st { font-size: 11.5px; color: var(--text-3); }
.pickup-take { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pickup-take input {
  flex: 1; min-width: 120px; height: 38px; border: 1px solid #dfe4ec; border-radius: 8px; padding: 0 10px;
  font-size: 14px; text-align: center; letter-spacing: 2px; outline: none; text-transform: uppercase;
}
.pickup-take input:focus { border-color: var(--blue); }
.pickup-take .btn-send { height: 38px; }
.pickup-info { margin-top: 14px; border: 1px solid var(--line); border-radius: 9px; padding: 14px; background: #fafbfd; font-size: 13px; }
.pickup-info .row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--text-2); font-size: 12.5px; }
.pickup-info .row b { color: var(--text); font-weight: 600; }
.pickup-info .btn-primary { margin-top: 12px; }
.pickup-empty { padding: 28px 0; text-align: center; color: var(--text-3); font-size: 12.5px; }

/* ================= 资料卡 / 图片查看 ================= */
.modal.narrow { width: 380px; }
.profile-head { display: flex; justify-content: center; margin-bottom: 8px; }
/* v1.5.4 设置弹窗加宽、增加呼吸感 */
.modal.settings-modal {
  width: 600px; max-width: calc(100vw - 32px);
  max-height: 88vh; padding: 28px 32px 24px;
}
.modal.settings-modal h3 { margin-bottom: 18px; }
.modal.settings-modal .modal-label { margin: 16px 0 7px; }
.modal.settings-modal .profile-head { margin-bottom: 12px; }
.modal.settings-modal .growth-entry { margin-top: 16px; padding: 13px 15px; }
.modal.settings-modal .pref-row { gap: 10px; margin-top: 14px; }
.modal.settings-modal .desktop-prefs { margin: 16px 0; padding: 14px 16px; }
.modal.settings-modal .desktop-prefs label { padding: 7px 0; }
.modal.settings-modal .pref-block { margin-top: 16px; padding-top: 14px; }
.modal.settings-modal .shortcut-entry { margin-top: 16px; }
.modal.settings-modal .modal-actions { margin-top: 24px; }
.avatar.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 22px; }
.avatar.xl { width: 84px; height: 84px; border-radius: 20px; font-size: 30px; }
.color-row { display: flex; flex-wrap: wrap; gap: 2px; }
.img-viewer { position: fixed; inset: 0; background: rgba(8, 12, 18, .82); z-index: 90; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.img-viewer img { max-width: 92vw; max-height: 92vh; border-radius: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }

/* ================= 音视频通话 ================= */
.call-overlay {
  position: fixed; inset: 0; z-index: 120; background: radial-gradient(900px 600px at 30% 10%, #1b3350, #0d1520 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
}
.call-videos { position: relative; width: 78vw; max-width: 900px; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #101a26; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.call-videos video.remote { width: 100%; height: 100%; object-fit: cover; background: #101a26; }
.call-videos video.local {
  position: absolute; right: 14px; bottom: 14px; width: 22%; min-width: 140px; aspect-ratio: 4/3;
  object-fit: cover; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .35); background: #000;
}
.call-videos.audio-mode video { visibility: hidden; }
.call-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #20415f, #12202e); }
.call-info { text-align: center; margin-top: 18px; }
.call-name { font-size: 18px; font-weight: 600; }
.call-status { font-size: 12.5px; color: #9fb3c8; margin-top: 6px; }
.call-actions { display: flex; gap: 18px; margin-top: 22px; }
.call-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px;
  border: none; background: transparent; color: #cfe0f0; font-size: 12px;
}
.call-btn svg { width: 22px; height: 22px; padding: 12px; border-radius: 50%; background: rgba(255, 255, 255, .14); box-sizing: content-box; }
.call-btn:hover svg { background: rgba(255, 255, 255, .24); }
.call-btn.off svg { background: rgba(240, 86, 74, .35); color: #ffd9d4; }
.call-btn.hangup svg { background: #f0564a; color: #fff; }
.call-btn.accept svg { background: #2ecc71; color: #fff; }
.incoming-call {
  position: fixed; right: 24px; bottom: 24px; z-index: 130; width: 280px; background: #fff;
  border-radius: 14px; box-shadow: 0 20px 50px rgba(20, 40, 70, .28); padding: 20px; text-align: center;
}
.in-name { font-size: 15px; font-weight: 600; margin-top: 8px; }
.in-sub { font-size: 12px; color: var(--text-3); margin: 4px 0 14px; }
.in-actions { display: flex; justify-content: center; gap: 22px; }
.incoming-call .call-btn { width: 64px; color: var(--text-2); }
.incoming-call .call-btn svg { background: #f2f4f7; color: #4a5561; }

/* ================= v1.0.3：群公告 / 群文件 / 引用 / 搜索结果 / 戳一戳 ================= */

/* 群公告条 */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #fff8e6;
  border-bottom: 1px solid #ffe8b3;
  color: #8a6d1f;
  font-size: 13px;
  cursor: pointer;
}
.notice-label {
  flex: none;
  padding: 1px 7px;
  border-radius: 4px;
  background: #ffb300;
  color: #fff;
  font-size: 12px;
}
.notice-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-more { flex: none; color: #12b7f5; font-size: 12px; }

/* 聊天记录搜索 */
.search-panel {
  padding: 4px 10px 10px;
  overflow-y: auto;
  max-height: 100%;
}
.search-tip { padding: 6px 8px; font-size: 12px; color: #8a93a6; }
.hit-row {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}
.hit-row:hover { background: #eef6ff; }
.hit-body { flex: 1; min-width: 0; }
.hit-top { display: flex; justify-content: space-between; gap: 8px; }
.hit-title { font-size: 13px; font-weight: 600; color: #1f2b45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit-time { font-size: 11px; color: #9aa4b8; flex: none; }
.hit-snippet {
  margin-top: 2px;
  font-size: 12px;
  color: #6b7688;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 群设置页签 */
.panel-tabs {
  display: flex;
  gap: 6px;
  margin: 12px 0 4px;
  border-bottom: 1px solid #e8ebf1;
  padding-bottom: 6px;
}
.panel-tabs button {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #6b7688;
  cursor: pointer;
}
.panel-tabs button.on { background: #e8f7fe; color: #0e9fd8; font-weight: 600; }
.notice-area {
  width: 100%;
  height: 130px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
  padding: 10px;
}
.files-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 6px;
}

/* 引用回复 */
.reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 6px 10px;
  background: #f0f4fa;
  border-left: 3px solid #12b7f5;
  border-radius: 6px;
  font-size: 12px;
  color: #5b667a;
}
.reply-tag { flex: none; color: #12b7f5; font-weight: 600; }
.reply-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-close {
  flex: none;
  border: none;
  background: transparent;
  color: #98a3b5;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.quote-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 6px;
  padding: 6px 8px;
  border-left: 3px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.msg:not(.mine) .quote-block {
  border-left-color: #12b7f5;
  background: #f2f6fb;
}
.quote-from { opacity: 0.85; font-weight: 600; }
.quote-content { opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 搜索定位高亮 */
.msg.focus .bubble { box-shadow: 0 0 0 2px #ffb300; }

/* 戳一戳抖动 */
@keyframes pokeShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px); }
  30% { transform: translateX(6px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}
.chat.shaking { animation: pokeShake 0.7s ease-in-out; }

/* ================= v1.0.4：置顶 / 免打扰 / @提醒 / 群投票 ================= */

.icon-btn.on { background: #e8f7fe; color: #0e9fd8; }

.pin-ico {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 4px;
  background: #eaf7ff;
  color: #12a7e0;
  font-size: 11px;
  font-weight: 400;
  vertical-align: 1px;
}
.mute-ico {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #f0f2f5;
  color: #98a3b5;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.badge.muted {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: #c8ceda;
  font-size: 0;
}
.at-tag { flex: none; color: #ff5a5a; font-size: 12px; font-weight: 600; }

.at-mention { color: #12a7e0; font-weight: 600; }
.msg.mine .at-mention { color: #fff6c9; }

/* @ 选择面板 */
.mention-panel {
  position: absolute;
  left: 16px;
  bottom: 96px;
  width: 240px;
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(20, 40, 80, 0.16);
  padding: 8px;
  z-index: 30;
}
.mention-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 8px;
  font-size: 12px;
  color: #8a93a6;
}
.mention-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #1f2b45;
}
.mention-row:hover { background: #eef6ff; }
.mention-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 群投票 */
.poll-opt-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.poll-opt-idx { flex: none; width: 18px; text-align: center; color: #98a3b5; font-size: 12px; }
.poll-opt-add { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.poll-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #6b7688; }
.poll-list { max-height: 220px; overflow: auto; margin-top: 8px; }
.poll-card { padding: 10px; border: 1px solid #e8ebf1; border-radius: 10px; margin-bottom: 10px; }
.poll-title { font-size: 13px; font-weight: 600; color: #1f2b45; margin-bottom: 8px; }
.poll-meta { margin-left: 8px; font-size: 11px; font-weight: 400; color: #98a3b5; }
.poll-opt { padding: 6px; border-radius: 6px; cursor: pointer; }
.poll-opt:hover { background: #f4f8fd; }
.poll-opt.voted { background: #eaf7ff; }
.poll-opt-top { display: flex; justify-content: space-between; font-size: 12px; color: #4b5566; }
.poll-count { color: #98a3b5; }
.poll-bar { margin-top: 4px; height: 6px; border-radius: 3px; background: #eef2f8; overflow: hidden; }
.poll-bar span { display: block; height: 100%; background: linear-gradient(90deg, #35c6ff, #0e9fd8); }

/* ================= v1.0.5：空间 ================= */

.space-page {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f2f9ff 0%, #f5f6f8 220px);
  overflow: hidden;
}
.space-head {
  height: 64px;
  flex: 0 0 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.space-title h2 { margin: 0; font-size: 18px; font-weight: 600; color: #1f2b45; }
.space-title span { font-size: 12px; color: #98a3b5; }
.space-stats { font-size: 12px; color: #7b8699; }
.space-stats b { color: #12a7e0; margin: 0 4px 0 10px; }

.space-body {
  flex: 1;
  overflow: auto;
  padding: 18px 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.space-composer, .space-tabs, .space-feed, .space-board { width: 100%; max-width: 860px; }

.space-composer {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(20, 40, 80, 0.06);
}
.space-input {
  width: 100%;
  min-height: 86px;
  border: 0;
  outline: none;
  resize: vertical;
  font-size: 14px;
  line-height: 1.6;
  color: #1f2b45;
  background: transparent;
}
.space-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.space-thumb { position: relative; width: 86px; height: 86px; border-radius: 8px; overflow: hidden; }
.space-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.thumb-del {
  position: absolute; top: 2px; right: 2px;
  width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; line-height: 20px; cursor: pointer;
}
.space-composer-bar { display: flex; align-items: center; gap: 10px; border-top: 1px solid #f0f3f7; padding-top: 10px; margin-top: 6px; }
.space-counter { flex: 1; font-size: 12px; color: #98a3b5; }
.space-uploading { font-size: 12px; color: #12a7e0; }

.space-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.space-tabs button {
  border: 0; background: #eaf1fa; color: #4b5566;
  padding: 7px 16px; border-radius: 16px; font-size: 13px; cursor: pointer;
}
.space-tabs button.on { background: #12b7f5; color: #fff; }
.space-filters { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.space-search {
  width: 150px; height: 31px; border: 1px solid #e2e9f3; border-radius: 16px;
  background: #fff; padding: 0 12px; font-size: 12.5px; color: #2b3444; outline: none;
}
.space-search:focus { border-color: #35bdf0; box-shadow: 0 0 0 3px rgba(53,189,240,.1); }
.space-filter-btn {
  height: 31px; border: 1px solid #e2e9f3; border-radius: 16px; background: #fff;
  color: #6b7688; font-size: 12.5px; padding: 0 12px; cursor: pointer;
}
.space-filter-btn.on { background: #e4f7ff; border-color: #9fe1fb; color: #118dc2; }

.space-board {
  background: #fff; border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(20, 40, 80, .05);
}
.space-board .space-block-head { padding-top: 0; border-top: 0; margin-bottom: 10px; }
.space-board-form { display: flex; gap: 10px; align-items: flex-end; }
.space-board-form textarea {
  flex: 1; min-height: 54px; max-height: 130px; resize: vertical;
  border: 1px solid #e4eaf3; border-radius: 9px; padding: 8px 10px;
  font: inherit; font-size: 13.5px; line-height: 1.6; outline: none; background: #fbfdff;
}
.space-board-form textarea:focus { border-color: #35bdf0; box-shadow: 0 0 0 3px rgba(53,189,240,.1); }
.space-board-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.space-board-item { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; border-radius: 9px; background: #f7faff; }
.space-board-main { flex: 1; min-width: 0; }
.space-board-meta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: #7c8798; }
.space-board-meta b { color: #35516d; font-size: 12.5px; }
.space-board-text { margin-top: 3px; font-size: 13.5px; line-height: 1.65; color: #2b3444; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 760px) {
  .space-filters { width: 100%; margin-left: 0; }
  .space-search { flex: 1; width: auto; }
  .space-board-form { flex-direction: column; align-items: stretch; }
}

.space-feed { display: flex; flex-direction: column; gap: 12px; }
.space-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(20, 40, 80, 0.05);
}
.space-card-head { display: flex; align-items: center; gap: 10px; }
.space-card-meta { flex: 1; }
.space-author { font-size: 13px; font-weight: 600; color: #1f2b45; cursor: pointer; }
.space-author:hover { color: #12a7e0; }
.space-time { font-size: 11px; color: #98a3b5; margin-top: 2px; }
.space-text { font-size: 14px; line-height: 1.7; color: #2b3444; margin: 10px 0 0; white-space: pre-wrap; word-break: break-word; }
.space-imgs { display: grid; gap: 6px; margin-top: 10px; }
.space-imgs.n1 { grid-template-columns: minmax(0, 260px); }
.space-imgs.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; }
.space-imgs.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.space-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; }

.space-actions { display: flex; align-items: center; gap: 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f2f4f8; }
.space-act {
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; background: transparent; color: #7b8699; font-size: 12px; cursor: pointer;
}
.space-act svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.space-act.on { color: #ff6b81; }
.space-act.on svg { fill: #ffd9df; stroke: #ff6b81; }
.space-vis { margin-left: auto; font-size: 11px; color: #b6bfcd; }

.space-comments { margin-top: 10px; background: #f7f9fc; border-radius: 10px; padding: 10px; }
.space-comment { display: flex; gap: 8px; padding: 6px 0; }
.space-comment-body { flex: 1; min-width: 0; }
.space-comment-name { font-size: 12px; color: #4b5566; font-weight: 600; }
.space-comment-name span { font-weight: 400; color: #a9b3c2; margin-left: 6px; }
.space-comment-text { font-size: 13px; color: #2b3444; line-height: 1.6; word-break: break-word; }
.space-comment-form { display: flex; gap: 8px; margin-top: 8px; }
.space-comment-form input {
  flex: 1; border: 1px solid #e3e9f2; border-radius: 16px; background: #fff;
  padding: 7px 12px; font-size: 13px; outline: none;
}
.space-comment-form input:focus { border-color: #9ad9f3; }
.avatar.xs { width: 22px; height: 22px; font-size: 11px; }

/* ================= v1.0.6：转发 / @ / 相册 / 访客 ================= */

.space-mention {
  margin-top: 8px;
  border: 1px solid #e8eef6;
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px;
  max-height: 210px;
  overflow: auto;
}
.space-forward {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid #12b7f5;
  background: #f5f9fd;
  border-radius: 6px;
  cursor: pointer;
}
.space-forward-name { font-size: 12px; color: #12a7e0; margin-bottom: 4px; }
.space-forward-text { font-size: 13px; color: #5b6473; line-height: 1.6; word-break: break-word; }

.space-mine { width: 100%; max-width: 860px; display: flex; gap: 12px; }
.space-block { flex: 1; min-width: 0; background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 4px 16px rgba(20, 40, 80, 0.05); }
.space-block-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #1f2b45; margin-bottom: 8px; }
.space-block-head span { font-size: 11px; color: #98a3b5; }
.visitor-row { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.visitor { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5566; cursor: pointer; }
.visitor-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visitor-time { color: #a9b3c2; font-size: 11px; }
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.album-card { cursor: pointer; }
.album-cover {
  width: 100%; aspect-ratio: 1; border-radius: 8px;
  background: linear-gradient(135deg, #dff3ff, #bfe8fb);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; color: #7fb6d6; font-size: 12px;
}
.album-name { font-size: 12px; color: #4b5566; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-name span { color: #a9b3c2; font-size: 11px; margin-left: 4px; }
.album-create { display: flex; gap: 8px; margin-top: 10px; }
.album-create input { flex: 1; min-width: 0; border: 1px solid #e3e9f2; border-radius: 14px; padding: 6px 10px; font-size: 12px; outline: none; }

.space-modal {
  position: absolute; inset: 0;
  background: rgba(18, 30, 50, .35);
  display: flex; align-items: center; justify-content: center;
  z-index: 40;
}
.space-modal-card {
  width: 440px; max-width: 92%; background: #fff; border-radius: 12px;
  padding: 16px; box-shadow: 0 18px 50px rgba(20, 40, 80, .25);
}
.space-modal-card.wide { width: 640px; }
.space-modal-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; color: #1f2b45; margin-bottom: 10px; }
.space-modal-head span { display: flex; gap: 6px; }
.space-forward-preview { background: #f5f9fd; border-left: 3px solid #12b7f5; border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; }
.space-modal-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.album-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 420px; overflow: auto; }
.album-photo { position: relative; aspect-ratio: 1; }
.album-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; cursor: zoom-in; }

/* ================= v1.0.7：备注分组 / 空间权限 / 楼中楼 / 相册封面 ================= */

.contact-edit {
  border: 0; background: transparent; color: #12a7e0;
  font-size: 11px; cursor: pointer; flex: none; padding: 0 2px;
}
.space-perm {
  width: 100%; max-width: 860px; background: #fff; border-radius: 12px;
  padding: 12px 14px; box-shadow: 0 4px 16px rgba(20, 40, 80, .05);
  display: flex; flex-direction: column; gap: 6px;
}
.space-perm-head { font-size: 13px; font-weight: 600; color: #1f2b45; }
.space-perm-friends {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 10px; max-height: 140px; overflow: auto;
  background: #f8fbff; border-radius: 8px; padding: 8px; margin-top: 4px;
}
.space-perm-friend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5566; }

.space-comment.reply { margin-left: 26px; background: #fdeff5; border-radius: 8px; padding: 6px 8px; }
.space-comment-reply-to { font-size: 11px; color: #b07a8c; margin-bottom: 2px; }
.space-reply-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding: 5px 10px; border-radius: 8px;
  background: #eaf7ff; color: #12a7e0; font-size: 12px;
}
.thumb-cover {
  position: absolute; left: 2px; bottom: 2px;
  border: 0; border-radius: 4px; padding: 1px 4px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 10px; cursor: pointer;
}

/* v1.0.8 管理员服务状态 */
.admin-panel { margin-top: 12px; background: #f4f9ff; border: 1px solid #dbeafe; border-radius: 10px; padding: 10px 12px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #1f2b45; font-weight: 600; }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.admin-grid > div { background: #fff; border-radius: 8px; padding: 6px 8px; text-align: center; display: flex; flex-direction: column; }
.admin-grid b { font-size: 14px; color: #12a7e0; font-weight: 600; }
.admin-grid span { font-size: 10px; color: #8794a8; margin-top: 2px; }
.admin-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 11px; color: #8794a8; }

/* v1.1.0 群禁言标记 */
.muted-tag { background: #fff1e6; color: #d46b08; margin-left: 6px; }

/* v1.1.1 快捷键与草稿 */
.shortcut-entry { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 12px; color: #8794a8; }
.shortcut-list { margin: 8px 0 4px; }
.shortcut-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed #eef2f7; font-size: 13px; color: #4b5b73; }
.shortcut-list > div:last-child { border-bottom: 0; }
.shortcut-list b { background: #f1f7ff; color: #12a7e0; border-radius: 6px; padding: 3px 9px; font-weight: 600; white-space: nowrap; }

/* ================= v1.2.0：等级 / 会员 / 签到 / 收藏 / 主题 ================= */
.lvl-tag {
  display: inline-block; margin-left: 5px; font-size: 10px; line-height: 1;
  letter-spacing: -1px; opacity: .9; vertical-align: 1px;
}
.vip-tag {
  display: inline-block; margin-left: 4px; padding: 1px 4px; border-radius: 4px;
  background: linear-gradient(135deg,#ffcf6b,#f5a623); color: #6b3d00;
  font-size: 9px; font-weight: 700; line-height: 1.3; vertical-align: 1px;
}
.rail-badge.gold { background: linear-gradient(135deg,#ffd77a,#f5a623); color: #6b3d00; }
.rail-btn.growth-rail { color: #b8860b; }
body.theme-dark .rail-btn.growth-rail { color: #ffcf6b; }

.growth-entry {
  margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,207,107,.16), rgba(18,183,245,.08));
  display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; cursor: pointer;
}
.growth-entry .growth-icons { grid-column: 1 / -1; font-size: 14px; letter-spacing: -2px; }
.growth-entry b { font-size: 13px; }
.growth-entry span { color: var(--text-3); font-size: 12px; }
.growth-entry button { grid-row: 2 / 4; grid-column: 2; align-self: center; }
.pref-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.pref-select {
  height: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel);
  color: var(--text); font-size: 12px; padding: 0 8px;
}

.growth-modal .growth-hero { text-align: center; padding: 10px 0 6px; }
.growth-icons { font-size: 28px; letter-spacing: 2px; line-height: 1.4; }
.growth-lvl { font-size: 22px; font-weight: 700; margin-top: 6px; }
.growth-lvl span { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 6px; }
.growth-vip { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: linear-gradient(135deg,#fff2cf,#ffe0a3); color: #8a5a00; }
.growth-vip.off { background: var(--bg); color: var(--text-3); }
.growth-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 14px 0 5px; }
.growth-bar span { display: block; height: 100%; background: linear-gradient(90deg,#35c6ff,#f5a623); transition: width .3s; }
.growth-bar-tip { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); }
.growth-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 12px 0; }
.growth-stats div { background: var(--bg); border-radius: 8px; padding: 9px 6px; text-align: center; }
.growth-stats b { display: block; font-size: 13px; }
.growth-stats span { font-size: 11px; color: var(--text-3); }
.vip-plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.vip-plan { border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; text-align: center; background: var(--panel); }
.vip-plan.disabled { opacity: .55; }
.vip-plan-name { font-weight: 600; font-size: 13px; }
.vip-plan-cost { font-size: 11px; color: var(--text-3); margin: 3px 0 8px; }
.vip-plan .btn-primary { width: 100%; font-size: 12px; letter-spacing: 0; padding: 0 4px; }
.vip-priv { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); font-size: 12.5px; line-height: 1.8; }

.checkin-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.checkin-title { font-weight: 600; font-size: 14px; }
.checkin-sub { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.checkin-head .btn-primary { width: auto; padding: 0 18px; height: 34px; letter-spacing: 0; font-size: 13px; }
.checkin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
.checkin-stats div { background: var(--bg); border-radius: 8px; text-align: center; padding: 8px 4px; }
.checkin-stats b { display: block; font-size: 16px; }
.checkin-stats span { font-size: 11px; color: var(--text-3); }
.rank-no { width: 20px; text-align: center; font-size: 12px; color: var(--text-3); font-weight: 600; }
.rank-no.top { color: #f5a623; font-size: 14px; }

.fav-list { max-height: 380px; overflow-y: auto; margin-top: 6px; }
.fav-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.fav-body { flex: 1; min-width: 0; }
.fav-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.fav-top b { color: var(--text); font-size: 12.5px; }
.fav-preview { margin-top: 3px; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 聊天背景 */
body.chatbg-paper .chat { background: linear-gradient(180deg,#fdf8ee 0%,#f7efe0 100%); }
body.chatbg-mint .chat { background: linear-gradient(180deg,#eefaf5 0%,#dcf0e8 100%); }
body.chatbg-night .chat { background: linear-gradient(180deg,#1c2431 0%,#141a24 100%); }
body.chatbg-night .chat .msg-text { color: #e8edf5; }

/* 夜间模式 */
body.theme-dark {
  --bg: #12161c; --panel: #1a2029; --rail: #151b23; --line: #2b3440;
  --text: #e6ebf2; --text-2: #a7b3c2; --text-3: #7c8998; --blue-soft: #172a36;
  background: var(--bg); color: var(--text);
}
body.theme-dark .main,
body.theme-dark .sidebar,
body.theme-dark .chat,
body.theme-dark .chat-head,
body.theme-dark .composer,
body.theme-dark .side-head,
body.theme-dark .space-page,
body.theme-dark .space-composer,
body.theme-dark .modal,
body.theme-dark .session,
body.theme-dark .group-row,
body.theme-dark .admin-panel { background: var(--panel); color: var(--text); }
body.theme-dark .rail { background: var(--rail); }
body.theme-dark .modal-mask { background: rgba(0,0,0,.55); }
body.theme-dark .input,
body.theme-dark .modal-input,
body.theme-dark .search input,
body.theme-dark .modal-search input,
body.theme-dark .pref-select,
body.theme-dark .space-input,
body.theme-dark select { background: #222b36; color: var(--text); border-color: var(--line); }
body.theme-dark .session:hover,
body.theme-dark .icon-btn:hover,
body.theme-dark .tools .icon-btn:hover { background: #232c38; }
body.theme-dark .session.active { background: var(--blue-soft); }
body.theme-dark .bubble.other,
body.theme-dark .msg-row .bubble { background: #232c38; color: var(--text); }
body.theme-dark .bubble.self { background: #1d6f96; color: #fff; }
body.theme-dark .side-title,
body.theme-dark .search-tip,
body.theme-dark .empty-tip { color: var(--text-3); }
body.theme-dark .msg-menu,
body.theme-dark .emoji-panel,
body.theme-dark .mention-panel { background: #232c38; border-color: var(--line); color: var(--text); }
body.theme-dark .menu-item:hover { background: #2c3745; }
body.theme-dark .side-actions button,
body.theme-dark .btn-ghost,
body.theme-dark .modal .btn-ghost { background: #232c38; border-color: #33404f; color: #cfd8e3; }
body.theme-dark .side-actions { background: var(--panel); border-top-color: var(--line); }
body.theme-dark .msg .bubble { color: var(--text); }

/* ================= v1.3.0：好友申请 / 语音 / 群头衔 / 戳一戳 / SVIP ================= */

.new-friend-row .avatar { background: linear-gradient(135deg,#ff9a3c,#ff6a3d); }

.req-list { max-height: 240px; overflow-y: auto; margin-bottom: 10px; }
.req-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed var(--line, #eef1f6); }
.req-row:last-child { border-bottom: 0; }
.req-body { flex: 1; min-width: 0; }
.req-name { font-size: 13px; font-weight: 600; color: var(--text, #1f2733); display: flex; align-items: center; gap: 8px; }
.req-msg { font-size: 12px; color: var(--muted, #8993a4); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-status { font-size: 11px; font-weight: 400; padding: 1px 7px; border-radius: 9px; background: #fff3e0; color: #b26a00; }
.req-status.accepted { background: #e8f8ef; color: #0a8f4b; }
.req-status.rejected, .req-status.cancelled { background: #f1f3f6; color: #7c8798; }

.group-title-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 8px; font-size: 11px; font-weight: 500; color: #7a5b00; background: linear-gradient(135deg,#ffe9a8,#ffd76a); border: 1px solid #f3cf6a; vertical-align: 1px; }

.audio-msg { display: flex; align-items: center; gap: 8px; min-width: 120px; cursor: pointer; padding: 2px 4px; user-select: none; }
.audio-msg .audio-ic { width: 24px; height: 24px; border-radius: 50%; background: #3e7bfa; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.audio-msg.playing .audio-ic { background: #12b7f5; }
.audio-wave { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.audio-wave i { display: block; width: 3px; border-radius: 2px; background: currentColor; opacity: .45; height: 6px; }
.audio-wave i:nth-child(2) { height: 12px; }
.audio-wave i:nth-child(3) { height: 16px; }
.audio-wave i:nth-child(4) { height: 10px; }
.audio-wave i:nth-child(5) { height: 7px; }
.audio-msg.playing .audio-wave i { animation: waveBeat .7s ease-in-out infinite alternate; opacity: .9; }
.audio-msg.playing .audio-wave i:nth-child(2) { animation-delay: .1s; }
.audio-msg.playing .audio-wave i:nth-child(3) { animation-delay: .2s; }
.audio-msg.playing .audio-wave i:nth-child(4) { animation-delay: .3s; }
.audio-sec { font-size: 12px; opacity: .8; margin-left: auto; }
@keyframes waveBeat { from { transform: scaleY(.5); } to { transform: scaleY(1.25); } }

.voice-bar { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin-bottom: 8px; border-radius: 9px; background: #fff2f2; border: 1px solid #ffd6d6; font-size: 12px; color: #b3261e; }
.voice-bar.sending { background: #eef6ff; border-color: #d5e7ff; color: #1b64d9; }
.voice-dot { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; animation: voicePulse 1s infinite; flex: none; }
.voice-bar.sending .voice-dot { background: #3e7bfa; }
.voice-time { flex: 1; }
@keyframes voicePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.82); } }
.icon-btn.recording { background: #ffe8e8; color: #d92d2d; }

.poke-fx { position: absolute; z-index: 12; left: 50%; top: 90px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(30,50,90,.18); animation: pokePop .28s ease-out; pointer-events: none; }
.poke-hand { font-size: 28px; display: inline-block; animation: pokeHand .5s ease-in-out infinite alternate; }
.poke-hand.flip { transform: scaleX(-1); }
.poke-text { font-size: 14px; font-weight: 600; color: #2b3445; }
@keyframes pokePop { from { transform: translateX(-50%) scale(.7); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes pokeHand { from { transform: translateX(-6px) rotate(-10deg); } to { transform: translateX(6px) rotate(8deg); } }
body.theme-dark .poke-fx { background: rgba(38,45,60,.96); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
body.theme-dark .poke-text { color: #eef2ff; }

.tier-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 12px; }
.tier-card { border-radius: 12px; padding: 11px 12px; border: 1px solid #e4e9f2; background: #f8fafd; font-size: 12px; }
.tier-card.vip { background: linear-gradient(160deg,#f2f7ff,#e7f0ff); border-color: #cfe0ff; }
.tier-card.svip { background: linear-gradient(160deg,#fff9e8,#ffeec2); border-color: #f3d47a; }
.tier-card.on { box-shadow: 0 0 0 2px #3e7bfa inset; }
.tier-card.svip.on { box-shadow: 0 0 0 2px #d9a400 inset; }
.tier-name { font-size: 14px; font-weight: 700; color: #1f2733; }
.tier-sub { color: #7c8798; margin: 3px 0 7px; }
.tier-card ul { margin: 0; padding-left: 15px; line-height: 1.75; color: #4b5668; }

.avatar.vip-frame { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6ea0ff; }
.avatar.svip-frame { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f0c23a; }
.vip-tag.svip { background: linear-gradient(135deg,#f7d774,#dca51b); color: #4b3300; }

/* 会员弹窗：小屏可滚动，操作区常驻 */
.growth-modal { max-height: 90vh; overflow-y: auto; }
.growth-modal .modal-actions { position: sticky; bottom: -18px; background: #fff; padding: 10px 0 6px; margin-top: 8px; z-index: 2; }
body.theme-dark .growth-modal .modal-actions { background: #222a3a; }
.growth-modal .vip-priv { margin-bottom: 4px; }
.growth-modal .vip-plans { grid-template-columns: repeat(4,1fr); gap: 6px; }
.growth-modal .vip-plan { padding: 9px 5px; }
.growth-modal .vip-plan-name { font-size: 11px; white-space: nowrap; }
.growth-modal .vip-plan-cost { font-size: 10px; white-space: nowrap; }
.growth-modal .vip-plan .btn-primary.small { width: 100%; font-size: 11px; padding: 5px 2px; }
@media (max-width: 760px) { .growth-modal .vip-plans { grid-template-columns: repeat(2,1fr); } }

/* v1.4.0 桌面设置与可编辑快捷键 */
.desktop-prefs { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.desktop-prefs-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.desktop-prefs label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); padding: 5px 0; cursor: pointer; }
.desktop-prefs label input { width: auto; margin: 0; }
.desktop-prefs-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.desktop-prefs-actions span { font-size: 11px; color: var(--text-3); }
.shortcut-list.editable > div { display: grid; grid-template-columns: 1fr auto 56px; gap: 10px; align-items: center; }
.shortcut-list.editable > div i { display: block; }
.shortcut-list.editable .btn-ghost.tiny { padding: 3px 8px; font-size: 11px; }
.shortcut-list.editable > div.capturing { background: rgba(18,183,245,.08); border-radius: 6px; }
.shortcut-list.editable > div.capturing b { color: var(--primary); }
body.theme-dark .desktop-prefs { background: #222a3a; }
.growth-today { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 8px 0 10px; font-size: 12px; color: var(--text-3); }
.growth-today b { color: var(--primary); font-weight: 600; }


/* v1.4.3 通用输入弹窗（替换浏览器 prompt） */
.prompt-modal { max-width: 480px; }
.prompt-label { display: block; margin: 8px 0 10px; color: var(--text-sub); font-size: 13px; line-height: 1.6; }
.prompt-textarea { min-height: 96px; resize: vertical; line-height: 1.65; }
.prompt-hint { color: var(--text-sub); font-size: 12px; margin-top: 8px; line-height: 1.6; }
.prompt-count { text-align: right; color: var(--text-sub); font-size: 12px; margin-top: 4px; }
.prompt-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.prompt-foot button { width: auto !important; min-width: 88px; padding: 0 18px; flex: none; }

/* ================= v1.4.4：会员姓名颜色 / 联系人右键 / 截图尺寸 ================= */
.tier-normal { color: inherit; }
.tier-vip { color: #b8860b; font-weight: 600; }
.tier-svip { color: #e0352b; font-weight: 700; }
body.theme-dark .tier-vip { color: #ffcf6b; }
body.theme-dark .tier-svip { color: #ff8a80; }
.conv-menu { min-width: 160px; }
.menu-title {
  padding: 6px 12px 7px; font-size: 12px; color: var(--text-3); font-weight: 600;
  border-bottom: 1px solid var(--line); margin-bottom: 4px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 200px;
}
.shot-size { color: #7fe3ff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shot-scale {
  height: 30px; border-radius: 6px; border: 1px solid #444; background: #2a2a2a;
  color: #eee; padding: 0 8px; font-size: 12.5px; outline: none; cursor: pointer;
}
.pref-block { margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line); }
.menu-item.danger { color: #d93025; }
.menu-item.danger:hover { background: #fdecea; color: #b3261e; }
body.theme-dark .menu-item.danger:hover { background: #3a2323; color: #ff8a80; }
.session .name.tier-vip, .chat-head h2.tier-vip, .sender.tier-vip, .user-name.tier-vip, .user-row .name.tier-vip { color: #b8860b; font-weight: 600; }
.session .name.tier-svip, .chat-head h2.tier-svip, .sender.tier-svip, .user-name.tier-svip, .user-row .name.tier-svip { color: #e0352b; font-weight: 700; }
.session .name.tier-normal, .chat-head h2.tier-normal, .sender.tier-normal, .user-name.tier-normal { color: inherit; font-weight: inherit; }
body.theme-dark .session .name.tier-vip, body.theme-dark .chat-head h2.tier-vip, body.theme-dark .sender.tier-vip, body.theme-dark .user-name.tier-vip { color: #ffcf6b; }
body.theme-dark .session .name.tier-svip, body.theme-dark .chat-head h2.tier-svip, body.theme-dark .sender.tier-svip, body.theme-dark .user-name.tier-svip { color: #ff8a80; }

/* ================= v1.4.5：按住输入框发语音 ================= */
.composer .input.voice-holding {
  border-color: #12b7f5;
  box-shadow: 0 0 0 2px rgba(18, 183, 245, .18);
  background: #f4fbff;
}
body.theme-dark .composer .input.voice-holding { background: #1d2b3a; }

/* ================= v1.4.5：客户端更新推送 ================= */
.update-modal { max-width: 460px; }
.update-ver { color: var(--blue-dark); font-size: 15px; }
.update-meta { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.update-notes {
  margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #f6f9fc;
  border: 1px solid #e6eef7; font-size: 13px; line-height: 1.75; white-space: pre-wrap;
  max-height: 200px; overflow: auto;
}
.update-notes.muted { color: var(--text-3); }
.update-hint { margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--text-3); }
body.theme-dark .update-notes { background: #1c2531; border-color: #2b3847; }

/* ================= v1.4.6：录音波形与上滑取消 ================= */
.voice-bar.cancel-ready {
  background: #fff2f1;
  border: 1px solid #ffd6d2;
  color: #d83a30;
}
body.theme-dark .voice-bar.cancel-ready { background: #3a2223; border-color: #653337; color: #ff9b91; }
.voice-wave { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 2px; }
.voice-wave i { width: 3px; min-height: 5px; border-radius: 2px; background: var(--blue); transition: height .15s ease; }
.voice-bar.cancel-ready .voice-wave i { background: #d83a30; }

/* ================= v1.4.8：更新小红点与安装包信息 ================= */
.rail-btn { position: relative; }
.rail-dot {
  position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: #f0564a; box-shadow: 0 0 0 2px var(--rail);
}
body.theme-dark .rail-dot { box-shadow: 0 0 0 2px var(--rail); }
.update-file { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--text-2); }
.update-sha { font-family: Consolas, "SFMono-Regular", monospace; color: var(--text-3); }

/* ================= v1.4.8：全 UI 维护 ================= */
::selection { background: #c9eeff; color: #12384d; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}
button { -webkit-tap-highlight-color: transparent; }
.icon-btn, .rail-btn, .session, .group-row { transition: background .14s ease, color .14s ease, transform .12s ease; }
.icon-btn:hover, .rail-btn:hover { transform: translateY(-1px); }
.modal-mask { backdrop-filter: blur(2px); animation: sxFade .16s ease; }
.modal { animation: sxPop .18s cubic-bezier(.2,.8,.3,1); }
@keyframes sxFade { from { opacity: .35; } to { opacity: 1; } }
@keyframes sxPop { from { opacity: .6; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.scroll-thin, .modal, .msg-list, .req-list, .update-notes { scrollbar-width: thin; scrollbar-color: #c8d4e2 transparent; }
.modal::-webkit-scrollbar, .msg-list::-webkit-scrollbar, .update-notes::-webkit-scrollbar { width: 6px; height: 6px; }
.modal::-webkit-scrollbar-thumb, .msg-list::-webkit-scrollbar-thumb, .update-notes::-webkit-scrollbar-thumb { background: #c8d4e2; border-radius: 6px; }
body.theme-dark .modal::-webkit-scrollbar-thumb, body.theme-dark .msg-list::-webkit-scrollbar-thumb { background: #3a4a5c; }
@media (max-width: 760px) {
  .modal, .modal.narrow { width: calc(100vw - 20px); max-width: calc(100vw - 20px); max-height: 92vh; padding: 18px 16px; border-radius: 12px; }
  .modal.settings-modal { width: calc(100vw - 20px); max-width: calc(100vw - 20px); max-height: 92vh; padding: 18px 16px; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .btn-primary { min-width: 120px; }
  .pref-row, .desktop-prefs-actions { flex-wrap: wrap; gap: 8px; }
  .voice-time { white-space: normal; }
  .update-file { flex-direction: column; gap: 4px; }
}
@media (max-height: 620px) {
  .login-card { transform: scale(.94); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* 登录小窗窄屏兜底 */
@media (max-width: 460px) {
  .login-card { width: calc(100vw - 24px); padding: 28px 22px 22px; }
}

body.theme-dark .space-search, body.theme-dark .space-filter-btn { background: #1b2635; border-color: #2d3d50; color: #c6d2e1; }
body.theme-dark .space-filter-btn.on { background: #102f3d; border-color: #1b667e; color: #6ed2f6; }
body.theme-dark .space-board { background: #141c27; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
body.theme-dark .space-board-form textarea { background: #1b2635; border-color: #2d3d50; color: #dce6f2; }
body.theme-dark .space-board-item { background: #1a2432; }
body.theme-dark .space-board-meta b { color: #9fc5e8; }
body.theme-dark .space-board-text { color: #dce6f2; }

/* ================= v1.4.9：运维诊断 / 问题反馈 ================= */
.ops-modal, .feedback-modal { max-width: 500px; }
.ops-hint { font-size: 12px; line-height: 1.6; color: var(--text-3); margin-bottom: 12px; }
.ops-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ops-card { background: #f6faff; border: 1px solid #e7eff8; border-radius: 9px; padding: 10px 8px; text-align: center; }
.ops-card b { display: block; color: #148fca; font-size: 15px; line-height: 1.3; }
.ops-card b.bad { color: #d93025; }
.ops-card span { font-size: 11px; color: var(--text-3); }
.ops-meta { font-size: 11.5px; color: var(--text-3); margin: 9px 0 10px; }
.ops-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-diagnostics { width: 100%; height: 116px; margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fafcff; color: #445063; font-size: 11.5px; line-height: 1.55; resize: vertical; }
.fb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fb-grid label { font-size: 12.5px; color: var(--text-3); }
.fb-grid .modal-input { margin-top: 5px; }
.fb-content { width: 100%; min-height: 92px; max-height: 180px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; line-height: 1.6; resize: vertical; outline: none; }
.fb-content:focus { border-color: #35bdf0; box-shadow: 0 0 0 3px rgba(53,189,240,.1); }
.fb-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--text-3); }
.fb-history-head { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; font-weight: 600; color: #33415c; display: flex; justify-content: space-between; }
.fb-history-head span { font-weight: 400; font-size: 11px; color: var(--text-3); }
.fb-history { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; max-height: 180px; overflow: auto; }
.fb-item { background: #f7faff; border-radius: 8px; padding: 9px 10px; }
.fb-item-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }
.fb-item-head b { color: #35516d; font-size: 12.5px; }
.fb-item-head em { margin-left: auto; font-style: normal; }
.fb-status { padding: 1px 7px; border-radius: 99px; background: #fff1d6; color: #9a6500; }
.fb-status.st-processing { background: #e4f4ff; color: #167ba8; }
.fb-status.st-resolved { background: #e2f7eb; color: #1b7847; }
.fb-item-text { font-size: 12.5px; line-height: 1.6; color: #354154; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.fb-reply { margin-top: 6px; padding: 6px 8px; border-radius: 7px; background: #eaf8ff; font-size: 12px; line-height: 1.55; color: #175a7a; }
.fb-reply b { color: #0e7ba9; }
@media (max-width: 560px) { .ops-grid { grid-template-columns: repeat(2, 1fr); } .fb-grid { grid-template-columns: 1fr; } }
body.theme-dark .ops-card { background: #182431; border-color: #2b3b4e; }
body.theme-dark .ops-diagnostics, body.theme-dark .fb-content { background: #192533; color: #dce6f2; border-color: #2d3d50; }
body.theme-dark .fb-history-head { color: #c6d2e1; border-color: #2d3d50; }
body.theme-dark .fb-item { background: #182431; }
body.theme-dark .fb-item-head b { color: #9fc5e8; }
body.theme-dark .fb-item-text { color: #dce6f2; }
body.theme-dark .fb-reply { background: #102e3d; color: #9bd8ef; }
body.theme-dark .fb-reply b { color: #62c9ea; }


/* ================= v1.5.1：首屏防闪烁 ================= */
[v-cloak] { display: none !important; }
.boot-screen {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(160deg, #eef5ff 0%, #f7fbff 55%, #eaf2ff 100%);
  color: #4a5561; user-select: none;
}
.boot-logo {
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #3b82f6, #2563eb); color: #fff;
  font-size: 30px; font-weight: 800; box-shadow: 0 10px 26px rgba(37, 99, 235, .22);
}
.boot-title { font-size: 20px; font-weight: 700; color: #1f2937; letter-spacing: .5px; }
.boot-text { font-size: 13px; color: #7a8794; }

/* ================= v1.6.0：手机端网页适配 ================= */
.rail-txt, .mobile-back { display: none; }

@media (max-width: 760px) {
  html, body { height: 100%; overscroll-behavior: none; }
  body { -webkit-user-select: none; user-select: none; }
  input, textarea, .msg-list, .modal { -webkit-user-select: text; user-select: text; }

  /* 登录页：贴边卡片 + 安全区 */
  .login { height: 100dvh; justify-content: center; padding: max(16px, env(safe-area-inset-top)) 12px max(20px, env(safe-area-inset-bottom)); }
  .login-card { width: 100%; max-width: 420px; padding: 28px 22px 24px; border-radius: 18px; }
  .login-foot { bottom: max(10px, env(safe-area-inset-bottom)); }

  /* 主框架：会话列表铺满，底部导航 */
  .main { height: 100dvh; display: block; position: relative; }
  .rail {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 31;
    width: 100%; height: calc(58px + env(safe-area-inset-bottom));
    flex: none; flex-direction: row; align-items: stretch; gap: 0;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-right: 0; border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(30, 70, 110, .08); backdrop-filter: blur(12px);
  }
  .rail-me { display: none; }
  .rail-nav { flex: 1; flex-direction: row; gap: 0; justify-content: space-around; align-items: stretch; }
  .rail-bottom { margin: 0; display: flex; align-items: stretch; }
  .rail-btn {
    width: auto; max-width: 58px; height: 52px; border-radius: 10px;
    flex: 1 1 0; min-width: 0; flex-direction: column; gap: 2px;
  }
  .rail-btn svg { width: 21px; height: 21px; }
  .rail-txt { display: block; font-size: 9.5px; line-height: 1; color: #718096; letter-spacing: 0; }
  .rail-btn.on .rail-txt { color: #fff; }
  .rail-btn.on { box-shadow: none; }
  .rail-badge { top: 1px; right: 50%; transform: translateX(9px); }
  .rail-dot { top: 6px; right: 50%; transform: translateX(8px); }

  /* 侧边栏：全宽、上下留出安全区和底栏 */
  .sidebar {
    width: 100%; flex: 1 1 100%; height: 100dvh; border-right: 0;
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
  .side-head { padding-top: calc(10px + env(safe-area-inset-top)); }
  .side-head .search { height: 38px; border-radius: 19px; }
  .side-head .add-btn { width: 38px; height: 38px; }
  .session-list { padding: 2px 6px 10px; }
  .session { padding: 11px 10px; border-radius: 10px; }
  .session .avatar { width: 44px; height: 44px; flex-basis: 44px; border-radius: 11px; }
  .session-body .name { font-size: 15px; }
  .session-body .preview { font-size: 12.5px; }
  .side-actions { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .side-title { padding: 8px 14px 4px; }

  /* 聊天：全屏覆盖，底部导航隐藏 */
  .chat {
    position: fixed; inset: 0; z-index: 22; width: 100%; height: 100dvh;
    display: none; padding-bottom: env(safe-area-inset-bottom); background: var(--bg);
  }
  .main.mobile-chat-open .chat { display: flex; }
  .main.mobile-chat-open .rail { display: none; }
  .main.mobile-chat-open .sidebar { display: none; }
  .mobile-back {
    display: flex; flex: 0 0 34px; width: 34px; height: 34px; margin-right: 2px;
    color: var(--text-2); background: #f2f5f9;
  }
  .chat-head {
    height: auto; min-height: calc(56px + env(safe-area-inset-top)); flex-basis: auto;
    padding: calc(6px + env(safe-area-inset-top)) 10px 6px 6px; gap: 4px;
  }
  .head-title { gap: 7px; flex: 1; min-width: 0; }
  .head-title .avatar.tiny { width: 34px; height: 34px; flex: 0 0 34px; }
  .head-title h2 { font-size: 15.5px; max-width: 36vw; overflow: hidden; text-overflow: ellipsis; }
  .head-title .sub { display: none; }
  .head-actions { gap: 0; flex: 0 0 auto; }
  .head-actions .icon-btn { width: 34px; height: 34px; }
  .head-actions .icon-btn svg { width: 19px; height: 19px; }
  .helper-tag { display: none; }
  .msg-scroll { padding: 12px 10px 6px; }
  .bubble .text { font-size: 14.5px; line-height: 1.58; }
  .bubble.image .img { max-width: min(220px, 62vw); max-height: 240px; }
  .msg .avatar.sm { width: 34px; height: 34px; flex-basis: 34px; }
  .msg-main { max-width: 78%; }
  .composer { padding: 6px 8px calc(7px + env(safe-area-inset-bottom)); }
  .composer-tools { gap: 4px; }
  .composer .input { font-size: 14.5px; }
  .composer-resize { display: none; }
  .voice-bar { left: 8px; right: 8px; bottom: calc(58px + env(safe-area-inset-bottom)); }

  /* 弹窗改成底部面板，拇指更容易操作 */
  .modal-mask { align-items: flex-end; padding: 8px 6px 0; }
  .modal, .modal.narrow, .modal.settings-modal {
    width: 100%; max-width: 100%; max-height: 90dvh;
    border-radius: 16px 16px 0 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
    animation: sxSheet .2s cubic-bezier(.2,.8,.3,1);
  }
  .modal-actions { position: static; background: transparent; padding-top: 14px; }
  .color-row { gap: 6px; }

  /* 密码取件 / 空间等全宽视图留出底栏 */
  .pickup-page, .space-page { width: 100%; height: 100dvh; padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .call-overlay { padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
}
@keyframes sxSheet { from { opacity: .7; transform: translateY(28px); } to { opacity: 1; transform: none; } }
body.theme-dark .rail { background: rgba(24, 31, 42, .96); }
body.theme-dark .rail-txt { color: #8fa0b3; }
body.theme-dark .mobile-back { background: #222c3a; color: #c6d2e1; }
body.theme-dark .modal-mask .modal { background: #1b2432; }

/* ================= v1.7.0 会议录音 ================= */
.meeting-page { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.meeting-head { min-height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; }
.meeting-head h2 { margin: 0 0 3px; font-size: 16px; }
.meeting-head span { font-size: 12px; color: var(--text-3); }
.meeting-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(360px, 1fr); gap: 16px; align-items: start; }
.meeting-card { background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 20px; box-shadow: 0 2px 10px rgba(24, 39, 75, .04); }
.meeting-card.recorder { position: sticky; top: 0; }
.rec-top { display: flex; align-items: center; justify-content: space-between; }
.rec-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.rec-badge i { width: 8px; height: 8px; border-radius: 50%; background: #c5ccd8; }
.rec-badge.live { color: #d92d2d; font-weight: 600; }
.rec-badge.live i { background: #e5484d; animation: recPulse 1.15s infinite; }
@keyframes recPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.rec-clock { font-family: Consolas, "Courier New", monospace; font-size: 30px; font-weight: 700; letter-spacing: 1px; color: var(--text); }
.rec-wave { height: 54px; display: flex; align-items: center; justify-content: center; gap: 4px; margin: 8px 0 18px; border-radius: 10px; background: #f7f9fc; border: 1px solid #edf0f5; overflow: hidden; }
.rec-wave.live { background: linear-gradient(180deg, #f2f8ff, #f8fbff); border-color: #d8e8ff; }
.rec-wave span { width: 4px; min-height: 3px; border-radius: 3px; background: #c9d4e2; transition: height .08s linear; }
.rec-wave.live span { background: linear-gradient(180deg, #12b7f5, #3e7bfa); }
.rec-label { display: block; margin: 13px 0 6px; font-size: 12px; color: var(--text-3); }
.rec-title { width: 100%; height: 38px; border: 1px solid #dfe4ec; border-radius: 8px; padding: 0 11px; font-size: 13.5px; background: #fbfcfe; outline: none; }
.rec-title:focus { border-color: var(--blue); background: #fff; }
.rec-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rec-sources button { text-align: left; border: 1px solid #dfe4ec; background: #fbfcfe; border-radius: 9px; padding: 10px 12px; cursor: pointer; color: var(--text-2); }
.rec-sources button b { display: block; font-size: 13px; color: var(--text); margin-bottom: 3px; }
.rec-sources button small { font-size: 11px; color: var(--text-3); line-height: 1.45; }
.rec-sources button.on { border-color: #8cc8ff; background: #eef7ff; box-shadow: inset 0 0 0 1px #bfe1ff; }
.rec-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.rec-start { width: 160px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.rec-start svg { width: 15px; height: 15px; fill: currentColor; }
.rec-pause { min-width: 90px; }
.rec-stop { height: 34px; padding: 0 16px; border: 0; border-radius: 7px; background: #e5484d; color: #fff; font-size: 13px; cursor: pointer; }
.rec-stop:hover { background: #d33a3f; }
.rec-stop:disabled { opacity: .6; cursor: default; }
.rec-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 11.5px; color: var(--text-3); }
.rec-progress .bar { flex: 1; height: 6px; border-radius: 4px; background: #e9edf3; overflow: hidden; }
.rec-progress .bar i { display: block; height: 100%; background: var(--blue); transition: width .2s; }
.rec-tip { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed #eef1f5; font-size: 11.5px; line-height: 1.75; color: var(--text-3); }
.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.list-head h3 { margin: 0; font-size: 15px; }
.list-head span { font-size: 12px; color: var(--text-3); }
.meeting-row { display: flex; align-items: center; gap: 11px; padding: 11px 2px; border-bottom: 1px solid #f1f3f7; }
.meeting-row:last-child { border-bottom: 0; }
.meeting-row .play { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #eef3f9; color: var(--blue-dark); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.meeting-row .play:hover { background: #e1edf9; }
.meeting-row .play.on { background: var(--blue); color: #fff; }
.meeting-row .play svg { width: 17px; height: 17px; fill: currentColor; }
.meeting-row .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.meeting-row .meta b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-row .meta span { font-size: 11.5px; color: var(--text-3); }
.meeting-row .row-actions { display: flex; gap: 5px; flex: none; }
.meeting-empty { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-3); text-align: center; gap: 6px; }
.meeting-empty svg { width: 42px; height: 42px; color: #c9d4e2; fill: none; stroke: currentColor; stroke-width: 1.6; }
.meeting-empty b { font-size: 14px; color: var(--text-2); }
.meeting-empty span { font-size: 12px; }
.meeting-loading { padding: 18px; text-align: center; font-size: 12px; color: var(--text-3); }

@media (max-width: 900px) {
  .meeting-body { grid-template-columns: 1fr; }
  .meeting-card.recorder { position: static; }
}
@media (max-width: 760px) {
  .meeting-page { width: 100%; height: 100dvh; padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .meeting-head { padding: 10px 12px; }
  .meeting-head span { display: none; }
  .meeting-body { padding: 10px; gap: 10px; }
  .meeting-card { padding: 14px; border-radius: 10px; }
  .rec-clock { font-size: 26px; }
  .rec-sources { grid-template-columns: 1fr; }
  .meeting-row { align-items: flex-start; flex-wrap: wrap; }
  .meeting-row .meta { min-width: calc(100% - 52px); }
  .meeting-row .row-actions { width: 100%; padding-left: 49px; }
  .meeting-row .row-actions .btn-ghost { flex: 1; }
}
body.theme-dark .meeting-head, body.theme-dark .meeting-card { background: #1b2432; border-color: #2b3644; }
body.theme-dark .rec-title, body.theme-dark .rec-sources button { background: #222c3a; border-color: #33404f; color: #cfd8e3; }
body.theme-dark .rec-sources button b { color: #e6edf5; }
body.theme-dark .rec-sources button.on { background: #213a52; border-color: #3c7fb4; }
body.theme-dark .rec-wave { background: #222c3a; border-color: #303b4a; }
body.theme-dark .meeting-row { border-color: #2a3544; }
body.theme-dark .meeting-row .play { background: #263241; color: #7fc3ff; }

/* ================= v1.8.0 OA 工作台 ================= */
.rail-btn.oa-rail .rail-badge,
.rail-badge.oa-badge { background: #f5a623; color: #fff; }
.oa-global-banner {
  display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 12px;
  margin: 8px 10px 0; border-radius: 9px; cursor: pointer;
  background: linear-gradient(135deg, #fff8e8, #fff3d7); border: 1px solid #f4dfae;
  color: #8a5b00; flex: 0 0 auto;
}
.oa-global-banner:hover { filter: brightness(1.02); box-shadow: 0 3px 10px rgba(180,130,20,.12); }
.oa-banner-tag { flex: 0 0 auto; font-size: 11px; line-height: 20px; padding: 0 6px; border-radius: 5px; background: #f5a623; color: #fff; }
.oa-banner-tag.lv-important { background: #f08a3c; }
.oa-banner-tag.lv-urgent { background: #f0564a; }
.oa-banner-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.oa-banner-arrow { color: #b58936; font-size: 16px; }

.oa-page {
  flex: 1; min-width: 0; height: 100vh; overflow-y: auto;
  background: radial-gradient(900px 420px at 100% 0%, #e9f7ff 0%, transparent 55%), var(--bg);
}
.oa-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 26px 34px 18px;
}
.oa-eyebrow { font-size: 10.5px; letter-spacing: .18em; color: #1499ce; font-weight: 700; margin-bottom: 6px; }
.oa-head h1 { margin: 0 0 5px; font-size: 26px; letter-spacing: .5px; }
.oa-head p { margin: 0; color: var(--text-3); font-size: 12.5px; }
.oa-head-actions { display: flex; align-items: center; gap: 10px; }
.oa-admin-pill { font-size: 11.5px; color: #9a5b00; background: #fff3d7; border: 1px solid #f0d79e; border-radius: 20px; padding: 4px 10px; }
.oa-tabs {
  display: flex; gap: 4px; padding: 0 34px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5; background: rgba(245,246,248,.94); backdrop-filter: blur(10px);
}
.oa-tabs button {
  border: 0; background: transparent; color: var(--text-2); height: 44px; padding: 0 14px;
  font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 6px;
}
.oa-tabs button:hover { color: #1499ce; }
.oa-tabs button.on { color: #0d8fc2; border-bottom-color: #12b7f5; font-weight: 600; }
.oa-tabs button span { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #f0564a; color: #fff; font-size: 10px; line-height: 17px; text-align: center; font-weight: 500; }
.oa-body { padding: 20px 34px 70px; max-width: 1120px; }
.oa-pane { opacity: 1; }
.oa-overview-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 20px 22px; margin-bottom: 14px; border: 1px solid #d8ecf7; border-radius: 14px; background: linear-gradient(135deg, #f7fcff 0%, #eaf7ff 100%); }
.oa-kicker { display: block; color: #1289b8; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; margin-bottom: 5px; }
.oa-overview-hello h2 { margin: 0; color: #22313f; font-size: 24px; letter-spacing: -.02em; }
.oa-overview-hello p { margin: 7px 0 0; color: #5f7182; font-size: 12.5px; }
.oa-overview-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.oa-overview-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 14px; }
.oa-stat-card { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border: 1px solid #e4edf4; border-radius: 11px; background: #fff; text-align: left; transition: border-color .15s, transform .15s; }
.oa-stat-card:hover { border-color: #9fd7ef; transform: translateY(-1px); }
.oa-stat-card b { color: #0d8fc2; font-size: 22px; line-height: 1; }
.oa-stat-card span { color: #6b7a89; font-size: 12px; }
.oa-overview-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; padding-bottom: 20px; }
.oa-dash-card { min-width: 0; background: #fff; border: 1px solid #e4edf4; border-radius: 12px; padding: 14px 16px 12px; }
.oa-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.oa-dash-head h3 { margin: 0; font-size: 14px; color: #2b3947; }
.oa-dash-sched { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 7px 0 7px 9px; border-left: 3px solid #3E7BFA; border-bottom: 1px dashed #edf2f6; }
.oa-dash-sched:last-of-type { border-bottom: 0; }
.oa-dash-time { flex: 0 0 88px; color: #5d6c7a; font-size: 11px; }
.oa-dash-sched b { min-width: 0; font-size: 12.5px; color: #26333f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-dash-note { color: #8a97a4; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-dash-todo { display: flex; align-items: center; gap: 7px; padding: 6px 0; border-bottom: 1px dashed #edf2f6; }
.oa-dash-todo:last-of-type { border-bottom: 0; }
.oa-dash-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #9fb3c6; }
.oa-dash-dot.p-high { background: #f5a623; }
.oa-dash-dot.p-urgent { background: #f0564a; }
.oa-dash-todo b { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500; color: #2d3a47; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-dash-overdue, .oa-dash-today { flex: 0 0 auto; padding: 1px 6px; border-radius: 5px; font-size: 10px; }
.oa-dash-overdue { background: #fff0ef; color: #d94539; }
.oa-dash-today { background: #fff7e5; color: #b8770b; }
.oa-dash-metric { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; color: #5b6a78; font-size: 12.5px; border-bottom: 1px dashed #edf2f6; }
.oa-dash-metric b { color: #0d8fc2; font-size: 18px; }
.oa-dash-hint { margin-top: 8px; color: #93a0ad; font-size: 11px; line-height: 1.6; }
.oa-dash-ann { display: flex; align-items: center; gap: 7px; padding: 6px 0; border-bottom: 1px dashed #edf2f6; min-width: 0; }
.oa-dash-ann:last-of-type { border-bottom: 0; }
.oa-dash-ann b { flex: 1; min-width: 0; font-size: 12.5px; color: #2d3a47; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-dash-ann > span:last-child { color: #9aa7b3; font-size: 10.5px; }
.oa-dash-empty { color: #9aa7b3; font-size: 12px; padding: 16px 0 12px; text-align: center; }
.oa-att-inline { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: #8b98a5; font-size: 11px; }
.oa-att-badge { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 10.5px; background: #eef2f6; color: #7a8895; }
.oa-att-badge.lg { font-size: 12px; padding: 3px 10px; }
.oa-att-badge.ok { background: #e8f8ef; color: #168a4d; }
.oa-att-badge.warn { background: #fff4df; color: #b4770a; }
.oa-att-badge.bad { background: #fff0ef; color: #d94539; }
.oa-att-badge.idle { background: #eef2f6; color: #7a8895; }
.oa-att-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 18px 20px; margin-bottom: 12px; border: 1px solid #d8ecf7; border-radius: 14px; background: linear-gradient(135deg, #f8fdff 0%, #edf8ff 100%); }
.oa-att-hero h2 { margin: 0; font-size: 21px; color: #243240; }
.oa-att-hero p { margin: 6px 0 0; color: #66798a; font-size: 12px; }
.oa-att-hero-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.oa-att-warn { color: #b4770a; font-size: 11px; }
.oa-att-clock { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid #e4edf4; border-radius: 12px; }
.oa-att-clock > div:not(.oa-att-actions) { display: flex; flex-direction: column; gap: 4px; }
.oa-att-clock span { color: #8795a3; font-size: 11px; }
.oa-att-clock b { color: #22313f; font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.oa-att-actions { display: flex; gap: 8px; }
.oa-att-monthbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 10px; }
.oa-att-monthbar b { font-size: 14px; color: #2b3947; }
.oa-att-monthbar .oa-input { width: 150px; }
.oa-att-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.oa-att-summary > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: #fff; border: 1px solid #e4edf4; border-radius: 10px; }
.oa-att-summary b { color: #0d8fc2; font-size: 18px; }
.oa-att-summary span { color: #8795a3; font-size: 11px; }
.oa-att-list { background: #fff; border: 1px solid #e4edf4; border-radius: 12px; padding: 4px 14px; }
.oa-att-row { display: grid; grid-template-columns: 104px 1fr 1fr 84px 76px auto; align-items: center; gap: 8px; min-height: 40px; border-bottom: 1px dashed #edf2f6; font-size: 12px; color: #5c6c7a; }
.oa-att-row:last-child { border-bottom: 0; }
.oa-att-row > b { color: #2c3a48; font-size: 12.5px; }
.oa-att-row .oa-att-badge { justify-self: start; }
.oa-att-fix { border: 1px solid #cfe8f6; background: #f4fbff; color: #1486b3; border-radius: 6px; font-size: 11px; padding: 3px 8px; height: auto; justify-self: end; }
.oa-att-fix:hover { background: #e6f6ff; }
.oa-att-makeup { margin-top: 16px; }
.oa-att-tip { margin: 0 0 8px; color: var(--text-3); font-size: 11.5px; }
.oa-att-mk-list { background: #fff; border: 1px solid #e4edf4; border-radius: 12px; padding: 4px 14px; }
.oa-att-mk-row { display: grid; grid-template-columns: 150px 70px 1fr 76px auto; align-items: center; gap: 10px; min-height: 42px; border-bottom: 1px dashed #edf2f6; font-size: 12px; color: #5c6c7a; }
.oa-att-mk-row:last-child { border-bottom: 0; }
.oa-att-mk-row > b { color: #2c3a48; font-size: 12.5px; font-weight: 600; }
.oa-att-mk-reason { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-att-mk-modal { width: min(430px, 94vw); }
.oa-mk-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; font-size: 12px; color: #64748b; }
.oa-mk-field textarea { height: auto; padding: 8px 10px; line-height: 1.6; resize: vertical; }
body.theme-dark .oa-att-mk-list { background: #1b2432; border-color: #2b3644; }
body.theme-dark .oa-att-mk-row { border-bottom-color: #2b3644; color: #98a7b7; }
body.theme-dark .oa-att-mk-row > b { color: #dbe4ee; }

.oa-section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 2px 12px; }
.oa-section-title span { font-weight: 700; font-size: 15px; }
.oa-section-title small { color: var(--text-3); font-size: 12px; }
.oa-empty { text-align: center; color: var(--text-3); font-size: 12.5px; padding: 42px 10px; }

.oa-ann-card {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid #8ecff0; border-radius: 12px;
  padding: 16px 20px 12px; margin-bottom: 12px; box-shadow: 0 5px 18px rgba(25,50,90,.045);
}
.oa-ann-card.lv-important { border-left-color: #f5a623; }
.oa-ann-card.lv-urgent { border-left-color: #f0564a; background: #fff9f8; }
.oa-ann-card.pinned { box-shadow: 0 6px 22px rgba(18,150,200,.1); }
.oa-ann-card.unread { background: linear-gradient(90deg, #f0fbff, #fff 38%); }
.oa-ann-top { display: flex; align-items: center; gap: 8px; }
.oa-ann-top h3 { margin: 0; font-size: 16px; flex: 1; min-width: 0; }
.oa-tag { display: inline-block; font-size: 10.5px; line-height: 19px; padding: 0 7px; border-radius: 5px; background: #e8f6fe; color: #1289b8; flex: 0 0 auto; }
.oa-tag.lv-important { background: #fff0db; color: #b96c00; }
.oa-tag.lv-urgent { background: #fff0ee; color: #d83b2f; }
.oa-tag.kind { background: #eef1ff; color: #5a68c9; }
.oa-pin { font-size: 10.5px; color: #c18112; border: 1px solid #f0d79e; border-radius: 4px; padding: 0 5px; }
.oa-read-btn { border: 0; background: transparent; color: #1499ce; font-size: 11.5px; padding: 3px 6px; }
.oa-ann-content { margin: 12px 0 10px; color: #3e4753; line-height: 1.75; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.oa-ann-foot { color: var(--text-3); font-size: 11.5px; border-top: 1px dashed #edf1f5; padding-top: 9px; }

.oa-compose { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; box-shadow: 0 5px 18px rgba(25,50,90,.04); }
.oa-compose-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: #26323e; }
.oa-form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
.oa-form-grid .span2 { grid-column: span 2; }
.oa-form-grid .span3 { grid-column: span 3; }
.oa-input {
  width: 100%; height: 36px; border: 1px solid #dfe4ec; border-radius: 8px; padding: 0 10px;
  background: #fbfcfe; color: var(--text); font-size: 13px; outline: none; min-width: 0;
}
.oa-input:focus { border-color: #12b7f5; background: #fff; box-shadow: 0 0 0 3px rgba(18,183,245,.12); }
.oa-textarea { height: 72px; padding: 8px 10px; resize: vertical; line-height: 1.6; }
.oa-checkline { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.oa-compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--text-3); font-size: 11.5px; }
.oa-compose-foot .oa-checkline { white-space: nowrap; }
.oa-reminder-strip { background: #fff8e8; border: 1px solid #f3dfb8; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.oa-reminder-head { display: flex; align-items: center; gap: 8px; color: #8a5b12; font-size: 12px; margin-bottom: 4px; }
.oa-reminder-head b { font-size: 13px; }
.oa-reminder-head span { color: #a98245; }
.oa-reminder-head .oa-del { margin-left: auto; }
.oa-reminder-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px dashed #ecdbb9; }
.oa-reminder-row:first-of-type { border-top: 0; }
.oa-reminder-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.oa-reminder-main b { font-size: 13px; color: #4a3410; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-reminder-main span { font-size: 11.5px; color: #9a7a42; }
.oa-remind-tag { display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 5px; background: #fff3dd; color: #a66a10; font-size: 10.5px; font-weight: 500; vertical-align: 1px; }

.oa-list { display: flex; flex-direction: column; gap: 8px; }
.oa-todo {
  display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 16px; transition: .15s;
}
.oa-todo:hover { border-color: #cfe4f2; box-shadow: 0 4px 14px rgba(20,80,120,.06); }
.oa-todo.done { opacity: .62; background: #f9fafb; }
.oa-check {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; border: 1.5px solid #c8d2dd;
  background: #fff; color: #fff; font-size: 13px; line-height: 20px; padding: 0; margin-top: 1px;
}
.oa-check.on { background: #12b7f5; border-color: #12b7f5; }
.oa-todo-main { flex: 1; min-width: 0; }
.oa-todo-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.oa-todo.done .oa-todo-title { text-decoration: line-through; }
.oa-pri { font-size: 10px; line-height: 18px; padding: 0 6px; border-radius: 4px; background: #f1f4f8; color: #7d8794; font-weight: 500; }
.oa-pri.p-high { background: #fff1df; color: #b76a00; }
.oa-pri.p-urgent { background: #ffefed; color: #d83b2f; }
.oa-todo-note { font-size: 12px; color: var(--text-2); margin-top: 4px; white-space: pre-wrap; }
.oa-todo-meta { font-size: 11px; color: var(--text-3); margin-top: 5px; }
.oa-del { border: 0; background: transparent; color: #a9b2be; font-size: 11.5px; padding: 4px 6px; }
.oa-del:hover { color: #f0564a; }

.oa-request { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px 17px; }
.oa-req-top { display: flex; align-items: center; gap: 8px; }
.oa-req-top h3 { margin: 0; font-size: 14.5px; flex: 1; min-width: 0; }
.oa-status { font-size: 10.5px; line-height: 19px; padding: 0 7px; border-radius: 5px; background: #f1f4f8; color: #76808d; }
.oa-status.s-pending { background: #fff3d7; color: #a96b00; }
.oa-status.s-approved { background: #e5f8ee; color: #1a9a62; }
.oa-status.s-rejected { background: #ffefed; color: #d83b2f; }
.oa-req-content { margin-top: 9px; font-size: 12.5px; color: #4b5663; line-height: 1.65; white-space: pre-wrap; }
.oa-req-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 9px; padding-top: 8px; border-top: 1px dashed #edf1f5; font-size: 11px; color: var(--text-3); }
.oa-req-comment { color: #1289b8; }
.oa-req-foot .oa-del { margin-left: auto; }

.oa-schedule-list { display: flex; flex-direction: column; gap: 9px; }
.oa-sched { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; padding: 13px 16px; }
.oa-sched-date { flex: 0 0 100px; border-right: 1px dashed #e8edf2; padding-right: 12px; }
.oa-sched-date b { display: block; font-size: 12px; color: #34404c; }
.oa-sched-date span { font-size: 11px; color: var(--text-3); }
.oa-sched-main { flex: 1; min-width: 0; }
.oa-sched-main h3 { margin: 0; font-size: 14px; }
.oa-sched-main p { margin: 5px 0 0; color: var(--text-2); font-size: 12px; white-space: pre-wrap; }
.oa-sched-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; }
.oa-sched-actions .oa-del:first-child:hover { color: #1289b8; }
.oa-compose-foot .spacer { flex: 1; }

/* 全局公告弹窗 */
.oa-ann-mask { position: fixed; inset: 0; z-index: 120; background: rgba(19,31,45,.42); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 18px; }
.oa-ann-modal { width: min(520px, 94vw); max-height: 84vh; overflow: auto; background: #fff; border-radius: 16px; padding: 22px 26px 18px; box-shadow: 0 24px 70px rgba(10,30,55,.3); border-top: 4px solid #8ecff0; animation: oaPop .2s ease; }
.oa-ann-modal.lv-important { border-top-color: #f5a623; }
.oa-ann-modal.lv-urgent { border-top-color: #f0564a; }
@keyframes oaPop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.oa-ann-modal-top { display: flex; align-items: center; gap: 9px; }
.oa-modal-brand { flex: 1; color: #1289b8; font-size: 11.5px; letter-spacing: .04em; }
.oa-modal-x { border: 0; background: transparent; font-size: 22px; color: #9aa3af; line-height: 1; padding: 0 4px; }
.oa-ann-modal h2 { margin: 13px 0 10px; font-size: 22px; }
.oa-ann-modal-content { color: #3e4753; font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.oa-ann-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 12px; border-top: 1px solid #edf1f5; color: var(--text-3); font-size: 11px; }
.oa-ann-modal-foot > div { display: flex; gap: 8px; }

body.theme-dark .oa-page { background: #141c26; }
body.theme-dark .oa-head h1 { color: #e6edf5; }
body.theme-dark .oa-tabs { background: rgba(20,28,38,.94); border-color: #2b3644; }
body.theme-dark .oa-tabs button { color: #9eabba; }
body.theme-dark .oa-ann-card, body.theme-dark .oa-compose, body.theme-dark .oa-todo,
body.theme-dark .oa-request, body.theme-dark .oa-sched, body.theme-dark .oa-ann-modal { background: #1b2432; border-color: #2b3644; color: #dbe4ee; }
body.theme-dark .oa-reminder-strip { background: #2b2618; border-color: #5c4a25; }
body.theme-dark .oa-reminder-head, body.theme-dark .oa-reminder-main b { color: #f0d89a; }
body.theme-dark .oa-reminder-head span, body.theme-dark .oa-reminder-main span { color: #c3a56d; }
body.theme-dark .oa-reminder-row { border-top-color: #4a3d22; }
body.theme-dark .oa-remind-tag { background: #3a2f1c; color: #ffd27a; }
body.theme-dark .oa-overview-hero { background: linear-gradient(135deg, #1b2836 0%, #1b303d 100%); border-color: #304253; }
body.theme-dark .oa-overview-hello h2 { color: #e6edf5; }
body.theme-dark .oa-overview-hello p { color: #a9b7c5; }
body.theme-dark .oa-stat-card, body.theme-dark .oa-dash-card { background: #1b2432; border-color: #2b3644; }
body.theme-dark .oa-stat-card span, body.theme-dark .oa-dash-time, body.theme-dark .oa-dash-hint, body.theme-dark .oa-dash-empty { color: #98a7b7; }
body.theme-dark .oa-dash-head h3, body.theme-dark .oa-dash-sched b, body.theme-dark .oa-dash-todo b, body.theme-dark .oa-dash-ann b { color: #dbe4ee; }
body.theme-dark .oa-dash-sched, body.theme-dark .oa-dash-todo, body.theme-dark .oa-dash-metric, body.theme-dark .oa-dash-ann { border-bottom-color: #2b3644; }
body.theme-dark .oa-dash-note, body.theme-dark .oa-dash-ann > span:last-child { color: #98a7b7; }
body.theme-dark .oa-att-hero { background: linear-gradient(135deg, #1b2836 0%, #1b303d 100%); border-color: #304253; }
body.theme-dark .oa-att-hero h2 { color: #e6edf5; }
body.theme-dark .oa-att-hero p, body.theme-dark .oa-att-clock span, body.theme-dark .oa-att-summary span, body.theme-dark .oa-att-row { color: #98a7b7; }
body.theme-dark .oa-att-clock, body.theme-dark .oa-att-list, body.theme-dark .oa-att-summary > div { background: #1b2432; border-color: #2b3644; }
body.theme-dark .oa-att-clock b, body.theme-dark .oa-att-row > b, body.theme-dark .oa-att-monthbar b { color: #dbe4ee; }
body.theme-dark .oa-att-row { border-bottom-color: #2b3644; }
body.theme-dark .oa-ann-card.unread { background: #1c2a36; }
body.theme-dark .oa-ann-content, body.theme-dark .oa-ann-modal-content,
body.theme-dark .oa-req-content, body.theme-dark .oa-req-foot, body.theme-dark .oa-sched-main p { color: #b6c2cf; }
body.theme-dark .oa-input { background: #222c3a; border-color: #33404f; color: #dbe4ee; }
body.theme-dark .oa-global-banner { background: #2b2618; border-color: #5c4a25; color: #f0d89a; }
body.theme-dark .oa-todo.done { background: #1a222d; }

@media (max-width: 900px) {
  .oa-head { padding: 18px 16px 14px; align-items: flex-start; }
  .oa-head h1 { font-size: 21px; }
  .oa-tabs { padding: 0 10px; overflow-x: auto; }
  .oa-tabs button { padding: 0 11px; flex: 0 0 auto; }
  .oa-body { padding: 14px 14px calc(78px + env(safe-area-inset-bottom)); }
  .oa-form-grid { grid-template-columns: 1fr 1fr; }
  .oa-form-grid .span2, .oa-form-grid .span3 { grid-column: span 2; }
  .oa-ann-card { padding: 14px; }
  .oa-ann-modal { padding: 18px; border-radius: 14px; }
  .oa-ann-modal-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .oa-page { width: 100%; height: 100dvh; }
  .oa-head-actions .btn-ghost { display: none; }
  .oa-global-banner { margin: calc(7px + env(safe-area-inset-top)) 8px 0; }
  .oa-sched { gap: 10px; }
  .oa-sched-date { flex-basis: 78px; }
  .oa-compose-foot { flex-wrap: wrap; row-gap: 7px; }
  .oa-compose-foot > span:first-child { flex: 1 1 100%; }
  .oa-compose-foot .spacer { display: none; }
  .oa-reminder-strip { padding: 10px 12px; }
  .oa-reminder-row { gap: 8px; }
  .oa-remind-tag { display: block; margin: 4px 0 0; width: max-content; }
  .oa-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 12px; overflow-x: hidden; }
  .oa-tabs button { justify-content: center; height: 40px; padding: 0 4px; font-size: 12px; }
  .oa-overview-hero { align-items: flex-start; flex-direction: column; padding: 16px; gap: 12px; }
  .oa-overview-actions { width: 100%; justify-content: flex-start; }
  .oa-overview-stats { grid-template-columns: 1fr 1fr; }
  .oa-overview-grid { grid-template-columns: 1fr; }
  .oa-stat-card { padding: 10px 12px; }
  .oa-stat-card b { font-size: 19px; }
  .oa-dash-time { flex-basis: 84px; }
  .oa-att-hero { flex-direction: column; align-items: flex-start; padding: 15px; gap: 9px; }
  .oa-att-hero-right { justify-content: flex-start; }
  .oa-att-clock { grid-template-columns: 1fr 1fr; padding: 12px; gap: 10px; }
  .oa-att-actions { grid-column: 1 / -1; width: 100%; }
  .oa-att-actions button { flex: 1; }
  .oa-att-summary { grid-template-columns: repeat(3, 1fr); }
  .oa-att-summary > div:nth-child(4), .oa-att-summary > div:nth-child(5) { grid-column: span 1; }
  .oa-att-row { grid-template-columns: 1fr 1fr; gap: 5px 10px; padding: 8px 0; }
  .oa-att-row > b { grid-column: 1 / -1; }
  .oa-att-row .oa-att-badge { justify-self: end; }
  .oa-att-row .oa-att-fix { grid-column: 1 / -1; justify-self: stretch; }
  .oa-att-list { padding: 4px 12px; }
  .oa-att-mk-row { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 0; }
  .oa-att-mk-row > b { grid-column: 1 / -1; }
  .oa-att-mk-reason { grid-column: 1 / -1; white-space: normal; }
  .oa-att-mk-list { padding: 4px 12px; }
  .oa-todo { padding: 12px; }
  .oa-req-top h3 { font-size: 13.5px; }
}
