/* Feedback & overlays — severity via border weight + style + icon, not color */

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--paper-raised); border: 1px solid var(--line-subtle); border-left: 3px solid var(--ink-900); align-items: flex-start; }
.alert i { font-size: 19px; margin-top: 1px; color: var(--ink-900); }
.alert b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.alert p { margin: 0; font-size: 12.5px; color: var(--ink-600); }
.alert-info { border-left-width: 2px; }
.alert-success { border-left-style: solid; }
.alert-warning { border-left-style: dashed; }
.alert-danger { border-left-width: 5px; }
.alert-danger b { font-weight: 800; }

.toast { display: flex; align-items: center; gap: 10px; background: var(--ink-900); color: var(--paper); padding: 12px 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-float); font-size: 13px; font-weight: 500; }
.toast i { font-size: 18px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(20,18,16,.45); z-index: var(--z-overlay); display: flex; align-items: center; justify-content: center; padding: var(--space-4); }
.modal { background: var(--paper-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); border: 1px solid var(--line-subtle); max-width: 420px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal.wide { max-width: 640px; }
.modal .m-head { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line-subtle); }
.modal .m-head h4 { font-size: 15.5px; }
.modal .m-body { padding: 18px; font-size: 13px; color: var(--ink-600); }
.modal .m-foot { padding: 14px 18px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line-subtle); }

.drawer { background: var(--paper-raised); border-radius: var(--radius-lg); border: 1px solid var(--line-subtle); overflow: hidden; box-shadow: var(--shadow-soft); }
.drawer .d-head { padding: 16px 18px; border-bottom: 1px solid var(--line-subtle); display: flex; justify-content: space-between; align-items: center; }
.drawer .d-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }

.progress { height: 6px; border-radius: var(--radius-pill); background: var(--ink-150); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink-900); border-radius: var(--radius-pill); }

.skeleton { background: linear-gradient(100deg, var(--ink-100) 30%, var(--ink-150) 50%, var(--ink-100) 70%); background-size: 200% 100%; animation: shimmer 1.6s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty-state { text-align: center; padding: var(--space-10) var(--space-6); border: 1.5px dashed var(--line-default); border-radius: var(--radius-lg); }
.empty-state i { font-size: 32px; color: var(--ink-700); margin-bottom: 10px; }
.empty-state h4 { font-size: 15px; margin-bottom: 4px; }
.empty-state p { font-size: 12.5px; color: var(--ink-500); margin: 0 0 14px; }

.dropdown { position: relative; }
.dropdown .menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper-raised); border: 1px solid var(--line-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); min-width: 200px; z-index: var(--z-dropdown); overflow: hidden; padding: 6px; }
.dropdown .menu a, .dropdown .menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; font-size: 13px; font-weight: 500; color: var(--ink-700); background: none; border: none; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; }
.dropdown .menu a:hover, .dropdown .menu button:hover { background: var(--paper-sunken); color: var(--ink-900); }
.dropdown .menu i { font-size: 16px; color: var(--ink-500); }
.dropdown .menu .divider { height: 1px; background: var(--line-subtle); margin: 6px 4px; }
