.cn-bell { position: relative; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; }
.cn-count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #0b0b0c; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.cn-count[hidden] { display: none; }
body.cn-lock { overflow: hidden; }
.cn-scrim { position: fixed; inset: 0; z-index: 900; background: #0007; }
.cn-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 901; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--bg); color: var(--fg); border-left: 1px solid var(--line); box-shadow: -12px 0 32px #0003; padding-top: env(safe-area-inset-top); }
.cn-scrim[hidden], .cn-panel[hidden] { display: none; }
.cn-panel header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.cn-panel h2 { margin: 0; font-size: 20px; }
.cn-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.cn-tabs button { min-height: 44px; padding: 0 12px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.cn-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--gold); }
.cn-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); }
.cn-body section { margin-bottom: 22px; }
.cn-body h3 { margin: 0 0 8px; font-size: 15px; }
.cn-bar { display: flex; align-items: center; justify-content: space-between; min-height: 40px; color: var(--muted); font-size: 14px; }
.cn-list, .cn-mutes, .cn-status { list-style: none; margin: 0; padding: 0; }
.cn-item { border-bottom: 1px solid var(--line); padding: 10px 0 10px 12px; border-left: 3px solid transparent; }
.cn-item.unread { border-left-color: var(--gold); }
.cn-item.imp { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.cn-open { display: grid; gap: 3px; width: 100%; min-height: 44px; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cn-open span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.cn-open small { font-size: 12px; color: var(--muted); }
.cn-open .cn-tag, .cn-tag { justify-self: start; display: inline-block; padding: 1px 7px; border-radius: 4px; background: var(--gold); color: #0b0b0c; font-size: 11px; font-weight: 700; }
.cn-item:not(.unread) strong { font-weight: 500; }
.cn-row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.cn-done { font-size: 13px; color: var(--gold-ink); font-weight: 600; }
.cn-table { width: 100%; border-collapse: collapse; }
.cn-table th, .cn-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cn-table thead th { font-size: 12px; color: var(--muted); }
.cn-table tbody th { text-align: left; font-weight: 600; }
.cn-table small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.cn-table td { text-align: center; width: 52px; }
.cn-table input, .cn-check input { width: 22px; height: 22px; accent-color: var(--gold); }
.cn-check { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.cn-times { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 8px; }
.cn-times input { min-height: 44px; font: inherit; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
.cn-note { display: block; color: var(--muted); font-size: 13px; }
.cn-mutes li, .cn-status li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cn-mutes small, .cn-status small { display: block; width: 100%; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.cn-pill { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.cn-pill.ok { background: #d4efe4; color: #25664e; }
.cn-pill.off { background: #f7e0dd; color: #8c2f24; }
.cn-save { position: sticky; bottom: 0; padding: 10px 0; background: var(--bg); }
.cn-compose { display: flex; flex-wrap: wrap; gap: 14px; width: 100%; padding: 4px 2px; font-size: 13px; color: var(--muted); }
.cn-compose label { display: inline-flex; gap: 6px; align-items: center; min-height: 32px; }
.cn-compose label[hidden] { display: none; }
#cm-form { position: relative; }
.cn-at { position: absolute; left: 8px; right: 8px; bottom: 100%; z-index: 20; margin: 0 0 4px; padding: 4px; list-style: none; max-height: 240px; overflow-y: auto; background: var(--bg, #fff); border: 1px solid var(--line, #e9ecee); border-radius: 10px; box-shadow: 0 8px 24px #0002; }
.cn-at[hidden] { display: none; }
.cn-at button { display: flex; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 0 10px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cn-at button:hover { background: var(--surface, #f5f6f7); }
.cn-at small { color: var(--muted, #73797e); }
.cn-spot { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; transition: outline-color .4s; }
.bubble.cn-spot { outline-color: #f6a51b; }
