Skip to content

知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.

feat(site): a shared meeting opens on its notes, and each chapter's dialogue, the speakers and the original text appear when asked for

wqugurud231fc8c5db2
diff --git a/site/i18n/en.json b/site/i18n/en.json
index 95f0d1d..f17c2af 100644
--- a/site/i18n/en.json
+++ b/site/i18n/en.json
@@ -512,32 +512,22 @@
"share_loading": "Opening…",
"share_pw_h": "Enter the password to read this meeting",
"share_pw_label": "Password",
- "share_pw_ph": "Ask the person who shared it",
+ "share_pw_ph": "Ask the sharer for it",
"share_pw_btn": "Open",
- "share_pw_note": "Your password stays in your browser and is never sent to Cicada.",
+ "share_pw_note": "Cicada only checks the password and never stores it.",
+ "share_pw_show": "Show password",
+ "share_share": "Share",
+ "share_copy_link": "Copy link",
+ "share_copy_notes": "Copy notes as text",
+ "share_send": "Send to…",
+ "share_get": "Get Cicada",
"share_gone_btn": "Get Cicada free",
- "share_forward": "Send to a colleague",
- "share_copy_notes": "Copy notes",
- "share_notes_h": "Meeting notes",
"share_conclusions": "Decisions",
"share_todos": "To-dos",
- "share_topics": "Key points",
"share_terms": "Names and terms",
- "share_lines_h": "Full bilingual transcript",
- "share_view_both": "Both",
- "share_view_src": "Original",
- "share_view_dst": "Translation",
- "share_aside_h": "Cicada wrote these notes while it listened",
- "share_b1_k": "Understand",
- "share_b1": "live bilingual subtitles for any call or stream",
- "share_b2_k": "Speak up",
- "share_b2": "you speak your language, they hear theirs",
- "share_b3_k": "Remember",
- "share_b3": "bilingual notes when the meeting ends",
+ "share_search": "Search",
"share_cta_h": "Next meeting, let Cicada take the notes",
- "share_cta_more": "About Cicada",
"share_js_minutes": "{n} min",
- "share_js_pill": "Recorded with Cicada",
"share_js_hidden": "The sharer hid {n} parts · No audio was uploaded",
"share_js_no_audio": "No audio was uploaded",
"share_js_revoked": "The sharer turned this link off",
@@ -551,5 +541,17 @@
"share_js_wait": "Too many tries: try again in {s} s",
"share_js_error": "Can't open it right now. Try again later.",
"share_js_copied": "Copied",
- "share_js_link_copied": "Link copied"
+ "share_js_link_copied": "Link copied",
+ "share_js_lines": "{n} lines",
+ "share_js_no_match": "No matches",
+ "share_js_people": "{n} people",
+ "share_js_only": "Only them",
+ "share_js_everyone": "Show all",
+ "share_js_only_who": "Only {name} · Show all",
+ "share_js_all_lines": "Full dialogue",
+ "share_js_chapters": "Chapters",
+ "share_js_chapters_lines": "Chapters and dialogue",
+ "share_js_show_src": "Show original",
+ "share_js_expand_all": "Open all dialogue",
+ "share_js_collapse_all": "Close all"
}
diff --git a/site/i18n/ja.json b/site/i18n/ja.json
index ed9809c..6f5c1b5 100644
--- a/site/i18n/ja.json
+++ b/site/i18n/ja.json
@@ -514,30 +514,20 @@
"share_pw_label": "パスワード",
"share_pw_ph": "共有した人に聞いてください",
"share_pw_btn": "開く",
- "share_pw_note": "パスワードはブラウザ内でのみ使われ、Cicada には送信されません。",
+ "share_pw_note": "Cicada はパスワードを照合するだけで、パスワード自体は保存しません。",
+ "share_pw_show": "パスワードを表示",
+ "share_share": "共有",
+ "share_copy_link": "リンクをコピー",
+ "share_copy_notes": "議事録をテキストでコピー",
+ "share_send": "送信…",
+ "share_get": "Cicada を入手",
"share_gone_btn": "Cicada を無料で入手",
- "share_forward": "同僚に送る",
- "share_copy_notes": "議事録をコピー",
- "share_notes_h": "議事録",
"share_conclusions": "結論",
"share_todos": "ToDo",
- "share_topics": "要点",
"share_terms": "人名と用語",
- "share_lines_h": "バイリンガル全文",
- "share_view_both": "両方",
- "share_view_src": "原文",
- "share_view_dst": "訳文",
- "share_aside_h": "この議事録は Cicada が聞きながら書きました",
- "share_b1_k": "聞き取る",
- "share_b1": "どんな会議や配信にもリアルタイム字幕",
- "share_b2_k": "話す",
- "share_b2": "あなたは日本語で、相手には相手の言葉で",
- "share_b3_k": "記録する",
- "share_b3": "会議後にバイリンガル議事録を自動作成",
+ "share_search": "全文を検索",
"share_cta_h": "次の会議は、Cicada に記録を任せよう",
- "share_cta_more": "Cicada について",
"share_js_minutes": "{n} 分",
- "share_js_pill": "Cicada で記録",
"share_js_hidden": "共有者が {n} か所を非表示にしました · 音声はアップロードされていません",
"share_js_no_audio": "音声はアップロードされていません",
"share_js_revoked": "共有者がこのリンクを取り消しました",
@@ -551,5 +541,17 @@
"share_js_wait": "試行回数が多すぎます。{s} 秒後にもう一度",
"share_js_error": "今は開けません。しばらくしてからもう一度お試しください。",
"share_js_copied": "コピーしました",
- "share_js_link_copied": "リンクをコピーしました"
+ "share_js_link_copied": "リンクをコピーしました",
+ "share_js_lines": "{n} 件の発言",
+ "share_js_no_match": "見つかりません",
+ "share_js_people": "{n} 人が参加",
+ "share_js_only": "この人だけ",
+ "share_js_everyone": "すべて表示",
+ "share_js_only_who": "{name} のみ · すべて表示",
+ "share_js_all_lines": "すべての発言",
+ "share_js_chapters": "チャプター",
+ "share_js_chapters_lines": "チャプターと発言",
+ "share_js_show_src": "原文を表示",
+ "share_js_expand_all": "すべての発言を開く",
+ "share_js_collapse_all": "すべて閉じる"
}
diff --git a/site/i18n/ko.json b/site/i18n/ko.json
index a9fd419..9e84166 100644
--- a/site/i18n/ko.json
+++ b/site/i18n/ko.json
@@ -514,30 +514,20 @@
"share_pw_label": "비밀번호",
"share_pw_ph": "공유한 사람에게 물어보세요",
"share_pw_btn": "열기",
- "share_pw_note": "비밀번호는 브라우저에서만 쓰이며 Cicada로 전송되지 않습니다.",
+ "share_pw_note": "Cicada는 비밀번호를 확인만 하고 비밀번호 자체는 저장하지 않습니다.",
+ "share_pw_show": "비밀번호 보기",
+ "share_share": "공유",
+ "share_copy_link": "링크 복사",
+ "share_copy_notes": "회의록 텍스트 복사",
+ "share_send": "보내기…",
+ "share_get": "Cicada 받기",
"share_gone_btn": "Cicada 무료로 받기",
- "share_forward": "동료에게 보내기",
- "share_copy_notes": "회의록 복사",
- "share_notes_h": "회의록",
"share_conclusions": "결론",
"share_todos": "할 일",
- "share_topics": "요점",
"share_terms": "이름과 용어",
- "share_lines_h": "이중 언어 전문",
- "share_view_both": "둘 다",
- "share_view_src": "원문",
- "share_view_dst": "번역",
- "share_aside_h": "이 회의록은 Cicada가 들으면서 썼습니다",
- "share_b1_k": "알아듣고",
- "share_b1": "모든 회의와 방송에 실시간 이중 자막",
- "share_b2_k": "말하고",
- "share_b2": "내 언어로 말하면 상대는 자기 언어로 듣습니다",
- "share_b3_k": "기록합니다",
- "share_b3": "회의가 끝나면 이중 언어 회의록 자동 생성",
+ "share_search": "전문 검색",
"share_cta_h": "다음 회의는 Cicada에게 기록을 맡기세요",
- "share_cta_more": "Cicada 알아보기",
"share_js_minutes": "{n}분",
- "share_js_pill": "Cicada로 기록",
"share_js_hidden": "공유자가 {n}곳을 숨겼습니다 · 녹음은 업로드되지 않았습니다",
"share_js_no_audio": "녹음은 업로드되지 않았습니다",
"share_js_revoked": "공유자가 이 링크를 취소했습니다",
@@ -551,5 +541,17 @@
"share_js_wait": "시도가 너무 많습니다. {s}초 후 다시 시도하세요",
"share_js_error": "지금은 열 수 없습니다. 잠시 후 다시 시도하세요.",
"share_js_copied": "복사됨",
- "share_js_link_copied": "링크 복사됨"
+ "share_js_link_copied": "링크 복사됨",
+ "share_js_lines": "발언 {n}개",
+ "share_js_no_match": "찾을 수 없습니다",
+ "share_js_people": "{n}명 참여",
+ "share_js_only": "이 사람만",
+ "share_js_everyone": "모두 보기",
+ "share_js_only_who": "{name}만 · 모두 보기",
+ "share_js_all_lines": "전체 발언",
+ "share_js_chapters": "챕터",
+ "share_js_chapters_lines": "챕터와 발언",
+ "share_js_show_src": "원문 보기",
+ "share_js_expand_all": "모든 발언 펼치기",
+ "share_js_collapse_all": "모두 접기"
}
diff --git a/site/i18n/zh.json b/site/i18n/zh.json
index 7a0b67f..83cccac 100644
--- a/site/i18n/zh.json
+++ b/site/i18n/zh.json
@@ -514,30 +514,20 @@
"share_pw_label": "密码",
"share_pw_ph": "向分享者索要密码",
"share_pw_btn": "打开",
- "share_pw_note": "密码只在你的浏览器里使用,不会发给知了。",
+ "share_pw_note": "知了只核对密码,不保存密码本身。",
+ "share_pw_show": "显示密码",
+ "share_share": "分享",
+ "share_copy_link": "复制链接",
+ "share_copy_notes": "复制纪要文字",
+ "share_send": "发送给…",
+ "share_get": "获取知了",
"share_gone_btn": "免费下载知了",
- "share_forward": "转发给同事",
- "share_copy_notes": "复制纪要",
- "share_notes_h": "会议纪要",
"share_conclusions": "结论",
"share_todos": "待办",
- "share_topics": "要点",
"share_terms": "人名和术语",
- "share_lines_h": "双语全文",
- "share_view_both": "双语",
- "share_view_src": "原文",
- "share_view_dst": "译文",
- "share_aside_h": "这份纪要是知了边听边写的",
- "share_b1_k": "听得懂",
- "share_b1": "任何会议、直播实时双语字幕",
- "share_b2_k": "说得出",
- "share_b2": "你说中文,对方听英文",
- "share_b3_k": "记得住",
- "share_b3": "会后自动生成双语纪要",
+ "share_search": "搜索原文",
"share_cta_h": "下次开会,让知了替你记",
- "share_cta_more": "了解知了",
"share_js_minutes": "{n} 分钟",
- "share_js_pill": "知了记录",
"share_js_hidden": "分享者隐藏了 {n} 处内容 · 录音未上传",
"share_js_no_audio": "录音未上传",
"share_js_revoked": "分享者已取消此链接",
@@ -551,5 +541,17 @@
"share_js_wait": "试的次数太多,{s} 秒后再试",
"share_js_error": "暂时打不开,请稍后再试",
"share_js_copied": "已复制",
- "share_js_link_copied": "链接已复制"
+ "share_js_link_copied": "链接已复制",
+ "share_js_lines": "{n} 句",
+ "share_js_no_match": "没有找到",
+ "share_js_people": "{n} 人参与",
+ "share_js_only": "只看 TA",
+ "share_js_everyone": "显示全部",
+ "share_js_only_who": "只看 {name} · 显示全部",
+ "share_js_all_lines": "全部对话",
+ "share_js_chapters": "章节",
+ "share_js_chapters_lines": "章节与对话",
+ "share_js_show_src": "显示原文",
+ "share_js_expand_all": "展开全部对话",
+ "share_js_collapse_all": "全部收起"
}
diff --git a/site/share.html b/site/share.html
index 6b730e7..538206d 100644
--- a/site/share.html
+++ b/site/share.html
@@ -9,7 +9,7 @@
<meta name="referrer" content="no-referrer">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/icon.png">
-<meta name="theme-color" content="#F6F7F9">
+<meta name="theme-color" content="#FFFFFF">
<meta property="og:type" content="article">
<meta property="og:site_name" content="知了 Cicada">
<meta property="og:title" content="{{t.share_og_title}}">
@@ -29,86 +29,82 @@
<script type="application/json" id="share-text">{{SHARE_TEXT}}</script>
<script src="/share.js?v={{REV}}" defer></script>
</head>
-<body>
-{{HEADER}}
-<main class="share wrap" id="share">
+<body class="sh-body">
+<header class="sh-bar">
+ <a class="sh-brand" href="{{HOME}}?ref=share"><img src="/icon.svg" alt="" width="26" height="26"><b>{{t.brand_name}}</b></a>
+ <div class="sh-tools" id="sh-tools" hidden>
+ <button class="sh-icon" type="button" id="sh-search-btn" aria-label="{{t.share_search}}" aria-expanded="false" aria-controls="sh-search-row"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="M20 20l-3.5-3.5"/></svg></button>
+ <div class="sh-share">
+ <button class="sh-pill" type="button" id="sh-share-btn" aria-haspopup="menu" aria-expanded="false" aria-controls="sh-menu"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><path d="M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7"/><path d="M12 3v12M7 8l5-5 5 5"/></svg><span>{{t.share_share}}</span></button>
+ <div class="sh-menu" id="sh-menu" role="menu" hidden>
+ <button type="button" role="menuitem" id="sh-copy-link">{{t.share_copy_link}}</button>
+ <button type="button" role="menuitem" id="sh-copy">{{t.share_copy_notes}}</button>
+ <button type="button" role="menuitem" id="sh-send" hidden>{{t.share_send}}</button>
+ </div>
+ </div>
+ </div>
+ <a class="sh-get" href="{{DOWNLOAD_PAGE}}?ref=share">{{t.share_get}}</a>
+</header>
+<div class="sh-search-row" id="sh-search-row" hidden>
+ <label class="sh-search"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="M20 20l-3.5-3.5"/></svg><span class="sr">{{t.share_search}}</span><input id="sh-search" type="search" placeholder="{{t.share_search}}" autocomplete="off"></label>
+</div>
+
+<main class="share" id="share">
<p class="sh-status" id="sh-loading">{{t.share_loading}}</p>
- <section class="sh-gate card" id="sh-password" hidden>
- <img src="/icon.svg" alt="" width="44" height="44">
+ <section class="sh-gate" id="sh-password" hidden>
+ <span class="sh-mark" aria-hidden="true"><img src="/icon.svg" alt="" width="88" height="88"><span class="badge"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"><rect x="5" y="10.5" width="14" height="10" rx="2.5"/><path d="M8.5 10.5V7.5a3.5 3.5 0 0 1 7 0v3"/></svg></span></span>
<h1>{{t.share_pw_h}}</h1>
- <form id="sh-pw-form" class="sh-pw-row">
+ <form id="sh-pw-form" class="sh-pw" novalidate>
<label class="sr" for="sh-pw">{{t.share_pw_label}}</label>
- <input id="sh-pw" type="password" autocomplete="off" placeholder="{{t.share_pw_ph}}" required>
- <button class="btn btn-dark" type="submit">{{t.share_pw_btn}}</button>
+ <input id="sh-pw" type="password" autocomplete="off" autocapitalize="off" spellcheck="false" placeholder="{{t.share_pw_ph}}" aria-describedby="sh-pw-msg">
+ <button class="sh-pw-eye" type="button" id="sh-pw-eye" aria-label="{{t.share_pw_show}}" aria-pressed="false"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" aria-hidden="true"><path d="M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z"/><circle cx="12" cy="12" r="3"/><path class="slash" d="M4 4l16 16"/></svg></button>
+ <button class="sh-pw-go" type="submit" aria-label="{{t.share_pw_btn}}"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg><span class="spin" aria-hidden="true"></span></button>
</form>
- <p class="sh-note" id="sh-pw-msg" role="status">{{t.share_pw_note}}</p>
+ <p class="sh-pw-msg" id="sh-pw-msg" role="status"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><path d="M12 3l7 3v5c0 4.5-3 8.5-7 10-4-1.5-7-5.5-7-10V6z"/></svg><span id="sh-pw-text">{{t.share_pw_note}}</span></p>
+ <a class="sh-brandline" href="{{DOWNLOAD_PAGE}}?ref=share-lock"><img src="/icon.svg" alt="" width="20" height="20"><span>{{t.kicker}}</span><b>{{t.share_get}} ›</b></a>
</section>
- <section class="sh-gate card" id="sh-gone" hidden>
+ <section class="sh-gate" id="sh-gone" data-kind="missing" hidden>
+ <span class="sh-mark" aria-hidden="true"><img src="/icon.svg" alt="" width="88" height="88"><span class="badge">
+ <svg class="k-missing" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"><path d="M9.5 14.5l5-5"/><path d="M11 6.5l1.2-1.2a4 4 0 0 1 5.6 5.6L16.5 12"/><path d="M13 17.5l-1.2 1.2a4 4 0 0 1-5.6-5.6L7.5 12"/></svg>
+ <svg class="k-expired" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"><circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/></svg>
+ <svg class="k-locked" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"><rect x="5" y="10.5" width="14" height="10" rx="2.5"/><path d="M8.5 10.5V7.5a3.5 3.5 0 0 1 7 0v3"/></svg>
+ </span></span>
<h1 id="sh-gone-h"></h1>
<p id="sh-gone-p"></p>
- <a class="btn btn-orange" href="{{DOWNLOAD_PAGE}}?ref=share-gone">{{t.share_gone_btn}}</a>
+ <a class="sh-get" href="{{DOWNLOAD_PAGE}}?ref=share-gone">{{t.share_gone_btn}}</a>
</section>
- <article id="sh-doc" hidden>
+ <article id="sh-doc" class="sh-doc" hidden>
<header class="sh-head">
- <span class="pill"><span class="dot"></span><span id="sh-pill"></span></span>
- <h1 id="sh-title"></h1>
<p class="sh-meta" id="sh-meta"></p>
- <div class="sh-actions">
- <button class="btn btn-light" type="button" id="sh-forward">{{t.share_forward}}</button>
- <button class="btn btn-light" type="button" id="sh-copy">{{t.share_copy_notes}}</button>
- </div>
+ <h1 id="sh-title"></h1>
+ <button class="sh-people-btn" type="button" id="sh-people-btn" aria-expanded="false" aria-controls="sh-people" hidden>
+ <span class="sh-stack" id="sh-stack" aria-hidden="true"></span><span id="sh-people-label"></span>
+ <svg class="chev" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg>
+ </button>
+ <ul class="sh-people" id="sh-people" hidden></ul>
</header>
- <div class="sh-grid">
- <section class="card sh-notes" id="sh-notes" aria-labelledby="sh-notes-h">
- <h2 id="sh-notes-h"><span class="dot"></span>{{t.share_notes_h}}</h2>
- <p class="sh-summary" id="sh-summary"></p>
- <div id="sh-conclusions" class="sh-block" hidden><h3>{{t.share_conclusions}}</h3><ul></ul></div>
- <div id="sh-todos" class="sh-block" hidden><h3>{{t.share_todos}}</h3><ul class="sh-checks"></ul></div>
- <div id="sh-topics" class="sh-block" hidden><h3>{{t.share_topics}}</h3><div class="sh-topic-list"></div></div>
- <div id="sh-terms" class="sh-block" hidden><h3>{{t.share_terms}}</h3><ul></ul></div>
- <div class="sh-quote" id="sh-quote" hidden><span class="src"></span><span class="dst"></span></div>
- </section>
+ <p class="sh-summary" id="sh-summary" hidden></p>
+ <section class="sh-block" id="sh-conclusions" hidden><h2>{{t.share_conclusions}}</h2><ol></ol></section>
+ <section class="sh-block" id="sh-todos" hidden><h2>{{t.share_todos}}</h2><ul class="sh-checks"></ul></section>
- <aside class="sh-aside">
- <div class="row"><img src="/icon.svg" alt="" width="36" height="36"><b>{{t.brand_name}}</b><span>{{t.brand_sub}}</span></div>
- <p class="h">{{t.share_aside_h}}</p>
- <ul>
- <li><b>{{t.share_b1_k}}</b> {{t.share_b1}}</li>
- <li><b class="o">{{t.share_b2_k}}</b> {{t.share_b2}}</li>
- <li><b>{{t.share_b3_k}}</b> {{t.share_b3}}</li>
- </ul>
- <a class="btn btn-orange" href="{{DOWNLOAD_PAGE}}?ref=share">{{t.download_free}}</a>
- <span class="m">{{t.pill}}</span>
- </aside>
- </div>
-
- <section class="card sh-lines" id="sh-lines" aria-labelledby="sh-lines-h" hidden>
- <div class="sh-lines-head">
- <h2 id="sh-lines-h">{{t.share_lines_h}}</h2>
- <div class="sh-seg" role="group" aria-label="{{t.share_lines_h}}">
- <button type="button" data-view="both" aria-pressed="true">{{t.share_view_both}}</button>
- <button type="button" data-view="src" aria-pressed="false">{{t.share_view_src}}</button>
- <button type="button" data-view="dst" aria-pressed="false">{{t.share_view_dst}}</button>
- </div>
+ <section class="sh-block sh-chapters" id="sh-chapters" hidden>
+ <div class="sh-chapters-head">
+ <h2 id="sh-chapters-h"></h2>
+ <button class="sh-chip" type="button" id="sh-filter" hidden></button>
+ <button class="sh-link" type="button" id="sh-all" hidden></button>
</div>
- <ol id="sh-line-list" data-view="both"></ol>
+ <div id="sh-chapter-list"></div>
+ <p class="sh-none" id="sh-none" hidden></p>
</section>
- <p class="sh-note" id="sh-hidden"></p>
- <section class="card sh-cta">
- <p class="k">{{t.kicker}}</p>
- <p class="h">{{t.share_cta_h}}</p>
- <div class="b">
- <a class="btn btn-orange" href="{{DOWNLOAD_PAGE}}?ref=share">{{t.download_free}}</a>
- <a class="btn btn-light" href="{{HOME}}?ref=share">{{t.share_cta_more}}</a>
- </div>
- </section>
+ <section class="sh-block" id="sh-terms" hidden><h2>{{t.share_terms}}</h2><ul class="sh-terms"></ul></section>
+
+ <p class="sh-foot"><span id="sh-hidden"></span> <a href="{{DOWNLOAD_PAGE}}?ref=share">{{t.share_cta_h}}</a></p>
</article>
</main>
-{{FOOTER}}
</body>
</html>
diff --git a/site/share.js b/site/share.js
index 808c0a7..1703ece 100644
--- a/site/share.js
+++ b/site/share.js
@@ -1,20 +1,29 @@
-// The share page (/s/<id>, site/share.html): fetches the shared meeting and draws it. Everything
-// from the document goes in with textContent, never as HTML (the page's CSP allows no other script).
+// The share page (/s/<id>, site/share.html): fetches the shared meeting and draws it as one page
+// that discloses step by step. The notes come first; each chapter's dialogue appears when its row is
+// opened; the speakers, the original text and search wait until asked for.
+// Everything from the document goes in with textContent, never as HTML, and styles only through
+// classes or the CSSOM (the page's CSP allows no inline script or style attribute).
// A password share is opened with PBKDF2 of the password; only that, not the password, is sent.
(function () {
"use strict";
var T = JSON.parse(document.getElementById("share-text").textContent);
var id = (location.pathname.match(/^\/s\/([A-Za-z0-9_-]+)/) || [])[1] || "";
var $ = function (s) { return document.getElementById(s); };
+ var lang = document.documentElement.lang;
var doc = null;
+ var chapters = []; // {el, row, open, lines: [{el, who, text}]}
+ var speakers = []; // {who, cls, share}
+ var who = ""; // the speaker the dialogue is narrowed to
function show(which) {
["sh-loading", "sh-password", "sh-gone", "sh-doc"].forEach(function (k) { $(k).hidden = k !== which; });
+ $("sh-tools").hidden = which !== "sh-doc";
}
function gone(code) {
var h = { revoked: T.revoked, expired: T.expired, locked: T.locked }[code] || T.missing;
var p = code === "locked" ? T.locked_p : code === "not_found" ? T.missing_p : T.gone_p;
+ $("sh-gone").setAttribute("data-kind", code === "expired" || code === "locked" ? code : "missing");
$("sh-gone-h").textContent = h;
$("sh-gone-p").textContent = p;
show("sh-gone");
@@ -40,83 +49,290 @@
}
function langName(c) {
- try { return new Intl.DisplayNames([document.documentElement.lang], { type: "language" }).of(c) || c; } catch (e) { return c; }
+ try { return new Intl.DisplayNames([lang], { type: "language" }).of(c) || c; } catch (e) { return c; }
+ }
+
+ // "说话人 2" → "2", "对方" → "对": what the avatar shows.
+ function initial(name) {
+ var digits = /(\d+)\s*$/.exec(name);
+ return digits ? digits[1].slice(-2) : (Array.from(name.trim())[0] || "?").toUpperCase();
+ }
+
+ function avatar(s) {
+ var a = el("span", initial(s.who), "sh-av " + s.cls);
+ a.setAttribute("aria-hidden", "true");
+ return a;
}
function render(d) {
doc = d;
+ var n = d.notes;
document.title = d.title + " · " + document.title.split(" · ").pop();
$("sh-title").textContent = d.title;
- $("sh-pill").textContent = T.pill + (d.langs.length ? " · " + d.langs.map(langName).join(" → ") : "");
- var when = new Date(d.startedAt);
- var date = isNaN(when) ? "" : when.toLocaleString(document.documentElement.lang, { dateStyle: "medium", timeStyle: "short" });
- $("sh-meta").textContent = [date, T.minutes.replace("{n}", Math.max(1, Math.round(d.duration / 60)))].filter(Boolean).join(" · ");
+ var when = new Date(d.startedAt), date = "";
+ if (!isNaN(when)) {
+ var opts = { month: "long", day: "numeric" };
+ if (when.getFullYear() !== new Date().getFullYear()) opts.year = "numeric";
+ date = when.toLocaleDateString(lang, opts);
+ }
+ $("sh-meta").textContent = [date, T.minutes.replace("{n}", Math.max(1, Math.round(d.duration / 60))),
+ d.langs.map(langName).join(" → ")].filter(Boolean).join(" · ");
- var n = d.notes;
+ drawPeople(d);
if (n) {
$("sh-summary").textContent = n.summary;
- fill("sh-conclusions", n.conclusions, function (c) { return el("li", c.text); });
- fill("sh-todos", n.todos, function (c) {
+ $("sh-summary").hidden = !n.summary;
+ fill("sh-conclusions", "ol", n.conclusions, function (c) { return el("li", c.text); });
+ fill("sh-todos", "ul", n.todos, function (c) {
var li = el("li"), box = el("span", null, "box");
box.setAttribute("aria-hidden", "true");
li.appendChild(box);
li.appendChild(el("span", (c.owner ? c.owner + ":" : "") + c.text));
return li;
});
- fill("sh-topics", n.topics, function (t) {
- var box = el("div", null, "sh-topic");
- box.appendChild(el("h4", t.title));
- if (t.summary) box.appendChild(el("p", t.summary));
- if (t.points.length) {
- var ul = el("ul");
- t.points.forEach(function (p) { ul.appendChild(el("li", p)); });
- box.appendChild(ul);
- }
- return box;
- }, ".sh-topic-list");
- fill("sh-terms", n.terms, function (c) {
+ fill("sh-terms", "ul", n.terms, function (c) {
var li = el("li");
li.appendChild(el("b", c.name));
- if (c.note) li.appendChild(document.createTextNode(" " + c.note));
+ if (c.note) li.appendChild(el("span", " " + c.note));
return li;
});
- } else {
- $("sh-notes").hidden = true;
- }
-
- // One translated line, the way the app's subtitle bar shows it.
- var q = d.lines.filter(function (l) { return l.dst && l.dst !== l.src && l.src.length > 12; })[0];
- if (q) {
- $("sh-quote").querySelector(".src").textContent = q.src;
- $("sh-quote").querySelector(".dst").textContent = q.dst;
- $("sh-quote").hidden = false;
- }
-
- if (d.lines.length) {
- var list = $("sh-line-list");
- d.lines.forEach(function (l) {
- var li = el("li");
- li.appendChild(el("span", clock(l.t), "t"));
- var body = el("div");
- body.appendChild(el("span", l.who, "who"));
- body.appendChild(el("span", l.src, "src"));
- if (l.dst && l.dst !== l.src) body.appendChild(el("span", l.dst, "dst"));
- li.appendChild(body);
- list.appendChild(li);
- });
- $("sh-lines").hidden = false;
}
+ drawChapters(d);
$("sh-hidden").textContent = d.hidden ? T.hidden.replace("{n}", d.hidden) : T.no_audio;
show("sh-doc");
}
- function fill(boxId, items, make, inner) {
+ function fill(boxId, tag, items, make) {
if (!items || !items.length) return;
- var box = $(boxId), target = box.querySelector(inner || "ul");
- items.forEach(function (x) { target.appendChild(make(x)); });
+ var box = $(boxId), list = box.querySelector(tag);
+ items.forEach(function (x) { list.appendChild(make(x)); });
box.hidden = false;
}
+ // Who spoke and how much: each line counts until the next one starts, at most 30 s (a pause is no one's).
+ function drawPeople(d) {
+ var time = {};
+ d.lines.forEach(function (l, i) {
+ if (!l.who) return;
+ var next = i + 1 < d.lines.length ? d.lines[i + 1].t : d.duration;
+ time[l.who] = (time[l.who] || 0) + Math.min(30, Math.max(1, (next || l.t) - l.t));
+ });
+ var order = [];
+ d.lines.forEach(function (l) { if (l.who && order.indexOf(l.who) < 0) order.push(l.who); });
+ var total = order.reduce(function (s, w) { return s + time[w]; }, 0) || 1;
+ speakers = order.map(function (w, i) { return { who: w, cls: "sp" + Math.min(i, 5), share: Math.round(100 * time[w] / total) }; });
+ speakers.sort(function (a, b) { return b.share - a.share; });
+ if (!speakers.length) return;
+
+ var stack = $("sh-stack"), list = $("sh-people");
+ speakers.slice(0, 4).forEach(function (s) { stack.appendChild(avatar(s)); });
+ $("sh-people-label").textContent = T.people.replace("{n}", speakers.length);
+ speakers.forEach(function (s) {
+ var li = el("li", null, s.cls), track = el("span", null, "track"), bar = el("span", null, "fill");
+ li.appendChild(avatar(s));
+ li.appendChild(el("span", s.who, "name"));
+ bar.style.width = s.share + "%";
+ track.appendChild(bar);
+ track.setAttribute("aria-hidden", "true");
+ li.appendChild(track);
+ li.appendChild(el("span", s.share + "%", "pct"));
+ if (speakers.length > 1) {
+ var only = el("button", T.only, "only");
+ only.type = "button";
+ only.setAttribute("aria-pressed", "false");
+ only.addEventListener("click", function () { narrow(who === s.who ? "" : s.who); });
+ s.button = only;
+ li.appendChild(only);
+ }
+ list.appendChild(li);
+ });
+ $("sh-people-btn").hidden = false;
+ }
+
+ // The chapters, each holding the lines said in it. Lines before the first chapter belong to it;
+ // a meeting without chapters has one, all of its dialogue.
+ function drawChapters(d) {
+ var topics = (d.notes && d.notes.topics) || [], hasLines = d.lines.length > 0;
+ var groups = topics.length ? topics.map(function (t) { return { start: t.start, title: t.title, summary: t.summary, points: t.points, lines: [] }; })
+ : hasLines ? [{ start: d.lines[0].t, title: T.all_lines, summary: "", points: [], lines: [] }] : [];
+ if (!groups.length) return;
+ d.lines.forEach(function (l) {
+ var k = 0;
+ groups.forEach(function (g, i) { if (l.t >= g.start) k = i; });
+ groups[k].lines.push(l);
+ });
+ var cls = {};
+ speakers.forEach(function (s) { cls[s.who] = s.cls; });
+ var anySrc = d.lines.some(function (l) { return l.dst && l.dst !== l.src; });
+
+ $("sh-chapters-h").textContent = hasLines ? T.chapters_lines : T.chapters;
+ var list = $("sh-chapter-list");
+ groups.forEach(function (g, i) {
+ var box = el("div", null, "sh-ch"), canOpen = g.lines.length > 0 || g.points.length > 0;
+ var row = el(canOpen ? "button" : "div", null, "sh-row");
+ if (canOpen) { row.type = "button"; row.setAttribute("aria-expanded", "false"); row.setAttribute("aria-controls", "sh-ch-" + i); }
+ row.appendChild(el("span", clock(g.start), "t"));
+ var body = el("span", null, "body");
+ body.appendChild(el("span", g.title, "h"));
+ if (g.summary) body.appendChild(el("span", g.summary, "s"));
+ row.appendChild(body);
+ if (canOpen) {
+ var count = el("span", g.lines.length ? T.lines.replace("{n}", g.lines.length) : "", "n");
+ count.appendChild(chevron());
+ row.appendChild(count);
+ }
+ box.appendChild(row);
+
+ var open = el("div", null, "sh-open"), c = { el: box, row: row, panel: open, open: false, lines: [] };
+ open.id = "sh-ch-" + i;
+ open.hidden = true;
+ if (g.points.length) {
+ var ul = el("ul", null, "sh-pts");
+ g.points.forEach(function (p) { ul.appendChild(el("li", p)); });
+ open.appendChild(ul);
+ }
+ if (g.lines.length && anySrc) open.appendChild(srcSwitch());
+ g.lines.forEach(function (l) {
+ var line = el("div", null, "sh-line " + (cls[l.who] || "sp5")), head = el("span", l.who, "who");
+ head.appendChild(el("span", " · " + clock(l.t)));
+ line.appendChild(head);
+ var translated = l.dst && l.dst !== l.src;
+ line.appendChild(el("p", translated ? l.dst : l.src, "main"));
+ if (translated) line.appendChild(el("p", l.src, "src"));
+ open.appendChild(line);
+ c.lines.push({ el: line, who: l.who, text: (l.src + "\n" + (l.dst || "")).toLowerCase() });
+ });
+ box.appendChild(open);
+ if (canOpen) row.addEventListener("click", function () { toggle(c, !c.open); syncAll(); });
+ chapters.push(c);
+ list.appendChild(box);
+ });
+ if (groups.length === 1) toggle(chapters[0], true);
+ var openable = chapters.filter(function (c) { return c.row.tagName === "BUTTON"; });
+ $("sh-all").hidden = !hasLines || openable.length < 2; // its words are about dialogue
+ $("sh-chapters").hidden = false;
+ syncAll();
+ }
+
+ function chevron() {
+ var ns = "http://www.w3.org/2000/svg", svg = document.createElementNS(ns, "svg"), path = document.createElementNS(ns, "path");
+ [["width", "14"], ["height", "14"], ["viewBox", "0 0 24 24"], ["fill", "none"], ["stroke", "currentColor"], ["stroke-width", "2"], ["aria-hidden", "true"]]
+ .forEach(function (a) { svg.setAttribute(a[0], a[1]); });
+ path.setAttribute("d", "M6 9l6 6 6-6");
+ svg.appendChild(path);
+ return svg;
+ }
+
+ function srcSwitch() {
+ var row = el("div", null, "sh-switch-row"), label = el("span", T.show_src), sw = el("button", null, "sh-switch");
+ sw.type = "button";
+ sw.setAttribute("role", "switch");
+ sw.setAttribute("aria-checked", "false");
+ sw.setAttribute("aria-label", T.show_src);
+ sw.addEventListener("click", function () {
+ var on = !$("sh-doc").classList.contains("show-src");
+ $("sh-doc").classList.toggle("show-src", on);
+ document.querySelectorAll(".sh-switch").forEach(function (x) { x.setAttribute("aria-checked", on ? "true" : "false"); });
+ });
+ label.setAttribute("aria-hidden", "true");
+ row.appendChild(label);
+ row.appendChild(sw);
+ return row;
+ }
+
+ function toggle(c, open) {
+ if (c.row.tagName !== "BUTTON") return;
+ c.open = open;
+ c.panel.hidden = !open;
+ c.row.setAttribute("aria-expanded", open ? "true" : "false");
+ }
+
+ function syncAll() {
+ var all = shown().every(function (c) { return c.open; });
+ $("sh-all").textContent = all ? T.collapse_all : T.expand_all;
+ }
+
+ // The chapters that can open and are not narrowed away.
+ function shown() {
+ return chapters.filter(function (c) { return c.row.tagName === "BUTTON" && !c.el.classList.contains("miss"); });
+ }
+
+ $("sh-all").addEventListener("click", function () {
+ var list = shown(), all = list.every(function (c) { return c.open; });
+ list.forEach(function (c) { toggle(c, !all); });
+ syncAll();
+ });
+
+ // Narrowing (to one speaker, or to what matches the search) opens the chapters that still have lines.
+ function apply() {
+ var q = $("sh-search").value.trim().toLowerCase(), found = 0, narrowed = !!who || q !== "";
+ chapters.forEach(function (c) {
+ var left = 0;
+ c.lines.forEach(function (l) {
+ var miss = (who && l.who !== who) || (q && l.text.indexOf(q) < 0);
+ l.el.classList.toggle("miss", !!miss);
+ if (!miss) left++;
+ });
+ found += left;
+ c.el.classList.toggle("miss", narrowed && left === 0);
+ if (narrowed && left) toggle(c, true);
+ });
+ var f = $("sh-filter");
+ f.hidden = !who;
+ f.textContent = who ? T.only_who.replace("{name}", who) : "";
+ $("sh-none").textContent = T.no_match;
+ $("sh-none").hidden = !narrowed || found > 0;
+ syncAll();
+ }
+
+ function narrow(w) {
+ who = w;
+ speakers.forEach(function (s) {
+ if (!s.button) return;
+ var on = s.who === w;
+ s.button.setAttribute("aria-pressed", on ? "true" : "false");
+ s.button.textContent = on ? T.everyone : T.only;
+ });
+ apply();
+ if (w) $("sh-chapters").scrollIntoView({ block: "start" });
+ }
+
+ $("sh-filter").addEventListener("click", function () { narrow(""); });
+ $("sh-people-btn").addEventListener("click", function () {
+ var open = this.getAttribute("aria-expanded") !== "true";
+ this.setAttribute("aria-expanded", open ? "true" : "false");
+ $("sh-people").hidden = !open;
+ });
+
+ $("sh-search-btn").addEventListener("click", function () {
+ var open = $("sh-search-row").hidden;
+ $("sh-search-row").hidden = !open;
+ this.setAttribute("aria-expanded", open ? "true" : "false");
+ if (open) $("sh-search").focus();
+ else if ($("sh-search").value) { $("sh-search").value = ""; apply(); }
+ });
+ // The first letter typed brings the dialogue up; later ones only narrow it.
+ var searching = false;
+ $("sh-search").addEventListener("input", function () {
+ apply();
+ var now = this.value.trim() !== "";
+ if (now && !searching) $("sh-chapters").scrollIntoView({ block: "start" });
+ searching = now;
+ });
+ $("sh-search").addEventListener("keydown", function (e) { if (e.key === "Escape") $("sh-search-btn").click(); });
+
+ // The share menu: copy the link, copy the notes, or the system's share sheet where there is one.
+ function menu(open) {
+ $("sh-menu").hidden = !open;
+ $("sh-share-btn").setAttribute("aria-expanded", open ? "true" : "false");
+ }
+ $("sh-share-btn").addEventListener("click", function (e) { e.stopPropagation(); menu($("sh-menu").hidden); });
+ document.addEventListener("click", function (e) { if (!$("sh-menu").contains(e.target)) menu(false); });
+ document.addEventListener("keydown", function (e) { if (e.key === "Escape") menu(false); });
+ if (navigator.share) $("sh-send").hidden = false;
+
+ function link() { return location.href.split("#")[0]; }
+
function notesText() {
var d = doc, n = d.notes, out = [d.title, $("sh-meta").textContent, ""];
if (n) {
@@ -125,29 +341,23 @@
if (n.todos.length) out.push(n.todos.map(function (c) { return "- [ ] " + (c.owner ? c.owner + ":" : "") + c.text; }).join("\n"), "");
n.topics.forEach(function (t) { out.push(t.title + (t.summary ? ":" + t.summary : "")); t.points.forEach(function (p) { out.push("- " + p); }); out.push(""); });
}
- out.push(location.href.split("#")[0]);
+ out.push(link());
return out.join("\n");
}
- function copy(text, button, done) {
- var label = button.textContent;
+ // The item says it worked for a moment, then the menu closes.
+ function copy(text, b, done) {
+ var was = b.textContent;
(navigator.clipboard ? navigator.clipboard.writeText(text) : Promise.reject()).then(function () {
- button.textContent = done;
- setTimeout(function () { button.textContent = label; }, 2000);
- }, function () { window.prompt("", text); });
+ b.textContent = done;
+ setTimeout(function () { b.textContent = was; menu(false); }, 1200);
+ }, function () { menu(false); window.prompt("", text); });
}
-
- $("sh-forward").addEventListener("click", function () {
- var url = location.href.split("#")[0];
- if (navigator.share) { navigator.share({ title: doc ? doc.title : document.title, url: url }).catch(function () {}); return; }
- copy(url, this, T.link_copied);
- });
+ $("sh-copy-link").addEventListener("click", function () { copy(link(), this, T.link_copied); });
$("sh-copy").addEventListener("click", function () { copy(notesText(), this, T.copied); });
- document.querySelectorAll(".sh-seg button").forEach(function (b) {
- b.addEventListener("click", function () {
- document.querySelectorAll(".sh-seg button").forEach(function (x) { x.setAttribute("aria-pressed", x === b ? "true" : "false"); });
- $("sh-line-list").setAttribute("data-view", b.getAttribute("data-view"));
- });
+ $("sh-send").addEventListener("click", function () {
+ menu(false);
+ navigator.share({ title: doc ? doc.title : document.title, url: link() }).catch(function () {});
});
function b64(bytes) {
@@ -164,23 +374,48 @@
if (r.ok) return r.json().then(function (d) { if (d.locked) { lock = d; show("sh-password"); $("sh-pw").focus(); } else render(d); });
return r.json().then(function (e) {
if (r.status === 404 || r.status === 410 || r.status === 423) gone(e.code);
- else if (r.status === 403) { $("sh-pw-msg").textContent = T.wrong; $("sh-pw").select(); }
- else if (r.status === 429 && lock) $("sh-pw-msg").textContent = T.wait.replace("{s}", e.retryAfter || 60);
+ else if (r.status === 403) { refuse(T.wrong); $("sh-pw").select(); }
+ else if (r.status === 429 && lock) refuse(T.wait.replace("{s}", e.retryAfter || 60));
else failed();
}, failed);
}
- var lock = null;
+ // The password page: a wrong password shakes the field and says so in red; typing again puts the
+ // reassurance back. The arrow turns into a spinner while the browser works the password out.
+ var lock = null, note = $("sh-pw-text").textContent;
+ function say(text, err) {
+ $("sh-pw-text").textContent = text;
+ $("sh-pw-msg").classList.toggle("err", err);
+ }
+ function refuse(text) {
+ var form = $("sh-pw-form");
+ form.classList.remove("bad");
+ void form.offsetWidth; // restart the shake
+ form.classList.add("bad");
+ say(text, true);
+ }
+ // The arrow only looks faint while the field is empty (CSS); it is never disabled for that, so a
+ // password manager's fill, which may send no input event, can still be submitted.
+ $("sh-pw").addEventListener("input", function () {
+ if ($("sh-pw-form").classList.contains("bad")) { $("sh-pw-form").classList.remove("bad"); say(note, false); }
+ });
+ $("sh-pw-eye").addEventListener("click", function () {
+ var shown = $("sh-pw").type === "password";
+ $("sh-pw").type = shown ? "text" : "password";
+ this.setAttribute("aria-pressed", shown ? "true" : "false");
+ $("sh-pw").focus();
+ });
$("sh-pw-form").addEventListener("submit", function (ev) {
ev.preventDefault();
- var pw = $("sh-pw").value, button = this.querySelector("button");
- if (!pw || !lock || !crypto.subtle) return;
- button.disabled = true;
+ var pw = $("sh-pw").value, form = this;
+ if (!pw) { $("sh-pw").focus(); return; }
+ if (!lock || !crypto.subtle || form.classList.contains("busy")) return;
+ form.classList.add("busy");
crypto.subtle.importKey("raw", new TextEncoder().encode(pw), "PBKDF2", false, ["deriveBits"]).then(function (key) {
return crypto.subtle.deriveBits({ name: "PBKDF2", salt: unb64(lock.salt), iterations: lock.iter, hash: "SHA-256" }, key, 256);
}).then(function (bits) {
return fetch("/api/v1/s/" + id + "/open", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ verifier: b64(bits) }) });
- }).then(answer, failed).then(function () { button.disabled = false; });
+ }).then(answer, failed).then(function () { form.classList.remove("busy"); });
});
if (!id) { gone("not_found"); return; }
diff --git a/site/style.css b/site/style.css
index 2e9c6da..5019ce6 100644
--- a/site/style.css
+++ b/site/style.css
@@ -659,68 +659,172 @@ h2.big { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2
.step-text p.alt-svc { margin-top: 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line2); font-size: 13px; line-height: 1.6; color: var(--grey); }
.step-text p.alt-svc b { color: var(--ink); }
-/* Shared meeting (/s/<id>, share.html + share.js): the home page's notes card and subtitle bar, a dark
- card that says how the notes were made, and the transcript. */
-.share { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
+/* Share page (/s/<id>, share.html + share.js). One white page that discloses step by step: the
+ notes first, each chapter's dialogue only when it is opened, the speakers and the original text
+ only when asked for. The page's CSP allows no inline styles: all of it is here. */
+html:has(.sh-body) { scroll-padding-top: 72px; }
+html:has(.sh-search-row:not([hidden])) { scroll-padding-top: 132px; }
+.sh-body { background: var(--card); color: #1D1D1F; overflow-x: clip; }
+html[lang="ko"] .sh-body { word-break: keep-all; }
+.sh-body button { font: inherit; color: inherit; cursor: pointer; }
+.sh-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 24px; background: rgba(255,255,255,0.86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid #EDEDF0; }
+.sh-brand { display: flex; align-items: center; gap: 8px; margin-right: auto; color: #1D1D1F; text-decoration: none; }
+.sh-brand:hover { color: #1D1D1F; }
+.sh-brand img { width: 26px; height: 26px; border-radius: 7px; }
+.sh-brand b { font-size: 15px; font-weight: 600; }
+.sh-tools { display: flex; align-items: center; gap: 6px; }
+.sh-icon { width: 40px; height: 40px; border: 0; border-radius: 20px; background: transparent; display: flex; align-items: center; justify-content: center; }
+.sh-icon:hover, .sh-icon[aria-expanded="true"] { background: #F2F2F5; }
+.sh-pill { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: #F2F2F5; font-size: 14px; white-space: nowrap; }
+.sh-pill:hover, .sh-pill[aria-expanded="true"] { background: #E8E8ED; }
+.sh-get { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: 18px; background: #1D1D1F; color: #FFFFFF; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
+.sh-get:hover { background: #3A3A3C; color: #FFFFFF; }
+.sh-share { position: relative; }
+.sh-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; min-width: 200px; padding: 6px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.14); display: flex; flex-direction: column; }
+.sh-menu[hidden] { display: none; }
+.sh-menu button { height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; text-align: left; white-space: nowrap; }
+.sh-menu button:hover, .sh-menu button:focus-visible { background: #F2F2F5; outline: none; }
+.sh-search-row { position: sticky; top: 56px; z-index: 19; padding: 10px 24px; background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid #EDEDF0; }
+.sh-search-row[hidden] { display: none; }
+.sh-search { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: #F2F2F5; color: #6E6E73; }
+.sh-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: inherit; font-size: 15px; color: #1D1D1F; }
+
+.share { max-width: 768px; margin: 0 auto; padding: 64px 24px 96px; }
.share [hidden] { display: none !important; }
-.sh-status { margin: 80px 0; text-align: center; color: var(--grey); }
-.sh-note { margin: 0; font-size: 13px; color: var(--grey2); }
-.sh-gate { max-width: 520px; margin: 48px auto; padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
-.sh-gate img { width: 44px; height: 44px; border-radius: 10px; }
-.sh-gate h1 { margin: 0; font-size: 22px; font-weight: 900; }
-.sh-gate p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--grey); }
-.sh-pw-row { width: 100%; display: flex; gap: 8px; }
-.sh-pw-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #DADDE2; font: inherit; font-size: 15px; }
-.sh-pw-row .btn { min-height: 48px; border-radius: 12px; }
-#sh-doc { display: flex; flex-direction: column; gap: 24px; }
-.sh-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
-.sh-head h1 { margin: 0; font-size: clamp(30px, 5vw, 52px); line-height: 1.12; font-weight: 900; letter-spacing: -0.02em; overflow-wrap: anywhere; }
-.sh-meta { margin: 0; font-size: 15px; color: var(--grey2); }
-.sh-actions { display: flex; flex-wrap: wrap; gap: 10px; }
-.sh-actions .btn { min-height: 44px; padding: 0 16px; border-radius: 11px; font-size: 14px; }
-.sh-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
-.sh-notes { flex: 999 1 560px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 12px 32px rgba(21,23,28,0.06); }
-.sh-notes h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; }
-.sh-summary { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 700; }
-.sh-block { display: flex; flex-direction: column; gap: 8px; }
-.sh-block h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--grey2); }
-.sh-block ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.6; color: var(--ink2); }
-.sh-block ul.sh-checks { padding: 0; list-style: none; }
-.sh-checks li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; color: var(--ink); }
-.sh-checks .box { flex: none; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 4px; transform: translateY(2px); }
-.sh-topic-list { display: flex; flex-direction: column; gap: 14px; }
-.sh-topic h4 { margin: 0 0 4px; font-size: 15px; }
-.sh-topic p { margin: 0 0 6px; font-size: 14px; line-height: 1.6; color: var(--grey); }
-.sh-quote { background: var(--ink); border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
-.sh-quote .src { display: flex; gap: 8px; align-items: baseline; font-size: 14px; color: var(--on-dark2); }
-.sh-quote .src::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); transform: translateY(-2px); }
-.sh-quote .dst { font-size: 20px; font-weight: 700; color: #FFFFFF; }
-.sh-aside { flex: 1 1 300px; min-width: 0; background: var(--ink); color: #FFFFFF; border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
-.sh-aside .row { display: flex; align-items: center; gap: 10px; }
-.sh-aside .row img { border-radius: 8px; }
-.sh-aside .row b { font-size: 20px; font-weight: 900; }
-.sh-aside .row span { font-size: 15px; font-weight: 600; color: var(--on-dark2); }
-.sh-aside .h { margin: 0; font-size: 22px; line-height: 1.45; font-weight: 700; }
-.sh-aside ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--on-dark); }
-.sh-aside li b { color: #FFFFFF; }
-.sh-aside li b.o { color: var(--orange); }
-.sh-aside .m { font-size: 13px; color: var(--on-dark2); }
-.sh-lines { padding: 28px; }
-.sh-lines-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
-.sh-lines-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
-.sh-seg { display: flex; gap: 6px; }
-.sh-seg button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #DADDE2; background: var(--card); font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
-.sh-seg button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
-#sh-line-list { margin: 0; padding: 0; list-style: none; }
-#sh-line-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
-#sh-line-list .t { font-size: 12px; color: var(--grey2); padding-top: 3px; font-variant-numeric: tabular-nums; }
-#sh-line-list div { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
-#sh-line-list .who { font-size: 12px; font-weight: 600; color: var(--grey2); }
-#sh-line-list .src { font-size: 14px; line-height: 1.5; color: var(--grey); }
-#sh-line-list .dst { font-size: 17px; line-height: 1.5; font-weight: 600; }
-#sh-line-list[data-view=src] .dst, #sh-line-list[data-view=dst] .src { display: none; }
-#sh-line-list[data-view=src] .src { font-size: 17px; color: var(--ink); }
-.sh-cta { padding: 36px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
-.sh-cta .k { margin: 0; font-size: 14px; font-weight: 600; color: var(--grey); }
-.sh-cta .h { margin: 0; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.2; font-weight: 900; letter-spacing: -0.02em; }
-.sh-cta .b { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
+.sh-status { margin: 80px 0; text-align: center; color: #6E6E73; }
+/* The locked and the gone page: one glyph, one sentence, one thing to do, in the middle of the screen. */
+.sh-gate { max-width: 400px; min-height: calc(100vh - 56px - 160px); min-height: calc(100dvh - 56px - 160px); margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
+/* The app icon, with what happened to the link as a small dark badge on its corner. */
+.sh-mark { position: relative; width: 88px; height: 88px; margin-bottom: 4px; }
+.sh-mark img { display: block; width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 12px 32px rgba(232,85,43,0.22); }
+.sh-mark .badge { position: absolute; right: -8px; bottom: -8px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #1D1D1F; color: #FFFFFF; box-shadow: 0 0 0 3px #FFFFFF; }
+.sh-brandline { display: flex; align-items: center; gap: 8px; margin-top: 28px; padding: 10px 16px 10px 10px; border-radius: 22px; background: #F5F5F7; color: #1D1D1F; font-size: 13px; text-decoration: none; text-align: left; }
+.sh-brandline:hover { background: #ECECF0; color: #1D1D1F; }
+.sh-brandline img { flex: none; border-radius: 5px; }
+.sh-brandline span { color: #3A3A3C; }
+.sh-brandline b { flex: none; font-weight: 600; color: var(--orange-text); white-space: nowrap; }
+.sh-gate h1 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; }
+.sh-gate p { margin: 0; font-size: 15px; line-height: 1.6; color: #6E6E73; }
+#sh-gone .badge svg { display: none; }
+#sh-gone[data-kind="missing"] .k-missing, #sh-gone[data-kind="expired"] .k-expired, #sh-gone[data-kind="locked"] .k-locked { display: block; }
+.sh-gate .sh-get { height: 44px; padding: 0 22px; border-radius: 22px; font-size: 15px; }
+
+/* The password field: the show and go buttons sit inside it, like a system sign-in. */
+.sh-pw { position: relative; width: 100%; margin-top: 4px; }
+.sh-pw input { width: 100%; height: 52px; padding: 0 100px 0 20px; border: 1px solid #D2D2D7; border-radius: 26px; background: #FFFFFF; font: inherit; font-size: 17px; color: #1D1D1F; outline: none; transition: border-color .15s, box-shadow .15s; }
+.sh-pw input::placeholder { color: #8E8E93; }
+.sh-pw input:focus { border-color: #1D1D1F; box-shadow: 0 0 0 4px rgba(29,29,31,0.08); }
+.sh-pw-eye, .sh-pw-go { position: absolute; top: 6px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 20px; display: flex; align-items: center; justify-content: center; }
+.sh-pw-eye { right: 52px; background: transparent; color: #6E6E73 !important; }
+.sh-pw-eye:hover { color: #1D1D1F !important; }
+.sh-pw-eye[aria-pressed="true"] .slash { display: none; }
+.sh-pw-go { right: 6px; background: #1D1D1F; color: #FFFFFF !important; transition: background .15s, opacity .15s; }
+.sh-pw-go:hover { background: #3A3A3C; }
+.sh-pw input:placeholder-shown ~ .sh-pw-go { opacity: 0.35; }
+.sh-pw-go .spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); border-top-color: #FFFFFF; animation: sh-spin .7s linear infinite; }
+.sh-pw.busy .sh-pw-go svg { display: none; }
+.sh-pw.busy .sh-pw-go .spin { display: block; }
+.sh-pw.busy .sh-pw-go { opacity: 1; cursor: default; }
+.sh-pw.bad input { border-color: #D70015; box-shadow: 0 0 0 4px rgba(215,0,21,0.08); }
+.sh-pw.bad { animation: sh-shake .4s ease-in-out; }
+.sh-pw-msg { margin: 0; font-size: 13px; line-height: 1.5; color: #6E6E73; }
+.sh-pw-msg svg { display: inline; margin-right: 5px; vertical-align: -2px; }
+.sh-pw-msg.err { color: #D70015; }
+.sh-pw-msg.err svg { display: none; }
+@keyframes sh-spin { to { transform: rotate(360deg); } }
+@keyframes sh-shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
+@media (prefers-reduced-motion: reduce) { .sh-pw.bad { animation: none; } .sh-pw-go .spin { animation-duration: 2s; } }
+.sh-note { margin: 0; font-size: 13px; color: #6E6E73; }
+
+.sh-doc { display: flex; flex-direction: column; gap: 40px; }
+.sh-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
+.sh-meta { margin: 0; font-size: 15px; color: #6E6E73; }
+.sh-head h1 { margin: 0; font-size: 44px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
+.sh-people-btn { display: flex; align-items: center; gap: 10px; height: 40px; margin: 4px 0 0 -4px; padding: 0 12px 0 4px; border: 0; border-radius: 20px; background: transparent; font-size: 15px; }
+.sh-people-btn:hover { background: #F2F2F5; }
+.sh-people-btn .chev { color: #6E6E73; transition: transform .2s; }
+.sh-people-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
+.sh-stack { display: flex; }
+.sh-stack .sh-av + .sh-av { margin-left: -6px; box-shadow: 0 0 0 2px #FFFFFF; }
+.sh-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
+.sp0 { --sp-bg: #E6EEFD; --sp-fg: #1F4FB8; } .sp1 { --sp-bg: #E2F3F0; --sp-fg: #0B6B61; } .sp2 { --sp-bg: #EFE9FB; --sp-fg: #5B3AA8; }
+.sp3 { --sp-bg: #FCE8F1; --sp-fg: #9D2463; } .sp4 { --sp-bg: #FBF0D9; --sp-fg: #7A5300; } .sp5 { --sp-bg: #EEF0F3; --sp-fg: #4A4F5A; }
+.sh-av { background: var(--sp-bg, #EEF0F3); color: var(--sp-fg, #4A4F5A); }
+.sh-people { align-self: stretch; margin: 0; padding: 4px 16px; list-style: none; border-radius: 16px; background: #F5F5F7; }
+.sh-people li { display: flex; align-items: center; gap: 12px; min-height: 52px; }
+.sh-people li + li { border-top: 1px solid #E8E8ED; }
+.sh-people .name { flex: 0 1 120px; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+.sh-people .track { flex: 1 1 auto; height: 4px; border-radius: 2px; background: #E5E5EA; display: flex; }
+.sh-people .fill { border-radius: 2px; background: var(--sp-fg); }
+.sh-people .pct { flex: none; width: 40px; text-align: right; font-size: 13px; color: #6E6E73; font-variant-numeric: tabular-nums; }
+.sh-people .only { flex: none; min-width: 84px; height: 32px; padding: 0 12px; border: 0; border-radius: 16px; background: #FFFFFF; font-size: 13px; white-space: nowrap; }
+.sh-people .only[aria-pressed="true"] { background: #1D1D1F; color: #FFFFFF; }
+
+.sh-summary { margin: 0; font-size: 21px; line-height: 1.65; letter-spacing: -0.005em; overflow-wrap: anywhere; }
+.sh-block { display: flex; flex-direction: column; gap: 14px; }
+.sh-block h2 { margin: 0; font-size: 13px; font-weight: 600; color: #6E6E73; }
+.sh-block > ol, .sh-block > ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
+.sh-block ol { counter-reset: n; }
+.sh-block ol li { counter-increment: n; display: flex; gap: 14px; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
+.sh-block ol li::before { content: counter(n); flex: none; width: 14px; color: #6E6E73; font-variant-numeric: tabular-nums; }
+.sh-checks li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
+.sh-checks .box { flex: none; width: 16px; height: 16px; border: 1.5px solid #8E8E93; border-radius: 5px; transform: translateY(2px); }
+.sh-terms li { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
+.sh-terms li span { color: #6E6E73; }
+
+.sh-chapters { gap: 0; }
+.sh-chapters-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-bottom: 10px; }
+.sh-chapters-head h2 { margin-right: auto; }
+.sh-chip { height: 28px; padding: 0 12px; border: 0; border-radius: 14px; background: #F2F2F5; font-size: 13px; }
+.sh-link { border: 0; padding: 4px 0; background: transparent; font-size: 14px; color: var(--orange-text) !important; }
+.sh-link:hover { text-decoration: underline; }
+.sh-ch { border-top: 1px solid #E8E8ED; }
+.sh-row { width: 100%; display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border: 0; background: transparent; text-align: left; }
+button.sh-row:hover .h { color: var(--orange-text); }
+.sh-row .t { flex: none; width: 48px; padding-top: 3px; font-size: 13px; color: #6E6E73; font-variant-numeric: tabular-nums; }
+.sh-row .body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
+.sh-row .h { font-size: 17px; font-weight: 600; line-height: 1.45; transition: color .15s; }
+.sh-row .s { font-size: 15px; line-height: 1.55; color: #6E6E73; }
+.sh-row .n { flex: none; display: flex; align-items: center; gap: 6px; padding-top: 3px; font-size: 13px; color: #6E6E73; white-space: nowrap; }
+.sh-row .n svg { transition: transform .2s; }
+.sh-row[aria-expanded="true"] .n svg { transform: rotate(180deg); }
+.sh-open { margin: 0 0 24px 64px; display: flex; flex-direction: column; gap: 18px; }
+.sh-pts { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.55; color: #3A3A3C; }
+.sh-switch-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #6E6E73; }
+.sh-switch { position: relative; width: 40px; height: 24px; padding: 0; border: 0; border-radius: 12px; background: #E5E5EA; transition: background .2s; }
+.sh-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 10px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: left .2s; }
+.sh-switch[aria-checked="true"] { background: #1D1D1F; }
+.sh-switch[aria-checked="true"]::after { left: 18px; }
+.sh-line { display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
+.sh-line .who { font-size: 13px; font-weight: 600; color: var(--sp-fg, #4A4F5A); }
+.sh-line .who span { font-weight: 400; color: #8E8E93; font-variant-numeric: tabular-nums; }
+.sh-line .main { margin: 0; font-size: 17px; line-height: 1.6; }
+.sh-line .src { margin: 0; font-size: 15px; line-height: 1.55; color: #6E6E73; display: none; }
+.sh-doc.show-src .sh-line .src { display: block; }
+.sh-line.miss, .sh-ch.miss { display: none; }
+.sh-none { margin: 16px 0 0; font-size: 15px; color: #6E6E73; }
+.sh-foot { margin: 0; padding-top: 24px; border-top: 1px solid #E8E8ED; font-size: 13px; line-height: 1.6; color: #6E6E73; }
+
+@media (max-width: 640px) {
+ .sh-bar { padding: 0 8px 0 16px; gap: 4px; }
+ .sh-pill { width: 40px; padding: 0; justify-content: center; background: transparent; }
+ .sh-pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
+ .sh-get { height: 34px; padding: 0 14px; font-size: 13px; }
+ .sh-search-row { padding: 8px 16px; }
+ .share { padding: 32px 20px 72px; }
+ .sh-doc { gap: 32px; }
+ .sh-head h1 { font-size: 30px; line-height: 1.2; }
+ .sh-meta { font-size: 14px; }
+ .sh-summary { font-size: 18px; }
+ .sh-block ol li, .sh-checks li { font-size: 16px; }
+ .sh-row { gap: 12px; padding: 16px 0; }
+ .sh-row .t { width: 42px; font-size: 12px; }
+ .sh-row .h { font-size: 16px; }
+ .sh-row .s { font-size: 14px; }
+ .sh-open { margin-left: 0; }
+ .sh-line .main { font-size: 16px; }
+ .sh-people { padding: 4px 12px; }
+ .sh-people li { gap: 10px; }
+ .sh-people .name { flex-basis: 76px; }
+ .sh-people .only { min-width: 0; }
+}