/* Small shared inbox; existing modules retain their layout. */
.mi-trigger{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
.mi-trigger svg{width:15px;height:15px;flex:none}
.mi-count{background:var(--shell-gold);color:var(--shell-bg);min-width:17px;height:17px;border-radius:9px;padding:0 4px;font:600 10px/17px sans-serif;text-align:center}
.milani-inbox{position:fixed;inset:auto;margin:0;padding:0;z-index:8000;background:var(--shell-panel);color:var(--shell-text);border:1px solid var(--shell-line);border-radius:15px;box-shadow:0 12px 45px #0004;font:13px/1.55 var(--font-sans,sans-serif);overflow:hidden;display:none}
.milani-inbox.is-open{display:flex;flex-direction:column}
.milani-inbox>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--shell-line);flex:none}
.milani-inbox>header h2{margin:0;font:500 20px/1.3 Georgia,serif;color:var(--shell-text)}
.milani-inbox>header>div{display:flex;gap:6px;align-items:center}
.milani-inbox .mi-button{border:1px solid var(--shell-line);border-radius:8px;padding:6px 9px;min-height:32px;background:transparent;color:var(--shell-text);font:inherit;cursor:pointer}
.milani-inbox .mi-button:hover{background:var(--shell-raised)}
.milani-inbox [data-inbox-content]{padding:12px 16px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.mi-caption,.mi-status{font-size:11px;color:var(--shell-muted);margin:5px 0 10px;overflow-wrap:anywhere}
.mi-notice{border-top:1px solid var(--shell-line);padding:12px 0}
.mi-notice>summary{cursor:pointer;list-style:none;display:flex;flex-direction:column;gap:2px;font-size:14px;font-weight:500}
.mi-notice>summary::after{content:'Открыть отчёт ↓';font-size:11px;color:var(--shell-muted);font-weight:400}
.mi-notice[open]>summary::after{content:'Свернуть ↑'}
.mi-notice>summary small{font-size:11px;font-weight:400;color:var(--shell-muted)}
.mi-unread{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--shell-gold);margin:0 7px 2px 0}
.mi-report{padding-top:12px}
.mi-total,.mi-number-row{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:6px 0}
.mi-total{padding:12px;border:1px solid var(--shell-line);border-radius:9px;background:var(--shell-raised);font-size:14px}
.mi-total strong{font-size:19px;font-weight:500;white-space:nowrap}
.mi-number-row strong{font-weight:500;white-space:nowrap}
.mi-report h4{font:500 14px/1.4 var(--font-sans,sans-serif);margin:20px 0 9px;color:var(--shell-gold)}
.mi-report details{font-size:12px;margin:9px 0}
.mi-report details summary{color:var(--shell-muted);cursor:pointer}
.mi-report details[open]{padding-bottom:5px}
.mi-report details .mi-number-row{font-size:11px}
.mi-report a{color:var(--shell-gold);text-decoration:underline}
.mi-capacity{font-size:11px;color:var(--shell-muted);margin:11px 0 14px}
.mi-capacity progress{appearance:none;width:100%;height:4px;border:0;border-radius:4px;background:var(--shell-line);display:block;margin:6px 0}
.mi-capacity progress::-webkit-progress-bar{background:var(--shell-line);border-radius:4px}
.mi-capacity progress::-webkit-progress-value{background:var(--shell-gold);border-radius:4px}
.mi-capacity progress::-moz-progress-bar{background:var(--shell-gold);border-radius:4px}
.milani-inbox .mi-warning{color:var(--danger);font-size:12px}
.mi-explanation p,.mi-empty p{margin:9px 0}
.mi-explanation{border-top:1px solid var(--shell-line);padding-top:12px}
@media(max-width:520px){.milani-inbox .mi-button{min-height:40px}.milani-inbox>header{padding:10px 12px}.milani-inbox [data-inbox-content]{padding:10px 12px}.mi-number-row{font-size:12px}.mi-trigger{font-size:11px}}
