* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

a {
    color: #1d4ed8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #111827;
    color: #fff;
}

.app-header__left,
.app-header__right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.app-logo {
    font-weight: 700;
    color: #fff;
}

.app-nav {
    display: flex;
    gap: 14px;
}

.app-nav a {
    color: #dbeafe;
}

.page-shell--full {
    max-width: none;
    width: 100%;
    height: calc(100vh - 46px);
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid--2 {
    grid-template-columns: 360px 1fr;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.card--auth {
    max-width: 420px;
    margin: 60px auto;
}

label {
    display: block;
    margin-bottom: 14px;
}

input[type="text"],
input[type="password"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

button {
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

.toast-stack {
    position: fixed;
    z-index: 12050;
    top: 64px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    display: grid;
    grid-template-columns: 38px 1fr 32px;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 14px 14px;
    border-radius: 16px;
    color: #f7f1df;
    background:
        linear-gradient(135deg, rgba(255, 193, 7, .12), transparent 42%),
        rgba(13, 17, 25, .94);
    border: 1px solid rgba(255, 193, 7, .34);
    box-shadow:
        0 0 32px rgba(255, 193, 7, .18),
        0 18px 46px rgba(0, 0, 0, .45);
    backdrop-filter: blur(14px);
    pointer-events: auto;
    animation: toast-in .28s ease-out both, toast-life 4s linear forwards;
}

.toast-success {
    border-color: rgba(255, 193, 7, .52);
}

.toast-error {
    border-color: rgba(239, 68, 68, .65);
    background:
        linear-gradient(135deg, rgba(239, 68, 68, .14), transparent 42%),
        rgba(13, 17, 25, .94);
}

.toast__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #20170a;
    background: linear-gradient(135deg, #ffe082, #ffc107);
    clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
}

.toast-error .toast__icon {
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #991b1b);
}

.toast__body {
    font-size: 15px;
    line-height: 1.35;
}

.toast__close {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #f7f1df;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.toast__close:hover {
    background: rgba(255, 193, 7, .22);
}

.toast.is-leaving {
    animation: toast-out .22s ease-in forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-12px) translateX(20px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(-8px) translateX(24px) scale(.97);
    }
}

@keyframes toast-life {
    0%, 82% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    text-align: left;
}

.muted {
    margin-top: 6px;
    color: #6b7280;
    font-size: 14px;
}
.app-notifications {
    position: relative;
}

.app-notifications__button {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    color: #fff8df;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 193, 7, .28);
    font-size: 18px;
}

.app-notifications__button:hover {
    background: rgba(255, 193, 7, .16);
}

.app-notifications__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f1605;
    background: linear-gradient(135deg, #ffe082, #ffc107);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.app-notifications__dropdown {
    position: absolute;
    z-index: 15000;
    top: calc(100% + 10px);
    right: 0;
    width: min(390px, calc(100vw - 24px));
    max-height: min(560px, calc(100vh - 90px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    color: #f7f1df;
    background:
        linear-gradient(135deg, rgba(255, 193, 7, .10), transparent 38%),
        rgba(13, 17, 25, .98);
    border: 1px solid rgba(255, 193, 7, .28);
    box-shadow:
        0 0 32px rgba(255, 193, 7, .14),
        0 24px 60px rgba(0, 0, 0, .50);
}

.app-notifications__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 193, 7, .14);
}

.app-notifications__head span {
    color: #d9c27a;
    font-size: 12px;
}

.app-notifications__list {
    overflow-y: auto;
    padding: 10px;
}

.app-notifications__empty {
    padding: 14px;
    color: #9aa4ba;
    font-size: 14px;
}

.app-notification {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 193, 7, .12);
}

.app-notification + .app-notification {
    margin-top: 8px;
}

.app-notification__link {
    display: grid;
    gap: 4px;
    color: #f7f1df;
    text-decoration: none;
    min-width: 0;
}

.app-notification__link:hover {
    text-decoration: none;
}

.app-notification__title {
    overflow: hidden;
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-notification__meta,
.app-notification__message {
    color: #aeb6c7;
    font-size: 12px;
    line-height: 1.25;
}

.app-notification__message {
    color: #ffe7a2;
}

.app-notification__read {
    align-self: center;
    padding: 8px 10px;
    border-radius: 11px;
    color: #1f1605;
    background: linear-gradient(135deg, #ffe082, #ffc107);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}
.app-notifications__dropdown[hidden] {
    display: none !important;
}