.fs { --win-bg: #e8e8eb; --panel-bg: #fafafa; --header-bg: #f7fafa; --text-1: #232327; --text-2: #5b5c60; --text-3: #88888c; --icon-1: #595d61; --icon-2: #7f7f82; --line: #d2d4d4; --line-soft: #e4e5e7; --blue: #1249eb; --blue-bg: #c6d4f8; --sel-bg: #dfe8fb; --hover-bg: #e6e6e7; --bubble-self: #c9dcfb; --bubble-other: #e5e5e8; --card-bg: #fdfdfd; --orange-text: #a06c00; --orange-bg: #faf0d6; --red: #f23d3a; --green: #0e9a7f; --list-w: 320px; }
.fs * { box-sizing: border-box; }
.fs { margin: 0; background: var(--win-bg); color: var(--text-1); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; overflow: hidden; }
.fs button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.fs .ic { width: 1em; height: 1em; display: block; flex: none; fill: currentColor; }
.fs .ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fs .app { display: flex; height: 100vh; padding: 4px 4px 4px 0; gap: 6px; min-width: 0; }
.fs .side { position: relative; width: 172px; flex: none; margin-top: -4px; margin-bottom: -4px; }
.fs .traffic { position: absolute; left: 18px; top: 13px; display: flex; gap: 6px; }
.fs .traffic span { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,.14); }
.fs .traffic span:nth-child(1) { background: #fd5153; }
.fs .traffic span:nth-child(2) { background: #f7c000; }
.fs .traffic span:nth-child(3) { background: #2dbd4c; }
.fs .av.me { position: absolute; left: 10px; top: 44px; width: 30px; height: 30px; }
.fs .av.me .av-text { font-size: 13px; }
.fs .me-add { position: absolute; left: 145px; top: 50px; font-size: 18px; color: #3a3a3d; }
.fs .search { position: absolute; left: 6px; top: 88px; width: 164px; height: 32px; border-radius: 8px; background: #dbdbde; box-shadow: inset 0 0 0 .5px #cfcfd2; display: flex; align-items: center; padding-left: 12px; gap: 7px; color: #55575c; font-size: 13px; }
.fs .search .ic { font-size: 15px; color: #2e2e30; }
.fs .nav { position: absolute; left: 6px; right: 2px; top: 132px; }
.fs .nav-item { position: relative; display: flex; align-items: center; height: 32px; margin-bottom: 4px; padding-left: 11px; border-radius: 8px; color: var(--text-2); cursor: pointer; }
.fs .nav-item:hover { background: rgba(0,0,0,.035); }
.fs .nav-item .ic { font-size: 16px; color: var(--icon-2); }
.fs .nav-item .label { margin-left: 8px; font-size: 14px; line-height: 20px; min-width: 0; }
.fs .nav-item.active { background: #fafafc; color: #15181a; font-weight: 600; }
.fs .nav-item.active .db-nav { color: #15181a; }
.fs .nav-item .badge { position: absolute; right: 8px; top: 8.5px; }
.fs .badge { min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 11px; line-height: 15px; font-weight: 500; text-align: center; }
.fs .av { width: 36px; height: 36px; border-radius: 50%; flex: none; position: relative; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.fs .av .ic { font-size: 22px; }
.fs .av-text { font-size: 15px; font-weight: 400; letter-spacing: .2px; }
.fs .av-text.cn { font-size: 12.5px; letter-spacing: 0; }
.fs .g-me { background: linear-gradient(150deg, #1a7a30 0%, #1d8f7a 50%, #20a0d8 100%); }
.fs .g-blue { background: linear-gradient(160deg, #2a5ef0 0%, #3c7cf6 100%); }
.fs .g-purple { background: linear-gradient(160deg, #9256f0 0%, #a874f0 60%, #b98cf2 100%); }
.fs .g-pink { background: linear-gradient(180deg, #9759e5 0%, #cf84e6 100%); }
.fs .g-orange { background: linear-gradient(180deg, #f6503b 0%, #fd8641 100%); }
.fs .g-teal { background: linear-gradient(160deg, #12c49f 0%, #2bd3b4 100%); }
.fs .g-indigo { background: linear-gradient(170deg, #2c6ce0 0%, #3a86b8 50%, #4dbd6c 100%); }
.fs .g-amber { background: linear-gradient(170deg, #f0a020 0%, #f5b941 100%); }
.fs .g-slate { background: linear-gradient(170deg, #5d6a7e 0%, #7d8a9e 100%); }
.fs .g-group { background: linear-gradient(160deg, #3370ff 0%, #4e8af9 100%); }
.fs .tag { flex: none; margin-left: 4.5px; height: 16px; padding: 0 4px; border-radius: 4px; font-size: 10px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.fs .tag.blue { background: var(--blue-bg); color: var(--blue); }
.fs .tag.orange { background: var(--orange-bg); color: var(--orange-text); }
.fs .conv { flex: 1; min-width: 0; background: var(--panel-bg); border-radius: 8px; display: flex; position: relative; overflow: hidden; }
.fs .conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.fs .conv-head { height: 68px; flex: none; background: var(--header-bg); border-bottom: 1px solid var(--line); position: relative; }
.fs .conv-head > .av { position: absolute; left: 16px; top: 13px; }
.fs .conv-title { position: absolute; left: 60px; top: 11px; display: flex; align-items: center; height: 26px; right: 220px; }
.fs .conv-title b { font-size: 16px; font-weight: 600; color: #121214; letter-spacing: .1px; white-space: nowrap; }
.fs .conv-title .tag { margin-left: 8.5px; }
.fs .conv-title .count { margin-left: 4px; font-size: 14px; color: var(--text-3); }
.fs .tabs { position: absolute; left: 60px; top: 41px; display: flex; gap: 4.5px; }
.fs .tab { height: 24px; padding: 0 7px 0 8px; border-radius: 6px; display: flex; align-items: center; gap: 2px; font-size: 12px; color: #121214; }
.fs .tab .ic { font-size: 12.5px; }
.fs .tab.active { background: #d3dcf8; color: var(--blue); }
.fs .tab:not(.active):hover { background: rgba(0,0,0,.05); }
.fs .head-tools { position: absolute; right: 1px; top: 8px; display: flex; }
.fs .head-tools button { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--icon-1); }
.fs .head-tools button .ic { font-size: 16.5px; }
.fs .head-tools button:hover, .fs .head-tools button.on { background: rgba(0,0,0,.06); }
.fs .head-tools button.on { color: var(--blue); }
.fs .msgs { flex: 1; overflow-y: auto; min-height: 0; padding: 20px 0 7px; position: relative; scroll-behavior: auto; }
.fs .msg { position: relative; display: flex; padding: 0 38px 0 20px; margin-top: 20px; }
.fs .msg:first-child { margin-top: 0; }
.fs .msg.cont { margin-top: 6px; }
.fs .msg > .av { width: 32px; height: 32px; font-size: 16px; }
.fs .msg > .av .av-text.cn { font-size: 11px; }
.fs .msg .col { margin-left: 10px; min-width: 0; max-width: calc(100% - 42px); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; position: relative; }
.fs .msg-name { font-size: 12px; line-height: 18px; color: var(--text-3); display: flex; align-items: center; gap: 6px; white-space: nowrap; margin-top: -3px; }
.fs .msg-name .tag { margin-left: 0; }
.fs .date { text-align: center; font-size: 12px; line-height: 20px; color: var(--text-3); margin: 14px 0 26px; }
.fs .bubble { position: relative; border-radius: 12px; background: var(--bubble-other); padding: 10px 12px; font-size: 14px; line-height: 22px; max-width: min(640px, 100%); color: #141416; }
.fs .bubble.self { background: var(--bubble-self); }
.fs .bubble a { color: var(--blue); text-decoration: none; }
.fs .at { color: var(--blue); }
.fs .composer { flex: none; padding: 12px 20px 22px; }
.fs .input { min-height: 48px; border: 1px solid #d9d9d9; border-radius: 8px; background: var(--card-bg); display: flex; align-items: center; padding: 0 9px 0 12px; }
.fs .input .ph { color: #858588; font-size: 14px; flex: 1; }
.fs .input .tools { display: flex; align-items: center; color: var(--icon-1); }
.fs .input .tools button { height: 28px; min-width: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; margin-left: 2px; }
.fs .input .tools .ic { font-size: 19px; }
.fs .input .send { color: #b6b9be; margin-left: 14px !important; }
.fs .input .send .ic { font-size: 19px; }

/* ---------- this prototype's Feishu ---------- */
.fs.win { height: 896px; }
.fs .app { height: 100%; }
.fs .av.me { overflow: hidden; border-radius: 50%; }
.fs .av.me img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs .view { position: relative; flex: 1; min-width: 0; }
.fs .view > .conv, .fs .view > .mailbox { position: absolute; inset: 0; transition: opacity 220ms ease; }
.fs[data-view="chat"] .mailbox, .fs[data-view="mail"] .conv { opacity: 0; pointer-events: none; }
.fs .msg.ec-hide { display: none; } /* not sent yet: out of the page and its text until show() brings it in */
.fs .av.ds { background: #4d6bfe; color: #fff; }
.fs .av.ds svg { width: 20px; height: 15px; }
.fs .bubble .at { color: var(--blue); }

/* mailbox, measured from two screenshots of Feishu 邮箱 (wide and narrow): a white list beside a grey reading pane,
 * the open mail on a white card. When the window narrows the list keeps its 248px; the reading pane gives way — its
 * toolbar drops icons but keeps …, the sender line ellipsises before the time, and the search box shrinks. */
.fs .mailbox { --mb-text: #1f2329; --mb-grey: #8f959e; --mb-icon: #2b2f36; --mb-line: #e4e5e7; display: flex; flex-direction: column; background: #fdfdfd; border-radius: 8px; overflow: hidden; }
.fs .mb-head { height: 56px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 14px 0 12px; border-bottom: 1px solid var(--mb-line); }
.fs .mb-head > .ic { font-size: 16px; color: var(--mb-icon); }
.fs .mb-head h1 { margin: 0 4px 0 6px; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--mb-text); white-space: nowrap; }
.fs .mb-search { margin-left: auto; flex: 0 1 184px; min-width: 92px; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 9px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #d0d3d6; color: var(--mb-grey); font-size: 14px; }
.fs .mb-search span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fs .mb-search .ic { font-size: 15px; color: #646a73; }
.fs .mb-write { flex: none; margin: 0 6px 0 8px; display: flex; align-items: center; gap: 4px; height: 30px; padding: 0 14px 0 12px; border-radius: 6px; background: #1a5af0; color: #fff; font-size: 14px; white-space: nowrap; }
.fs .mb-write .ic { font-size: 14px; color: #fff; }
.fs .mb-icon { flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; gap: 1px; border-radius: 6px; color: var(--mb-icon); }
.fs .mb-icon .ic { font-size: 18px; }
.fs .mb-icon .mb-caret { font-size: 10px; }
.fs .mb-icon.mb-wide { width: 42px; }
.fs .mb-sep { flex: none; width: 1px; height: 16px; margin: 0 6px; background: #dee0e3; }
.fs .mb-body { flex: 1; min-height: 0; display: flex; }
/* the list: three 24px lines a mail, the text indented past the unread dot, hairlines between, the open mail tinted */
.fs .mb-list { width: 248px; flex: none; padding: 6px 5px 0; overflow: hidden; }
.fs .mb-all { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 9px 0 6px; color: var(--mb-text); font-size: 14px; }
.fs .mb-all .ic { margin-left: auto; font-size: 16px; color: var(--mb-icon); }
.fs .mb-check { width: 14px; height: 14px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1px #b6bac0; }
.fs .mb-item { position: relative; height: 83px; padding: 6px 9px 0 26px; border-radius: 8px; }
.fs .mb-item + .mb-item::before { content: ""; position: absolute; left: 26px; right: 9px; top: 0; height: 1px; background: #eeeff1; }
.fs .mb-item.selected { background: #e6eafb; }
.fs .mb-item.selected::before, .fs .mb-item.selected + .mb-item::before { display: none; }
.fs .mb-r1, .fs .mb-r3 { display: flex; align-items: center; gap: 8px; height: 24px; }
.fs .mb-from { flex: 1; min-width: 0; font-size: 14px; line-height: 24px; color: var(--mb-text); }
.fs .mb-time { flex: none; font-size: 12px; color: var(--mb-grey); white-space: nowrap; }
.fs .mb-subj { font-size: 14px; line-height: 24px; color: var(--mb-text); }
.fs .mb-pre { flex: 1; min-width: 0; font-size: 13px; line-height: 24px; color: var(--mb-grey); }
.fs .mb-r3 .ic { font-size: 16px; color: #646a73; }
/* the reading pane: toolbar on the grey, the subject with its 外部 tag, then the card */
.fs .mb-read { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #f3f5f7; }
.fs .mb-bar { height: 44px; margin-top: 6px; flex: none; display: flex; align-items: center; gap: 3px; padding: 0 12px 0 10px; }
.fs .mb-tools { flex: 0 1 auto; min-width: 0; height: 32px; display: flex; flex-wrap: wrap; gap: 0 3px; overflow: hidden; } /* icons that do not fit wrap out of sight */
.fs .mb-subject { flex: none; padding: 11px 16px 18px 19px; font-size: 20px; line-height: 28px; font-weight: 500; color: var(--mb-text); }
.fs .mb-ext { display: inline-block; height: 20px; margin-left: 6px; padding: 0 4px; border-radius: 4px; background: #d9e3fc; color: #245bdb; font-size: 12px; line-height: 20px; font-weight: 500; vertical-align: 3px; }
.fs .mb-card { flex: 1; min-height: 0; margin: 0 16px 0 19px; padding: 10px 18px 0; border-radius: 8px 8px 0 0; background: #fff; overflow: hidden; }
.fs .mb-sender { display: flex; align-items: flex-start; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--mb-line); }
.fs .mb-av { width: 32px; height: 32px; margin-top: 4px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #12c49f 0%, #2bd3b4 100%); color: #fff; font-size: 14px; }
.fs .mb-meta { flex: 1; min-width: 0; }
.fs .mb-l1 { display: flex; align-items: center; gap: 4px; height: 24px; min-width: 0; }
.fs .mb-who { flex: 0 1 auto; min-width: 0; font-size: 15px; color: var(--mb-text); } /* one run: the address ellipsises first */
.fs .mb-who em { font-style: normal; font-size: 13px; color: var(--mb-grey); }
.fs .mb-acts { flex: none; margin-left: auto; padding-left: 8px; display: flex; align-items: center; gap: 12px; color: var(--mb-grey); font-size: 13px; white-space: nowrap; }
.fs .mb-acts .ic { font-size: 16px; color: var(--mb-icon); }
.fs .mb-to { display: flex; align-items: center; gap: 4px; height: 24px; font-size: 13px; color: var(--mb-grey); white-space: nowrap; }
.fs .mb-to b { font-weight: 400; color: var(--mb-text); }
.fs .mb-to .ic { font-size: 11px; color: var(--mb-icon); }
.fs .mb-text { padding-top: 22px; font-size: 14px; line-height: 24px; color: var(--mb-text); }
.fs .mb-text p { margin: 0 0 12px; }
.fs .mb-text .mb-sign { color: var(--mb-grey); }
.fs mark.ec-mark { border-radius: 3px; color: inherit; background: linear-gradient(rgba(77, 107, 254, .16), rgba(77, 107, 254, .16)) no-repeat 0 0 / 0% 100%; transition: background-size 900ms cubic-bezier(.4, 0, .2, 1); }
.fs mark.ec-mark.ec-on { background-size: 100% 100%; } /* swept along the sentence, as it is read */
/* the venue's new mail: 邮箱 gets a count and is pressed; the mail sits on top, unread, until it is opened */
.fs .nav-item { transition: background-color 160ms ease; }
.fs .nav-item.ec-press { background: rgba(0, 0, 0, .08); }
.fs .nav-item .badge[hidden] { display: none; }
.fs .mb-item.ec-gone { display: none; }
.fs .mb-item.unread .mb-from, .fs .mb-item.unread .mb-subj { font-weight: 600; }
.fs .mb-item.unread::after { content: ""; position: absolute; left: 10px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: #1a5af0; }
.fs .mb-read > .mb-none { display: none; flex: 1; align-items: center; justify-content: center; color: var(--mb-grey); font-size: 14px; }
.fs .mb-read:not(.open) > .mb-none { display: flex; }
.fs .mb-read:not(.open) > :not(.mb-none) { display: none; }

/* prototype controls (not on the desktop; hidden when embedded) */
