:root {
    --ink: #17181c;
    --ink-2: #3b3d45;
    --muted: #6c6f7a;
    --line: #e4e5e9;
    --soft: #f5f6f8;
    --side: #f8f8fa;
    --bg: #ffffff;
    --accent: #3b5bdb;
    --accent-soft: #edf1ff;
    --mention: #3b5bdb;
    --mention-me: #fff3bf;
    --ok: #2f9e44;
    --bad: #c92a2a;
    --bad-soft: #fff0f0;
    --radius: 8px;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  }* { box-sizing: border-box; }html { -webkit-text-size-adjust: 100%; }body { margin: 0; font: 15px/1.5 var(--sans); color: var(--ink); background: var(--bg); }a { color: var(--accent); text-decoration: none; }a:hover { text-decoration: underline; }h1, h2, h3 { margin: 0; line-height: 1.25; }input, textarea, select, button { font: inherit; color: inherit; }code { font-family: var(--mono); font-size: .88em; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }pre.code { font-family: var(--mono); font-size: 13px; background: #f3f4f7; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; overflow-x: auto; margin: 4px 0; white-space: pre; }pre.code code { background: none; border: 0; padding: 0; }.muted { color: var(--muted); }.small { font-size: 13px; }.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius); border: 1px solid var(--accent);
    background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; }.btn:hover { filter: brightness(1.08); text-decoration: none; }.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }.btn.danger { background: #fff; color: var(--bad); border-color: #f1c4c4; }.btn.sm { padding: 4px 10px; font-size: 13px; }.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; }.field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }.field input, .field textarea, .field select, .search { width: 100%; padding: 8px 10px; border: 1px solid #c9ccd4; border-radius: var(--radius); background: #fff; font-weight: 400; font-size: 15px; }input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }.alert { padding: 8px 12px; border-radius: var(--radius); margin: 8px 16px; font-size: 14px; }.alert.error { background: var(--bad-soft); color: var(--bad); }.alert.ok { background: #ebfbee; color: var(--ok); }.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #a3a7b2; flex: none; }.dot.on { background: var(--ok); border-color: var(--ok); }.avatar { width: 34px; height: 34px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
    font-weight: 700; font-size: 13px; flex: none; }.avatar.sm { width: 24px; height: 24px; font-size: 11px; border-radius: 5px; }.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }.app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }.side { width: 264px; flex: none; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; }.panes { flex: 1; min-width: 0; display: flex; }.panes > * { display: contents; }.pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }.pane.main { flex: 1; }.pane > jw-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }.pane.aside { width: 380px; flex: none; border-left: 1px solid var(--line); background: #fff; }.pane.empty { flex: 1; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 24px; }.back { display: none; }@media (max-width: 820px) {
    .side { width: 100%; border-right: 0; }
    .pane.aside { width: 100%; border-left: 0; }
    .back { display: inline-flex; }
    .app[data-pane="side"] .panes { display: none; }
    .app[data-pane="main"] .side, .app[data-pane="aside"] .side, .app[data-pane="aside"] .pane.main { display: none; }
    .app[data-pane="side"] .side { flex: 1; }
  }.org-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 10px; }.org-bar b { display: flex; align-items: center; gap: 8px; font-size: 16px; }.side nav { padding: 4px 8px 12px; }.side h3 { display: flex; justify-content: space-between; align-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--muted); margin: 14px 8px 4px; }.side h3 a { font-size: 18px; line-height: 1; color: var(--muted); text-decoration: none; }.side-link { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; color: var(--ink-2); text-decoration: none; }.side-link:hover { background: #eceef2; text-decoration: none; }.side-link[aria-current] { background: var(--accent); color: #fff; }.side-link.unread { font-weight: 700; color: var(--ink); }.side-link .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.side-link .hash { width: 16px; text-align: center; color: var(--muted); }.side-link[aria-current] .hash { color: #fff; }.badge { background: var(--bad); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 0 6px; line-height: 18px; min-width: 18px; text-align: center; }.notify-ask { margin: 0 14px 8px; width: calc(100% - 28px); }.me-bar { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; }.me-bar span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); min-height: 56px; }.head h1 { font-size: 17px; display: flex; align-items: center; gap: 6px; }.head .topic { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.head .grow { flex: 1; min-width: 0; }.preview { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: var(--accent-soft); font-size: 14px; }.messages { flex: 1; overflow-y: auto; padding: 8px 0 12px; overscroll-behavior: contain; }.older { text-align: center; margin: 8px 0; font-size: 13px; }.day { display: flex; align-items: center; gap: 12px; margin: 14px 16px 6px; color: var(--muted); font-size: 12px; font-weight: 600; }.day::before, .day::after { content: ""; flex: 1; border-top: 1px solid var(--line); }.msg { position: relative; display: flex; gap: 10px; padding: 4px 16px; }.msg:hover { background: #fafafb; }.msg.grouped { padding-top: 0; }.msg .gutter { width: 34px; flex: none; font-size: 11px; color: transparent; text-align: right; padding-top: 3px; }.msg.grouped:hover .gutter { color: var(--muted); }.msg .content { flex: 1; min-width: 0; }.msg header { display: flex; gap: 8px; align-items: baseline; }.msg header b { font-size: 15px; }.msg time { color: var(--muted); font-size: 12px; }.text { overflow-wrap: anywhere; }.text a { overflow-wrap: anywhere; }.mention { color: var(--mention); background: var(--accent-soft); border-radius: 3px; padding: 0 2px; font-weight: 600; }.mention.me { background: var(--mention-me); color: #7a5d00; }.edited { color: var(--muted); font-size: 12px; }.deleted { color: var(--muted); font-style: italic; }.quote { border-left: 3px solid #c9ccd4; padding: 2px 8px; margin: 2px 0 4px; color: var(--ink-2); font-size: 14px; }.quote b { display: block; font-size: 12px; }.system-line { padding: 2px 16px 2px 60px; color: var(--muted); font-size: 13px; }.system-line time { margin-left: 6px; }.system-line .mention { background: none; padding: 0; }.tools { position: absolute; right: 16px; top: -12px; display: none; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.06); }.msg:hover .tools, .msg:focus-within .tools { display: flex; }.tools a, .tools button { font-size: 12px; padding: 3px 7px; border-radius: 4px; border: 0; background: none; color: var(--ink-2); cursor: pointer; text-decoration: none; }.tools a:hover, .tools button:hover { background: var(--soft); }.tools form { display: inline; }.replies { display: inline-flex; gap: 6px; font-size: 13px; font-weight: 600; margin-top: 2px; }.snippet { border: 1px solid var(--line); border-radius: 6px; margin: 4px 0; overflow: hidden; }.snippet figcaption { display: flex; justify-content: space-between; align-items: center; padding: 4px 10px; background: var(--soft); font-size: 12px; }.snippet pre.code { margin: 0; border: 0; border-radius: 0; }.copy.jw-copied { color: var(--ok); }.files { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }.files img { max-width: 320px; max-height: 240px; border-radius: 6px; border: 1px solid var(--line); display: block; }.files video { max-width: 360px; max-height: 240px; border-radius: 6px; }.file { display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }.card { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; padding: 8px 12px; margin: 2px 0; max-width: 560px; }.card .kind { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }.card .title { font-weight: 700; display: block; margin: 2px 0 6px; }.card dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; margin: 0 0 6px; font-size: 13px; }.card dt { color: var(--muted); font-size: 12px; }.card dd { margin: 0; }.edit-form { display: grid; gap: 6px; }.edit-form textarea { width: 100%; min-height: 70px; padding: 8px; border: 1px solid #c9ccd4; border-radius: 6px; }.composer { padding: 8px 16px 14px; }.compose-box { border: 1px solid #c9ccd4; border-radius: 10px; background: #fff; }.compose-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }.compose { display: flex; align-items: flex-end; gap: 6px; padding: 6px; }.compose textarea { flex: 1; border: 0; resize: none; padding: 6px; min-height: 36px; max-height: 220px; outline: none; background: none; }.compose-bar { display: flex; align-items: center; gap: 10px; padding: 0 8px 6px; font-size: 13px; }.compose-bar details { position: relative; }.compose-bar summary { cursor: pointer; color: var(--muted); list-style: none; }.snippet-options { display: flex; gap: 8px; padding: 6px 0; }.snippet-options select, .snippet-options input { padding: 4px 6px; border: 1px solid #c9ccd4; border-radius: 6px; font-size: 13px; }.clip { cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }.clip input { position: absolute; width: 1px; height: 1px; opacity: 0; }.pending { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 6px 8px 0; }.pending li { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: 6px; padding: 3px 4px 3px 8px; font-size: 13px; }.pending button { border: 0; background: none; cursor: pointer; color: var(--muted); }.replying { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px 0; font-size: 13px; color: var(--ink-2); }.page { flex: 1; overflow-y: auto; padding: 16px; }.page form.row { display: flex; gap: 8px; margin-bottom: 12px; }.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }.rows li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); }.rows li:first-child { border-top: 0; }.rows li.unread { background: #f7f9ff; }.rows .grow { flex: 1; min-width: 0; }.rows .grow > * { display: block; overflow: hidden; text-overflow: ellipsis; }.tabs { display: flex; gap: 4px; }.tabs a { padding: 4px 10px; border-radius: 6px; color: var(--ink-2); text-decoration: none; }.tabs a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }.stack { display: grid; gap: 12px; max-width: 520px; }.choice { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }.members { list-style: none; margin: 0; padding: 0; }.members li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }.members li .name { flex: 1; }.section { padding: 12px 16px; border-bottom: 1px solid var(--line); }.section h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }.switcher { position: relative; flex: 1; min-width: 0; }.switcher summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; font-size: 16px; }.switcher summary::-webkit-details-marker { display: none; }.switcher summary b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.switcher-menu { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; width: 240px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.1); padding: 6px; display: grid; gap: 2px; }.switcher-menu p { margin: 4px 8px; }.switch { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--ink-2); text-decoration: none; }.switch:hover { background: var(--soft); text-decoration: none; }.switch[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }.switch .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.tag { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; }.org { color: var(--muted); font-weight: 400; margin-left: 4px; }.bare { min-height: 100vh; display: grid; place-items: center; background: var(--side); padding: 16px; }.bare .box { width: min(400px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 14px; }.bare h1 { font-size: 20px; }jw-skel{display:inline-block;min-width:3em;height:.85em;border-radius:4px;background:currentColor;opacity:.12;vertical-align:middle}jw-skel.w{min-width:8em}jw-region[data-jw-transition],jw-view[data-jw-transition]{display:block}
:root:not(:has(body[data-jw-transitions]))::view-transition-old(root),:root:not(:has(body[data-jw-transitions]))::view-transition-new(root){animation:none}
::view-transition-group(*.fade),::view-transition-group(*.slide),::view-transition-group(*.rise),::view-transition-group(*.scale){animation-duration:.24s}
::view-transition-old(*.fade){animation:.16s ease-out both jw-out}::view-transition-new(*.fade){animation:.24s ease-in both jw-in}
::view-transition-old(*.slide){animation:.22s ease-in both jw-out,.22s ease-in both jw-left}::view-transition-new(*.slide){animation:.26s ease-out both jw-in,.26s ease-out both jw-from-right}
::view-transition-old(*.rise){animation:.16s ease-out both jw-out}::view-transition-new(*.rise){animation:.28s cubic-bezier(.2,.8,.2,1) both jw-in,.28s cubic-bezier(.2,.8,.2,1) both jw-up}
::view-transition-old(*.scale){animation:.16s ease-out both jw-out}::view-transition-new(*.scale){animation:.24s ease-out both jw-in,.24s ease-out both jw-grow}
@keyframes jw-out{to{opacity:0}}@keyframes jw-in{from{opacity:0}}@keyframes jw-left{to{transform:translateX(-24px)}}@keyframes jw-from-right{from{transform:translateX(24px)}}
@keyframes jw-up{from{transform:translateY(10px)}}@keyframes jw-grow{from{transform:scale(.97)}}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
