/* Геометрия раздела. Общие компоненты определяются в aart-ui. */
@layer aart-legacy {
/* Уведомления не перекрывают рабочую область до явного открытия списка. */
.notifications-root{display:inline-flex;flex:0 0 auto;align-items:center}
.notifications-root[hidden],.notification-panel[hidden],.notification-badge[hidden],.notification-error[hidden],.notification-empty[hidden]{display:none!important}
.notification-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:40px;height:40px;padding:8px;border:1px solid var(--line-strong,#e2e6eb);border-radius:12px;background:var(--surface,#fff);color:var(--text,#202329);cursor:pointer}
.notification-bell svg{width:21px;height:21px;flex-shrink:0}
.notification-bell:hover,.notification-bell[aria-expanded=true]{background:var(--accent-soft,#f1eaff);border-color:#d8c6ff;color:var(--purple,#6410f5)}
.notification-badge{position:absolute;right:-5px;top:-5px;min-width:19px;height:19px;display:inline-flex;align-items:center;justify-content:center;padding:0 4px;box-sizing:border-box;border:2px solid var(--surface,#fff);border-radius:12px;background:var(--purple,#6410f5);color:white;font-size:10px;font-weight:700;line-height:1}
.notification-panel{position:fixed;z-index:90;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;padding:0;background:var(--surface,#fff);color:var(--text,#202329);border:1px solid var(--line-strong,#e2e6eb);border-radius:18px;box-shadow:0 16px 60px #20232926;font-family:var(--font-main,Roboto,system-ui,sans-serif)}
.notification-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 18px 9px;flex:0 0 auto}
.notification-heading h2{margin:0;font-size:18px;line-height:1.35;letter-spacing:-.3px}
.notification-close{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border:0;border-radius:9px;width:34px;height:34px;padding:0;background:transparent;color:var(--muted,#6c727b);font:26px/1 var(--font-main,system-ui);cursor:pointer}
.notification-close:hover{background:var(--canvas,#f7f9fb);color:var(--text,#202329)}
.notification-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 18px 12px;flex:0 0 auto}
.notification-actions button{border:0;border-radius:6px;padding:6px 0;background:transparent;color:var(--purple,#6410f5);font:500 12px/1.5 var(--font-main,system-ui);text-align:left;cursor:pointer}
.notification-actions button:hover{text-decoration:underline}
.notification-actions button:disabled{color:var(--muted,#6c727b);opacity:.65;cursor:default;text-decoration:none}
.notification-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:0;padding:0;list-style:none;border-top:1px solid var(--line-strong,#e2e6eb)}
.notification-item{position:relative;margin:0;padding:0;border-bottom:1px solid var(--line-strong,#e2e6eb)}
.notification-item:last-child{border-bottom:0}
.notification-link{display:block;padding:15px 18px;color:inherit;text-decoration:none;background:var(--surface,#fff);overflow-wrap:anywhere;cursor:pointer}
.notification-link:hover{background:var(--canvas,#f7f9fb)}
.notification-item.is-unread .notification-link{background:var(--accent-soft,#f4eeff)}
.notification-item.is-unread .notification-link:hover{background:#ece2ff}
.notification-item.is-unread::before{content:"";position:absolute;left:6px;top:21px;width:5px;height:5px;border-radius:50%;background:var(--purple,#6410f5);pointer-events:none}
.notification-item-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 5px}
.notification-project{font-size:13px;font-weight:650;line-height:1.45;min-width:0}
.notification-time{white-space:nowrap;flex-shrink:0;font-size:10px;line-height:1.5;color:var(--muted,#6c727b)}
.notification-actor,.notification-body{display:block;font-size:12px;line-height:1.5}
.notification-actor{color:var(--muted,#6c727b);margin-bottom:5px}
.notification-body{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
.notification-link[aria-disabled=true]{cursor:default}
.notification-error{flex-shrink:0;margin:0;padding:10px 18px;background:#fff2eb;color:#92411b;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.notification-empty{margin:0;padding:26px 20px 30px;text-align:center;color:var(--muted,#6c727b);font-size:13px;line-height:1.65}
.notification-foot{flex:0 0 auto;margin:0;border-top:1px solid var(--line-strong,#e2e6eb);padding:11px 18px;font-size:11px;line-height:1.5;color:var(--muted,#6c727b)}
.notification-live{position:fixed;bottom:22px;right:22px;z-index:95;box-sizing:border-box;max-width:min(420px,calc(100vw - 32px));padding:0;border:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.notification-live.is-visible{width:auto;height:auto;clip-path:none;white-space:normal;padding:14px 18px;border:1px solid #d8c6ff;border-radius:14px;background:var(--surface,#fff);color:var(--text,#202329);box-shadow:0 8px 32px #20232920;font:500 13px/1.5 var(--font-main,system-ui);overflow-wrap:anywhere}
.notification-bell:focus-visible,.notification-close:focus-visible,.notification-actions button:focus-visible,.notification-link:focus-visible{outline:3px solid var(--focus-ring,#cbb0ff);outline-offset:2px}
.notification-link:focus-visible{outline-offset:-3px}
@media(max-width:600px){.notification-bell{width:36px;height:36px;border-radius:10px}.notification-panel{border-radius:14px}.notification-heading{padding:14px 14px 8px}.notification-actions{padding:0 14px 9px}.notification-link{padding:13px 14px}.notification-item-top{gap:8px}.notification-project{font-size:12px}.notification-time{font-size:9px}.notification-live.is-visible{bottom:16px;right:16px}.notification-item.is-unread::before{left:4px;top:20px}}
/* На узком экране новое действие не вытесняет выход за рамку шапки проекта. */
@media(max-width:360px){#workspace .topbar-actions>.figma-connection-trigger{min-width:50px;padding-inline:4px;gap:3px;font-size:10px}}
}
