.admin-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 24px 40px;
}

.admin-shell--wide {
    max-width: 1480px;
}

.admin-shell--narrow {
    max-width: 1180px;
}

.admin-shell__hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.admin-shell__lead {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 280px;
}

.admin-shell__title {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    color: var(--color-text-primary);
}

.admin-shell__subtitle {
    margin: 0;
    max-width: 760px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.admin-shell__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-shell__action-link {
    text-decoration: none;
}

.admin-shell__banner {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(148, 163, 184, 0.12));
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--color-text-primary);
    line-height: 1.7;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.admin-shell__section {
    margin-bottom: 28px;
}

.admin-shell__tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-shell__tab {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.admin-shell__tab--active {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--color-text-primary);
}

.admin-shell__section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-shell__section-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    color: var(--color-text-primary);
}

.admin-shell__meta {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.admin-shell__surface {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.admin-shell__surface--compact {
    padding: 18px;
}

.admin-shell__two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.admin-shell__stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.admin-shell__kv {
    margin: 0;
    display: grid;
    gap: 10px;
}

.admin-shell__kv div {
    display: grid;
    gap: 4px;
}

.admin-shell__kv dt {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.admin-shell__kv dd {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-primary);
    word-break: break-word;
}

.admin-shell__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.admin-shell__card-link {
    text-decoration: none;
    color: inherit;
}

.admin-shell__card {
    height: 100%;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-shell__card-link:hover .admin-shell__card,
.admin-shell__card-link:focus-visible .admin-shell__card {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.1);
}

.admin-shell__card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.admin-shell__card-body {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.admin-shell__summary {
    margin-top: auto;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.04);
}

.admin-shell__summary-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.admin-shell__summary-value {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    word-break: break-word;
}

.admin-shell__muted {
    color: var(--color-text-secondary);
    font-size: 13px;
}

.admin-shell__list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.admin-shell__status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 600;
}

.admin-shell__form-grid {
    display: grid;
    gap: 12px;
}

.admin-shell__form-grid label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.admin-shell__form-grid input,
.admin-shell__form-grid select,
.admin-shell__form-grid textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-text-primary);
}

.admin-shell__checkbox {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.admin-shell__checkbox input {
    width: auto;
}

.admin-shell__table-wrap {
    overflow-x: auto;
}

.admin-shell__table {
    width: 100%;
    border-collapse: collapse;
}

.admin-shell__table th,
.admin-shell__table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}

.admin-shell__table th {
    color: var(--color-text-secondary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .admin-shell {
        padding: 22px 16px 32px;
    }

    .admin-shell__title {
        font-size: 26px;
    }

    .admin-shell__hero,
    .admin-shell__actions,
    .admin-shell__section-head {
        align-items: stretch;
    }

    .admin-shell__actions .btn {
        width: 100%;
        text-align: center;
    }
}
