/* Inbox stays beside the article or draft it belongs to. */
.inbox-sheet{box-sizing:border-box;width:min(560px,calc(100vw - 32px));height:calc(100dvh - 32px);max-width:none;max-height:none;margin:16px 16px 16px auto;padding:0;border:1px solid rgba(175,210,221,.23);border-radius:24px;background:#101b24;color:#e6eeed;box-shadow:0 24px 100px #0008;overflow:hidden;animation:inbox-sheet-in 360ms cubic-bezier(.2,.8,.2,1)}
.inbox-sheet::backdrop{background:rgba(3,10,15,.3);animation:inbox-dim-in 260ms ease}
.inbox-sheet.is-closing{animation:inbox-sheet-out 180ms ease both;pointer-events:none}.inbox-sheet.is-closing::backdrop{animation:inbox-dim-out 180ms ease both}
.inbox-sheet-frame{height:100%;display:flex;flex-direction:column}.inbox-sheet-bar{display:flex;align-items:center;gap:16px;padding:22px 24px 18px;border-bottom:1px solid #a8c5d329;flex:none}.inbox-sheet-bar h2{margin:0;font-size:24px;letter-spacing:-.04em;font-family:var(--font-display,serif);font-weight:500}.inbox-sheet-bar>a{margin-left:auto;color:#9eafb9;text-decoration:none;font-size:12px}.inbox-sheet-close{width:34px;height:34px;display:grid;place-items:center;background:#b7d1df0b;border:1px solid #a8c5d32a;border-radius:50%;color:#d8e5e9;cursor:pointer;font-size:23px;line-height:1}
.inbox-sheet-body{padding:0 24px 26px;overflow:auto;overscroll-behavior:contain;flex:1;min-height:0}.inbox-sheet .inbox-retention{color:#9eafb9;font-size:12px;line-height:1.6;margin:18px 0}.inbox-sheet .inbox-tabs{display:flex;gap:4px;padding:4px;border-radius:11px;border:1px solid #a8c5d318;background:#080f1670;margin:0 0 20px}.inbox-sheet .inbox-tabs a{color:#abbac2;flex:1;text-align:center;padding:9px 5px;border:0;border-radius:8px;font-size:12px;font-weight:500;text-decoration:none;white-space:nowrap}.inbox-sheet .inbox-tabs [aria-current=page]{background:#b9d5e41c;color:#edf3f0;box-shadow:0 1px 3px #0003}.inbox-sheet .inbox-items{display:grid;gap:0}.inbox-sheet .notice{padding:20px 0;border:0;border-radius:0;border-bottom:1px solid #a8c5d31c;background:none;box-shadow:none;position:relative}.inbox-sheet .notice-unread:before{content:'';position:absolute;left:-14px;top:27px;width:5px;height:5px;border-radius:50%;background:#c3dea0}.inbox-sheet .notice-meta{display:flex;align-items:center;gap:10px;font-size:11px;color:#95a9b5;flex-wrap:wrap}.inbox-sheet .notice .status-pill{padding:2px 6px;border:0;border-radius:4px;background:#c3dea015;color:#c5d8b5;font-size:10px}.inbox-sheet .notice h2{font-size:16px;line-height:1.6;margin:10px 0 5px;overflow-wrap:anywhere;font-family:inherit}.inbox-sheet .notice-body{font-size:13px;line-height:1.8;color:#b5c3cd;overflow-wrap:anywhere}.inbox-sheet .notice>p{font-size:12px;margin:10px 0}.inbox-sheet .notice>p a{color:#a2d5dd}.inbox-sheet .notice-actions{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0 0}.inbox-sheet .notice-actions button{font:inherit;font-size:11px;line-height:1.4;padding:7px 9px;border:1px solid #a8c5d324;border-radius:7px;background:#b7d1df09;color:#b5c3cd;cursor:pointer;transition:background 140ms,border-color 140ms}.inbox-sheet .notice-actions button:hover{background:#b7d1df19;border-color:#a8c5d34a}.inbox-sheet .notice-actions .notice-delete{color:#c49691;margin-left:auto}.inbox-sheet .notice-actions button:disabled{cursor:wait;opacity:.5}.inbox-sheet :focus-visible{outline:2px solid #a2d5dd;outline-offset:3px}.inbox-sheet .inbox-empty{padding:52px 10px;background:none;border:0;text-align:center}.inbox-sheet .inbox-empty h2{font-size:20px;font-weight:500}.inbox-sheet .inbox-empty p{color:#9eafb9;font-size:13px;line-height:1.8}.inbox-sheet .inbox-pagination{display:flex;justify-content:center;gap:16px;align-items:center;font-size:12px;margin-top:24px}.inbox-sheet .inbox-pagination a{color:#a2d5dd}.inbox-sheet .inbox-pagination span{color:#95a9b5}
.inbox-sheet-status{flex:none;min-height:0;font-size:12px;line-height:1.7;color:#c7d5c0;padding:0 24px}.inbox-sheet-status:not(:empty){padding-top:12px;padding-bottom:10px}.inbox-sheet-status.is-error{color:#efb0a7}.inbox-sheet-status button,.inbox-sheet-status a{font:inherit;color:inherit;background:none;border:0;text-decoration:underline;cursor:pointer;padding:4px 5px;margin-left:6px}.inbox-sheet-busy{display:flex;align-items:center;gap:10px;padding:30px 0;color:#9eafb9;font-size:13px}.inbox-sheet-busy:before{content:'';width:13px;height:13px;border:1.5px solid #a2d5dd30;border-top-color:#a2d5dd;border-radius:50%;animation:inbox-spin 800ms linear infinite}.inbox-sheet [data-inbox-panel][aria-busy=true]{opacity:.58;pointer-events:none;transition:opacity 140ms}
.inbox-sheet-delete-confirm{padding:12px;background:#b0736210;border:1px solid #cfac9a30;border-radius:10px;margin-top:14px;font-size:12px}.inbox-sheet-delete-confirm p{margin:0 0 10px;color:#d8c1ba}.inbox-sheet-delete-confirm button{font:inherit;cursor:pointer;padding:7px 10px;border:1px solid #a8c5d333;border-radius:7px;background:#12212a;color:#dbe7ec;margin-right:8px}.inbox-sheet-delete-confirm [data-confirm-delete]{background:#543830;color:#ffe0d6}
@keyframes inbox-sheet-in{from{opacity:0;transform:translateX(40px) scale(.985)}to{opacity:1;transform:none}}@keyframes inbox-sheet-out{to{opacity:0;transform:translateX(32px)}}@keyframes inbox-dim-in{from{opacity:0}to{opacity:1}}@keyframes inbox-dim-out{to{opacity:0}}@keyframes inbox-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){.inbox-sheet{width:calc(100vw - 16px);height:calc(100dvh - 16px);margin:8px;border-radius:20px}.inbox-sheet-bar{padding:18px}.inbox-sheet-body{padding:0 20px 24px}.inbox-sheet-status{padding-inline:20px}}
@media(prefers-reduced-motion:reduce){.inbox-sheet,.inbox-sheet::backdrop,.inbox-sheet.is-closing,.inbox-sheet.is-closing::backdrop,.inbox-sheet-busy:before{animation:none!important}.inbox-sheet *{transition:none!important}}

/* Paired day/night tokens; data rows are a quiet reading surface. */
:root .inbox-sheet{background:var(--ny-surface,#101b24);color:var(--ny-text,#e6eeed);border-color:var(--ny-line-strong,rgba(175,210,221,.23));font-family:var(--nylon-type-ui,system-ui,sans-serif)}
:root[data-glass="solid"] .inbox-sheet{background:var(--ny-surface,#101b24);backdrop-filter:none;-webkit-backdrop-filter:none}
:root .inbox-sheet .inbox-sheet-bar h2{font:600 23px/1.4 var(--nylon-type-ui,system-ui,sans-serif);letter-spacing:-.02em}
:root .inbox-sheet :is(.inbox-retention,.notice-meta,.inbox-empty p,.inbox-pagination span,.inbox-sheet-bar>a){color:var(--ny-muted,#9eafb9)}
:root .inbox-sheet :is(.notice-body,.notice h2){color:var(--ny-text,#e6eeed)}
:root .inbox-sheet .notice h2{font:600 16px/1.6 var(--nylon-type-ui,system-ui,sans-serif)}
:root .inbox-sheet .notice{background:none;box-shadow:none;border:0;border-bottom:1px solid var(--ny-line,#a8c5d31c);border-radius:0}
:root .inbox-sheet .inbox-tabs{position:relative;isolation:isolate;background:var(--ny-field,#080f1670);border-color:var(--ny-line,#a8c5d318)}
:root .inbox-sheet .inbox-tabs a{color:var(--ny-muted,#abbac2);min-height:40px;box-sizing:border-box}
:root .inbox-sheet .inbox-tabs [aria-current=page]{color:var(--ny-link,#edf3f0);background:var(--ny-info-wash,#b9d5e41c);box-shadow:none}
:root .inbox-sheet :is(.notice,.inbox-sheet-bar){border-color:var(--ny-line,#a8c5d31c)}
:root .inbox-sheet :is(.notice-actions button,.inbox-sheet-close){color:var(--ny-text,#b5c3cd);border-color:var(--ny-line-strong,#a8c5d324);background:var(--ny-field,#b7d1df09);min-height:36px}
:root .inbox-sheet :is(.notice>p a,.inbox-pagination a){color:var(--ny-link,#a2d5dd)}
:root .inbox-sheet .notice.notice-unread:before{background:var(--ny-link,#c3dea0);animation:inbox-sheet-unread 2.6s ease-in-out infinite}
:root .inbox-sheet .status-pill{background:var(--ny-info-wash,#c3dea015);color:var(--ny-link,#c5d8b5)}
:root .inbox-sheet .inbox-sheet-status{color:var(--ny-text,#c7d5c0)}
:root .inbox-sheet .inbox-sheet-status.is-error{color:var(--ny-danger,#efb0a7)}
:root .inbox-sheet [data-inbox-panel][aria-busy=true]{opacity:1;pointer-events:auto;cursor:progress;transition:none}
:root .inbox-sheet .notice-actions .notice-delete{color:var(--ny-danger,#c49691)}
:root .inbox-sheet .inbox-sheet-delete-confirm{background:var(--ny-info-wash,#b0736210);border-color:var(--ny-line-strong,#cfac9a30)}
:root .inbox-sheet .inbox-sheet-delete-confirm p{color:var(--ny-text,#d8c1ba)}
:root .inbox-sheet .inbox-sheet-delete-confirm button{background:var(--ny-field,#12212a);border-color:var(--ny-line-strong,#a8c5d333);color:var(--ny-text,#dbe7ec);min-height:36px}
:root .inbox-sheet .inbox-sheet-delete-confirm [data-confirm-delete]{color:var(--ny-danger,#ffe0d6)}
:root .inbox-sheet :focus-visible{outline-color:var(--ny-focus,#a2d5dd)}
@keyframes inbox-sheet-unread{0%,100%{opacity:1}50%{opacity:.45}}
@media(prefers-reduced-motion:reduce){:root .inbox-sheet .notice-unread:before{animation:none!important}}
@media(prefers-contrast:more){:root .inbox-sheet{background:var(--ny-surface,#101b24)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
@media(forced-colors:active){:root .inbox-sheet{background:Canvas!important;color:CanvasText;border-color:CanvasText;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}

/* The quick inbox remains a paper-like side window, with the same mail icons. */
:root .inbox-sheet .inbox-icon{display:inline-block;width:17px;height:17px;vertical-align:middle;flex:none}
:root .inbox-sheet .inbox-sheet-close{width:44px;height:44px;flex:none}
:root .inbox-sheet .inbox-sheet-bar>a{font-size:13px;line-height:1.6;min-height:44px;display:flex;align-items:center}
:root .inbox-sheet .inbox-retention{font-size:13px;line-height:1.75;margin-block:16px}
:root .inbox-sheet .inbox-tabs{background:transparent;padding:0;border:0;border-bottom:1px solid var(--ny-line-strong);border-radius:0;gap:0}
:root .inbox-sheet .inbox-tabs a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;font-size:13px;padding:9px 6px;border-radius:0;border-bottom:2px solid transparent;color:var(--ny-text)}
:root .inbox-sheet .inbox-tabs [aria-current=page]{color:var(--ny-link);background:transparent;border-bottom-color:var(--ny-link)}
:root .inbox-sheet .notice-meta{font-size:12px;line-height:1.7}
:root .inbox-sheet .notice h2{font-size:17px;font-weight:650;line-height:1.6;display:flex;align-items:start;gap:10px;margin-block:12px 8px}
:root .inbox-sheet .notice-heading-icon{width:30px;height:32px;display:grid;place-items:center;flex:none;border:1px solid var(--ny-line);background:var(--ny-field);border-radius:7px;color:var(--ny-icon,var(--ny-link))}
:root .inbox-sheet .notice-heading-icon .inbox-icon{width:20px;height:20px}
:root .inbox-sheet .notice-body{font-size:15px;line-height:1.85}
:root .inbox-sheet .notice>p a{display:inline-flex;align-items:center;gap:7px;min-height:40px;font-size:14px;line-height:1.6}
:root .inbox-sheet .notice-actions{gap:8px}
:root .inbox-sheet .notice-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding-inline:10px;font-size:13px;line-height:1.5}
:root .inbox-sheet .notice.notice-unread:before{animation:none}
:root .inbox-sheet .notice:first-child.notice-unread:before{animation:inbox-sheet-unread 2.6s ease-in-out infinite}
@media(max-width:400px){:root .inbox-sheet .inbox-sheet-bar{gap:10px;padding:14px 16px}:root .inbox-sheet .inbox-sheet-body{padding-inline:16px}:root .inbox-sheet .inbox-sheet-bar h2{font-size:21px}:root .inbox-sheet .inbox-sheet-bar>a{font-size:12px}:root .inbox-sheet .notice-actions .notice-delete{margin-left:0}}
@media(prefers-reduced-motion:reduce){:root .inbox-sheet .notice:first-child.notice-unread:before{animation:none!important}}
